edbee - Qt Editor Library
Public Types | Public Member Functions | Protected Member Functions | List of all members
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)
 This method should execute the given command. More...
 
virtual QString toString ()
 should return the description of the command More...
 
- Public Member Functions inherited from edbee::TextEditorCommand
 TextEditorCommand ()
 The default constructor. More...
 
virtual ~TextEditorCommand ()
 A blank virtual destructor. More...
 

Protected Member Functions

void dumpScopes (TextEditorController *controller)
 This method dumps the scopes. More...
 
void rebuildScopes (TextEditorController *controller)
 rebuilds all scopes More...
 
void dumpUndoStack (TextEditorController *controller)
 dumps the undostack More...
 
void dumpCharacterCodes (TextEditorController *controller)
 dumps the character codes (around the FIRST caret) More...
 

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)
virtual

This method should execute the given command.

Implements edbee::TextEditorCommand.

◆ rebuildScopes()

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

rebuilds all scopes

lex the complete document

◆ toString()

QString edbee::DebugCommand::toString ( )
virtual

should return the description of the command

Implements edbee::TextEditorCommand.


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