2323// ////////////////////////////////////////////////////////////////////////////
2424// ////////////////////////////////////////////////////////////////////////////
2525
26+ #include " precompiled_header.h"
27+
2628#include " frame.h"
2729
2830#include " BreakpointsView.hpp"
101103#include " plugin.h"
102104#include " pluginmanager.h"
103105#include " pluginmgrdlg.h"
104- #include " precompiled_header.h"
105106#include " project.h"
106107#include " quickdebugdlg.h"
107108#include " resources/clXmlResource.hpp"
@@ -457,8 +458,6 @@ EVT_MENU(XRCID("new_project"), clMainFrame::OnProjectNewProject)
457458EVT_MENU(XRCID(" file_new_project" ), clMainFrame::OnProjectNewProject)
458459EVT_MENU(XRCID(" add_project" ), clMainFrame::OnProjectAddProject)
459460EVT_MENU(XRCID(" reconcile_project" ), clMainFrame::OnReconcileProject)
460- EVT_MENU(XRCID(" retag_workspace" ), clMainFrame::OnRetagWorkspace)
461- EVT_MENU(XRCID(" full_retag_workspace" ), clMainFrame::OnRetagWorkspace)
462461EVT_MENU(XRCID(" project_properties" ), clMainFrame::OnShowActiveProjectSettings)
463462EVT_MENU(XRCID(" set_active_project" ), clMainFrame::OnSetActivePoject)
464463
@@ -471,8 +470,6 @@ EVT_UPDATE_UI(XRCID("add_project"), clMainFrame::OnWorkspaceMenuUI)
471470EVT_UPDATE_UI(XRCID(" file_new_project" ), clMainFrame::OnWorkspaceOpen)
472471EVT_UPDATE_UI(XRCID(" new_project" ), clMainFrame::OnNewProjectUI)
473472EVT_UPDATE_UI(XRCID(" reconcile_project" ), clMainFrame::OnShowActiveProjectSettingsUI)
474- EVT_UPDATE_UI(XRCID(" retag_workspace" ), clMainFrame::OnRetagWorkspaceUI)
475- EVT_UPDATE_UI(XRCID(" full_retag_workspace" ), clMainFrame::OnRetagWorkspaceUI)
476473EVT_UPDATE_UI(XRCID(" project_properties" ), clMainFrame::OnShowActiveProjectSettingsUI)
477474EVT_UPDATE_UI(XRCID(" set_active_project" ), clMainFrame::OnSetActivePojectUI)
478475
@@ -1229,8 +1226,7 @@ void clMainFrame::AddKeyboardAccelerators()
12291226 {" import_from_msvs" , _ (" Import other IDEs solution/workspace files..." )},
12301227 {" project_properties" , _ (" Open Active Project Settings..." ), " Alt-F7" },
12311228 {" new_project" , _ (" Create New Project" )},
1232- {" add_project" , _ (" Add an Existing Project" )},
1233- {" full_retag_workspace" , _ (" Parse Workspace" )}});
1229+ {" add_project" , _ (" Add an Existing Project" )}});
12341230}
12351231
12361232clMainFrame* clMainFrame::Get () { return m_theFrame; }
@@ -2461,10 +2457,6 @@ void clMainFrame::OnCtagsOptions(wxCommandEvent& event)
24612457 if ((newColVars != colVars) || (colourTypes != m_tagsOptionsData.GetCcColourFlags ())) {
24622458 GetMainBook ()->UpdateColours ();
24632459 }
2464-
2465- // When new include paths were added, an incremental parse is enough
2466- wxCommandEvent e (wxEVT_MENU, XRCID (" retag_workspace" ));
2467- AddPendingEvent (e);
24682460}
24692461
24702462void clMainFrame::RegisterDockWindow (int menuItemId, const wxString& name)
@@ -2951,16 +2943,6 @@ void clMainFrame::OnTimer(wxTimerEvent& event)
29512943 NavMgr::Get ()->Clear ();
29522944 }
29532945
2954- // ReTag workspace database if needed (this can happen due to schema version changes)
2955- // It is important to place the retag code here since the retag workspace should take place after
2956- // the parser search path have been updated (if needed)
2957- if (m_workspaceRetagIsRequired) {
2958- m_workspaceRetagIsRequired = false ;
2959- wxCommandEvent evt (wxEVT_COMMAND_MENU_SELECTED, XRCID (" full_retag_workspace" ));
2960- this ->AddPendingEvent (evt);
2961- m_infoBar->DisplayMessage (_ (" A workspace reparse is needed" ), wxICON_INFORMATION);
2962- }
2963-
29642946 // For some reason, under Linux we need to force the menu accelerator again
29652947 // otherwise some shortcuts are getting lose (e.g. Ctrl-/ to comment line)
29662948 ManagerST::Get ()->UpdateMenuAccelerators ();
@@ -4658,31 +4640,6 @@ void clMainFrame::OnIncrementalReplace(wxCommandEvent& event)
46584640 GetMainBook ()->ShowQuickBar (true );
46594641}
46604642
4661- void clMainFrame::OnRetagWorkspace (wxCommandEvent& event)
4662- {
4663- // See if any of the plugins want to handle this event by itself
4664- bool fullRetag = !(event.GetId () == XRCID (" retag_workspace" ));
4665- wxCommandEvent e (fullRetag ? wxEVT_CMD_RETAG_WORKSPACE_FULL : wxEVT_CMD_RETAG_WORKSPACE, GetId ());
4666- e.SetEventObject (this );
4667- if (EventNotifier::Get ()->ProcessEvent (e)) {
4668- return ;
4669- }
4670-
4671- TagsManager::RetagType type = TagsManager::Retag_Quick_No_Scan;
4672- if (event.GetId () == XRCID (" retag_workspace" )) {
4673- type = TagsManager::Retag_Quick;
4674- }
4675-
4676- else if (event.GetId () == XRCID (" full_retag_workspace" )) {
4677- type = TagsManager::Retag_Full;
4678- }
4679-
4680- else if (event.GetId () == XRCID (" retag_workspace_no_includes" )) {
4681- type = TagsManager::Retag_Quick_No_Scan;
4682- }
4683- ManagerST::Get ()->RetagWorkspace (type);
4684- }
4685-
46864643void clMainFrame::OnShowBuiltInTerminal (wxCommandEvent& e)
46874644{
46884645 wxUnusedVar (e);
@@ -5102,8 +5059,6 @@ void clMainFrame::UpdateAUI()
51025059 m_mgr.Update ();
51035060}
51045061
5105- void clMainFrame::OnRetagWorkspaceUI (wxUpdateUIEvent& event) { CHECK_SHUTDOWN (); }
5106-
51075062void clMainFrame::OnViewWordWrap (wxCommandEvent& e)
51085063{
51095064 CHECK_SHUTDOWN ();
0 commit comments