casa
$Rev:20696$
|
This class is used to synchronize the checked state of actions with checkable buttons or other actions. More...
#include <QtActionGroup.qo.h>
Public Member Functions | |
QtActionSynchronizer (QObject *parent=NULL) | |
Constructor which takes an optional parent. | |
virtual | ~QtActionSynchronizer () |
Destructor. | |
virtual void | synchronize (QAction *action, QAbstractButton *button) |
Synchronizes the given action in this group with the given button or other action. | |
virtual void | synchronize (QAction *action, QAction *otherAction) |
virtual void | unsynchronize (QAction *action) |
Unsynchronizes all buttons/actions associated with the given in this group. | |
virtual void | unsynchronize (QAbstractButton *button) |
virtual void | unsynchronize (QAction *action, QAbstractButton *button) |
Unsyncrhonizes the given action in this group with the given button/action. | |
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. | |
virtual void | actionTriggered (bool checked) |
Slot for when an action is triggered, which calls actionTriggered_() as needed. | |
virtual void | synchronizedToggled (bool checked) |
Slot for when a synchronizing button/action is toggled, which calls synchronizedTriggered_() as needed. | |
virtual void | synchronizedTriggered (bool checked) |
Slot for when a synchronizing button/action is clicked/triggered, which calls synchronizedTriggered_() as needed. | |
Protected Member Functions | |
virtual void | actionTriggered_ (QAction *action, bool checked) |
Method which updates the actions/buttons associated with the given action. | |
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. | |
Protected Attributes | |
QMultiMap< QAction *, QAbstractButton * > | itsSynchedButtons_ |
QMultiMap< QAction *, QAction * > | itsSynchedActions_ |
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.
casa::QtActionSynchronizer::QtActionSynchronizer | ( | QObject * | parent = NULL | ) |
Constructor which takes an optional parent.
virtual casa::QtActionSynchronizer::~QtActionSynchronizer | ( | ) | [virtual] |
Destructor.
virtual void casa::QtActionSynchronizer::actionToggled | ( | bool | checked | ) | [protected, virtual, slot] |
Slot for when an action is toggled, which calls actionTriggered_() as needed.
Reimplemented in casa::QtActionGroup.
virtual void casa::QtActionSynchronizer::actionTriggered | ( | bool | checked | ) | [protected, virtual, slot] |
Slot for when an action is triggered, which calls actionTriggered_() as needed.
Reimplemented in casa::QtActionGroup.
virtual void casa::QtActionSynchronizer::actionTriggered_ | ( | QAction * | action, |
bool | checked | ||
) | [protected, virtual] |
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 | ) | [protected, virtual, slot] |
Slot for when a synchronizing button/action is toggled, which calls synchronizedTriggered_() as needed.
virtual void casa::QtActionSynchronizer::synchronizedTriggered | ( | bool | checked | ) | [protected, virtual, slot] |
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 | ||
) | [protected, virtual] |
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] |
QMultiMap<QAction*, QAction*> casa::QtActionSynchronizer::itsSynchedActions_ [protected] |
Definition at line 78 of file QtActionGroup.qo.h.
QMultiMap<QAction*, QAbstractButton*> casa::QtActionSynchronizer::itsSynchedButtons_ [protected] |