Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

Public Member Functions | Public Attributes | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

MainFrame Class Reference

Collaboration diagram for MainFrame:
Collaboration graph

List of all members.

Public Member Functions

wxScrollingDialogGetBatchBuildDialog ()
 MainFrame (wxWindow *parent=(wxWindow *) NULL)
 CloseFullScreen event handling.
 MainFrame (wxWindow *parent, wxWindowID id=-1)
 MainFrame (const MainFrame &rhs)
void OnAddLogWindow (CodeBlocksLogEvent &event)
void OnApplicationClose (wxCloseEvent &event)
void OnDockWindowVisibility (CodeBlocksDockEvent &event)
bool OnDropFiles (wxCoord x, wxCoord y, const wxArrayString &filenames)
void OnEditAutoComplete (wxCommandEvent &event)
void OnEditBookmarksNext (wxCommandEvent &event)
void OnEditBookmarksPrevious (wxCommandEvent &event)
void OnEditBookmarksToggle (wxCommandEvent &event)
void OnEditBoxCommentSelected (wxCommandEvent &event)
void OnEditClearHistory (wxCommandEvent &event)
void OnEditCommentSelected (wxCommandEvent &event)
void OnEditCopy (wxCommandEvent &event)
void OnEditCut (wxCommandEvent &event)
void OnEditEncoding (wxCommandEvent &event)
void OnEditEOLMode (wxCommandEvent &event)
void OnEditFoldAll (wxCommandEvent &event)
void OnEditFoldBlock (wxCommandEvent &event)
void OnEditGotoMatchingBrace (wxCommandEvent &event)
void OnEditHighlightMode (wxCommandEvent &event)
void OnEditLineCopy (wxCommandEvent &event)
void OnEditLineCut (wxCommandEvent &event)
void OnEditLineDelete (wxCommandEvent &event)
void OnEditLineDuplicate (wxCommandEvent &event)
void OnEditLinePaste (wxCommandEvent &event)
void OnEditLineTranspose (wxCommandEvent &event)
void OnEditLowerCase (wxCommandEvent &event)
void OnEditMenuUpdateUI (wxUpdateUIEvent &event)
void OnEditorActivated (CodeBlocksEvent &event)
void OnEditorClosed (CodeBlocksEvent &event)
void OnEditorModified (CodeBlocksEvent &event)
void OnEditorOpened (CodeBlocksEvent &event)
void OnEditorSaved (CodeBlocksEvent &event)
void OnEditorUpdateUI (CodeBlocksEvent &event)
void OnEditParaDown (wxCommandEvent &event)
void OnEditParaDownExtend (wxCommandEvent &event)
void OnEditParaUp (wxCommandEvent &event)
void OnEditParaUpExtend (wxCommandEvent &event)
void OnEditPaste (wxCommandEvent &event)
void OnEditRedo (wxCommandEvent &event)
void OnEditSelectAll (wxCommandEvent &event)
void OnEditStreamCommentSelected (wxCommandEvent &event)
void OnEditSwapHeaderSource (wxCommandEvent &event)
void OnEditToggleAllFolds (wxCommandEvent &event)
void OnEditToggleCommentSelected (wxCommandEvent &event)
void OnEditToggleFoldBlock (wxCommandEvent &event)
void OnEditUncommentSelected (wxCommandEvent &event)
void OnEditUndo (wxCommandEvent &event)
void OnEditUnfoldAll (wxCommandEvent &event)
void OnEditUnfoldBlock (wxCommandEvent &event)
void OnEditUpperCase (wxCommandEvent &event)
void OnEditWordPartLeft (wxCommandEvent &event)
void OnEditWordPartLeftExtend (wxCommandEvent &event)
void OnEditWordPartRight (wxCommandEvent &event)
void OnEditWordPartRightExtend (wxCommandEvent &event)
void OnEditZoomIn (wxCommandEvent &event)
void OnEditZoomOut (wxCommandEvent &event)
void OnEditZoomReset (wxCommandEvent &event)
void OnEraseBackground (wxEraseEvent &event)
void OnFileClose (wxCommandEvent &event)
void OnFileCloseAll (wxCommandEvent &event)
void OnFileCloseAllProjects (wxCommandEvent &event)
void OnFileCloseProject (wxCommandEvent &event)
void OnFileCloseWorkspace (wxCommandEvent &event)
void OnFileImportProjectDevCpp (wxCommandEvent &event)
void OnFileImportProjectMSVC (wxCommandEvent &event)
void OnFileImportProjectMSVCWksp (wxCommandEvent &event)
void OnFileImportProjectMSVS (wxCommandEvent &event)
void OnFileImportProjectMSVSWksp (wxCommandEvent &event)
void OnFileMenuUpdateUI (wxUpdateUIEvent &event)
void OnFileNew (wxCommandEvent &event)
void OnFileNewWhat (wxCommandEvent &event)
void OnFileNext (wxCommandEvent &event)
void OnFileOpen (wxCommandEvent &event)
void OnFileOpenDefWorkspace (wxCommandEvent &event)
void OnFileOpenRecentClearHistory (wxCommandEvent &event)
void OnFileOpenRecentProjectClearHistory (wxCommandEvent &event)
void OnFilePrev (wxCommandEvent &event)
void OnFilePrint (wxCommandEvent &event)
void OnFilePrintSetup (wxCommandEvent &event)
void OnFileQuit (wxCommandEvent &event)
void OnFileReopen (wxCommandEvent &event)
void OnFileReopenProject (wxCommandEvent &event)
void OnFileSave (wxCommandEvent &event)
void OnFileSaveAll (wxCommandEvent &event)
void OnFileSaveAllFiles (wxCommandEvent &event)
void OnFileSaveAs (wxCommandEvent &event)
void OnFileSaveProject (wxCommandEvent &event)
void OnFileSaveProjectAllProjects (wxCommandEvent &event)
void OnFileSaveProjectAs (wxCommandEvent &event)
void OnFileSaveProjectTemplate (wxCommandEvent &event)
void OnFileSaveWorkspace (wxCommandEvent &event)
void OnFileSaveWorkspaceAs (wxCommandEvent &event)
void OnFocusEditor (wxCommandEvent &event)
void OnGlobalUserVars (wxCommandEvent &event)
void OnHelpAbout (wxCommandEvent &event)
void OnHelpPluginMenu (wxCommandEvent &event)
void OnHelpTips (wxCommandEvent &event)
void OnHideLogManager (CodeBlocksLogEvent &event)
void OnLayoutQuery (CodeBlocksLayoutEvent &event)
void OnLayoutSwitch (CodeBlocksLayoutEvent &event)
void OnLockLogManager (CodeBlocksLogEvent &event)
void OnPageChanged (wxNotebookEvent &event)
void OnPluginInstalled (CodeBlocksEvent &event)
void OnPluginLoaded (CodeBlocksEvent &event)
void OnPluginSettingsMenu (wxCommandEvent &event)
void OnPluginsExecuteMenu (wxCommandEvent &event)
void OnPluginUninstalled (CodeBlocksEvent &event)
void OnPluginUnloaded (CodeBlocksEvent &event)
void OnProjectActivated (CodeBlocksEvent &event)
void OnProjectClosed (CodeBlocksEvent &event)
void OnProjectMenuUpdateUI (wxUpdateUIEvent &event)
void OnProjectOpened (CodeBlocksEvent &event)
void OnRemoveLogWindow (CodeBlocksLogEvent &event)
void OnRequestDockWindow (CodeBlocksDockEvent &event)
void OnRequestHideDockWindow (CodeBlocksDockEvent &event)
void OnRequestShowDockWindow (CodeBlocksDockEvent &event)
void OnRequestUndockWindow (CodeBlocksDockEvent &event)
void OnSearchFind (wxCommandEvent &event)
void OnSearchFindNext (wxCommandEvent &event)
void OnSearchGotoLine (wxCommandEvent &event)
void OnSearchGotoNextChanged (wxCommandEvent &event)
void OnSearchGotoPrevChanged (wxCommandEvent &event)
void OnSearchMenuUpdateUI (wxUpdateUIEvent &event)
void OnSearchReplace (wxCommandEvent &event)
void OnSettingsCompilerDebugger (wxCommandEvent &event)
void OnSettingsEditor (wxCommandEvent &event)
void OnSettingsEnvironment (wxCommandEvent &event)
void OnSettingsKeyBindings (wxCommandEvent &event)
void OnSettingsPlugins (wxCommandEvent &event)
void OnSettingsScripting (wxCommandEvent &event)
void OnShiftTab (wxCommandEvent &event)
void OnShowLogManager (CodeBlocksLogEvent &event)
void OnSize (wxSizeEvent &event)
void OnStartHereLink (wxCommandEvent &event)
void OnStartHereVarSubst (wxCommandEvent &event)
void OnSwitchTabs (wxCommandEvent &event)
void OnSwitchToLogWindow (CodeBlocksLogEvent &event)
void OnToggleBar (wxCommandEvent &event)
void OnToggleFullScreen (wxCommandEvent &event)
void OnToggleStatusBar (wxCommandEvent &event)
void OnUnlockLogManager (CodeBlocksLogEvent &event)
void OnViewLayout (wxCommandEvent &event)
void OnViewLayoutDelete (wxCommandEvent &event)
void OnViewLayoutSave (wxCommandEvent &event)
void OnViewMenuUpdateUI (wxUpdateUIEvent &event)
void OnViewScriptConsole (wxCommandEvent &event)
bool Open (const wxString &filename, bool addToHistory=true)
bool OpenGeneric (const wxString &filename, bool addToHistory=true)
MainFrameoperator= (const MainFrame &rhs)
wxString ShowOpenFileDialog (const wxString &caption, const wxString &filter)
void ShowTips (bool forceShow=false)
void StartupDone ()

