orca-robotics


INTRODUCTION
Overview
Download and Install
Documentation

REPOSITORY
Interfaces
Drivers
Libraries
Utilities
Software Map

DEVELOPER
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydroqguielementutil::ShortcutKeyManager Class Reference

manages sharing of shortcut keys (a global resource) between GuiElements. More...

#include <shortcutkeymanager.h>

Inherits hydroutil::Uncopyable.

Inheritance diagram for hydroqguielementutil::ShortcutKeyManager:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void subscribeToShortcutKey (QAction *elementAction, QKeySequence key, bool ownExclusively, QObject *triggeree)
void unsubscribeFromShortcutKey (QKeySequence key, QObject *triggeree)
 WARNING: remember to unsubscribeFromShortcutKey in the destructor, otherwise segfaults will occur.

Detailed Description

manages sharing of shortcut keys (a global resource) between GuiElements.

GuiElements can subscribe for shortcuts. They must unsubscribe before they fall out of scope, or a seg fault will occur.

Shortcut Keys can either be owned:

  • exclusively (last-to-register gets triggered), or
  • inclusively (everyone gets triggered)

Author:
Alex Brooks, Tobias Kaupp


Member Function Documentation

void hydroqguielementutil::ShortcutKeyManager::subscribeToShortcutKey QAction *  elementAction,
QKeySequence  key,
bool  ownExclusively,
QObject *  triggeree
 

WARNING: if a QAction should have a shortcut (e.g. ESC), then do *not* assign them in the guielement by doing toolBar()->setShortcut(QKeySequence(Qt::Esc)). Otherwise you'll end up with an ambiguity Qt can't resolve. Use this function instead.


The documentation for this class was generated from the following files:
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5