edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tabcommand.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
14{
15public:
21
23 enum {
28 };
29
30
31 TabCommand( Direction direction, bool insertTab );
32
33 virtual void indent( TextEditorController* controller );
34 virtual void execute( TextEditorController* controller ) override;
35 virtual QString toString() override;
36
37private:
38 Direction dir_;
39 bool insertTab_;
40};
41
42} // edbee
For inserting/executing forward and backwards tabs.
Definition tabcommand.h:14
Direction
The possible directions of the tab command.
Definition tabcommand.h:17
@ Backward
Definition tabcommand.h:19
@ Forward
Definition tabcommand.h:18
@ SubCoalesceId_Indent_Forward
Definition tabcommand.h:24
@ SubCoalesceId_Indent_Backward
Definition tabcommand.h:25
@ SubCoalesceId_Indent_InsertTab
Definition tabcommand.h:26
@ SubCoalesceId_Indent_InsertSpaces
Definition tabcommand.h:27
TabCommand(Direction direction, bool insertTab)
Constructs the tabcommand.
Definition tabcommand.cpp:20
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