Public Attributes

wxAcceleratorTable * m_pAccel

Static Public Attributes

static const long ID_BTN_CLOSE = wxNewId()
static const long ID_BTN_EXPORT = wxNewId()
static const long ID_BTN_FILE_DST = wxNewId()
static const long ID_BTN_FILE_SRC = wxNewId()
static const long ID_BTN_SAVE = wxNewId()
static const long ID_BTN_TRANSFER = wxNewId()
static const long ID_BTN_UNCHECK = wxNewId()
static const long ID_CFG_SRC = wxNewId()
static const long ID_LBL_FILE_DST = wxNewId()
static const long ID_LBL_FILE_SRC = wxNewId()
static const long ID_LBL_STEPS = wxNewId()
static const long ID_LST_CFG = wxNewId()
static const long ID_TXT_FILE_DST = wxNewId()
static const long ID_TXT_FILE_SRC = wxNewId()

Protected Types

enum  { Installed, Uninstalled, Unloaded }
typedef std::map< int, const
wxString > 

Protected Member Functions

void AddEditorInWindowMenu (const wxString &filename, const wxString &title)
void AddPluginInHelpPluginsMenu (cbPlugin *plugin)
wxMenuItem * AddPluginInMenus (wxMenu *menu, cbPlugin *plugin, wxObjectEventFunction callback, int pos=-1, bool checkable=false)
void AddPluginInPluginsMenu (cbPlugin *plugin)
void AddPluginInSettingsMenu (cbPlugin *plugin)
void AddToolbarItem (int id, const wxString &title, const wxString &shortHelp, const wxString &longHelp, const wxString &image)
void AddToRecentFilesHistory (const wxString &filename)
void AddToRecentProjectsHistory (const wxString &filename)
void AskToRemoveFileFromHistory (wxFileHistory *hist, int id, bool cannot_open=true)
void CreateIDE ()
void CreateMenubar ()
void CreateToolbars ()
void DoAddPlugin (cbPlugin *plugin)
void DoAddPluginToolbar (cbPlugin *plugin)
bool DoCheckCurrentLayoutForChanges (bool canCancel=true)
bool DoCloseCurrentWorkspace ()
void DoCreateStatusBar ()
void DoFixToolbarsLayout ()
void DoOnFileOpen (bool bProject=false)
bool DoOpenFile (const wxString &filename, bool addToHistory=true)
bool DoOpenProject (const wxString &filename, bool addToHistory=true)
void DoSelectLayout (const wxString &name)
void DoUpdateAppTitle ()
void DoUpdateEditorStyle ()
void DoUpdateEditorStyle (cbAuiNotebook *target, const wxString &prefix, long defaultStyle)
void DoUpdateLayout ()
void DoUpdateLayoutColours ()
void DoUpdateStatusBar ()
void InitializeRecentFilesHistory ()
int IsEditorInWindowMenu (const wxString &filename)
void LoadViewLayout (const wxString &name, bool isTemp=false)
void LoadWindowState ()
void OnBtnCloseClick (wxCommandEvent &event)
void OnBtnExportClick (wxCommandEvent &event)
void OnBtnFileDstClick (wxCommandEvent &event)
void OnBtnFileSrcClick (wxCommandEvent &event)
void OnBtnSaveClick (wxCommandEvent &event)
void OnBtnTransferClick (wxCommandEvent &event)
void OnBtnUncheckClick (wxCommandEvent &event)
void PluginsUpdated (cbPlugin *plugin, int status)
void RecreateMenuBar ()
void RegisterEvents ()
void RegisterScriptFunctions ()
void RemoveEditorFromWindowMenu (const wxString &filename)
void RemovePluginFromMenus (const wxString &pluginName)
void RunStartupScripts ()
void SaveViewLayout (const wxString &name, const wxString &layout, bool select=false)
void SaveWindowState ()
void ScanForPlugins ()
void SetupGUILogging ()
void ShowHideScriptConsole ()
void ShowHideStartPage (bool forceHasProject=false)
void TerminateRecentFilesHistory ()

