edbee - Qt Editor Library
debugcommand.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
10 namespace edbee {
11 
12 
15 {
16 public:
17 
23  };
24 
25  DebugCommand( DebugCommandType command );
26 
27  virtual void execute( TextEditorController* controller );
28  virtual QString toString();
29 
30 protected:
31 
32  void dumpScopes( TextEditorController* controller );
33  void rebuildScopes( TextEditorController* controller );
34 
35  void dumpUndoStack( TextEditorController* controller );
36  void dumpCharacterCodes( TextEditorController* controller );
37 private:
38 
39  DebugCommandType command_;
40 
41 };
42 
43 } // edbee
Definition: debugcommand.h:21
void dumpCharacterCodes(TextEditorController *controller)
dumps the character codes (around the FIRST caret)
Definition: debugcommand.cpp:78
Definition: debugcommand.h:19
DebugCommandType
Definition: debugcommand.h:18
DebugCommand(DebugCommandType command)
Definition: debugcommand.cpp:21
virtual QString toString()
should return the description of the command
Definition: debugcommand.cpp:37
Definition: debugcommand.h:20
void rebuildScopes(TextEditorController *controller)
rebuilds all scopes
Definition: debugcommand.cpp:59
void dumpScopes(TextEditorController *controller)
This method dumps the scopes.
Definition: debugcommand.cpp:43
Definition: debugcommand.h:22
This is the abstract base class for a textcommand.
Definition: texteditorcommand.h:49
A debug command, for simply suppling/dumping some editor state information to the console...
Definition: debugcommand.h:14
void dumpUndoStack(TextEditorController *controller)
dumps the undostack
Definition: debugcommand.cpp:71
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
The texteditor works via the controller. The controller is the central point/mediater which maps/cont...
Definition: texteditorcontroller.h:37
virtual void execute(TextEditorController *controller)
This method should execute the given command.
Definition: debugcommand.cpp:26