OpenWalnut
1.5.0dev
|
Implements a property action for WPropBool. More...
#include <WQtPropertyBoolAction.h>
Public Slots | |
void | changed () |
called whenever the user modifies the action More... | |
Public Member Functions | |
WQtPropertyBoolAction (WPropBool property, QWidget *parent=0) | |
Constructor. More... | |
virtual | ~WQtPropertyBoolAction () |
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 | |
WPropBool | m_boolProperty |
The boolean property represented by this widget. More... | |
boost::signals2::connection | m_connection |
The connection for propertyChangeNotifier(). More... | |
Implements a property action for WPropBool.
Definition at line 35 of file WQtPropertyBoolAction.h.
WQtPropertyBoolAction::WQtPropertyBoolAction | ( | WPropBool | 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 WQtPropertyBoolAction.cpp.
References changed(), m_connection, propertyChangeNotifier(), and update().
|
virtual |
Destructor.
Definition at line 52 of file WQtPropertyBoolAction.cpp.
|
slot |
called whenever the user modifies the action
Definition at line 63 of file WQtPropertyBoolAction.cpp.
References m_boolProperty.
Referenced by WQtPropertyBoolAction().
|
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 74 of file WQtPropertyBoolAction.cpp.
References update().
|
protectedvirtual |
Callback for WPropertyBase::getChangeCondition.
It emits an event to ensure all updates are done in gui thread.
Definition at line 69 of file WQtPropertyBoolAction.cpp.
Referenced by WQtPropertyBoolAction().
|
protectedvirtual |
Called whenever the widget should update.
Definition at line 57 of file WQtPropertyBoolAction.cpp.
References m_boolProperty.
Referenced by event(), and WQtPropertyBoolAction().
|
protected |
The boolean property represented by this widget.
Definition at line 61 of file WQtPropertyBoolAction.h.
|
protected |
The connection for propertyChangeNotifier().
Definition at line 83 of file WQtPropertyBoolAction.h.
Referenced by WQtPropertyBoolAction().