The python text editor undo/redo command. More...
#include <pqPythonUndoCommand.h>
Inherits QUndoCommand.
Public Member Functions | |
| pqPythonUndoCommand (QTextEdit &text, pqPythonSyntaxHighlighter *highlighter, pqPythonTextHistoryEntry &lastHistoryEntry, const pqPythonTextHistoryEntry &¤tHistoryEntry) | |
| Construct an undo command. More... | |
| void | undo () override |
| Overriden function that performs the undo. More... | |
| void | redo () override |
| Overriden function that performs the redo. More... | |
| const pqPythonTextHistoryEntry & | getCurrentHistoryEntry () const |
| Returns the current history entry. More... | |
The python text editor undo/redo command.
The pqPythonUndoCommand models the undo/redo framework needed for QUndoStack. The actual storage of the PythonTextHistory is external to the command: this avoids duplicating entries.
Definition at line 60 of file pqPythonUndoCommand.h.
| pqPythonUndoCommand::pqPythonUndoCommand | ( | QTextEdit & | text, |
| pqPythonSyntaxHighlighter * | highlighter, | ||
| pqPythonTextHistoryEntry & | lastHistoryEntry, | ||
| const pqPythonTextHistoryEntry && | currentHistoryEntry | ||
| ) |
Construct an undo command.
|
override |
Overriden function that performs the undo.
|
override |
Overriden function that performs the redo.
|
inline |
Returns the current history entry.
Definition at line 83 of file pqPythonUndoCommand.h.
1.8.13 on Sat Dec 13 2025