5#ifndef BALL_VIEW_KERNEL_SHORTCUTREGISTRY_H
6#define BALL_VIEW_KERNEL_SHORTCUTREGISTRY_H
8#ifndef BALL_CONCEPT_EMBEDDABLE_H
14#ifndef BALL_DATATYPE_HASHSET_H
18#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY_H
22#include <QtCore/QObject>
76 bool hasKey(const QKeySequence& key_seq);
Embeddable(const String &identifier="<Embeddable>")
bool readShortcutsFromFile(const String &filename)
Read the shortcuts from a data file.
std::map< String, QAction * > shortcuts_
std::map< String, String > unknown_shortcuts_
void clearKeySequences()
Clear all key sequences for all registered QActions.
static const char * BETWEEN_SC_SEPERATOR
static const char * IN_SC_SEPERATOR
virtual bool getValue(String &) const
Overload this in derived classes!
bool hasKey(const QString &key_seq)
void registerShortcut(String description, QAction *shortcut)
bool changeShortcut(QAction *shortcut, const String &new_sequence)
HashSet< String > shortcut_keys_
bool writeShortcutsToFile(const String &filename)
Write the shortcuts to a data file.
std::pair< String, QAction * > getEntry_(Index pos)
virtual bool setValue(const String &)
Overload this in derived classes!
bool hasDescription(const String &description)
#define BALL_EMBEDDABLE(TYPE, BASE)