edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
edbee::TextEditorCommandMap Class Reference

This is a texteditor map. This is used to map Command-Names to commands This class is the owner of the the given commands. More...

#include <texteditorcommandmap.h>

+ Inheritance diagram for edbee::TextEditorCommandMap:
+ Collaboration diagram for edbee::TextEditorCommandMap:

Public Member Functions

 TextEditorCommandMap (QObject *parent=0)
 Constructs the editor commandmap This constructors also initializes the map with the default editor actions.
 
virtual ~TextEditorCommandMap ()
 Destructs the command map.
 
void loadFactoryCommandMap ()
 This method fills this command map with the factory commands.
 
void give (const QString &key, TextEditorCommand *command)
 gives the command to this command map
 
TextEditorCommandget (const QString &key)
 Returns the command identified with the given key.
 

Detailed Description

This is a texteditor map. This is used to map Command-Names to commands This class is the owner of the the given commands.

Constructor & Destructor Documentation

◆ TextEditorCommandMap()

edbee::TextEditorCommandMap::TextEditorCommandMap ( QObject * parent = 0)
explicit

Constructs the editor commandmap This constructors also initializes the map with the default editor actions.

Parameters
parenta reference to the parent object

◆ ~TextEditorCommandMap()

edbee::TextEditorCommandMap::~TextEditorCommandMap ( )
virtual

Destructs the command map.

Member Function Documentation

◆ get()

TextEditorCommand * edbee::TextEditorCommandMap::get ( const QString & key)

Returns the command identified with the given key.

Returns
the command assigned to this identifier or 0 if the command doesn't exeist

◆ give()

void edbee::TextEditorCommandMap::give ( const QString & key,
TextEditorCommand * command )

gives the command to this command map

Parameters
keythe unique identifier for this command
commandthe command to give

◆ loadFactoryCommandMap()

void edbee::TextEditorCommandMap::loadFactoryCommandMap ( )

This method fills this command map with the factory commands.


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