edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
texteditorcommandmap.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
8#include <QObject>
9#include <QMap>
10#include <QString>
11
12
13namespace edbee {
14
16
19class EDBEE_EXPORT TextEditorCommandMap : public QObject
20{
21 Q_OBJECT
22public:
23 explicit TextEditorCommandMap(QObject *parent = 0);
24 virtual ~TextEditorCommandMap();
25
27
28 void give( const QString& key, TextEditorCommand* command );
29 TextEditorCommand* get( const QString& key );
30
31private:
32 QMap<QString,TextEditorCommand*> commandMap_;
33};
34
35} // edbee
This is the abstract base class for a textcommand.
Definition texteditorcommand.h:50
void loadFactoryCommandMap()
This method fills this command map with the factory commands.
Definition texteditorcommandmap.cpp:31
TextEditorCommand * get(const QString &key)
Returns the command identified with the given key.
Definition texteditorcommandmap.cpp:49
TextEditorCommandMap(QObject *parent=0)
Constructs the editor commandmap This constructors also initializes the map with the default editor a...
Definition texteditorcommandmap.cpp:16
#define EDBEE_EXPORT
Definition exports.h:15
#define give(key, command)
Definition factorycommandmap.cpp:30
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20