|
KiCad PCB EDA Suite
|
One open document in a tabbed editor. More...
#include <editor_tab_context.h>
Classes | |
| struct | VIEW_SNAPSHOT |
| View snapshot captured on detach, restored on activate. More... | |
Public Member Functions | |
| EDITOR_TAB_CONTEXT () | |
| virtual | ~EDITOR_TAB_CONTEXT ()=default |
| virtual wxString | GetTabKey () const =0 |
| Stable identity for persistence and de-duplication. | |
| virtual wxString | GetDisplayName () const =0 |
| Short label shown on the tab. | |
| virtual bool | IsModified () const =0 |
| bool | IsPreview () const |
| void | SetPreview (bool aPreview) |
| UNDO_REDO_CONTAINER & | UndoList () |
| UNDO_REDO_CONTAINER & | RedoList () |
| VIEW_SNAPSHOT & | ViewSnapshot () |
| std::vector< KIID > & | SavedSelection () |
| Selection saved as resolved KIIDs, restored after the view is rebuilt. | |
Protected Attributes | |
| bool | m_preview = false |
| std::unique_ptr< UNDO_REDO_CONTAINER > | m_undo |
| std::unique_ptr< UNDO_REDO_CONTAINER > | m_redo |
| VIEW_SNAPSHOT | m_viewSnapshot |
| std::vector< KIID > | m_savedSelection |
One open document in a tabbed editor.
Owns the undo/redo and view/selection snapshot. The subclass owns the document object itself.
Definition at line 35 of file editor_tab_context.h.
|
inline |
Definition at line 38 of file editor_tab_context.h.
|
virtualdefault |
|
pure virtual |
Short label shown on the tab.
Implemented in FOOTPRINT_EDITOR_TAB_CONTEXT, and SYMBOL_EDITOR_TAB_CONTEXT.
|
pure virtual |
Stable identity for persistence and de-duplication.
Implemented in FOOTPRINT_EDITOR_TAB_CONTEXT, and SYMBOL_EDITOR_TAB_CONTEXT.
|
pure virtual |
Implemented in FOOTPRINT_EDITOR_TAB_CONTEXT, and SYMBOL_EDITOR_TAB_CONTEXT.
|
inline |
Definition at line 58 of file editor_tab_context.h.
References m_preview.
|
inline |
Definition at line 62 of file editor_tab_context.h.
References m_redo.
Referenced by SYMBOL_EDIT_FRAME::activateSymbolTab(), SYMBOL_EDIT_FRAME::clearSymbolTabUndoRedo(), FOOTPRINT_EDIT_FRAME::freeFootprintTabUndoRedo(), and FOOTPRINT_EDIT_FRAME::installFootprintTabBoard().
|
inline |
Selection saved as resolved KIIDs, restored after the view is rebuilt.
Definition at line 77 of file editor_tab_context.h.
References m_savedSelection.
Referenced by SYMBOL_EDIT_FRAME::activateSymbolTab(), and FOOTPRINT_EDIT_FRAME::installFootprintTabBoard().
|
inline |
Definition at line 59 of file editor_tab_context.h.
References m_preview.
|
inline |
Definition at line 61 of file editor_tab_context.h.
References m_undo.
Referenced by SYMBOL_EDIT_FRAME::activateSymbolTab(), SYMBOL_EDIT_FRAME::clearSymbolTabUndoRedo(), FOOTPRINT_EDIT_FRAME::freeFootprintTabUndoRedo(), and FOOTPRINT_EDIT_FRAME::installFootprintTabBoard().
|
inline |
Definition at line 72 of file editor_tab_context.h.
References m_viewSnapshot.
Referenced by SYMBOL_EDIT_FRAME::activateSymbolTab(), and FOOTPRINT_EDIT_FRAME::installFootprintTabBoard().
|
protected |
Definition at line 80 of file editor_tab_context.h.
Referenced by IsPreview(), and SetPreview().
|
protected |
Definition at line 82 of file editor_tab_context.h.
Referenced by EDITOR_TAB_CONTEXT(), and RedoList().
|
protected |
Definition at line 84 of file editor_tab_context.h.
Referenced by SavedSelection().
|
protected |
Definition at line 81 of file editor_tab_context.h.
Referenced by EDITOR_TAB_CONTEXT(), and UndoList().
|
protected |
Definition at line 83 of file editor_tab_context.h.
Referenced by ViewSnapshot().