wxCommandProcessor is a class that maintains a history of wxCommands, with undo/redo functionality built-in.
Derive a new class from this if you want different behaviour.
- See also
- wxCommandProcessor Overview, wxCommand
|
| wxCommandProcessor (int maxCommands=-1) |
| Constructor. More...
|
|
virtual | ~wxCommandProcessor () |
| Destructor. More...
|
|
virtual bool | CanUndo () const |
| Returns true if the currently-active command can be undone, false otherwise. More...
|
|
virtual bool | CanRedo () const |
| Returns true if the currently-active command can be redone, false otherwise. More...
|
|
virtual void | ClearCommands () |
| Deletes all commands in the list and sets the current command pointer to NULL. More...
|
|
wxList & | GetCommands () |
| Returns the list of commands. More...
|
|
wxCommand * | GetCurrentCommand () const |
| Returns the current command. More...
|
|
wxMenu * | GetEditMenu () const |
| Returns the edit menu associated with the command processor. More...
|
|
int | GetMaxCommands () const |
| Returns the maximum number of commands that the command processor stores. More...
|
|
const wxString & | GetRedoAccelerator () const |
| Returns the string that will be appended to the Redo menu item. More...
|
|
wxString | GetRedoMenuLabel () const |
| Returns the string that will be shown for the redo menu item. More...
|
|
const wxString & | GetUndoAccelerator () const |
| Returns the string that will be appended to the Undo menu item. More...
|
|
wxString | GetUndoMenuLabel () const |
| Returns the string that will be shown for the undo menu item. More...
|
|
virtual void | Initialize () |
| Initializes the command processor, setting the current command to the last in the list (if any), and updating the edit menu (if one has been specified). More...
|
|
virtual bool | IsDirty () const |
| Returns a boolean value that indicates if changes have been made since the last save operation. More...
|
|
void | MarkAsSaved () |
| You must call this method whenever the project is saved if you plan to use IsDirty(). More...
|
|
virtual bool | Redo () |
| Executes (redoes) the current command (the command that has just been undone if any). More...
|
|
void | SetEditMenu (wxMenu *menu) |
| Tells the command processor to update the Undo and Redo items on this menu as appropriate. More...
|
|
virtual void | SetMenuStrings () |
| Sets the menu labels according to the currently set menu and the current command state. More...
|
|
void | SetRedoAccelerator (const wxString &accel) |
| Sets the string that will be appended to the Redo menu item. More...
|
|
void | SetUndoAccelerator (const wxString &accel) |
| Sets the string that will be appended to the Undo menu item. More...
|
|
virtual bool | Submit (wxCommand *command, bool storeIt=true) |
| Submits a new command to the command processor. More...
|
|
virtual void | Store (wxCommand *command) |
| Just store the command without executing it. More...
|
|
virtual bool | Undo () |
| Undoes the last command executed. More...
|
|
| wxObject () |
| Default ctor; initializes to NULL the internal reference data. More...
|
|
| wxObject (const wxObject &other) |
| Copy ctor. More...
|
|
virtual | ~wxObject () |
| Destructor. More...
|
|
virtual wxClassInfo * | GetClassInfo () const |
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...
|
|
wxObjectRefData * | GetRefData () const |
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...
|
|
bool | IsKindOf (const wxClassInfo *info) const |
| Determines whether this class is a subclass of (or the same class as) the given class. More...
|
|
bool | IsSameAs (const wxObject &obj) const |
| Returns true if this object has the same data pointer as obj. More...
|
|
void | Ref (const wxObject &clone) |
| Makes this object refer to the data in clone. More...
|
|
void | SetRefData (wxObjectRefData *data) |
| Sets the wxObject::m_refData pointer. More...
|
|
void | UnRef () |
| Decrements the reference count in the associated data, and if it is zero, deletes the data. More...
|
|
void | UnShare () |
| This is the same of AllocExclusive() but this method is public. More...
|
|
void | operator delete (void *buf) |
| The delete operator is defined for debugging versions of the library only, when the identifier __WXDEBUG__ is defined. More...
|
|
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0) |
| The new operator is defined for debugging versions of the library only, when the identifier __WXDEBUG__ is defined. More...
|
|