@ -102,97 +102,97 @@ YP YD 88 YD ~Y8888P' `8888Y' YP YP Y8888D' Y88888P 88 YD
// define the static members
// define the static members
Krusader * Krusader : : App = 0 ;
Krusader * Krusader : : App = 0 ;
K Action * Krusader : : actProperties = 0 ;
TDE Action * Krusader : : actProperties = 0 ;
K Action * Krusader : : actPack = 0 ;
TDE Action * Krusader : : actPack = 0 ;
K Action * Krusader : : actUnpack = 0 ;
TDE Action * Krusader : : actUnpack = 0 ;
K Action * Krusader : : actTest = 0 ;
TDE Action * Krusader : : actTest = 0 ;
K Action * Krusader : : actCopy = 0 ;
TDE Action * Krusader : : actCopy = 0 ;
K Action * Krusader : : actPaste = 0 ;
TDE Action * Krusader : : actPaste = 0 ;
K Action * Krusader : : actCompare = 0 ;
TDE Action * Krusader : : actCompare = 0 ;
K Action * Krusader : : actCalculate = 0 ;
TDE Action * Krusader : : actCalculate = 0 ;
K Action * Krusader : : actCreateChecksum = 0 ;
TDE Action * Krusader : : actCreateChecksum = 0 ;
K Action * Krusader : : actMatchChecksum = 0 ;
TDE Action * Krusader : : actMatchChecksum = 0 ;
K Action * Krusader : : actSelect = 0 ;
TDE Action * Krusader : : actSelect = 0 ;
K Action * Krusader : : actSelectAll = 0 ;
TDE Action * Krusader : : actSelectAll = 0 ;
K Action * Krusader : : actUnselect = 0 ;
TDE Action * Krusader : : actUnselect = 0 ;
K Action * Krusader : : actUnselectAll = 0 ;
TDE Action * Krusader : : actUnselectAll = 0 ;
K Action * Krusader : : actInvert = 0 ;
TDE Action * Krusader : : actInvert = 0 ;
K Action * Krusader : : actCompDirs = 0 ;
TDE Action * Krusader : : actCompDirs = 0 ;
K Action * Krusader : : actSync = 0 ;
TDE Action * Krusader : : actSync = 0 ;
K Action * Krusader : : actDiskUsage = 0 ;
TDE Action * Krusader : : actDiskUsage = 0 ;
K Action * Krusader : : actHomeTerminal = 0 ;
TDE Action * Krusader : : actHomeTerminal = 0 ;
K Action * Krusader : : actFTPConnect = 0 ;
TDE Action * Krusader : : actFTPConnect = 0 ;
K Action * Krusader : : actFTPNewConnect = 0 ;
TDE Action * Krusader : : actFTPNewConnect = 0 ;
K Action * Krusader : : actFTPDisconnect = 0 ;
TDE Action * Krusader : : actFTPDisconnect = 0 ;
K Action * Krusader : : actProfiles = 0 ;
TDE Action * Krusader : : actProfiles = 0 ;
K Action * Krusader : : actMultiRename = 0 ;
TDE Action * Krusader : : actMultiRename = 0 ;
K Action * Krusader : : actAllFilter = 0 ;
TDE Action * Krusader : : actAllFilter = 0 ;
K Action * Krusader : : actExecFilter = 0 ;
TDE Action * Krusader : : actExecFilter = 0 ;
K Action * Krusader : : actCustomFilter = 0 ;
TDE Action * Krusader : : actCustomFilter = 0 ;
K Action * Krusader : : actMountMan = 0 ;
TDE Action * Krusader : : actMountMan = 0 ;
K Action * Krusader : : actNewTool = 0 ;
TDE Action * Krusader : : actNewTool = 0 ;
K Action * Krusader : : actKonfigurator = 0 ;
TDE Action * Krusader : : actKonfigurator = 0 ;
K Action * Krusader : : actToolsSetup = 0 ;
TDE Action * Krusader : : actToolsSetup = 0 ;
K Action * Krusader : : actSwapPanels = 0 ;
TDE Action * Krusader : : actSwapPanels = 0 ;
K Action * Krusader : : actSwapSides = 0 ;
TDE Action * Krusader : : actSwapSides = 0 ;
K Action * Krusader : : actBack = 0 ;
TDE Action * Krusader : : actBack = 0 ;
K Action * Krusader : : actRoot = 0 ;
TDE Action * Krusader : : actRoot = 0 ;
K Action * Krusader : : actFind = 0 ;
TDE Action * Krusader : : actFind = 0 ;
K Action * Krusader : : actLocate = 0 ;
TDE Action * Krusader : : actLocate = 0 ;
K Action * Krusader : : actSwitchFullScreenTE = 0 ;
TDE Action * Krusader : : actSwitchFullScreenTE = 0 ;
// K Action *Krusader::actAddBookmark = 0;
// TDE Action *Krusader::actAddBookmark = 0;
K Action * Krusader : : actSavePosition = 0 ;
TDE Action * Krusader : : actSavePosition = 0 ;
K Action * Krusader : : actSelectColorMask = 0 ;
TDE Action * Krusader : : actSelectColorMask = 0 ;
K Action * Krusader : : actOpenLeftBm = 0 ;
TDE Action * Krusader : : actOpenLeftBm = 0 ;
K Action * Krusader : : actOpenRightBm = 0 ;
TDE Action * Krusader : : actOpenRightBm = 0 ;
K Action * Krusader : : actDirUp = 0 ;
TDE Action * Krusader : : actDirUp = 0 ;
K Action * Krusader : : actCmdlinePopup = 0 ;
TDE Action * Krusader : : actCmdlinePopup = 0 ;
K Action * Krusader : : actNewTab = 0 ;
TDE Action * Krusader : : actNewTab = 0 ;
K Action * Krusader : : actDupTab = 0 ;
TDE Action * Krusader : : actDupTab = 0 ;
K Action * Krusader : : actCloseTab = 0 ;
TDE Action * Krusader : : actCloseTab = 0 ;
K Action * Krusader : : actNextTab = 0 ;
TDE Action * Krusader : : actNextTab = 0 ;
K Action * Krusader : : actPreviousTab = 0 ;
TDE Action * Krusader : : actPreviousTab = 0 ;
K Action * Krusader : : actSplit = 0 ;
TDE Action * Krusader : : actSplit = 0 ;
K Action * Krusader : : actCombine = 0 ;
TDE Action * Krusader : : actCombine = 0 ;
K Action * Krusader : : actUserMenu = 0 ;
TDE Action * Krusader : : actUserMenu = 0 ;
K Action * Krusader : : actManageUseractions = 0 ;
TDE Action * Krusader : : actManageUseractions = 0 ;
K Action * Krusader : : actSyncDirs = 0 ;
TDE Action * Krusader : : actSyncDirs = 0 ;
K Action * Krusader : : actSyncBrowse = 0 ;
TDE Action * Krusader : : actSyncBrowse = 0 ;
K Action * Krusader : : actF2 = 0 ;
TDE Action * Krusader : : actF2 = 0 ;
K Action * Krusader : : actF3 = 0 ;
TDE Action * Krusader : : actF3 = 0 ;
K Action * Krusader : : actF4 = 0 ;
TDE Action * Krusader : : actF4 = 0 ;
K Action * Krusader : : actF5 = 0 ;
TDE Action * Krusader : : actF5 = 0 ;
K Action * Krusader : : actF6 = 0 ;
TDE Action * Krusader : : actF6 = 0 ;
K Action * Krusader : : actF7 = 0 ;
TDE Action * Krusader : : actF7 = 0 ;
K Action * Krusader : : actF8 = 0 ;
TDE Action * Krusader : : actF8 = 0 ;
K Action * Krusader : : actF9 = 0 ;
TDE Action * Krusader : : actF9 = 0 ;
K Action * Krusader : : actF10 = 0 ;
TDE Action * Krusader : : actF10 = 0 ;
K Action * Krusader : : actLocationBar = 0 ;
TDE Action * Krusader : : actLocationBar = 0 ;
K Action * Krusader : : actPopularUrls = 0 ;
TDE Action * Krusader : : actPopularUrls = 0 ;
K Action * Krusader : : actJumpBack = 0 ;
TDE Action * Krusader : : actJumpBack = 0 ;
K Action * Krusader : : actSetJumpBack = 0 ;
TDE Action * Krusader : : actSetJumpBack = 0 ;
K Action * Krusader : : actDetailedView = 0 ;
TDE Action * Krusader : : actDetailedView = 0 ;
K Action * Krusader : : actBriefView = 0 ;
TDE Action * Krusader : : actBriefView = 0 ;
K ToggleAction * Krusader : : actToggleTerminal = 0 ;
TDE ToggleAction * Krusader : : actToggleTerminal = 0 ;
K ToggleAction * Krusader : : actVerticalMode = 0 ;
TDE ToggleAction * Krusader : : actVerticalMode = 0 ;
K RadioAction * Krusader : : actSelectNewerAndSingle = 0 ;
TDE RadioAction * Krusader : : actSelectNewerAndSingle = 0 ;
K RadioAction * Krusader : : actSelectSingle = 0 ;
TDE RadioAction * Krusader : : actSelectSingle = 0 ;
K RadioAction * Krusader : : actSelectNewer = 0 ;
TDE RadioAction * Krusader : : actSelectNewer = 0 ;
K RadioAction * Krusader : : actSelectDifferentAndSingle = 0 ;
TDE RadioAction * Krusader : : actSelectDifferentAndSingle = 0 ;
K RadioAction * Krusader : : actSelectDifferent = 0 ;
TDE RadioAction * Krusader : : actSelectDifferent = 0 ;
K RadioAction * * Krusader : : compareArray [ ] = { & actSelectNewerAndSingle , & actSelectNewer , & actSelectSingle ,
TDE RadioAction * * Krusader : : compareArray [ ] = { & actSelectNewerAndSingle , & actSelectNewer , & actSelectSingle ,
& actSelectDifferentAndSingle , & actSelectDifferent , 0 } ;
& actSelectDifferentAndSingle , & actSelectDifferent , 0 } ;
K RadioAction * Krusader : : actExecStartAndForget = 0 ;
TDE RadioAction * Krusader : : actExecStartAndForget = 0 ;
K RadioAction * Krusader : : actExecCollectSeparate = 0 ;
TDE RadioAction * Krusader : : actExecCollectSeparate = 0 ;
K RadioAction * Krusader : : actExecCollectTogether = 0 ;
TDE RadioAction * Krusader : : actExecCollectTogether = 0 ;
K RadioAction * Krusader : : actExecTerminalExternal = 0 ;
TDE RadioAction * Krusader : : actExecTerminalExternal = 0 ;
K RadioAction * Krusader : : actExecTerminalEmbedded = 0 ;
TDE RadioAction * Krusader : : actExecTerminalEmbedded = 0 ;
K RadioAction * * Krusader : : execTypeArray [ ] =
TDE RadioAction * * Krusader : : execTypeArray [ ] =
{ & actExecStartAndForget , & actExecCollectSeparate , & actExecCollectTogether ,
{ & actExecStartAndForget , & actExecCollectSeparate , & actExecCollectTogether ,
& actExecTerminalExternal , & actExecTerminalEmbedded , 0 } ;
& actExecTerminalExternal , & actExecTerminalEmbedded , 0 } ;
K PopupMenu * Krusader : : userActionMenu = 0 ;
TDE PopupMenu * Krusader : : userActionMenu = 0 ;
UserAction * Krusader : : userAction = 0 ;
UserAction * Krusader : : userAction = 0 ;
UserMenu * Krusader : : userMenu = 0 ;
UserMenu * Krusader : : userMenu = 0 ;
KrBookmarkHandler * Krusader : : bookman = 0 ;
KrBookmarkHandler * Krusader : : bookman = 0 ;
@ -200,7 +200,7 @@ KrBookmarkHandler *Krusader::bookman = 0;
# ifdef __KJSEMBED__
# ifdef __KJSEMBED__
KrJS * Krusader : : js = 0 ;
KrJS * Krusader : : js = 0 ;
K Action * Krusader : : actShowJSConsole = 0 ;
TDE Action * Krusader : : actShowJSConsole = 0 ;
# endif
# endif
// construct the views, statusbar and menu bars and prepare Krusader to start
// construct the views, statusbar and menu bars and prepare Krusader to start
@ -386,7 +386,7 @@ Krusader::Krusader() : KParts::MainWindow(0,0,WType_TopLevel|WDestructiveClose|T
// manage our keyboard short-cuts
// manage our keyboard short-cuts
// K AcceleratorManager::manage(this,true);
// TDE AcceleratorManager::manage(this,true);
setCursor ( KCursor : : arrowCursor ( ) ) ;
setCursor ( KCursor : : arrowCursor ( ) ) ;
@ -518,7 +518,7 @@ void Krusader::resizeEvent ( TQResizeEvent *e ) {
}
}
void Krusader : : setupAccels ( ) {
void Krusader : : setupAccels ( ) {
accels = new K Accel( this ) ;
accels = new TDE Accel( this ) ;
// SHIFT+F3
// SHIFT+F3
accels - > insert ( " F3_ViewDlg " , i18n ( " F3 View Dialog " ) , TQString ( ) ,
accels - > insert ( " F3_ViewDlg " , i18n ( " F3 View Dialog " ) , TQString ( ) ,
SHIFT + Key_F3 , SLOTS , TQT_SLOT ( viewDlg ( ) ) ) ;
SHIFT + Key_F3 , SLOTS , TQT_SLOT ( viewDlg ( ) ) ) ;
@ -531,9 +531,9 @@ void Krusader::setupAccels() {
// <patch> Moving from Pixmap actions to generic filenames - thanks to Carsten Pfeiffer
// <patch> Moving from Pixmap actions to generic filenames - thanks to Carsten Pfeiffer
void Krusader : : setupActions ( ) {
void Krusader : : setupActions ( ) {
// first come the TODO actions
// first come the TODO actions
//actSync = 0;//new K Action(i18n("S&yncronize Dirs"), 0, this, 0, actionCollection(), "sync dirs");
//actSync = 0;//new TDE Action(i18n("S&yncronize Dirs"), 0, this, 0, actionCollection(), "sync dirs");
//actNewTool = 0;//new K Action(i18n("&Add a new tool"), 0, this, 0, actionCollection(), "add tool");
//actNewTool = 0;//new TDE Action(i18n("&Add a new tool"), 0, this, 0, actionCollection(), "add tool");
//actToolsSetup = 0;//new K Action(i18n("&Tools Menu Setup"), 0, 0, this, 0, actionCollection(), "tools setup");
//actToolsSetup = 0;//new TDE Action(i18n("&Tools Menu Setup"), 0, 0, this, 0, actionCollection(), "tools setup");
//KStdAction::print(SLOTS, 0,actionCollection(),"std_print");
//KStdAction::print(SLOTS, 0,actionCollection(),"std_print");
//KStdAction::showMenubar( SLOTS, TQT_SLOT( showMenubar() ), actionCollection(), "std_menubar" );
//KStdAction::showMenubar( SLOTS, TQT_SLOT( showMenubar() ), actionCollection(), "std_menubar" );
@ -546,9 +546,9 @@ void Krusader::setupActions() {
int cmdExecMode = krConfig - > readNumEntry ( " Command Execution Mode " , 0 ) ;
int cmdExecMode = krConfig - > readNumEntry ( " Command Execution Mode " , 0 ) ;
KStdAction : : home ( SLOTS , TQT_SLOT ( home ( ) ) , actionCollection ( ) , " std_home " ) - > setText ( i18n ( " Home " ) ) ; /*->setShortcut(Key_QuoteLeft);*/
KStdAction : : home ( SLOTS , TQT_SLOT ( home ( ) ) , actionCollection ( ) , " std_home " ) - > setText ( i18n ( " Home " ) ) ; /*->setShortcut(Key_QuoteLeft);*/
new K Action( i18n ( " &Reload " ) , " reload " , CTRL + Key_R , SLOTS , TQT_SLOT ( refresh ( ) ) , actionCollection ( ) , " std_redisplay " ) ;
new TDE Action( i18n ( " &Reload " ) , " reload " , CTRL + Key_R , SLOTS , TQT_SLOT ( refresh ( ) ) , actionCollection ( ) , " std_redisplay " ) ;
actShowToolBar = KStdAction : : showToolbar ( SLOTS , TQT_SLOT ( toggleToolbar ( ) ) , actionCollection ( ) , " std_toolbar " ) ;
actShowToolBar = KStdAction : : showToolbar ( SLOTS , TQT_SLOT ( toggleToolbar ( ) ) , actionCollection ( ) , " std_toolbar " ) ;
new K ToggleAction( i18n ( " Show Actions Toolbar " ) , 0 , SLOTS , TQT_SLOT ( toggleActionsToolbar ( ) ) ,
new TDE ToggleAction( i18n ( " Show Actions Toolbar " ) , 0 , SLOTS , TQT_SLOT ( toggleActionsToolbar ( ) ) ,
actionCollection ( ) , " toggle actions toolbar " ) ;
actionCollection ( ) , " toggle actions toolbar " ) ;
actShowStatusBar = KStdAction : : showStatusbar ( SLOTS , TQT_SLOT ( toggleStatusbar ( ) ) , actionCollection ( ) , " std_statusbar " ) ;
actShowStatusBar = KStdAction : : showStatusbar ( SLOTS , TQT_SLOT ( toggleStatusbar ( ) ) , actionCollection ( ) , " std_statusbar " ) ;
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotClose ( ) ) , actionCollection ( ) , " std_quit " ) ;
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotClose ( ) ) , actionCollection ( ) , " std_quit " ) ;
@ -560,109 +560,109 @@ void Krusader::setupActions() {
( actPaste = KStdAction : : paste ( SLOTS , TQT_SLOT ( paste ( ) ) , actionCollection ( ) , " std_paste " ) ) - > setText ( i18n ( " Paste from Clipboard " ) ) ;
( actPaste = KStdAction : : paste ( SLOTS , TQT_SLOT ( paste ( ) ) , actionCollection ( ) , " std_paste " ) ) - > setText ( i18n ( " Paste from Clipboard " ) ) ;
// the toggle actions
// the toggle actions
actToggleFnkeys = new K ToggleAction( i18n ( " Show &FN Keys Bar " ) , 0 , SLOTS ,
actToggleFnkeys = new TDE ToggleAction( i18n ( " Show &FN Keys Bar " ) , 0 , SLOTS ,
TQT_SLOT ( toggleFnkeys ( ) ) , actionCollection ( ) , " toggle fn bar " ) ;
TQT_SLOT ( toggleFnkeys ( ) ) , actionCollection ( ) , " toggle fn bar " ) ;
actToggleFnkeys - > setChecked ( true ) ;
actToggleFnkeys - > setChecked ( true ) ;
actToggleCmdline = new K ToggleAction( i18n ( " Show &Command Line " ) , 0 , SLOTS ,
actToggleCmdline = new TDE ToggleAction( i18n ( " Show &Command Line " ) , 0 , SLOTS ,
TQT_SLOT ( toggleCmdline ( ) ) , actionCollection ( ) , " toggle command line " ) ;
TQT_SLOT ( toggleCmdline ( ) ) , actionCollection ( ) , " toggle command line " ) ;
actToggleCmdline - > setChecked ( true ) ;
actToggleCmdline - > setChecked ( true ) ;
actToggleTerminal = new K ToggleAction( i18n ( " Show Terminal &Emulator " ) , ALT + CTRL + Key_T , SLOTS ,
actToggleTerminal = new TDE ToggleAction( i18n ( " Show Terminal &Emulator " ) , ALT + CTRL + Key_T , SLOTS ,
TQT_SLOT ( toggleTerminal ( ) ) , actionCollection ( ) , " toggle terminal emulator " ) ;
TQT_SLOT ( toggleTerminal ( ) ) , actionCollection ( ) , " toggle terminal emulator " ) ;
actToggleTerminal - > setChecked ( false ) ;
actToggleTerminal - > setChecked ( false ) ;
actDetailedView = new K Action( i18n ( " &Detailed View " ) , ALT + SHIFT + Key_D , SLOTS ,
actDetailedView = new TDE Action( i18n ( " &Detailed View " ) , ALT + SHIFT + Key_D , SLOTS ,
TQT_SLOT ( setDetailedView ( ) ) , actionCollection ( ) , " detailed_view " ) ;
TQT_SLOT ( setDetailedView ( ) ) , actionCollection ( ) , " detailed_view " ) ;
actBriefView = new K Action( i18n ( " &Brief View " ) , ALT + SHIFT + Key_B , SLOTS ,
actBriefView = new TDE Action( i18n ( " &Brief View " ) , ALT + SHIFT + Key_B , SLOTS ,
TQT_SLOT ( setBriefView ( ) ) , actionCollection ( ) , " brief_view " ) ;
TQT_SLOT ( setBriefView ( ) ) , actionCollection ( ) , " brief_view " ) ;
actToggleHidden = new K ToggleAction( i18n ( " Show &Hidden Files " ) , CTRL + Key_Period , SLOTS ,
actToggleHidden = new TDE ToggleAction( i18n ( " Show &Hidden Files " ) , CTRL + Key_Period , SLOTS ,
TQT_SLOT ( toggleHidden ( ) ) , actionCollection ( ) , " toggle hidden files " ) ;
TQT_SLOT ( toggleHidden ( ) ) , actionCollection ( ) , " toggle hidden files " ) ;
actSwapPanels = new K Action( i18n ( " S&wap Panels " ) , CTRL + Key_U , SLOTS ,
actSwapPanels = new TDE Action( i18n ( " S&wap Panels " ) , CTRL + Key_U , SLOTS ,
TQT_SLOT ( swapPanels ( ) ) , actionCollection ( ) , " swap panels " ) ;
TQT_SLOT ( swapPanels ( ) ) , actionCollection ( ) , " swap panels " ) ;
actSwapSides = new K Action( i18n ( " Sw&ap Sides " ) , CTRL + SHIFT + Key_U , SLOTS ,
actSwapSides = new TDE Action( i18n ( " Sw&ap Sides " ) , CTRL + SHIFT + Key_U , SLOTS ,
TQT_SLOT ( toggleSwapSides ( ) ) , actionCollection ( ) , " toggle swap sides " ) ;
TQT_SLOT ( toggleSwapSides ( ) ) , actionCollection ( ) , " toggle swap sides " ) ;
krConfig - > setGroup ( " Look&Feel " ) ;
krConfig - > setGroup ( " Look&Feel " ) ;
actToggleHidden - > setChecked ( krConfig - > readBoolEntry ( " Show Hidden " , _ShowHidden ) ) ;
actToggleHidden - > setChecked ( krConfig - > readBoolEntry ( " Show Hidden " , _ShowHidden ) ) ;
// and then the DONE actions
// and then the DONE actions
actCmdlinePopup = new K Action( i18n ( " popup cmdline " ) , 0 , CTRL + Key_Slash , SLOTS ,
actCmdlinePopup = new TDE Action( i18n ( " popup cmdline " ) , 0 , CTRL + Key_Slash , SLOTS ,
TQT_SLOT ( cmdlinePopup ( ) ) , actionCollection ( ) , " cmdline popup " ) ;
TQT_SLOT ( cmdlinePopup ( ) ) , actionCollection ( ) , " cmdline popup " ) ;
/* Shortcut disabled because of the Terminal Emulator bug. */
/* Shortcut disabled because of the Terminal Emulator bug. */
actDirUp = new K Action( i18n ( " Up " ) , " up " , CTRL + Key_PageUp /*Key_Backspace*/ , SLOTS , TQT_SLOT ( dirUp ( ) ) , actionCollection ( ) , " dirUp " ) ;
actDirUp = new TDE Action( i18n ( " Up " ) , " up " , CTRL + Key_PageUp /*Key_Backspace*/ , SLOTS , TQT_SLOT ( dirUp ( ) ) , actionCollection ( ) , " dirUp " ) ;
new K Action( i18n ( " &New Text File... " ) , " filenew " , SHIFT + Key_F4 , SLOTS , TQT_SLOT ( editDlg ( ) ) , actionCollection ( ) , " edit_new_file " ) ;
new TDE Action( i18n ( " &New Text File... " ) , " filenew " , SHIFT + Key_F4 , SLOTS , TQT_SLOT ( editDlg ( ) ) , actionCollection ( ) , " edit_new_file " ) ;
new K Action( i18n ( " Start &Root Mode Krusader " ) , " krusader_root " , ALT + Key_K , SLOTS , TQT_SLOT ( rootKrusader ( ) ) , actionCollection ( ) , " root krusader " ) ;
new TDE Action( i18n ( " Start &Root Mode Krusader " ) , " krusader_root " , ALT + Key_K , SLOTS , TQT_SLOT ( rootKrusader ( ) ) , actionCollection ( ) , " root krusader " ) ;
actTest = new K Action( i18n ( " T&est Archive " ) , " ark " , ALT + Key_E ,
actTest = new TDE Action( i18n ( " T&est Archive " ) , " ark " , ALT + Key_E ,
SLOTS , TQT_SLOT ( testArchive ( ) ) , actionCollection ( ) , " test archives " ) ;
SLOTS , TQT_SLOT ( testArchive ( ) ) , actionCollection ( ) , " test archives " ) ;
//actFTPConnect = new K Action( i18n( "&Net Connections" ), "domtreeviewer", 0,
//actFTPConnect = new TDE Action( i18n( "&Net Connections" ), "domtreeviewer", 0,
// SLOTS, TQT_SLOT( runRemoteMan() ), actionCollection(), "ftp connect" );
// SLOTS, TQT_SLOT( runRemoteMan() ), actionCollection(), "ftp connect" );
actFTPNewConnect = new K Action( i18n ( " New Net &Connection... " ) , " connect_creating " , CTRL + Key_N ,
actFTPNewConnect = new TDE Action( i18n ( " New Net &Connection... " ) , " connect_creating " , CTRL + Key_N ,
SLOTS , TQT_SLOT ( newFTPconnection ( ) ) , actionCollection ( ) , " ftp new connection " ) ;
SLOTS , TQT_SLOT ( newFTPconnection ( ) ) , actionCollection ( ) , " ftp new connection " ) ;
actProfiles = new K Action( i18n ( " Pro&files " ) , " kr_profile " , ALT + Key_L ,
actProfiles = new TDE Action( i18n ( " Pro&files " ) , " kr_profile " , ALT + Key_L ,
TQT_TQOBJECT ( MAIN_VIEW ) , TQT_SLOT ( profiles ( ) ) , actionCollection ( ) , " profile " ) ;
TQT_TQOBJECT ( MAIN_VIEW ) , TQT_SLOT ( profiles ( ) ) , actionCollection ( ) , " profile " ) ;
actCalculate = new K Action( i18n ( " Calculate &Occupied Space " ) , " kcalc " , 0 ,
actCalculate = new TDE Action( i18n ( " Calculate &Occupied Space " ) , " kcalc " , 0 ,
SLOTS , TQT_SLOT ( calcSpace ( ) ) , actionCollection ( ) , " calculate " ) ;
SLOTS , TQT_SLOT ( calcSpace ( ) ) , actionCollection ( ) , " calculate " ) ;
actCreateChecksum = new K Action( i18n ( " Create Checksum... " ) , " binary " , 0 ,
actCreateChecksum = new TDE Action( i18n ( " Create Checksum... " ) , " binary " , 0 ,
SLOTS , TQT_SLOT ( createChecksum ( ) ) , actionCollection ( ) , " create checksum " ) ;
SLOTS , TQT_SLOT ( createChecksum ( ) ) , actionCollection ( ) , " create checksum " ) ;
actMatchChecksum = new K Action( i18n ( " Verify Checksum... " ) , " match_checksum " , 0 ,
actMatchChecksum = new TDE Action( i18n ( " Verify Checksum... " ) , " match_checksum " , 0 ,
SLOTS , TQT_SLOT ( matchChecksum ( ) ) , actionCollection ( ) , " match checksum " ) ;
SLOTS , TQT_SLOT ( matchChecksum ( ) ) , actionCollection ( ) , " match checksum " ) ;
actProperties = new K Action( i18n ( " &Properties... " ) , 0 , ALT + Key_Enter ,
actProperties = new TDE Action( i18n ( " &Properties... " ) , 0 , ALT + Key_Enter ,
SLOTS , TQT_SLOT ( properties ( ) ) , actionCollection ( ) , " properties " ) ;
SLOTS , TQT_SLOT ( properties ( ) ) , actionCollection ( ) , " properties " ) ;
actPack = new K Action( i18n ( " Pac&k... " ) , " kr_arc_pack " , ALT + Key_P ,
actPack = new TDE Action( i18n ( " Pac&k... " ) , " kr_arc_pack " , ALT + Key_P ,
SLOTS , TQT_SLOT ( slotPack ( ) ) , actionCollection ( ) , " pack " ) ;
SLOTS , TQT_SLOT ( slotPack ( ) ) , actionCollection ( ) , " pack " ) ;
actUnpack = new K Action( i18n ( " &Unpack... " ) , " kr_arc_unpack " , ALT + Key_U ,
actUnpack = new TDE Action( i18n ( " &Unpack... " ) , " kr_arc_unpack " , ALT + Key_U ,
SLOTS , TQT_SLOT ( slotUnpack ( ) ) , actionCollection ( ) , " unpack " ) ;
SLOTS , TQT_SLOT ( slotUnpack ( ) ) , actionCollection ( ) , " unpack " ) ;
actSplit = new K Action( i18n ( " Sp&lit File... " ) , " kr_split " , CTRL + Key_P ,
actSplit = new TDE Action( i18n ( " Sp&lit File... " ) , " kr_split " , CTRL + Key_P ,
SLOTS , TQT_SLOT ( slotSplit ( ) ) , actionCollection ( ) , " split " ) ;
SLOTS , TQT_SLOT ( slotSplit ( ) ) , actionCollection ( ) , " split " ) ;
actCombine = new K Action( i18n ( " Com&bine Files... " ) , " kr_combine " , CTRL + Key_B ,
actCombine = new TDE Action( i18n ( " Com&bine Files... " ) , " kr_combine " , CTRL + Key_B ,
SLOTS , TQT_SLOT ( slotCombine ( ) ) , actionCollection ( ) , " combine " ) ;
SLOTS , TQT_SLOT ( slotCombine ( ) ) , actionCollection ( ) , " combine " ) ;
actSelect = new K Action( i18n ( " Select &Group... " ) , " kr_select " , CTRL + Key_Plus ,
actSelect = new TDE Action( i18n ( " Select &Group... " ) , " kr_select " , CTRL + Key_Plus ,
SLOTS , TQT_SLOT ( markGroup ( ) ) , actionCollection ( ) , " select group " ) ;
SLOTS , TQT_SLOT ( markGroup ( ) ) , actionCollection ( ) , " select group " ) ;
actSelectAll = new K Action( i18n ( " &Select All " ) , " kr_selectall " , ALT + Key_Plus ,
actSelectAll = new TDE Action( i18n ( " &Select All " ) , " kr_selectall " , ALT + Key_Plus ,
SLOTS , TQT_SLOT ( markAll ( ) ) , actionCollection ( ) , " select all " ) ;
SLOTS , TQT_SLOT ( markAll ( ) ) , actionCollection ( ) , " select all " ) ;
actUnselect = new K Action( i18n ( " &Unselect Group... " ) , " kr_unselect " , CTRL + Key_Minus ,
actUnselect = new TDE Action( i18n ( " &Unselect Group... " ) , " kr_unselect " , CTRL + Key_Minus ,
SLOTS , TQT_SLOT ( unmarkGroup ( ) ) , actionCollection ( ) , " unselect group " ) ;
SLOTS , TQT_SLOT ( unmarkGroup ( ) ) , actionCollection ( ) , " unselect group " ) ;
actUnselectAll = new K Action( i18n ( " U&nselect All " ) , " kr_unselectall " , ALT + Key_Minus ,
actUnselectAll = new TDE Action( i18n ( " U&nselect All " ) , " kr_unselectall " , ALT + Key_Minus ,
SLOTS , TQT_SLOT ( unmarkAll ( ) ) , actionCollection ( ) , " unselect all " ) ;
SLOTS , TQT_SLOT ( unmarkAll ( ) ) , actionCollection ( ) , " unselect all " ) ;
actInvert = new K Action( i18n ( " &Invert Selection " ) , " kr_invert " , ALT + Key_Asterisk ,
actInvert = new TDE Action( i18n ( " &Invert Selection " ) , " kr_invert " , ALT + Key_Asterisk ,
SLOTS , TQT_SLOT ( invert ( ) ) , actionCollection ( ) , " invert " ) ;
SLOTS , TQT_SLOT ( invert ( ) ) , actionCollection ( ) , " invert " ) ;
actCompDirs = new K Action( i18n ( " &Compare Directories " ) , " view_left_right " , ALT + Key_C ,
actCompDirs = new TDE Action( i18n ( " &Compare Directories " ) , " view_left_right " , ALT + Key_C ,
SLOTS , TQT_SLOT ( compareDirs ( ) ) , actionCollection ( ) , " compare dirs " ) ;
SLOTS , TQT_SLOT ( compareDirs ( ) ) , actionCollection ( ) , " compare dirs " ) ;
actSelectNewerAndSingle = new K RadioAction( i18n ( " &Select Newer and Single " ) , 0 ,
actSelectNewerAndSingle = new TDE RadioAction( i18n ( " &Select Newer and Single " ) , 0 ,
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_newer_and_single " ) ;
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_newer_and_single " ) ;
actSelectNewer = new K RadioAction( i18n ( " Select &Newer " ) , 0 ,
actSelectNewer = new TDE RadioAction( i18n ( " Select &Newer " ) , 0 ,
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_newer " ) ;
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_newer " ) ;
actSelectSingle = new K RadioAction( i18n ( " Select &Single " ) , 0 ,
actSelectSingle = new TDE RadioAction( i18n ( " Select &Single " ) , 0 ,
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_single " ) ;
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_single " ) ;
actSelectDifferentAndSingle = new K RadioAction( i18n ( " Select Different &and Single " ) , 0 ,
actSelectDifferentAndSingle = new TDE RadioAction( i18n ( " Select Different &and Single " ) , 0 ,
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_different_and_single " ) ;
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_different_and_single " ) ;
actSelectDifferent = new K RadioAction( i18n ( " Select &Different " ) , 0 ,
actSelectDifferent = new TDE RadioAction( i18n ( " Select &Different " ) , 0 ,
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_different " ) ;
SLOTS , TQT_SLOT ( compareSetup ( ) ) , actionCollection ( ) , " select_different " ) ;
actSelectNewerAndSingle - > setExclusiveGroup ( " the_select_group " ) ;
actSelectNewerAndSingle - > setExclusiveGroup ( " the_select_group " ) ;
actSelectNewer - > setExclusiveGroup ( " the_select_group " ) ;
actSelectNewer - > setExclusiveGroup ( " the_select_group " ) ;
actSelectSingle - > setExclusiveGroup ( " the_select_group " ) ;
actSelectSingle - > setExclusiveGroup ( " the_select_group " ) ;
actSelectDifferentAndSingle - > setExclusiveGroup ( " the_select_group " ) ;
actSelectDifferentAndSingle - > setExclusiveGroup ( " the_select_group " ) ;
actSelectDifferent - > setExclusiveGroup ( " the_select_group " ) ;
actSelectDifferent - > setExclusiveGroup ( " the_select_group " ) ;
if ( compareMode < ( int ) ( sizeof ( compareArray ) / sizeof ( K RadioAction * * ) ) - 1 )
if ( compareMode < ( int ) ( sizeof ( compareArray ) / sizeof ( TDE RadioAction * * ) ) - 1 )
( * compareArray [ compareMode ] ) - > setChecked ( true ) ;
( * compareArray [ compareMode ] ) - > setChecked ( true ) ;
actExecStartAndForget = new K RadioAction(
actExecStartAndForget = new TDE RadioAction(
i18n ( " Start and &Forget " ) , 0 ,
i18n ( " Start and &Forget " ) , 0 ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
actionCollection ( ) , " exec_start_and_forget " ) ;
actionCollection ( ) , " exec_start_and_forget " ) ;
actExecCollectSeparate = new K RadioAction(
actExecCollectSeparate = new TDE RadioAction(
i18n ( " Display &Separated Standard and Error Output " ) , 0 ,
i18n ( " Display &Separated Standard and Error Output " ) , 0 ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
actionCollection ( ) , " exec_collect_separate " ) ;
actionCollection ( ) , " exec_collect_separate " ) ;
actExecCollectTogether = new K RadioAction(
actExecCollectTogether = new TDE RadioAction(
i18n ( " Display &Mixed Standard and Error Output " ) , 0 ,
i18n ( " Display &Mixed Standard and Error Output " ) , 0 ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
actionCollection ( ) , " exec_collect_together " ) ;
actionCollection ( ) , " exec_collect_together " ) ;
actExecTerminalExternal = new K RadioAction(
actExecTerminalExternal = new TDE RadioAction(
i18n ( " Start in &New Terminal " ) , 0 ,
i18n ( " Start in &New Terminal " ) , 0 ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
actionCollection ( ) , " exec_terminal_external " ) ;
actionCollection ( ) , " exec_terminal_external " ) ;
actExecTerminalEmbedded = new K RadioAction(
actExecTerminalEmbedded = new TDE RadioAction(
i18n ( " Send to &Embedded Terminal Emulator " ) , 0 ,
i18n ( " Send to &Embedded Terminal Emulator " ) , 0 ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
SLOTS , TQT_SLOT ( execTypeSetup ( ) ) ,
actionCollection ( ) , " exec_terminal_embedded " ) ;
actionCollection ( ) , " exec_terminal_embedded " ) ;
@ -671,128 +671,128 @@ void Krusader::setupActions() {
actExecCollectTogether - > setExclusiveGroup ( " the_exec_type_group " ) ;
actExecCollectTogether - > setExclusiveGroup ( " the_exec_type_group " ) ;
actExecTerminalExternal - > setExclusiveGroup ( " the_exec_type_group " ) ;
actExecTerminalExternal - > setExclusiveGroup ( " the_exec_type_group " ) ;
actExecTerminalEmbedded - > setExclusiveGroup ( " the_exec_type_group " ) ;
actExecTerminalEmbedded - > setExclusiveGroup ( " the_exec_type_group " ) ;
if ( cmdExecMode < ( int ) ( sizeof ( execTypeArray ) / sizeof ( K RadioAction * * ) ) - 1 )
if ( cmdExecMode < ( int ) ( sizeof ( execTypeArray ) / sizeof ( TDE RadioAction * * ) ) - 1 )
( * execTypeArray [ cmdExecMode ] ) - > setChecked ( true ) ;
( * execTypeArray [ cmdExecMode ] ) - > setChecked ( true ) ;
actHomeTerminal = new K Action( i18n ( " Start &Terminal " ) , " terminal " , 0 ,
actHomeTerminal = new TDE Action( i18n ( " Start &Terminal " ) , " terminal " , 0 ,
SLOTS , TQT_SLOT ( homeTerminal ( ) ) , actionCollection ( ) , " terminal@home " ) ;
SLOTS , TQT_SLOT ( homeTerminal ( ) ) , actionCollection ( ) , " terminal@home " ) ;
actFTPDisconnect = new K Action( i18n ( " Disconnect &from Net " ) , " kr_ftp_disconnect " , SHIFT + CTRL + Key_F ,
actFTPDisconnect = new TDE Action( i18n ( " Disconnect &from Net " ) , " kr_ftp_disconnect " , SHIFT + CTRL + Key_F ,
SLOTS , TQT_SLOT ( FTPDisconnect ( ) ) , actionCollection ( ) , " ftp disconnect " ) ;
SLOTS , TQT_SLOT ( FTPDisconnect ( ) ) , actionCollection ( ) , " ftp disconnect " ) ;
# if KDE_IS_VERSION(3,2,0) /* new mountman feature is available in kde 3.2 only! */
# if KDE_IS_VERSION(3,2,0) /* new mountman feature is available in kde 3.2 only! */
actMountMan = new K ToolBarPopupAction( i18n ( " &MountMan... " ) , " kr_mountman " , ALT + Key_Slash ,
actMountMan = new TDE ToolBarPopupAction( i18n ( " &MountMan... " ) , " kr_mountman " , ALT + Key_Slash ,
SLOTS , TQT_SLOT ( runMountMan ( ) ) , actionCollection ( ) , " mountman " ) ;
SLOTS , TQT_SLOT ( runMountMan ( ) ) , actionCollection ( ) , " mountman " ) ;
connect ( ( ( K ToolBarPopupAction* ) actMountMan ) - > popupMenu ( ) , TQT_SIGNAL ( aboutToShow ( ) ) ,
connect ( ( ( TDE ToolBarPopupAction* ) actMountMan ) - > popupMenu ( ) , TQT_SIGNAL ( aboutToShow ( ) ) ,
mountMan , TQT_SLOT ( quickList ( ) ) ) ;
mountMan , TQT_SLOT ( quickList ( ) ) ) ;
# else
# else
actMountMan = new K Action( i18n ( " &MountMan... " ) , " kr_mountman " , ALT + Key_Slash ,
actMountMan = new TDE Action( i18n ( " &MountMan... " ) , " kr_mountman " , ALT + Key_Slash ,
SLOTS , TQT_SLOT ( runMountMan ( ) ) , actionCollection ( ) , " mountman " ) ;
SLOTS , TQT_SLOT ( runMountMan ( ) ) , actionCollection ( ) , " mountman " ) ;
# endif /* KDE 3.2 */
# endif /* KDE 3.2 */
actFind = new K Action( i18n ( " &Search... " ) , " filefind " , CTRL + Key_S ,
actFind = new TDE Action( i18n ( " &Search... " ) , " filefind " , CTRL + Key_S ,
SLOTS , TQT_SLOT ( search ( ) ) , actionCollection ( ) , " find " ) ;
SLOTS , TQT_SLOT ( search ( ) ) , actionCollection ( ) , " find " ) ;
actLocate = new K Action( i18n ( " &Locate... " ) , " find " , SHIFT + CTRL + Key_L ,
actLocate = new TDE Action( i18n ( " &Locate... " ) , " find " , SHIFT + CTRL + Key_L ,
SLOTS , TQT_SLOT ( locate ( ) ) , actionCollection ( ) , " locate " ) ;
SLOTS , TQT_SLOT ( locate ( ) ) , actionCollection ( ) , " locate " ) ;
actSyncDirs = new K Action( i18n ( " Synchronize &Directories... " ) , " kr_syncdirs " , CTRL + Key_Y ,
actSyncDirs = new TDE Action( i18n ( " Synchronize &Directories... " ) , " kr_syncdirs " , CTRL + Key_Y ,
SLOTS , TQT_SLOT ( slotSynchronizeDirs ( ) ) , actionCollection ( ) , " sync dirs " ) ;
SLOTS , TQT_SLOT ( slotSynchronizeDirs ( ) ) , actionCollection ( ) , " sync dirs " ) ;
actSyncBrowse = new K Action( i18n ( " S&ynchron Directory Changes " ) , " kr_syncbrowse_off " , ALT + Key_Y ,
actSyncBrowse = new TDE Action( i18n ( " S&ynchron Directory Changes " ) , " kr_syncbrowse_off " , ALT + Key_Y ,
SLOTS , TQT_SLOT ( slotSyncBrowse ( ) ) , actionCollection ( ) , " sync browse " ) ;
SLOTS , TQT_SLOT ( slotSyncBrowse ( ) ) , actionCollection ( ) , " sync browse " ) ;
actDiskUsage = new K Action( i18n ( " D&isk Usage... " ) , " kr_diskusage " , ALT + Key_D ,
actDiskUsage = new TDE Action( i18n ( " D&isk Usage... " ) , " kr_diskusage " , ALT + Key_D ,
SLOTS , TQT_SLOT ( slotDiskUsage ( ) ) , actionCollection ( ) , " disk usage " ) ;
SLOTS , TQT_SLOT ( slotDiskUsage ( ) ) , actionCollection ( ) , " disk usage " ) ;
actKonfigurator = new K Action( i18n ( " Configure &Krusader... " ) , " configure " , 0 ,
actKonfigurator = new TDE Action( i18n ( " Configure &Krusader... " ) , " configure " , 0 ,
SLOTS , TQT_SLOT ( startKonfigurator ( ) ) , actionCollection ( ) , " konfigurator " ) ;
SLOTS , TQT_SLOT ( startKonfigurator ( ) ) , actionCollection ( ) , " konfigurator " ) ;
actBack = new K Action( i18n ( " Back " ) , " back " , 0 ,
actBack = new TDE Action( i18n ( " Back " ) , " back " , 0 ,
SLOTS , TQT_SLOT ( back ( ) ) , actionCollection ( ) , " back " ) ;
SLOTS , TQT_SLOT ( back ( ) ) , actionCollection ( ) , " back " ) ;
actRoot = new K Action( i18n ( " Root " ) , " top " , CTRL + Key_Backspace ,
actRoot = new TDE Action( i18n ( " Root " ) , " top " , CTRL + Key_Backspace ,
SLOTS , TQT_SLOT ( root ( ) ) , actionCollection ( ) , " root " ) ;
SLOTS , TQT_SLOT ( root ( ) ) , actionCollection ( ) , " root " ) ;
actSavePosition = new K Action( i18n ( " Save &Position " ) , 0 ,
actSavePosition = new TDE Action( i18n ( " Save &Position " ) , 0 ,
TQT_TQOBJECT ( krApp ) , TQT_SLOT ( savePosition ( ) ) , actionCollection ( ) , " save position " ) ;
TQT_TQOBJECT ( krApp ) , TQT_SLOT ( savePosition ( ) ) , actionCollection ( ) , " save position " ) ;
actAllFilter = new K Action( i18n ( " &All Files " ) , SHIFT + Key_F10 ,
actAllFilter = new TDE Action( i18n ( " &All Files " ) , SHIFT + Key_F10 ,
SLOTS , TQT_SLOT ( allFilter ( ) ) , actionCollection ( ) , " all files " ) ;
SLOTS , TQT_SLOT ( allFilter ( ) ) , actionCollection ( ) , " all files " ) ;
//actExecFilter = new K Action( i18n( "&Executables" ), SHIFT + Key_F11,
//actExecFilter = new TDE Action( i18n( "&Executables" ), SHIFT + Key_F11,
// SLOTS, TQT_SLOT( execFilter() ), actionCollection(), "exec files" );
// SLOTS, TQT_SLOT( execFilter() ), actionCollection(), "exec files" );
actCustomFilter = new K Action( i18n ( " &Custom " ) , SHIFT + Key_F12 ,
actCustomFilter = new TDE Action( i18n ( " &Custom " ) , SHIFT + Key_F12 ,
SLOTS , TQT_SLOT ( customFilter ( ) ) , actionCollection ( ) , " custom files " ) ;
SLOTS , TQT_SLOT ( customFilter ( ) ) , actionCollection ( ) , " custom files " ) ;
actCompare = new K Action( i18n ( " Compare b&y Content... " ) , " tdemultiple " , 0 ,
actCompare = new TDE Action( i18n ( " Compare b&y Content... " ) , " tdemultiple " , 0 ,
SLOTS , TQT_SLOT ( compareContent ( ) ) , actionCollection ( ) , " compare " ) ;
SLOTS , TQT_SLOT ( compareContent ( ) ) , actionCollection ( ) , " compare " ) ;
actMultiRename = new K Action( i18n ( " Multi &Rename... " ) , " krename " , SHIFT + Key_F9 ,
actMultiRename = new TDE Action( i18n ( " Multi &Rename... " ) , " krename " , SHIFT + Key_F9 ,
SLOTS , TQT_SLOT ( multiRename ( ) ) , actionCollection ( ) , " multirename " ) ;
SLOTS , TQT_SLOT ( multiRename ( ) ) , actionCollection ( ) , " multirename " ) ;
new K Action( i18n ( " Right-click Menu " ) , Key_Menu ,
new TDE Action( i18n ( " Right-click Menu " ) , Key_Menu ,
SLOTS , TQT_SLOT ( rightclickMenu ( ) ) , actionCollection ( ) , " rightclick menu " ) ;
SLOTS , TQT_SLOT ( rightclickMenu ( ) ) , actionCollection ( ) , " rightclick menu " ) ;
new K Action( i18n ( " Right Bookmarks " ) , ALT + Key_Right ,
new TDE Action( i18n ( " Right Bookmarks " ) , ALT + Key_Right ,
SLOTS , TQT_SLOT ( openRightBookmarks ( ) ) , actionCollection ( ) , " right bookmarks " ) ;
SLOTS , TQT_SLOT ( openRightBookmarks ( ) ) , actionCollection ( ) , " right bookmarks " ) ;
new K Action( i18n ( " Left Bookmarks " ) , ALT + Key_Left ,
new TDE Action( i18n ( " Left Bookmarks " ) , ALT + Key_Left ,
SLOTS , TQT_SLOT ( openLeftBookmarks ( ) ) , actionCollection ( ) , " left bookmarks " ) ;
SLOTS , TQT_SLOT ( openLeftBookmarks ( ) ) , actionCollection ( ) , " left bookmarks " ) ;
new K Action( i18n ( " Bookmarks " ) , CTRL + Key_D ,
new TDE Action( i18n ( " Bookmarks " ) , CTRL + Key_D ,
SLOTS , TQT_SLOT ( openBookmarks ( ) ) , actionCollection ( ) , " bookmarks " ) ;
SLOTS , TQT_SLOT ( openBookmarks ( ) ) , actionCollection ( ) , " bookmarks " ) ;
new K Action( i18n ( " Bookmark Current " ) , CTRL + SHIFT + Key_D ,
new TDE Action( i18n ( " Bookmark Current " ) , CTRL + SHIFT + Key_D ,
SLOTS , TQT_SLOT ( bookmarkCurrent ( ) ) , actionCollection ( ) , " bookmark current " ) ;
SLOTS , TQT_SLOT ( bookmarkCurrent ( ) ) , actionCollection ( ) , " bookmark current " ) ;
new K Action( i18n ( " History " ) , CTRL + Key_H ,
new TDE Action( i18n ( " History " ) , CTRL + Key_H ,
SLOTS , TQT_SLOT ( openHistory ( ) ) , actionCollection ( ) , " history " ) ;
SLOTS , TQT_SLOT ( openHistory ( ) ) , actionCollection ( ) , " history " ) ;
new K Action( i18n ( " Sync Panels " ) , ALT + Key_O ,
new TDE Action( i18n ( " Sync Panels " ) , ALT + Key_O ,
SLOTS , TQT_SLOT ( syncPanels ( ) ) , actionCollection ( ) , " sync panels " ) ;
SLOTS , TQT_SLOT ( syncPanels ( ) ) , actionCollection ( ) , " sync panels " ) ;
new K Action( i18n ( " Left History " ) , ALT + CTRL + Key_Left ,
new TDE Action( i18n ( " Left History " ) , ALT + CTRL + Key_Left ,
SLOTS , TQT_SLOT ( openLeftHistory ( ) ) , actionCollection ( ) , " left history " ) ;
SLOTS , TQT_SLOT ( openLeftHistory ( ) ) , actionCollection ( ) , " left history " ) ;
new K Action( i18n ( " Right History " ) , ALT + CTRL + Key_Right ,
new TDE Action( i18n ( " Right History " ) , ALT + CTRL + Key_Right ,
SLOTS , TQT_SLOT ( openRightHistory ( ) ) , actionCollection ( ) , " right history " ) ;
SLOTS , TQT_SLOT ( openRightHistory ( ) ) , actionCollection ( ) , " right history " ) ;
new K Action( i18n ( " Media " ) , CTRL + Key_M ,
new TDE Action( i18n ( " Media " ) , CTRL + Key_M ,
SLOTS , TQT_SLOT ( openMedia ( ) ) , actionCollection ( ) , " media " ) ;
SLOTS , TQT_SLOT ( openMedia ( ) ) , actionCollection ( ) , " media " ) ;
new K Action( i18n ( " Left Media " ) , CTRL + SHIFT + Key_Left ,
new TDE Action( i18n ( " Left Media " ) , CTRL + SHIFT + Key_Left ,
SLOTS , TQT_SLOT ( openLeftMedia ( ) ) , actionCollection ( ) , " left media " ) ;
SLOTS , TQT_SLOT ( openLeftMedia ( ) ) , actionCollection ( ) , " left media " ) ;
new K Action( i18n ( " Right Media " ) , CTRL + SHIFT + Key_Right ,
new TDE Action( i18n ( " Right Media " ) , CTRL + SHIFT + Key_Right ,
SLOTS , TQT_SLOT ( openRightMedia ( ) ) , actionCollection ( ) , " right media " ) ;
SLOTS , TQT_SLOT ( openRightMedia ( ) ) , actionCollection ( ) , " right media " ) ;
new K Action( i18n ( " New Symlink... " ) , CTRL + ALT + Key_S ,
new TDE Action( i18n ( " New Symlink... " ) , CTRL + ALT + Key_S ,
SLOTS , TQT_SLOT ( newSymlink ( ) ) , actionCollection ( ) , " new symlink " ) ;
SLOTS , TQT_SLOT ( newSymlink ( ) ) , actionCollection ( ) , " new symlink " ) ;
new K ToggleAction( i18n ( " Toggle Popup Panel " ) , ALT + Key_Down , SLOTS ,
new TDE ToggleAction( i18n ( " Toggle Popup Panel " ) , ALT + Key_Down , SLOTS ,
TQT_SLOT ( togglePopupPanel ( ) ) , actionCollection ( ) , " toggle popup panel " ) ;
TQT_SLOT ( togglePopupPanel ( ) ) , actionCollection ( ) , " toggle popup panel " ) ;
actVerticalMode = new K ToggleAction( i18n ( " Vertical Mode " ) , " view_top_bottom " , ALT + CTRL + Key_R , TQT_TQOBJECT ( MAIN_VIEW ) ,
actVerticalMode = new TDE ToggleAction( i18n ( " Vertical Mode " ) , " view_top_bottom " , ALT + CTRL + Key_R , TQT_TQOBJECT ( MAIN_VIEW ) ,
TQT_SLOT ( toggleVerticalMode ( ) ) , actionCollection ( ) , " toggle vertical mode " ) ;
TQT_SLOT ( toggleVerticalMode ( ) ) , actionCollection ( ) , " toggle vertical mode " ) ;
actNewTab = new K Action( i18n ( " New Tab " ) , " tab_new " , ALT + CTRL + Key_N , SLOTS ,
actNewTab = new TDE Action( i18n ( " New Tab " ) , " tab_new " , ALT + CTRL + Key_N , SLOTS ,
TQT_SLOT ( newTab ( ) ) , actionCollection ( ) , " new tab " ) ;
TQT_SLOT ( newTab ( ) ) , actionCollection ( ) , " new tab " ) ;
actDupTab = new K Action( i18n ( " Duplicate Current Tab " ) , " tab_duplicate " , ALT + CTRL + SHIFT + Key_N , SLOTS ,
actDupTab = new TDE Action( i18n ( " Duplicate Current Tab " ) , " tab_duplicate " , ALT + CTRL + SHIFT + Key_N , SLOTS ,
TQT_SLOT ( duplicateTab ( ) ) , actionCollection ( ) , " duplicate tab " ) ;
TQT_SLOT ( duplicateTab ( ) ) , actionCollection ( ) , " duplicate tab " ) ;
actCloseTab = new K Action( i18n ( " Close Current Tab " ) , " tab_remove " , CTRL + Key_W , SLOTS ,
actCloseTab = new TDE Action( i18n ( " Close Current Tab " ) , " tab_remove " , CTRL + Key_W , SLOTS ,
TQT_SLOT ( closeTab ( ) ) , actionCollection ( ) , " close tab " ) ;
TQT_SLOT ( closeTab ( ) ) , actionCollection ( ) , " close tab " ) ;
actNextTab = new K Action( i18n ( " Next Tab " ) , SHIFT + Key_Right , SLOTS ,
actNextTab = new TDE Action( i18n ( " Next Tab " ) , SHIFT + Key_Right , SLOTS ,
TQT_SLOT ( nextTab ( ) ) , actionCollection ( ) , " next tab " ) ;
TQT_SLOT ( nextTab ( ) ) , actionCollection ( ) , " next tab " ) ;
actPreviousTab = new K Action( i18n ( " Previous Tab " ) , SHIFT + Key_Left , SLOTS ,
actPreviousTab = new TDE Action( i18n ( " Previous Tab " ) , SHIFT + Key_Left , SLOTS ,
TQT_SLOT ( previousTab ( ) ) , actionCollection ( ) , " previous tab " ) ;
TQT_SLOT ( previousTab ( ) ) , actionCollection ( ) , " previous tab " ) ;
/*
/*
actUserMenu = new K Action( i18n ( " User Menu " ) , ALT + Key_QuoteLeft , SLOTS ,
actUserMenu = new TDE Action( i18n ( " User Menu " ) , ALT + Key_QuoteLeft , SLOTS ,
TQT_SLOT ( userMenu ( ) ) , actionCollection ( ) , " user menu " ) ;
TQT_SLOT ( userMenu ( ) ) , actionCollection ( ) , " user menu " ) ;
*/
*/
actManageUseractions = new K Action( i18n ( " Manage User Actions... " ) , 0 , SLOTS ,
actManageUseractions = new TDE Action( i18n ( " Manage User Actions... " ) , 0 , SLOTS ,
TQT_SLOT ( manageUseractions ( ) ) , actionCollection ( ) , " manage useractions " ) ;
TQT_SLOT ( manageUseractions ( ) ) , actionCollection ( ) , " manage useractions " ) ;
new KrRemoteEncodingMenu ( i18n ( " Select Remote Charset " ) , " charset " , actionCollection ( ) , " changeremoteencoding " ) ;
new KrRemoteEncodingMenu ( i18n ( " Select Remote Charset " ) , " charset " , actionCollection ( ) , " changeremoteencoding " ) ;
// setup the Fn keys
// setup the Fn keys
actF2 = new K Action( i18n ( " Start Terminal Here " ) , " terminal " , Key_F2 ,
actF2 = new TDE Action( i18n ( " Start Terminal Here " ) , " terminal " , Key_F2 ,
SLOTS , TQT_SLOT ( terminal ( ) ) , actionCollection ( ) , " F2_Terminal " ) ;
SLOTS , TQT_SLOT ( terminal ( ) ) , actionCollection ( ) , " F2_Terminal " ) ;
actF3 = new K Action( i18n ( " View File " ) , Key_F3 ,
actF3 = new TDE Action( i18n ( " View File " ) , Key_F3 ,
SLOTS , TQT_SLOT ( view ( ) ) , actionCollection ( ) , " F3_View " ) ;
SLOTS , TQT_SLOT ( view ( ) ) , actionCollection ( ) , " F3_View " ) ;
actF4 = new K Action( i18n ( " Edit File " ) , Key_F4 ,
actF4 = new TDE Action( i18n ( " Edit File " ) , Key_F4 ,
SLOTS , TQT_SLOT ( edit ( ) ) , actionCollection ( ) , " F4_Edit " ) ;
SLOTS , TQT_SLOT ( edit ( ) ) , actionCollection ( ) , " F4_Edit " ) ;
actF5 = new K Action( i18n ( " Copy... " ) , Key_F5 ,
actF5 = new TDE Action( i18n ( " Copy... " ) , Key_F5 ,
SLOTS , TQT_SLOT ( copyFiles ( ) ) , actionCollection ( ) , " F5_Copy " ) ;
SLOTS , TQT_SLOT ( copyFiles ( ) ) , actionCollection ( ) , " F5_Copy " ) ;
actF6 = new K Action( i18n ( " Move... " ) , Key_F6 ,
actF6 = new TDE Action( i18n ( " Move... " ) , Key_F6 ,
SLOTS , TQT_SLOT ( moveFiles ( ) ) , actionCollection ( ) , " F6_Move " ) ;
SLOTS , TQT_SLOT ( moveFiles ( ) ) , actionCollection ( ) , " F6_Move " ) ;
actF7 = new K Action( i18n ( " New Directory... " ) , " folder_new " , Key_F7 ,
actF7 = new TDE Action( i18n ( " New Directory... " ) , " folder_new " , Key_F7 ,
SLOTS , TQT_SLOT ( mkdir ( ) ) , actionCollection ( ) , " F7_Mkdir " ) ;
SLOTS , TQT_SLOT ( mkdir ( ) ) , actionCollection ( ) , " F7_Mkdir " ) ;
actF8 = new K Action( i18n ( " Delete " ) , " editdelete " , Key_F8 ,
actF8 = new TDE Action( i18n ( " Delete " ) , " editdelete " , Key_F8 ,
SLOTS , TQT_SLOT ( deleteFiles ( ) ) , actionCollection ( ) , " F8_Delete " ) ;
SLOTS , TQT_SLOT ( deleteFiles ( ) ) , actionCollection ( ) , " F8_Delete " ) ;
actF9 = new K Action( i18n ( " Rename " ) , Key_F9 ,
actF9 = new TDE Action( i18n ( " Rename " ) , Key_F9 ,
SLOTS , TQT_SLOT ( rename ( ) ) , actionCollection ( ) , " F9_Rename " ) ;
SLOTS , TQT_SLOT ( rename ( ) ) , actionCollection ( ) , " F9_Rename " ) ;
actF10 = new K Action( i18n ( " Quit " ) , Key_F10 ,
actF10 = new TDE Action( i18n ( " Quit " ) , Key_F10 ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotClose ( ) ) , actionCollection ( ) , " F10_Quit " ) ;
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotClose ( ) ) , actionCollection ( ) , " F10_Quit " ) ;
actPopularUrls = new K Action( i18n ( " Popular URLs... " ) , CTRL + Key_Z ,
actPopularUrls = new TDE Action( i18n ( " Popular URLs... " ) , CTRL + Key_Z ,
popularUrls , TQT_SLOT ( showDialog ( ) ) , actionCollection ( ) , " Popular_Urls " ) ;
popularUrls , TQT_SLOT ( showDialog ( ) ) , actionCollection ( ) , " Popular_Urls " ) ;
actLocationBar = new K Action( i18n ( " Go to Location Bar " ) , CTRL + Key_L ,
actLocationBar = new TDE Action( i18n ( " Go to Location Bar " ) , CTRL + Key_L ,
SLOTS , TQT_SLOT ( slotLocationBar ( ) ) , actionCollection ( ) , " location_bar " ) ;
SLOTS , TQT_SLOT ( slotLocationBar ( ) ) , actionCollection ( ) , " location_bar " ) ;
actJumpBack = new K Action( i18n ( " Jump Back " ) , " kr_jumpback " , CTRL + Key_J ,
actJumpBack = new TDE Action( i18n ( " Jump Back " ) , " kr_jumpback " , CTRL + Key_J ,
SLOTS , TQT_SLOT ( slotJumpBack ( ) ) , actionCollection ( ) , " jump_back " ) ;
SLOTS , TQT_SLOT ( slotJumpBack ( ) ) , actionCollection ( ) , " jump_back " ) ;
actSetJumpBack = new K Action( i18n ( " Set Jump Back Point " ) , " kr_setjumpback " , CTRL + SHIFT + Key_J ,
actSetJumpBack = new TDE Action( i18n ( " Set Jump Back Point " ) , " kr_setjumpback " , CTRL + SHIFT + Key_J ,
SLOTS , TQT_SLOT ( slotSetJumpBack ( ) ) , actionCollection ( ) , " set_jump_back " ) ;
SLOTS , TQT_SLOT ( slotSetJumpBack ( ) ) , actionCollection ( ) , " set_jump_back " ) ;
actSwitchFullScreenTE = new K Action( i18n ( " Toggle Fullwidget Terminal Emulator " ) , 0 , CTRL + Key_F ,
actSwitchFullScreenTE = new TDE Action( i18n ( " Toggle Fullwidget Terminal Emulator " ) , 0 , CTRL + Key_F ,
TQT_TQOBJECT ( MAIN_VIEW ) , TQT_SLOT ( switchFullScreenTE ( ) ) , actionCollection ( ) , " switch_fullscreen_te " ) ;
TQT_TQOBJECT ( MAIN_VIEW ) , TQT_SLOT ( switchFullScreenTE ( ) ) , actionCollection ( ) , " switch_fullscreen_te " ) ;
// and at last we can set the tool-tips
// and at last we can set the tool-tips
@ -808,7 +808,7 @@ void Krusader::setupActions() {
userAction = new UserAction ( ) ;
userAction = new UserAction ( ) ;
# ifdef __KJSEMBED__
# ifdef __KJSEMBED__
actShowJSConsole = new K Action( i18n ( " JavaScript Console... " ) , ALT + CTRL + Key_J , SLOTS , TQT_SLOT ( jsConsole ( ) ) , actionCollection ( ) , " JS_Console " ) ;
actShowJSConsole = new TDE Action( i18n ( " JavaScript Console... " ) , ALT + CTRL + Key_J , SLOTS , TQT_SLOT ( jsConsole ( ) ) , actionCollection ( ) , " JS_Console " ) ;
# endif
# endif
}
}
@ -1041,14 +1041,14 @@ void Krusader::updateGUI( bool enforce ) {
createGUI ( mainView - > konsole_part ) ;
createGUI ( mainView - > konsole_part ) ;
// this needs to be called AFTER createGUI() !!!
// this needs to be called AFTER createGUI() !!!
userActionMenu = ( K PopupMenu* ) guiFactory ( ) - > container ( " useractionmenu " , this ) ;
userActionMenu = ( TDE PopupMenu* ) guiFactory ( ) - > container ( " useractionmenu " , this ) ;
if ( userActionMenu )
if ( userActionMenu )
userAction - > populateMenu ( userActionMenu ) ;
userAction - > populateMenu ( userActionMenu ) ;
toolBar ( ) - > applySettings ( krConfig , " Private " ) ;
toolBar ( ) - > applySettings ( krConfig , " Private " ) ;
toolBar ( " actionsToolBar " ) - > applySettings ( krConfig , " Actions Toolbar " ) ;
toolBar ( " actionsToolBar " ) - > applySettings ( krConfig , " Actions Toolbar " ) ;
static_cast < K ToggleAction* > ( actionCollection ( ) - > action ( " toggle actions toolbar " ) ) - >
static_cast < TDE ToggleAction* > ( actionCollection ( ) - > action ( " toggle actions toolbar " ) ) - >
setChecked ( toolBar ( " actionsToolBar " ) - > isVisible ( ) ) ;
setChecked ( toolBar ( " actionsToolBar " ) - > isVisible ( ) ) ;
if ( enforce ) {
if ( enforce ) {