edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
edbee::DebugCommand Class Reference

A debug command, for simply suppling/dumping some editor state information to the console. More...

#include <debugcommand.h>

+ Inheritance diagram for edbee::DebugCommand:
+ Collaboration diagram for edbee::DebugCommand:

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.
 
- Public Member Functions inherited from edbee::TextEditorCommand
 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)
 

Detailed Description

A debug command, for simply suppling/dumping some editor state information to the console.

Member Enumeration Documentation

◆ DebugCommandType

Enumerator
DumpScopes 
RebuildScopes 
DumpUndoStack 
DumpCharacterCodes 

Constructor & Destructor Documentation

◆ DebugCommand()

edbee::DebugCommand::DebugCommand ( DebugCommandType command)

Member Function Documentation

◆ dumpCharacterCodes()

void edbee::DebugCommand::dumpCharacterCodes ( TextEditorController * controller)
protected

dumps the character codes (around the FIRST caret)

◆ dumpScopes()

void edbee::DebugCommand::dumpScopes ( TextEditorController * controller)
protected

This method dumps the scopes.

◆ dumpUndoStack()

void edbee::DebugCommand::dumpUndoStack ( TextEditorController * controller)
protected

dumps the undostack

◆ execute()

void edbee::DebugCommand::execute ( TextEditorController * controller)
overridevirtual

This method should execute the given command.

Implements edbee::TextEditorCommand.

◆ readonly()

bool edbee::DebugCommand::readonly ( )
overridevirtual

Tis method should return true if it's executable in readonly mode.

Reimplemented from edbee::TextEditorCommand.

◆ rebuildScopes()

void edbee::DebugCommand::rebuildScopes ( TextEditorController * controller)
protected

rebuilds all scopes

lex the complete document

◆ toString()

QString edbee::DebugCommand::toString ( )
overridevirtual

should return the description of the command

Implements edbee::TextEditorCommand.


The documentation for this class was generated from the following files: