|
|
|
@ -50,24 +50,24 @@ KScopeActions::~KScopeActions()
|
|
|
|
|
void KScopeActions::init()
|
|
|
|
|
{
|
|
|
|
|
// File menu
|
|
|
|
|
KStdAction::openNew(m_pWindow, SLOT(slotNewFile()), m_pCollection);
|
|
|
|
|
KStdAction::open(m_pWindow, SLOT(slotOpenFile()), m_pCollection);
|
|
|
|
|
KStdAction::close(m_pWindow, SLOT(slotCloseEditor()), m_pCollection);
|
|
|
|
|
KStdAction::quit(m_pWindow, SLOT(slotClose()), m_pCollection);
|
|
|
|
|
KStdAction::openNew(m_pWindow, TQ_SLOT(slotNewFile()), m_pCollection);
|
|
|
|
|
KStdAction::open(m_pWindow, TQ_SLOT(slotOpenFile()), m_pCollection);
|
|
|
|
|
KStdAction::close(m_pWindow, TQ_SLOT(slotCloseEditor()), m_pCollection);
|
|
|
|
|
KStdAction::quit(m_pWindow, TQ_SLOT(slotClose()), m_pCollection);
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Go to File List"),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+Shift+O",
|
|
|
|
|
m_pWindow->m_pFileList,
|
|
|
|
|
SLOT(slotSetFocus()),
|
|
|
|
|
TQ_SLOT(slotSetFocus()),
|
|
|
|
|
"file_open_file_from_list",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Save Al&l"),
|
|
|
|
|
"save_all",
|
|
|
|
|
"Ctrl+L",
|
|
|
|
|
m_pWindow->m_pEditTabs,
|
|
|
|
|
SLOT(slotSaveAll()),
|
|
|
|
|
TQ_SLOT(slotSaveAll()),
|
|
|
|
|
"file_save_all",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -76,32 +76,32 @@ void KScopeActions::init()
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+E",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotExtEdit()),
|
|
|
|
|
TQ_SLOT(slotExtEdit()),
|
|
|
|
|
"edit_external_editor",
|
|
|
|
|
SIGNAL(toggleFile(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleFile(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Go To Tag"),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+Shift+T",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotGotoTag()),
|
|
|
|
|
TQ_SLOT(slotGotoTag()),
|
|
|
|
|
"edit_goto_tag",
|
|
|
|
|
SIGNAL(toggleFile(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleFile(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Complete Symbol"),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+Space",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotCompleteSymbol()),
|
|
|
|
|
TQ_SLOT(slotCompleteSymbol()),
|
|
|
|
|
"edit_comp_symbol",
|
|
|
|
|
SIGNAL(toggleFile(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleFile(bool)));
|
|
|
|
|
|
|
|
|
|
// Project menu
|
|
|
|
|
addAction(i18n("&New Project..."),
|
|
|
|
|
NULL,
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotCreateProject()),
|
|
|
|
|
TQ_SLOT(slotCreateProject()),
|
|
|
|
|
"project_new",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -109,7 +109,7 @@ void KScopeActions::init()
|
|
|
|
|
"project_open",
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotOpenProject()),
|
|
|
|
|
TQ_SLOT(slotOpenProject()),
|
|
|
|
|
"project_open",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -117,7 +117,7 @@ void KScopeActions::init()
|
|
|
|
|
NULL,
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotProjectCscopeOut()),
|
|
|
|
|
TQ_SLOT(slotProjectCscopeOut()),
|
|
|
|
|
"project_cscope_out",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -125,153 +125,153 @@ void KScopeActions::init()
|
|
|
|
|
NULL,
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotProjectFiles()),
|
|
|
|
|
TQ_SLOT(slotProjectFiles()),
|
|
|
|
|
"project_add_rem_files",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Properties..."),
|
|
|
|
|
NULL,
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotProjectProps()),
|
|
|
|
|
TQ_SLOT(slotProjectProps()),
|
|
|
|
|
"project_properties",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Make Project"),
|
|
|
|
|
"make_tdevelop",
|
|
|
|
|
"Ctrl+M",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotProjectMake()),
|
|
|
|
|
TQ_SLOT(slotProjectMake()),
|
|
|
|
|
"project_make",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Remake Project"),
|
|
|
|
|
"rebuild",
|
|
|
|
|
"Ctrl+Shift+M",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotProjectRemake()),
|
|
|
|
|
TQ_SLOT(slotProjectRemake()),
|
|
|
|
|
"project_remake",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Close Project"),
|
|
|
|
|
"window-close",
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotCloseProject()),
|
|
|
|
|
TQ_SLOT(slotCloseProject()),
|
|
|
|
|
"project_close",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
// Cscope menu
|
|
|
|
|
addAction(i18n("&References..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+0",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryReference()),
|
|
|
|
|
TQ_SLOT(slotQueryReference()),
|
|
|
|
|
"cscope_references",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Definition..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+1",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryDefinition()),
|
|
|
|
|
TQ_SLOT(slotQueryDefinition()),
|
|
|
|
|
"cscope_definition",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Called Functions..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+2",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryCalled()),
|
|
|
|
|
TQ_SLOT(slotQueryCalled()),
|
|
|
|
|
"cscope_called",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("C&alling Functions..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+3",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryCalling()),
|
|
|
|
|
TQ_SLOT(slotQueryCalling()),
|
|
|
|
|
"cscope_calling",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Find &Text..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+4",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryText()),
|
|
|
|
|
TQ_SLOT(slotQueryText()),
|
|
|
|
|
"cscope_text",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Find &EGrep Pattern..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+5",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryPattern()),
|
|
|
|
|
TQ_SLOT(slotQueryPattern()),
|
|
|
|
|
"cscope_pattern",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Find &File..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+7",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryFile()),
|
|
|
|
|
TQ_SLOT(slotQueryFile()),
|
|
|
|
|
"cscope_file",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Including Files..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+8",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryIncluding()),
|
|
|
|
|
TQ_SLOT(slotQueryIncluding()),
|
|
|
|
|
"cscope_including",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Quick Definition"),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+]",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotQueryQuickDef()),
|
|
|
|
|
TQ_SLOT(slotQueryQuickDef()),
|
|
|
|
|
"cscope_quick_def",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Call &Graph..."),
|
|
|
|
|
NULL,
|
|
|
|
|
"Ctrl+\\",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotCallTree()),
|
|
|
|
|
TQ_SLOT(slotCallTree()),
|
|
|
|
|
"cscope_call_tree",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("Re&build database"),
|
|
|
|
|
"vcs_update",
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotRebuildDB()),
|
|
|
|
|
TQ_SLOT(slotRebuildDB()),
|
|
|
|
|
"cscope_rebuild",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
// Go menu
|
|
|
|
|
addAction(i18n("P&revious Result"),
|
|
|
|
|
"go-up",
|
|
|
|
|
"Alt+Up",
|
|
|
|
|
m_pWindow->m_pQueryWidget,
|
|
|
|
|
SLOT(slotPrevResult()),
|
|
|
|
|
TQ_SLOT(slotPrevResult()),
|
|
|
|
|
"go_prev_result",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("N&ext Result"),
|
|
|
|
|
"go-down",
|
|
|
|
|
"Alt+Down",
|
|
|
|
|
m_pWindow->m_pQueryWidget,
|
|
|
|
|
SLOT(slotNextResult()),
|
|
|
|
|
TQ_SLOT(slotNextResult()),
|
|
|
|
|
"go_next_result",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Previous Position"),
|
|
|
|
|
"back",
|
|
|
|
|
"Alt+Left",
|
|
|
|
|
m_pWindow->m_pQueryWidget,
|
|
|
|
|
SLOT(slotHistoryPrev()),
|
|
|
|
|
TQ_SLOT(slotHistoryPrev()),
|
|
|
|
|
"go_prev_pos",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -279,7 +279,7 @@ void KScopeActions::init()
|
|
|
|
|
"forward",
|
|
|
|
|
"Alt+Right",
|
|
|
|
|
m_pWindow->m_pQueryWidget,
|
|
|
|
|
SLOT(slotHistoryNext()),
|
|
|
|
|
TQ_SLOT(slotHistoryNext()),
|
|
|
|
|
"go_next_pos",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -287,7 +287,7 @@ void KScopeActions::init()
|
|
|
|
|
"history",
|
|
|
|
|
"Ctrl+h",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotHistoryShow()),
|
|
|
|
|
TQ_SLOT(slotHistoryShow()),
|
|
|
|
|
"go_history",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -295,7 +295,7 @@ void KScopeActions::init()
|
|
|
|
|
"bookmark",
|
|
|
|
|
"Ctrl+Shift+G",
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotShowBookmarks()),
|
|
|
|
|
TQ_SLOT(slotShowBookmarks()),
|
|
|
|
|
"go_bookmarks",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -304,7 +304,7 @@ void KScopeActions::init()
|
|
|
|
|
"view_sidetree",
|
|
|
|
|
"Ctrl+/",
|
|
|
|
|
m_pWindow->m_pFileViewDock,
|
|
|
|
|
SLOT(changeHideShowState()),
|
|
|
|
|
TQ_SLOT(changeHideShowState()),
|
|
|
|
|
"view_toggle_filelist_dock",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -312,7 +312,7 @@ void KScopeActions::init()
|
|
|
|
|
"view_top_bottom",
|
|
|
|
|
"Ctrl+.",
|
|
|
|
|
m_pWindow->m_pQueryDock,
|
|
|
|
|
SLOT(changeHideShowState()),
|
|
|
|
|
TQ_SLOT(changeHideShowState()),
|
|
|
|
|
"view_toggle_query_dock",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -320,7 +320,7 @@ void KScopeActions::init()
|
|
|
|
|
"view_detailed",
|
|
|
|
|
"Ctrl+'",
|
|
|
|
|
m_pWindow->m_pEditTabs,
|
|
|
|
|
SLOT(slotToggleTagList()),
|
|
|
|
|
TQ_SLOT(slotToggleTagList()),
|
|
|
|
|
"view_toggle_tag_list",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -329,7 +329,7 @@ void KScopeActions::init()
|
|
|
|
|
"window-close",
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotCloseAllWindows()),
|
|
|
|
|
TQ_SLOT(slotCloseAllWindows()),
|
|
|
|
|
"window_close_all",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -337,7 +337,7 @@ void KScopeActions::init()
|
|
|
|
|
"back",
|
|
|
|
|
"Alt+Shift+Left",
|
|
|
|
|
m_pWindow->m_pEditTabs,
|
|
|
|
|
SLOT(slotGoLeft()),
|
|
|
|
|
TQ_SLOT(slotGoLeft()),
|
|
|
|
|
"window_go_left",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -345,20 +345,20 @@ void KScopeActions::init()
|
|
|
|
|
"forward",
|
|
|
|
|
"Alt+Shift+Right",
|
|
|
|
|
m_pWindow->m_pEditTabs,
|
|
|
|
|
SLOT(slotGoRight()),
|
|
|
|
|
TQ_SLOT(slotGoRight()),
|
|
|
|
|
"window_go_right",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
|
// Settings menu
|
|
|
|
|
KStdAction::preferences(m_pWindow, SLOT(slotConfigure()), m_pCollection);
|
|
|
|
|
KStdAction::keyBindings(m_pWindow, SLOT(slotShortcuts()), m_pCollection);
|
|
|
|
|
KStdAction::preferences(m_pWindow, TQ_SLOT(slotConfigure()), m_pCollection);
|
|
|
|
|
KStdAction::keyBindings(m_pWindow, TQ_SLOT(slotShortcuts()), m_pCollection);
|
|
|
|
|
|
|
|
|
|
// Help menu
|
|
|
|
|
addAction(i18n("Show &Welcome Message..."),
|
|
|
|
|
NULL,
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow,
|
|
|
|
|
SLOT(slotShowWelcome()),
|
|
|
|
|
TQ_SLOT(slotShowWelcome()),
|
|
|
|
|
"help_welcome",
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
@ -367,33 +367,33 @@ void KScopeActions::init()
|
|
|
|
|
"document-new",
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow->m_pQueryWidget,
|
|
|
|
|
SLOT(slotNewQueryPage()),
|
|
|
|
|
TQ_SLOT(slotNewQueryPage()),
|
|
|
|
|
"query_new",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Refresh"),
|
|
|
|
|
"reload",
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow->m_pQueryWidget,
|
|
|
|
|
SLOT(slotRefreshCurrent()),
|
|
|
|
|
TQ_SLOT(slotRefreshCurrent()),
|
|
|
|
|
"query_refresh",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
m_pLockAction = addToggle(i18n("&Lock/Unlock"),
|
|
|
|
|
"encrypted",
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow->m_pQueryWidget,
|
|
|
|
|
SLOT(slotLockCurrent()),
|
|
|
|
|
TQ_SLOT(slotLockCurrent()),
|
|
|
|
|
"query_toggle_locked",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
addAction(i18n("&Close"),
|
|
|
|
|
"window-close",
|
|
|
|
|
NULL,
|
|
|
|
|
m_pWindow->m_pQueryWidget,
|
|
|
|
|
SLOT(slotCloseCurrent()),
|
|
|
|
|
TQ_SLOT(slotCloseCurrent()),
|
|
|
|
|
"query_close",
|
|
|
|
|
SIGNAL(toggleProject(bool)));
|
|
|
|
|
TQ_SIGNAL(toggleProject(bool)));
|
|
|
|
|
|
|
|
|
|
m_pExtEditAction->setEnabled(Config().useExtEditor());
|
|
|
|
|
}
|
|
|
|
@ -491,7 +491,7 @@ TDEAction* KScopeActions::addAction(const TQString& sCaption, const char* szIcon
|
|
|
|
|
|
|
|
|
|
// Add to the given action list, if any
|
|
|
|
|
if (szSignal)
|
|
|
|
|
connect(this, szSignal, pAction, SLOT(setEnabled(bool)));
|
|
|
|
|
connect(this, szSignal, pAction, TQ_SLOT(setEnabled(bool)));
|
|
|
|
|
|
|
|
|
|
return pAction;
|
|
|
|
|
}
|
|
|
|
@ -525,7 +525,7 @@ TDEToggleAction* KScopeActions::addToggle(const TQString& sCaption,
|
|
|
|
|
|
|
|
|
|
// Add to the given action list, if any
|
|
|
|
|
if (szSignal)
|
|
|
|
|
connect(this, szSignal, pAction, SLOT(setEnabled(bool)));
|
|
|
|
|
connect(this, szSignal, pAction, TQ_SLOT(setEnabled(bool)));
|
|
|
|
|
|
|
|
|
|
return pAction;
|
|
|
|
|
}
|
|
|
|
|