INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
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.

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