casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
casa::QtActionSynchronizer Class Reference

This class is used to synchronize the checked state of actions with checkable buttons or other actions. More...

#include <QtActionGroup.qo.h>

Inheritance diagram for casa::QtActionSynchronizer:
casa::QtActionGroup

Public Member Functions

 QtActionSynchronizer (QObject *parent=NULL)
 Constructor which takes an optional parent. More...
 
virtual ~QtActionSynchronizer ()
 Destructor. More...
 
virtual void synchronize (QAction *action, QAbstractButton *button)
 Synchronizes the given action in this group with the given button or other action. More...
 
virtual void synchronize (QAction *action, QAction *otherAction)
 
virtual void unsynchronize (QAction *action)
 Unsynchronizes all buttons/actions associated with the given in this group. More...
 
virtual void unsynchronize (QAbstractButton *button)
 
virtual void unsynchronize (QAction *action, QAbstractButton *button)
 Unsyncrhonizes the given action in this group with the given button/action. More...
 
virtual void unsynchronize (QAction *action, QAction *otherAction)
 

Protected Slots

virtual void actionToggled (bool checked)
 Slot for when an action is toggled, which calls actionTriggered_() as needed. More...
 
virtual void actionTriggered (bool checked)
 Slot for when an action is triggered, which calls actionTriggered_() as needed. More...
 
virtual void synchronizedToggled (bool checked)
 Slot for when a synchronizing button/action is toggled, which calls synchronizedTriggered_() as needed. More...
 
virtual void synchronizedTriggered (bool checked)
 Slot for when a synchronizing button/action is clicked/triggered, which calls synchronizedTriggered_() as needed. More...
 

Protected Member Functions

virtual void actionTriggered_ (QAction *action, bool checked)
 Method which updates the actions/buttons associated with the given action. More...
 
virtual void synchronizedTriggered_ (QAction *action, QAbstractButton *button, bool checked)
 Method which updates the action(s) associated with the given action or button to the given checked state. More...
 

Protected Attributes

QMultiMap< QAction
*, QAbstractButton * > 
itsSynchedButtons_
 Synchronized actions maps. More...
 
QMultiMap< QAction *, QAction * > itsSynchedActions_
 

Detailed Description

This class is used to synchronize the checked state of actions with checkable buttons or other actions.

This makes it so that clicking the synchronized button/action has the same effect as clicking the action itself.

Definition at line 43 of file QtActionGroup.qo.h.

Constructor & Destructor Documentation

casa::QtActionSynchronizer::QtActionSynchronizer ( QObject *  parent = NULL)

Constructor which takes an optional parent.

virtual casa::QtActionSynchronizer::~QtActionSynchronizer ( )
virtual

Destructor.

Member Function Documentation

virtual void casa::QtActionSynchronizer::actionToggled ( bool  checked)
protectedvirtualslot

Slot for when an action is toggled, which calls actionTriggered_() as needed.

virtual void casa::QtActionSynchronizer::actionTriggered ( bool  checked)
protectedvirtualslot

Slot for when an action is triggered, which calls actionTriggered_() as needed.

virtual void casa::QtActionSynchronizer::actionTriggered_ ( QAction *  action,
bool  checked 
)
protectedvirtual

Method which updates the actions/buttons associated with the given action.

virtual void casa::QtActionSynchronizer::synchronize ( QAction *  action,
QAbstractButton *  button 
)
virtual

Synchronizes the given action in this group with the given button or other action.

Reimplemented in casa::QtActionGroup.

virtual void casa::QtActionSynchronizer::synchronize ( QAction *  action,
QAction *  otherAction 
)
virtual

Reimplemented in casa::QtActionGroup.

virtual void casa::QtActionSynchronizer::synchronizedToggled ( bool  checked)
protectedvirtualslot

Slot for when a synchronizing button/action is toggled, which calls synchronizedTriggered_() as needed.

virtual void casa::QtActionSynchronizer::synchronizedTriggered ( bool  checked)
protectedvirtualslot

Slot for when a synchronizing button/action is clicked/triggered, which calls synchronizedTriggered_() as needed.

virtual void casa::QtActionSynchronizer::synchronizedTriggered_ ( QAction *  action,
QAbstractButton *  button,
bool  checked 
)
protectedvirtual

Method which updates the action(s) associated with the given action or button to the given checked state.

virtual void casa::QtActionSynchronizer::unsynchronize ( QAction *  action)
virtual

Unsynchronizes all buttons/actions associated with the given in this group.

virtual void casa::QtActionSynchronizer::unsynchronize ( QAbstractButton *  button)
virtual
virtual void casa::QtActionSynchronizer::unsynchronize ( QAction *  action,
QAbstractButton *  button 
)
virtual

Unsyncrhonizes the given action in this group with the given button/action.

virtual void casa::QtActionSynchronizer::unsynchronize ( QAction *  action,
QAction *  otherAction 
)
virtual

Member Data Documentation

QMultiMap<QAction*, QAction*> casa::QtActionSynchronizer::itsSynchedActions_
protected

Definition at line 78 of file QtActionGroup.qo.h.

QMultiMap<QAction*, QAbstractButton*> casa::QtActionSynchronizer::itsSynchedButtons_
protected

Synchronized actions maps.

Definition at line 77 of file QtActionGroup.qo.h.


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