25 #include <QApplication>
27 #include "core/common/WPropertyVariable.h"
29 #include "../events/WEventTypes.h"
30 #include "../events/WPropertyChangedEvent.h"
32 #include "WQtPropertyTriggerAction.h"
36 m_triggerProperty( property )
40 setToolTip( QString::fromStdString( property->getDescription() ) );
41 setText( QString::fromStdString( property->getName() ) );
49 connect(
this, SIGNAL( toggled(
bool ) ),
this, SLOT(
changed() ) );
83 if(
event->type() == WQT_PROPERTY_CHANGED_EVENT )
89 return QAction::event(
event );
Event signalling a new module has been associated with the root container in the kernel.
virtual void propertyChangeNotifier()
Callback for WPropertyBase::getChangeCondition.
WPropTrigger m_triggerProperty
The trigger property represented by this widget.
virtual bool event(QEvent *event)
Custom event dispatcher.
virtual void update()
Called whenever the widget should update.
virtual ~WQtPropertyTriggerAction()
Destructor.
WQtPropertyTriggerAction(WPropTrigger property, QWidget *parent=0)
Constructor.
boost::signals2::connection m_connection
The connection for propertyChangeNotifier().
void changed()
called whenever the user modifies the action
@ PV_TRIGGER_TRIGGERED
Trigger property: got triggered.
@ PV_TRIGGER_READY
Trigger property: is ready to be triggered (again)