OpenWalnut
1.5.0dev
|
Implements a property action for WPropTrigger. More...
#include <WQtPropertyTriggerAction.h>
Public Slots | |
void | changed () |
called whenever the user modifies the action More... | |
Public Member Functions | |
WQtPropertyTriggerAction (WPropTrigger property, QWidget *parent=0) | |
Constructor. More... | |
virtual | ~WQtPropertyTriggerAction () |
Destructor. More... | |
Protected Member Functions | |
virtual void | update () |
Called whenever the widget should update. More... | |
virtual void | propertyChangeNotifier () |
Callback for WPropertyBase::getChangeCondition. More... | |
virtual bool | event (QEvent *event) |
Custom event dispatcher. More... | |
Protected Attributes | |
WPropTrigger | m_triggerProperty |
The trigger property represented by this widget. More... | |
boost::signals2::connection | m_connection |
The connection for propertyChangeNotifier(). More... | |
Implements a property action for WPropTrigger.
Definition at line 35 of file WQtPropertyTriggerAction.h.
WQtPropertyTriggerAction::WQtPropertyTriggerAction | ( | WPropTrigger | property, |
QWidget * | parent = 0 |
||
) |
Constructor.
Creates a new action appropriate for the specified property.
property | the property to handle |
parent | the parent widget. |
Definition at line 34 of file WQtPropertyTriggerAction.cpp.
References changed(), m_connection, propertyChangeNotifier(), and update().
|
virtual |
Destructor.
Definition at line 52 of file WQtPropertyTriggerAction.cpp.
|
slot |
called whenever the user modifies the action
Definition at line 63 of file WQtPropertyTriggerAction.cpp.
References m_triggerProperty, WPVBaseTypes::PV_TRIGGER_READY, and WPVBaseTypes::PV_TRIGGER_TRIGGERED.
Referenced by WQtPropertyTriggerAction().
|
protectedvirtual |
Custom event dispatcher.
Gets called by QT's Event system every time an event got sent to this widget. This event handler processes property change events.
event | the event that got transmitted. |
Definition at line 80 of file WQtPropertyTriggerAction.cpp.
References update().
|
protectedvirtual |
Callback for WPropertyBase::getChangeCondition.
It emits an event to ensure all updates are done in gui thread.
Definition at line 75 of file WQtPropertyTriggerAction.cpp.
Referenced by WQtPropertyTriggerAction().
|
protectedvirtual |
Called whenever the widget should update.
Definition at line 57 of file WQtPropertyTriggerAction.cpp.
References m_triggerProperty, and WPVBaseTypes::PV_TRIGGER_TRIGGERED.
Referenced by event(), and WQtPropertyTriggerAction().
|
protected |
The connection for propertyChangeNotifier().
Definition at line 83 of file WQtPropertyTriggerAction.h.
Referenced by WQtPropertyTriggerAction().
|
protected |
The trigger property represented by this widget.
Definition at line 61 of file WQtPropertyTriggerAction.h.