BALL::VIEW::ShortcutRegistry Class Reference

ShortcutRegistry. More...

#include <shortcutRegistry.h>

Inheritance diagram for BALL::VIEW::ShortcutRegistry:
Inheritance graph
[legend]

List of all members.


Signals

void shortcutChanged ()

Public Member Functions

virtual ~ShortcutRegistry ()
Destructor.
void registerShortcut (String description, QAction *shortcut)
void clear ()
void clearKeySequences ()
Clear all key sequences for all registered QActions.
bool readShortcutsFromFile (const String &filename)
Read the shortcuts from a data file.
bool writeShortcutsToFile (const String &filename)
Write the shortcuts to a data file.
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!
virtual bool setValue (const String &)
Overload this in derived classes!

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

Detailed Description

ShortcutRegistry.

It takes care of handling all shortcuts. It is responsible for registering, changing single shortcuts or loading entire shortcut-configuration files.


Generated on Thu Aug 6 18:30:56 2009 for BALL by doxygen 1.5.8