edbee - Qt Editor Library
findcommand.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
10 namespace edbee {
11 
13 {
14 public:
15 
16  enum FindType {
17  UseSelectionForFind, //< uses the current selection for find
18  FindNextMatch, //< finds the next match
19  FindPreviousMatch, //< finds the previous match
20  SelectNextMatch, //< adds the next match to the selection
21  SelectPreviousMatch, //< adds the previous match to the selection
22  SelectAllMatches, //< select all matches
23 
26 
27  };
28 
29 
30  FindCommand( FindType findType );
31 
32  virtual void execute( TextEditorController* controller );
33  virtual QString toString();
34 
35 private:
36 
37 
38 
39  FindType findType_;
40 
41 };
42 
43 } // edbee
virtual QString toString()
Converts this find command to a string This string describes the command (useful only for debugging p...
Definition: findcommand.cpp:101
Definition: findcommand.h:20
Definition: findcommand.h:18
Definition: findcommand.h:22
A smart selection: when there&#39;s no selection the current word is used, and all occurences in the docu...
Definition: findcommand.h:25
This is the abstract base class for a textcommand.
Definition: texteditorcommand.h:49
virtual void execute(TextEditorController *controller)
executes this command. What happens depends mainly on the FindType
Definition: findcommand.cpp:29
Definition: findcommand.h:21
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
A smart selection: when there&#39;s no selection the current word is used and selected, else the next word is selected.
Definition: findcommand.h:24
The texteditor works via the controller. The controller is the central point/mediater which maps/cont...
Definition: texteditorcontroller.h:37
FindCommand(FindType findType)
Constructs the find operation.
Definition: findcommand.cpp:21
Definition: findcommand.h:17
FindType
Definition: findcommand.h:16
Definition: findcommand.h:12
Definition: findcommand.h:19