OpenWalnut  1.5.0dev
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WQtPropertyTriggerAction Class Reference

Implements a property action for WPropTrigger. More...

#include <WQtPropertyTriggerAction.h>

+ Inheritance diagram for WQtPropertyTriggerAction:
+ Collaboration diagram for WQtPropertyTriggerAction:

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...
 

Detailed Description

Implements a property action for WPropTrigger.

Definition at line 35 of file WQtPropertyTriggerAction.h.

Constructor & Destructor Documentation

◆ WQtPropertyTriggerAction()

WQtPropertyTriggerAction::WQtPropertyTriggerAction ( WPropTrigger  property,
QWidget *  parent = 0 
)

Constructor.

Creates a new action appropriate for the specified property.

Parameters
propertythe property to handle
parentthe parent widget.

Definition at line 34 of file WQtPropertyTriggerAction.cpp.

References changed(), m_connection, propertyChangeNotifier(), and update().

+ Here is the call graph for this function:

◆ ~WQtPropertyTriggerAction()

WQtPropertyTriggerAction::~WQtPropertyTriggerAction ( )
virtual

Destructor.

Definition at line 52 of file WQtPropertyTriggerAction.cpp.

Member Function Documentation

◆ changed

void WQtPropertyTriggerAction::changed ( )
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().

+ Here is the caller graph for this function:

◆ event()

bool WQtPropertyTriggerAction::event ( QEvent event)
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.

Note
QT Doc says: use event() for custom events.
Parameters
eventthe event that got transmitted.
Returns
true if the event got handled properly.

Definition at line 80 of file WQtPropertyTriggerAction.cpp.

References update().

+ Here is the call graph for this function:

◆ propertyChangeNotifier()

void WQtPropertyTriggerAction::propertyChangeNotifier ( )
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().

+ Here is the caller graph for this function:

◆ update()

void WQtPropertyTriggerAction::update ( )
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().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_connection

boost::signals2::connection WQtPropertyTriggerAction::m_connection
protected

The connection for propertyChangeNotifier().

Definition at line 83 of file WQtPropertyTriggerAction.h.

Referenced by WQtPropertyTriggerAction().

◆ m_triggerProperty

WPropTrigger WQtPropertyTriggerAction::m_triggerProperty
protected

The trigger property represented by this widget.

Definition at line 61 of file WQtPropertyTriggerAction.h.

Referenced by changed(), and update().


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