85 virtual void SetTitle(
const wxString& newTitle);
91 virtual void Activate();
99 virtual bool QueryClose();
106 virtual bool Close();
113 virtual bool Save() {
return true; }
127 virtual bool IsBuiltinEditor()
const;
132 virtual bool ThereAreOthers()
const;
193 virtual bool CanUndo()
const {
return false; }
199 virtual bool CanRedo()
const {
return false; }
239 virtual bool IsContextMenuOpened()
const;
244 virtual void InitFilename(
const wxString& filename);
250 virtual wxMenu* CreateContextSubMenu(
long id);
262 virtual wxString CreateUniqueFilename();
293 #endif // EDITORBASE_H virtual const wxString & GetShortName() const
Returns the editor's short name.
virtual void SetReadOnly(bool=true)
Set the editor read-only.
virtual bool CanPaste() const
Is there something to paste?
virtual bool HasSelection() const
Is there a selection?
Base class for debugger plugins.
virtual void SelectAll()
Select everything in the editor.
virtual bool IsReadOnly() const
Is the editor read-only?
virtual void Redo()
Redo changes.
virtual void SetChangeCollection(cb_optional bool collectChange)
Enable or disable changebar.
virtual void Paste()
Paste selected text/object from clipboard.
EditorBaseInternalData * m_pData
Use this to add new vars/functions w/out breaking the ABI.
virtual bool CanRedo() const
Is there something to redo?
virtual void Copy()
Copy selected text/object to clipboard.
WX_DECLARE_HASH_MAP(int, EditorBase *, wxIntegerHash, wxIntegerEqual, SwitchToMap)
virtual void SetModified(bool=true)
Set the modification status.
virtual const wxString & GetFilename() const
Get the editor's filename (if applicable).
virtual bool VisibleToTree() const
Should this kind of editor be visible in the open files tree?
ModuleType
The type of module offering a context menu.
virtual bool SaveAs()
Save editor contents under a different filename.
Base class that all "editors" should inherit from.
virtual void SetFilename(const wxString &filename)
Sets the editor's filename.
virtual void Undo()
Undo changes.
virtual bool GetModified() const
Is it modified?
void operator=(cb_optional const EditorBase &rhs)
Don't use this.
virtual void ClearHistory()
Clear Undo- (and Changebar-) history.
virtual void GotoLine(int, bool=true)
Move the caret at the specified line.
virtual void Cut()
Cut selected text/object to clipboard.
virtual bool CanSelectAll() const
Can the editor select everything?
virtual bool CanUndo() const
Is there something to undo?
virtual bool Save()
Save contents.
virtual void GotoPreviousChanged()
Goto previous changed line.
virtual void GotoNextChanged()
Goto next changed line.