edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
findcommand.h
Go to the documentation of this file.
1// edbee - Copyright (c) 2012-2025 by Rick Blommers and contributors
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#include "edbee/exports.h"
7
9
10namespace edbee {
11
13{
14public:
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 ) override;
33 virtual QString toString() override;
34 virtual bool readonly() override;
35
36private:
37
38
39
40 FindType findType_;
41
42};
43
44} // edbee
Definition findcommand.h:13
FindCommand(FindType findType)
Constructs the find operation.
Definition findcommand.cpp:19
FindType
Definition findcommand.h:16
@ SelectNextMatch
Definition findcommand.h:20
@ UseSelectionForFind
Definition findcommand.h:17
@ SelectAllMatches
Definition findcommand.h:22
@ FindNextMatch
Definition findcommand.h:18
@ FindPreviousMatch
Definition findcommand.h:19
@ SelectUnderExpand
A smart selection: when there's no selection the current word is used and selected,...
Definition findcommand.h:24
@ SelectPreviousMatch
Definition findcommand.h:21
@ SelectAllUnder
A smart selection: when there's no selection the current word is used, and all occurences in the docu...
Definition findcommand.h:25
TextEditorCommand()
The default constructor.
Definition texteditorcommand.cpp:12
The texteditor works via the controller. The controller is the central point/mediator which maps/cont...
Definition texteditorcontroller.h:39
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20