7 #include "gui/action/SBooleanSlotCaller.hpp" 9 #include <fwCom/Slot.hpp> 10 #include <fwCom/Slot.hxx> 11 #include <fwCom/Slots.hpp> 12 #include <fwCom/Slots.hxx> 14 #include <fwCore/base.hpp> 16 #include <fwGui/dialog/MessageDialog.hpp> 18 #include <fwRuntime/Extension.hpp> 19 #include <fwRuntime/helper.hpp> 21 #include <fwServices/macros.hpp> 23 #include <fwTools/fwID.hpp> 25 #include <boost/regex.hpp> 50 for(SlotInfoType
info : m_slotInfos)
52 HasSlotIDType HasSlotId =
info.first;
53 ::fwCom::Slots::SlotKeyType slotKey =
info.second;
58 ::fwCom::HasSlots::sptr hasSlots = std::dynamic_pointer_cast<
::fwCom::HasSlots >(obj);
59 SLM_ASSERT(
"Object with id " << HasSlotId <<
" is not a HasSlots", hasSlots);
61 ::fwCom::SlotBase::sptr slot = hasSlots->slot(slotKey);
GUI_API void updating() override
This method run the specified slots.
virtual GUI_API ~SBooleanSlotCaller() noexcept
Destructor. Do nothing.
The namespace gui contains the basic services to build the application IHM.
GUI_API SBooleanSlotCaller() noexcept
Constructor. Do nothing.
This class proposes a mapping between a SlotKeyType and a SlotBase.
FWGUI_API bool getIsActive() const
Return true if action service is active.
Defines the service interface managing the menu items.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
virtual GUI_API void info(std::ostream &_sstream) override
This method gives information about the class.
This action runs a slot given by HasSlot id and slot key with a boolean in paramter representing the ...