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>
54 void registerShortcut(
String description, QAction* shortcut);
60 void clearKeySequences();
63 bool readShortcutsFromFile(const
String& filename);
66 bool writeShortcutsToFile(const
String& filename);
69 bool changeShortcut(QAction* shortcut, const
String& new_sequence);
70 bool changeShortcut(
int index, const
String& new_sequence);
74 bool hasDescription(const
String& description);
75 bool hasKey(const QString& key_seq);
76 bool hasKey(const QKeySequence& key_seq);
82 virtual
bool getValue(
String&) const;
83 virtual
bool setValue(const
String&);
86 void shortcutChanged();
89 static const
char* BETWEEN_SC_SEPERATOR;
90 static const
char* IN_SC_SEPERATOR;
#define BALL_EMBEDDABLE(TYPE, BASE)