6 #ifndef EDITORMANAGER_H 7 #define EDITORMANAGER_H 40 class SearchResultsLog;
66 cbThrow(
_T(
"Can't assign an EditorManager* !!!"));
75 void DeleteNotebookStack();
76 void RebuildNotebookStack();
78 void RecreateOpenEditorStyles();
79 int GetEditorsCount();
98 void ActivatePrevious();
108 bool UpdateProjectFiles(
cbProject* project);
109 bool SwapActiveHeaderSource();
110 bool OpenContainingFolder();
111 bool CloseActive(
bool dontsave =
false);
112 bool Close(
const wxString& filename,
bool dontsave =
false);
113 bool Close(
EditorBase* editor,
bool dontsave =
false);
114 bool Close(
int index,
bool dontsave =
false);
119 bool QueryCloseAll();
121 bool CloseAll(
bool dontsave =
false);
123 bool CloseAllExcept(
EditorBase* editor,
bool dontsave =
false);
125 bool CloseAllInTabCtrl(
bool dontsave =
false);
127 bool CloseAllInTabCtrlExcept(
EditorBase* editor,
bool dontsave =
false);
129 bool CloseAllInTabCtrlToTheLeft(
EditorBase* editor,
bool dontsave =
false);
131 bool CloseAllInTabCtrlToTheRight(
EditorBase* editor,
bool dontsave =
false);
132 bool Save(
const wxString& filename);
133 bool Save(
int index);
135 bool SaveAs(
int index);
146 void CheckForExternallyModifiedFiles();
148 void SetZoom(
int zoom);
151 void MarkReadOnly(
int page,
bool readOnly =
true);
154 void SetSelectionClipboard(
const wxString& data);
184 void RemoveEditorBase(
EditorBase* eb,
bool deleteObject =
true);
185 cbEditor* InternalGetBuiltinEditor(
int page);
198 bool CloseEditors(
const std::vector<EditorBase*> &editors,
bool dontsave =
false);
200 void GetEditorsInTabCtrl(std::vector<EditorBase*> &editors,
EditorBase *editor);
212 DECLARE_EVENT_TABLE()
215 #endif // EDITORMANAGER_H cbEditor * IsBuiltinOpen(const wxString &filename)
cbAuiNotebook * m_pNotebook
cbEditor * GetBuiltinEditor(const wxString &filename)
cbNotebookStack * m_pNotebookStackTail
cbNotebookStack(wxWindow *a_pWindow=nullptr)
a logger which prints messages to a wxListCtrl
FileType
Known file types.
DLLIMPORT int ID_EditorManager
Represents a file in a Code::Blocks project.
A generic Code::Blocks event.
cbEditor * GetBuiltinEditor(int index)
Represents a Code::Blocks project.
size_t m_nNotebookStackSize
EditorManager & operator=(cb_unused const EditorManager &rhs)
static bool CanShutdown()
EditorManagerInternalData * m_pData
DLLIMPORT int idEditorManagerCheckFiles
cbEditor * GetBuiltinActiveEditor()
Base class that all "editors" should inherit from.
EditorBase * GetEditor(const wxString &filename)
bool m_isCheckingForExternallyModifiedFiles
struct EditorManagerInternalData * This is the private data holder for the EditorManager * All data ...
EditorColourSet * m_Theme
EditorColourSet * GetColourSet()
cbAuiNotebook * GetNotebook()
DLLIMPORT int ID_NBEditorManager
A notebook class This class is derived from wxAuiNotebook, to enhance its abilities.
cbNotebookStack * m_pNotebookStackHead
static bool s_CanShutdown