gepetto::gui::ShortcutFactory Class Reference

#include <gepetto/gui/shortcut-factory.hh>

Inheritance diagram for gepetto::gui::ShortcutFactory:
[legend]
Collaboration diagram for gepetto::gui::ShortcutFactory:
[legend]

Public Slots

void open ()
 Open the widget that allows to change the different shortcut. More...
 

Public Member Functions

 ShortcutFactory ()
 
 ~ShortcutFactory ()
 
void addBinding (QString widgetName, QString actionName, QAction *action)
 Add a binding to a given widget. More...
 

Constructor & Destructor Documentation

gepetto::gui::ShortcutFactory::ShortcutFactory ( )
gepetto::gui::ShortcutFactory::~ShortcutFactory ( )

Member Function Documentation

void gepetto::gui::ShortcutFactory::addBinding ( QString  widgetName,
QString  actionName,
QAction *  action 
)

Add a binding to a given widget.

If widgetName doesn't exists, then it will be add. If actionName exists, do nothing

Parameters
widgetNamename of the corresponding widget
actionNamename of the action
actioninstance of the action
void gepetto::gui::ShortcutFactory::open ( )
slot

Open the widget that allows to change the different shortcut.