edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.
 
virtual void execute (TextEditorController *controller) override
 executes this command. What happens depends mainly on the FindType
 
virtual QString toString () override
 Converts this find command to a string This string describes the command (useful only for debugging purposes)
 
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.
 

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

executes this command. What happens depends mainly on the FindType

Parameters
controllerthe controller used for executing

Implements edbee::TextEditorCommand.

◆ readonly()

bool edbee::FindCommand::readonly ( )
overridevirtual

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

Reimplemented from edbee::TextEditorCommand.

◆ toString()

QString edbee::FindCommand::toString ( )
overridevirtual

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: