A debug command, for simply suppling/dumping some editor state information to the console. More...
#include <debugcommand.h>
Public Types | |
enum | DebugCommandType { DumpScopes , RebuildScopes , DumpUndoStack , DumpCharacterCodes } |
Public Member Functions | |
DebugCommand (DebugCommandType command) | |
virtual void | execute (TextEditorController *controller) override |
This method should execute the given command. | |
virtual QString | toString () override |
should return the description of the command | |
virtual bool | readonly () override |
Tis method should return true if it's executable in readonly mode. | |
![]() | |
TextEditorCommand () | |
The default constructor. | |
virtual | ~TextEditorCommand () |
A blank virtual destructor. | |
Protected Member Functions | |
void | dumpScopes (TextEditorController *controller) |
This method dumps the scopes. | |
void | rebuildScopes (TextEditorController *controller) |
rebuilds all scopes | |
void | dumpUndoStack (TextEditorController *controller) |
dumps the undostack | |
void | dumpCharacterCodes (TextEditorController *controller) |
dumps the character codes (around the FIRST caret) | |
A debug command, for simply suppling/dumping some editor state information to the console.
edbee::DebugCommand::DebugCommand | ( | DebugCommandType | command | ) |
|
protected |
dumps the character codes (around the FIRST caret)
|
protected |
This method dumps the scopes.
|
protected |
dumps the undostack
|
overridevirtual |
This method should execute the given command.
Implements edbee::TextEditorCommand.
|
overridevirtual |
Tis method should return true if it's executable in readonly mode.
Reimplemented from edbee::TextEditorCommand.
|
protected |
rebuilds all scopes
lex the complete document
|
overridevirtual |
should return the description of the command
Implements edbee::TextEditorCommand.