KStdAction::openNew(TQT_TQOBJECT(m_viewManager),TQT_SLOT(slotDocumentNew()),actionCollection(),"file_new")->setWhatsThis(i18n("Create a new document"));
KStdAction::open(TQT_TQOBJECT(m_viewManager),TQT_SLOT(slotDocumentOpen()),actionCollection(),"file_open")->setWhatsThis(i18n("Open an existing document for editing"));
KStdAction::openNew( m_viewManager,TQT_SLOT(slotDocumentNew()),actionCollection(),"file_new")->setWhatsThis(i18n("Create a new document"));
KStdAction::open( m_viewManager,TQT_SLOT(slotDocumentOpen()),actionCollection(),"file_open")->setWhatsThis(i18n("Open an existing document for editing"));
a->setWhatsThis(i18n("Save all open, modified documents to disk."));
KStdAction::close(TQT_TQOBJECT(m_viewManager),TQT_SLOT(slotDocumentClose()),actionCollection(),"file_close")->setWhatsThis(i18n("Close the current document."));
KStdAction::close( m_viewManager,TQT_SLOT(slotDocumentClose()),actionCollection(),"file_close")->setWhatsThis(i18n("Close the current document."));
a->setWhatsThis(i18n("Close all open documents."));
KStdAction::mail(TQT_TQOBJECT(this),TQT_SLOT(slotMail()),actionCollection())->setWhatsThis(i18n("Send one or more of the open documents as email attachments."));
KStdAction::mail(this,TQT_SLOT(slotMail()),actionCollection())->setWhatsThis(i18n("Send one or more of the open documents as email attachments."));
KStdAction::quit(TQT_TQOBJECT(this),TQT_SLOT(slotFileQuit()),actionCollection(),"file_quit")->setWhatsThis(i18n("Close this window"));
KStdAction::quit(this,TQT_SLOT(slotFileQuit()),actionCollection(),"file_quit")->setWhatsThis(i18n("Close this window"));
settingsConfigure->setWhatsThis(i18n("Configure various aspects of this application and the editing component."));
// pipe to terminal action
if(KateApp::self()->authorize("shell_access"))
newTDEAction(i18n("&Pipe to Console"),"pipe",0,TQT_TQOBJECT(console),TQT_SLOT(slotPipeToConsole()),actionCollection(),"tools_pipe_to_terminal");
newTDEAction(i18n("&Pipe to Console"),"pipe",0, console,TQT_SLOT(slotPipeToConsole()),actionCollection(),"tools_pipe_to_terminal");
// tip of the day :-)
KStdAction::tipOfDay(TQT_TQOBJECT(this),TQT_SLOT(tipOfTheDay()),actionCollection())->setWhatsThis(i18n("This shows useful tips on the use of this application."));
KStdAction::tipOfDay(this,TQT_SLOT(tipOfTheDay()),actionCollection())->setWhatsThis(i18n("This shows useful tips on the use of this application."));
KStdAction::close(TQT_TQOBJECT(this),TQT_SLOT(slotFlush()),actionCollection(),"file_close")->setWhatsThis(i18n("Use this to close the current document"));
KStdAction::close(this,TQT_SLOT(slotFlush()),actionCollection(),"file_close")->setWhatsThis(i18n("Use this to close the current document"));
// setup File menu
KStdAction::print(TQT_TQOBJECT(this),TQT_SLOT(printDlg()),actionCollection())->setWhatsThis(i18n("Use this command to print the current document"));
KStdAction::openNew(TQT_TQOBJECT(this),TQT_SLOT(slotNew()),actionCollection(),"file_new")->setWhatsThis(i18n("Use this command to create a new document"));
KStdAction::open(TQT_TQOBJECT(this),TQT_SLOT(slotOpen()),actionCollection(),"file_open")->setWhatsThis(i18n("Use this command to open an existing document for editing"));
KStdAction::print(this,TQT_SLOT(printDlg()),actionCollection())->setWhatsThis(i18n("Use this command to print the current document"));
KStdAction::openNew(this,TQT_SLOT(slotNew()),actionCollection(),"file_new")->setWhatsThis(i18n("Use this command to create a new document"));
KStdAction::open(this,TQT_SLOT(slotOpen()),actionCollection(),"file_open")->setWhatsThis(i18n("Use this command to open an existing document for editing"));
m_paSaveViewPropertiesLocally=newTDEToggleAction(i18n("Save View Changes per &Folder"),0,TQT_TQOBJECT(this),TQT_SLOT(slotSaveViewPropertiesLocally()),actionCollection(),"saveViewPropertiesLocally");
m_paSaveViewPropertiesLocally=newTDEToggleAction(i18n("Save View Changes per &Folder"),0,this,TQT_SLOT(slotSaveViewPropertiesLocally()),actionCollection(),"saveViewPropertiesLocally");
// "Remove" ? "Reset" ? The former is more correct, the latter is more kcontrol-like...
m_paDuplicateTab=newTDEAction(i18n("&Duplicate Current Tab"),"tab_duplicate",CTRL+SHIFT+Key_D,TQT_TQOBJECT(this),TQT_SLOT(slotDuplicateTab()),actionCollection(),"duplicatecurrenttab");
m_paBreakOffTab=newTDEAction(i18n("Detach Current Tab"),"tab_breakoff",CTRL+SHIFT+Key_B,TQT_TQOBJECT(this),TQT_SLOT(slotBreakOffTab()),actionCollection(),"breakoffcurrenttab");
m_paRemoveView=newTDEAction(i18n("&Close Active View"),"view_remove",CTRL+SHIFT+Key_R,TQT_TQOBJECT(this),TQT_SLOT(slotRemoveView()),actionCollection(),"removeview");
m_paRemoveTab=newTDEAction(i18n("Close Current Tab"),"tab_remove",CTRL+Key_W,TQT_TQOBJECT(this),TQT_SLOT(slotRemoveTab()),actionCollection(),"removecurrenttab");
m_paActivateNextTab=newTDEAction(i18n("Activate Next Tab"),"tab_next",TQApplication::reverseLayout()?TDEStdAccel::tabPrev():TDEStdAccel::tabNext(),TQT_TQOBJECT(this),TQT_SLOT(slotActivateNextTab()),actionCollection(),"activatenexttab");
m_paDuplicateTab=newTDEAction(i18n("&Duplicate Current Tab"),"tab_duplicate",CTRL+SHIFT+Key_D,this,TQT_SLOT(slotDuplicateTab()),actionCollection(),"duplicatecurrenttab");
m_paBreakOffTab=newTDEAction(i18n("Detach Current Tab"),"tab_breakoff",CTRL+SHIFT+Key_B,this,TQT_SLOT(slotBreakOffTab()),actionCollection(),"breakoffcurrenttab");
m_paRemoveView=newTDEAction(i18n("&Close Active View"),"view_remove",CTRL+SHIFT+Key_R,this,TQT_SLOT(slotRemoveView()),actionCollection(),"removeview");
m_paRemoveTab=newTDEAction(i18n("Close Current Tab"),"tab_remove",CTRL+Key_W,this,TQT_SLOT(slotRemoveTab()),actionCollection(),"removecurrenttab");
m_paActivateNextTab=newTDEAction(i18n("Activate Next Tab"),"tab_next",TQApplication::reverseLayout()?TDEStdAccel::tabPrev():TDEStdAccel::tabNext(),this,TQT_SLOT(slotActivateNextTab()),actionCollection(),"activatenexttab");
m_paReloadAllTabs=newTDEAction(i18n("&Reload All Tabs"),"reload_all_tabs",SHIFT+Key_F5,TQT_TQOBJECT(this),TQT_SLOT(slotReloadAllTabs()),actionCollection(),"reload_all_tabs");
m_paReloadAllTabs=newTDEAction(i18n("&Reload All Tabs"),"reload_all_tabs",SHIFT+Key_F5,this,TQT_SLOT(slotReloadAllTabs()),actionCollection(),"reload_all_tabs");
actNewWindow=newTDEAction(i18n("Open in T&his Window"),0,TQT_TQOBJECT(this),TQT_SLOT(slotPopupThisWindow()),konqyMenuClient->actionCollection(),"sameview");
actNewWindow=newTDEAction(i18n("Open in T&his Window"),0,this,TQT_SLOT(slotPopupThisWindow()),konqyMenuClient->actionCollection(),"sameview");
actNewWindow->setToolTip(i18n("Open the document in current window"));
}
actNewWindow=newTDEAction(i18n("Open in New &Window"),"window-new",0,TQT_TQOBJECT(this),TQT_SLOT(slotPopupNewWindow()),konqyMenuClient->actionCollection(),"newview");
actNewWindow=newTDEAction(i18n("Open in New &Window"),"window-new",0,this,TQT_SLOT(slotPopupNewWindow()),konqyMenuClient->actionCollection(),"newview");
actNewWindow->setToolTip(i18n("Open the document in a new window"));
//Set tab_new_x to point to the correct icon based on NewTabsInFront
TDEAction*actNewTab=newTDEAction(i18n("Open in &Background Tab"),"tab_new_bg",0,TQT_TQOBJECT(this),TQT_SLOT(slotPopupNewTab()),actionCollection(),"openintab");
TDEAction*actNewTab=newTDEAction(i18n("Open in &Background Tab"),"tab_new_bg",0,this,TQT_SLOT(slotPopupNewTab()),actionCollection(),"openintab");
actNewTab->setStatusText(i18n("Open the document in a new background tab"));
TDEAction*actNewTabFront=newTDEAction(i18n("Open in &New Tab"),"tab_new",0,TQT_TQOBJECT(this),TQT_SLOT(slotPopupNewTabAtFront()),actionCollection(),"openintabfront");
TDEAction*actNewTabFront=newTDEAction(i18n("Open in &New Tab"),"tab_new",0,this,TQT_SLOT(slotPopupNewTabAtFront()),actionCollection(),"openintabfront");
actNewTabFront->setStatusText(i18n("Open the document in a new foreground tab"));
actNewTab=newTDEAction(i18n("Open in &Background Tab"),tab_new_x,0,TQT_TQOBJECT(this),TQT_SLOT(slotPopupNewTab()),konqyMenuClient->actionCollection(),"openintab");
actNewTabFront=newTDEAction(i18n("Open in &New Tab"),tab_new_x,0,TQT_TQOBJECT(this),TQT_SLOT(slotPopupNewTabAtFront()),konqyMenuClient->actionCollection(),"openintabfront");
actNewTab=newTDEAction(i18n("Open in &Background Tab"),tab_new_x,0,this,TQT_SLOT(slotPopupNewTab()),konqyMenuClient->actionCollection(),"openintab");
actNewTabFront=newTDEAction(i18n("Open in &New Tab"),tab_new_x,0,this,TQT_SLOT(slotPopupNewTabAtFront()),konqyMenuClient->actionCollection(),"openintabfront");
actNewTab->setToolTip(i18n("Open the document in a new background tab"));
actNewTabFront->setToolTip(i18n("Open the document in a new foreground tab"));
newTDEAction(i18n("Switch to Session %1").arg(i),0,TQT_TQOBJECT(this),TQT_SLOT(switchToSession()),m_shortcuts,TQString(TQString().sprintf("switch_to_session_%02d",i)).latin1());
newTDEAction(i18n("Switch to Session %1").arg(i),0,this,TQT_SLOT(switchToSession()),m_shortcuts,TQString(TQString().sprintf("switch_to_session_%02d",i)).latin1());