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);
77 bool hasKey(
const String& key_seq);
79 std::pair<String, QAction*> operator[](
Index i);
82 virtual bool getValue(
String&)
const;
83 virtual bool setValue(
const String&);
86 void shortcutChanged();
92 std::pair<String, QAction*> getEntry_(
Index pos);
102 #endif // BALL_VIEW_KERNEL_SHORTCUTREGISTRY_H