Protected Attributes

wxBoxSizer * bszMain
wxBoxSizer * bszSteps
wxButton * btnClose
wxButton * btnExport
wxButton * btnFileDst
wxButton * btnFileSrc
wxButton * btnSave
wxButton * btnTransfer
wxButton * btnUncheck
wxCheckListBox * clbCfgSrc
wxFlexGridSizer * flsFileDst
wxFlexGridSizer * flsFileSrc
wxGridSizer * grsAction
wxGridSizer * grsCfg
wxGridSizer * grsFile
wxGridSizer * grsFileLabel
wxStaticText * lblFileDst
wxStaticText * lblFileSrc
wxStaticText * lblSteps
wxListBox * lstCfgDst
int m_AutoHideLockCounter
wxMenu * m_HelpPluginsMenu
bool m_InitiatedShutdown
wxString m_LastLayoutData
bool m_LastLayoutIsTemp
wxString m_LastLayoutName
MenuIDToScript m_MenuIDToScript
wxButton * m_pCloseFullScreenBtn
 "Close FullScreen" button. Only shown when in FullScreen view
wxFileHistory * m_pFilesHistory
PluginIDsMap m_PluginIDsMap
wxMenu * m_PluginsMenu
PluginToolbarsMap m_PluginsTools
wxGauge * m_pProgressBar
wxFileHistory * m_pProjectsHistory
wxWindow * m_pScriptConsole
wxToolBar * m_pToolbar
bool m_SmallToolBar
bool m_StartupDone
wxMenu * m_ToolsMenu
wxStaticBoxSizer * sbsSteps
wxTextCtrl * txtFileDst
wxTextCtrl * txtFileSrc

