BALL
1.4.2
|
#include <BALL/VIEW/KERNEL/shortcutRegistry.h>
Signals | |
void | shortcutChanged () |
Public Member Functions | |
ShortcutRegistry () | |
virtual | ~ShortcutRegistry () |
void | registerShortcut (String description, QAction *shortcut) |
void | clear () |
void | clearKeySequences () |
Clear all key sequences for all registered QActions. More... | |
bool | readShortcutsFromFile (const String &filename) |
Read the shortcuts from a data file. More... | |
bool | writeShortcutsToFile (const String &filename) |
Write the shortcuts to a data file. More... | |
bool | changeShortcut (QAction *shortcut, const String &new_sequence) |
bool | changeShortcut (int index, const String &new_sequence) |
size_t | size () |
bool | hasDescription (const String &description) |
bool | hasKey (const QString &key_seq) |
bool | hasKey (const QKeySequence &key_seq) |
bool | hasKey (const String &key_seq) |
std::pair< String, QAction * > | operator[] (Index i) |
virtual bool | getValue (String &) const |
Overload this in derived classes! More... | |
virtual bool | setValue (const String &) |
Overload this in derived classes! More... | |
Public Member Functions inherited from BALL::Embeddable | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Embeddable (const String &identifier="<Embeddable>") | |
Embeddable (const Embeddable &embeddable) | |
virtual | ~Embeddable () |
void | setIdentifier (const String &identifier) |
const String & | getIdentifier () const |
void | unregisterThis () |
virtual void | registerThis () |
Public Member Functions inherited from BALL::VIEW::PreferencesEntry::ExtendedPreferencesObject | |
ExtendedPreferencesObject () | |
virtual | ~ExtendedPreferencesObject () |
Protected Member Functions | |
std::pair< String, QAction * > | getEntry_ (Index pos) |
Protected Attributes | |
std::map< String, QAction * > | shortcuts_ |
std::map< String, String > | unknown_shortcuts_ |
HashSet< String > | shortcut_keys_ |
Static Protected Attributes | |
static const char * | BETWEEN_SC_SEPERATOR |
static const char * | IN_SC_SEPERATOR |
Additional Inherited Members | |
Public Types inherited from BALL::Embeddable | |
typedef std::vector< Embeddable * > | EmbeddableVector |
Static Protected Member Functions inherited from BALL::Embeddable | |
static void | registerInstance_ (const std::type_info &type, const Embeddable *instance) |
static void | unregisterInstance_ (const Embeddable *instance) |
static Size | countInstances_ (const std::type_info &type) |
static Embeddable * | getInstance_ (const std::type_info &type, Position index) |
static Embeddable * | getInstance_ (const std::type_info &type, const String &identifier) |
ShortcutRegistry. It takes care of handling all shortcuts. It is responsible for registering, changing single shortcuts or loading entire shortcut-configuration files.
Definition at line 36 of file shortcutRegistry.h.
BALL::VIEW::ShortcutRegistry::ShortcutRegistry | ( | ) |
|
virtual |
Destructor
bool BALL::VIEW::ShortcutRegistry::changeShortcut | ( | QAction * | shortcut, |
const String & | new_sequence | ||
) |
void BALL::VIEW::ShortcutRegistry::clear | ( | ) |
void BALL::VIEW::ShortcutRegistry::clearKeySequences | ( | ) |
Clear all key sequences for all registered QActions.
Overload this in derived classes!
Implements BALL::VIEW::PreferencesEntry::ExtendedPreferencesObject.
bool BALL::VIEW::ShortcutRegistry::hasKey | ( | const QString & | key_seq | ) |
bool BALL::VIEW::ShortcutRegistry::hasKey | ( | const QKeySequence & | key_seq | ) |
Read the shortcuts from a data file.
void BALL::VIEW::ShortcutRegistry::registerShortcut | ( | String | description, |
QAction * | shortcut | ||
) |
Overload this in derived classes!
Implements BALL::VIEW::PreferencesEntry::ExtendedPreferencesObject.
|
signal |
size_t BALL::VIEW::ShortcutRegistry::size | ( | ) |
Write the shortcuts to a data file.
|
staticprotected |
Definition at line 89 of file shortcutRegistry.h.
|
staticprotected |
Definition at line 90 of file shortcutRegistry.h.
Definition at line 96 of file shortcutRegistry.h.
|
protected |
Definition at line 94 of file shortcutRegistry.h.
Definition at line 95 of file shortcutRegistry.h.