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