11 #include <wx/aui/aui.h> 66 cbThrow(
_T(
"Can't use MainFrame's operator="));
76 bool LayoutMessagePaneDifferent(
const wxString& layout1,
const wxString& layout2,
bool checkSelection=
false);
82 bool Open(
const wxString& filename,
bool addToHistory =
true);
84 void ShowTips(
bool forceShow =
false);
91 bool OpenGeneric(
const wxString& filename,
bool addToHistory =
true);
112 void PopupToggleToolbarMenu();
113 void SetChecksForViewToolbarsMenu(
wxMenu &menu);
294 void OnPageChanged(wxNotebookEvent& event);
302 void CreateMenubar();
303 void CreateToolbars();
304 void ScanForPlugins();
306 void RecreateMenuBar();
307 void RegisterEvents();
308 void SetupGUILogging();
309 void SetupDebuggerUI();
311 void RegisterScriptFunctions();
312 void RunStartupScripts();
314 enum { Installed, Uninstalled, Unloaded };
315 void PluginsUpdated(
cbPlugin* plugin,
int status);
319 void DoAddPluginStatusField(
cbPlugin* plugin);
320 void AddPluginInPluginsMenu(
cbPlugin* plugin);
321 void AddPluginInHelpPluginsMenu(
cbPlugin* plugin);
322 wxMenuItem* AddPluginInMenus(
wxMenu* menu,
cbPlugin* plugin, wxObjectEventFunction callback,
int pos = -1,
bool checkable =
false);
324 void LoadViewLayout(
const wxString& name,
bool isTemp =
false);
326 void DoSelectLayout(
const wxString& name);
327 void DoFixToolbarsLayout();
328 bool DoCheckCurrentLayoutForChanges(
bool canCancel =
true);
330 void AddEditorInWindowMenu(
const wxString& filename,
const wxString& title);
331 void RemoveEditorFromWindowMenu(
const wxString& filename);
332 int IsEditorInWindowMenu(
const wxString& filename);
335 bool DoCloseCurrentWorkspace();
336 bool DoOpenProject(
const wxString& filename,
bool addToHistory =
true);
337 bool DoOpenFile(
const wxString& filename,
bool addToHistory =
true);
338 void DoOnFileOpen(
bool bProject =
false);
340 void DoCreateStatusBar();
341 void DoUpdateStatusBar();
342 void DoUpdateAppTitle();
343 void DoUpdateLayout();
344 void DoUpdateLayoutColours();
345 void DoUpdateEditorStyle();
348 void ShowHideStartPage(
bool forceHasProject =
false,
int forceState = 0);
349 void ShowHideScriptConsole();
351 void LoadWindowState();
352 void SaveWindowState();
353 void LoadWindowSize();
355 void InitializeRecentFilesHistory();
356 void TerminateRecentFilesHistory();
407 DECLARE_EVENT_TABLE()
bool m_ScanningForPlugins
ProjectManager * m_pPrjMan
std::map< int, const wxString > MenuIDToScript
Event used to request from the main app to add a log.
WX_DECLARE_STRING_HASH_MAP(wxString, LayoutViewsMap)
Event used to request from the main app to add a window to the docking system.
DebuggerToolbarHandler * m_debuggerToolbarHandler
wxButton * m_pCloseFullScreenBtn
"Close FullScreen" button. Only shown when in FullScreen view
LayoutViewsMap m_LayoutViews
wxString m_LastMessagePaneLayoutData
MainFrame & operator=(cb_unused const MainFrame &rhs)
WX_DECLARE_HASH_MAP(int, wxString, wxIntegerHash, wxIntegerEqual, PluginIDsMap)
wxAuiManager m_LayoutManager
cbProjectManagerUI * GetProjectManagerUI()
A generic Code::Blocks event.
MenuIDToScript m_MenuIDToScript
FindReplace m_findReplace
PluginIDsMap m_PluginIDsMap
RecentItemsList m_projectsHistory
LayoutViewsMap m_LayoutMessagePane
int idStartHerePageVarSubst
wxScrollingDialog * m_pBatchBuildDialog
wxString m_LastLayoutName
DebuggerMenuHandler * m_debuggerMenuHandler
wxString m_PreviousLayoutName
Base class that all "editors" should inherit from.
wxButton * m_pHighlightButton
wxScrollingDialog * GetBatchBuildDialog()
wxAcceleratorTable * m_pAccel
const wxString & _(const wxString &string)
The entry point singleton for working with projects.
PluginToolbarsMap m_PluginsTools
A notebook class This class is derived from wxAuiNotebook, to enhance its abilities.
int m_AutoHideLockCounter
wxMenu * m_HelpPluginsMenu
wxWindow * m_pScriptConsole
wxString m_LastLayoutData
cbProjectManagerUI * m_pPrjManUI
int m_LastCtrlAltTabWindow
Last window focussed in the cycle 1 = Mgmt. panel, 2 = Editor, 3 = Logs & others. ...
Event used to request from the main app to manage the view layouts.