Private Member Functions

wxString FileSelector ()
bool LayoutDifferent (const wxString &layout1, const wxString &layout2, const wxString &delimiter=_("|"))
bool LoadConfig (const wxString &filename, TiXmlDocument **doc)
void OfferConfig (TiXmlDocument *config, wxListBox *listbox, std::vector< TiXmlNode * > *nodes)
void OfferNode (TiXmlNode **node, wxListBox *listbox, std::vector< TiXmlNode * > *nodes, const wxString &prefix=wxT(""))
wxArrayString PathToArray (const wxString &path)
bool SameConfig (const wxString &filename, wxTextCtrl *txt)
bool TiXmlLoadDocument (const wxString &filename, TiXmlDocument *doc)
bool TiXmlSaveDocument (const wxString &filename, TiXmlDocument *doc)
bool TiXmlSuccess (TiXmlDocument *doc)
bool TransferNode (TiXmlNode **node, const wxArrayString &path)

Private Attributes

wxAuiManager m_LayoutManager
LayoutViewsMap m_LayoutViews
bool mCfgDstValid
bool mCfgSrcValid
wxString mFileDst
wxString mFileSrc
std::vector< TiXmlNode * > mNodesDst
std::vector< TiXmlNode * > mNodesSrc

Detailed Description

Definition at line 35 of file main.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index