7 #include "gui/action/SSignal.hpp" 9 #include <fwCom/Signal.hxx> 11 #include <fwGui/dialog/MessageDialog.hpp> 13 #include <fwServices/macros.hpp> 24 static const ::fwCom::Signals::SignalKeyType s_TRIGGERED_SIG =
"triggered";
25 static const ::fwCom::Signals::SignalKeyType s_CANCELLED_SIG =
"cancelled";
68 _sstream <<
"Starter Action" << std::endl;
FWGUI_API bool confirmAction()
Confirm that the action must be executed.
FWGUI_API void actionServiceStarting()
Method called when the action service is starting.
#define SLM_TRACE_FUNC()
Trace contextual function signature.
The namespace gui contains the basic services to build the application IHM.
Action that sends a signal when it is triggered.
GUI_API void configuring() override
Configures the service.
FWGUI_API void actionServiceStopping()
Method called when the action service is stopping.
virtual GUI_API void stopping() override
Unregister the action.
FWGUI_API bool getIsActive() const
Return true if action service is active.
Defines the service interface managing the menu items.
virtual GUI_API ~SSignal() noexcept
Destructor. Do nothing.
virtual GUI_API void starting() override
Register the action and check if the action is executable.
virtual GUI_API void info(std::ostream &_sstream) override
Give information about the class. Do nothing.
GUI_API SSignal() noexcept
Constructor. Do nothing.
FWGUI_API void initialize()
Initialize the action.
std::shared_ptr< TriggeredSignalType > m_sigTriggered
Signal trigerred when action has been triggered.
GUI_API void updating() override
Emit the signal.
std::shared_ptr< TriggeredSignalType > m_sigCancelled
Signal trigerred when action has been cancelled.