edbee - Qt Editor Library
Public Types | Public Member Functions | List of all members
edbee::FindCommand Class Reference

#include <findcommand.h>

+ Inheritance diagram for edbee::FindCommand:
+ Collaboration diagram for edbee::FindCommand:

Public Types

enum  FindType {
  UseSelectionForFind, FindNextMatch, FindPreviousMatch, SelectNextMatch,
  SelectPreviousMatch, SelectAllMatches, SelectUnderExpand, SelectAllUnder
}
 

Public Member Functions

 FindCommand (FindType findType)
 Constructs the find operation. More...
 
virtual void execute (TextEditorController *controller)
 executes this command. What happens depends mainly on the FindType More...
 
virtual QString toString ()
 Converts this find command to a string This string describes the command (useful only for debugging purposes) More...
 
- Public Member Functions inherited from edbee::TextEditorCommand
 TextEditorCommand ()
 The default constructor. More...
 
virtual ~TextEditorCommand ()
 A blank virtual destructor. More...
 

Member Enumeration Documentation

◆ FindType

Enumerator
UseSelectionForFind 
FindNextMatch 
FindPreviousMatch 
SelectNextMatch 
SelectPreviousMatch 
SelectAllMatches 
SelectUnderExpand 

A smart selection: when there's no selection the current word is used and selected, else the next word is selected.

SelectAllUnder 

A smart selection: when there's no selection the current word is used, and all occurences in the document are selected.

Constructor & Destructor Documentation

◆ FindCommand()

edbee::FindCommand::FindCommand ( FindType  findType)

Constructs the find operation.

Parameters
findTypethe findtype to use

Member Function Documentation

◆ execute()

void edbee::FindCommand::execute ( TextEditorController controller)
virtual

executes this command. What happens depends mainly on the FindType

Parameters
controllerthe controller used for executing

Implements edbee::TextEditorCommand.

◆ toString()

QString edbee::FindCommand::toString ( )
virtual

Converts this find command to a string This string describes the command (useful only for debugging purposes)

Implements edbee::TextEditorCommand.


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