@ -65,7 +65,7 @@ extern Opts *opts;
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
KPKG : : KPKG ( TDEConfig * _config )
KPKG : : KPKG ( TDEConfig * _config )
: K MainWindow( 0 )
: TDE MainWindow( 0 )
{
{
kpackage = new KPACKAGE ( _config , this ) ;
kpackage = new KPACKAGE ( _config , this ) ;
setCentralWidget ( kpackage ) ;
setCentralWidget ( kpackage ) ;
@ -100,16 +100,16 @@ void KPKG::setupMenu()
actionCollection ( ) ) ;
actionCollection ( ) ) ;
recent - > loadEntries ( config ) ;
recent - > loadEntries ( config ) ;
pack_find = new K Action( i18n ( " Find &Package... " ) , " find " ,
pack_find = new TDE Action( i18n ( " Find &Package... " ) , " find " ,
KStdAccel: : shortcut ( K StdAccel: : Find ) , TQT_TQOBJECT ( kpackage ) ,
TDEStdAccel: : shortcut ( TDE StdAccel: : Find ) , TQT_TQOBJECT ( kpackage ) ,
TQT_SLOT ( find ( ) ) , actionCollection ( ) , " pack_find " ) ;
TQT_SLOT ( find ( ) ) , actionCollection ( ) , " pack_find " ) ;
pack_findf = new K Action( i18n ( " Find &File... " ) , " filefind " ,
pack_findf = new TDE Action( i18n ( " Find &File... " ) , " filefind " ,
0 , TQT_TQOBJECT ( kpackage ) ,
0 , TQT_TQOBJECT ( kpackage ) ,
TQT_SLOT ( findf ( ) ) , actionCollection ( ) , " pack_findf " ) ;
TQT_SLOT ( findf ( ) ) , actionCollection ( ) , " pack_findf " ) ;
kpack_reload = new K Action( i18n ( " &Reload " ) , " reload " ,
kpack_reload = new TDE Action( i18n ( " &Reload " ) , " reload " ,
KStdAccel: : shortcut ( K StdAccel: : Reload ) , TQT_TQOBJECT ( kpackage ) ,
TDEStdAccel: : shortcut ( TDE StdAccel: : Reload ) , TQT_TQOBJECT ( kpackage ) ,
TQT_SLOT ( reload ( ) ) , actionCollection ( ) , " kpack_reload " ) ;
TQT_SLOT ( reload ( ) ) , actionCollection ( ) , " kpack_reload " ) ;
( void ) KStdAction : : quit ( TQT_TQOBJECT ( kpackage ) , TQT_SLOT ( fileQuit ( ) ) ,
( void ) KStdAction : : quit ( TQT_TQOBJECT ( kpackage ) , TQT_SLOT ( fileQuit ( ) ) ,
@ -121,23 +121,23 @@ void KPKG::setupMenu()
pack_next = KStdAction : : forward ( TQT_TQOBJECT ( kpackage - > management - > treeList ) , TQT_SLOT ( next ( ) ) ,
pack_next = KStdAction : : forward ( TQT_TQOBJECT ( kpackage - > management - > treeList ) , TQT_SLOT ( next ( ) ) ,
actionCollection ( ) , " pack_next " ) ;
actionCollection ( ) , " pack_next " ) ;
( void ) ( new K Action( i18n ( " &Expand Tree " ) , " ftout " ,
( void ) ( new TDE Action( i18n ( " &Expand Tree " ) , " ftout " ,
0 , TQT_TQOBJECT ( kpackage ) ,
0 , TQT_TQOBJECT ( kpackage ) ,
TQT_SLOT ( expandTree ( ) ) , actionCollection ( ) , " kpack_expand " ) ) ;
TQT_SLOT ( expandTree ( ) ) , actionCollection ( ) , " kpack_expand " ) ) ;
( void ) ( new K Action( i18n ( " &Collapse Tree " ) , " ftin " ,
( void ) ( new TDE Action( i18n ( " &Collapse Tree " ) , " ftin " ,
0 , TQT_TQOBJECT ( kpackage ) ,
0 , TQT_TQOBJECT ( kpackage ) ,
TQT_SLOT ( collapseTree ( ) ) , actionCollection ( ) , " kpack_collapse " ) ) ;
TQT_SLOT ( collapseTree ( ) ) , actionCollection ( ) , " kpack_collapse " ) ) ;
( void ) ( new K Action( i18n ( " Clear &Marked " ) , TQString ( ) ,
( void ) ( new TDE Action( i18n ( " Clear &Marked " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( kpackage ) ,
0 , TQT_TQOBJECT ( kpackage ) ,
TQT_SLOT ( clearMarked ( ) ) , actionCollection ( ) , " kpack_clear " ) ) ;
TQT_SLOT ( clearMarked ( ) ) , actionCollection ( ) , " kpack_clear " ) ) ;
( void ) ( new K Action( i18n ( " Mark &All " ) , TQString ( ) ,
( void ) ( new TDE Action( i18n ( " Mark &All " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( kpackage ) ,
0 , TQT_TQOBJECT ( kpackage ) ,
TQT_SLOT ( markAll ( ) ) , actionCollection ( ) , " kpack_markall " ) ) ;
TQT_SLOT ( markAll ( ) ) , actionCollection ( ) , " kpack_markall " ) ) ;
pack_install = new K Action( i18n ( " &Install " ) , TQString ( ) ,
pack_install = new TDE Action( i18n ( " &Install " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( kpackage - > management ) ,
0 , TQT_TQOBJECT ( kpackage - > management ) ,
TQT_SLOT ( installSingleClicked ( ) ) , actionCollection ( ) , " install_single " ) ;
TQT_SLOT ( installSingleClicked ( ) ) , actionCollection ( ) , " install_single " ) ;
@ -145,7 +145,7 @@ void KPKG::setupMenu()
kpackage - > management - > setInstallAction ( pack_install ) ;
kpackage - > management - > setInstallAction ( pack_install ) ;
pack_uninstall = new K Action( i18n ( " &Uninstall " ) , TQString ( ) ,
pack_uninstall = new TDE Action( i18n ( " &Uninstall " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( kpackage - > management ) ,
0 , TQT_TQOBJECT ( kpackage - > management ) ,
TQT_SLOT ( uninstallSingleClicked ( ) ) , actionCollection ( ) , " uninstall_single " ) ;
TQT_SLOT ( uninstallSingleClicked ( ) ) , actionCollection ( ) , " uninstall_single " ) ;
@ -153,11 +153,11 @@ void KPKG::setupMenu()
kpackage - > management - > setUninstallAction ( pack_uninstall ) ;
kpackage - > management - > setUninstallAction ( pack_uninstall ) ;
( void ) ( new K Action( i18n ( " &Install Marked " ) , TQString ( ) ,
( void ) ( new TDE Action( i18n ( " &Install Marked " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( kpackage - > management ) ,
0 , TQT_TQOBJECT ( kpackage - > management ) ,
TQT_SLOT ( installMultClicked ( ) ) , actionCollection ( ) , " install_marked " ) ) ;
TQT_SLOT ( installMultClicked ( ) ) , actionCollection ( ) , " install_marked " ) ) ;
( void ) ( new K Action( i18n ( " &Uninstall Marked " ) , TQString ( ) ,
( void ) ( new TDE Action( i18n ( " &Uninstall Marked " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( kpackage - > management ) ,
0 , TQT_TQOBJECT ( kpackage - > management ) ,
TQT_SLOT ( uninstallMultClicked ( ) ) , actionCollection ( ) , " uninstall_marked " ) ) ;
TQT_SLOT ( uninstallMultClicked ( ) ) , actionCollection ( ) , " uninstall_marked " ) ) ;
@ -170,15 +170,15 @@ void KPKG::setupMenu()
KStdAction : : keyBindings ( guiFactory ( ) , TQT_SLOT ( configureShortcuts ( ) ) , actionCollection ( ) ) ;
KStdAction : : keyBindings ( guiFactory ( ) , TQT_SLOT ( configureShortcuts ( ) ) , actionCollection ( ) ) ;
( void ) ( new K Action( i18n ( " Configure &KPackage... " ) , " configure " ,
( void ) ( new TDE Action( i18n ( " Configure &KPackage... " ) , " configure " ,
0 , TQT_TQOBJECT ( this ) ,
0 , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( setOptions ( ) ) , actionCollection ( ) , " kpack_options " ) ) ;
TQT_SLOT ( setOptions ( ) ) , actionCollection ( ) , " kpack_options " ) ) ;
( void ) ( new K Action( i18n ( " Clear Package &Folder Cache " ) , TQString ( ) ,
( void ) ( new TDE Action( i18n ( " Clear Package &Folder Cache " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( this ) ,
0 , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( clearDCache ( ) ) , actionCollection ( ) , " clear_dcache " ) ) ;
TQT_SLOT ( clearDCache ( ) ) , actionCollection ( ) , " clear_dcache " ) ) ;
( void ) ( new K Action( i18n ( " Clear &Package Cache " ) , TQString ( ) ,
( void ) ( new TDE Action( i18n ( " Clear &Package Cache " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( this ) ,
0 , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( clearPCache ( ) ) , actionCollection ( ) , " clear_pcache " ) ) ;
TQT_SLOT ( clearPCache ( ) ) , actionCollection ( ) , " clear_pcache " ) ) ;