9 #include "guiQt/config.hpp" 11 #include <fwActivities/registry/Activities.hpp> 12 #include <fwActivities/registry/ActivityMsg.hpp> 14 #include <fwCom/Signal.hpp> 15 #include <fwCom/Signals.hpp> 16 #include <fwCom/Slot.hpp> 17 #include <fwCom/Slots.hpp> 19 #include <fwGui/view/IActivityView.hpp> 21 #include <fwGuiQt/container/QtContainer.hpp> 23 #include <fwMedData/ActivitySeries.hpp> 25 #include <fwServices/IAppConfigManager.hpp> 27 #include <fwTools/Failed.hpp> 105 GUIQT_API static const ::
fwCom::Signals::SignalKeyType s_ACTIVITY_SELECTED_SIG;
107 GUIQT_API static const ::
fwCom::Signals::SignalKeyType s_NOTHING_SELECTED_SIG;
113 virtual
void starting() override;
118 virtual
void stopping() override;
124 virtual
void updating() override;
131 virtual
void swapping() override;
137 virtual
void configuring() override;
139 virtual
void info(
std::ostream& _sstream ) override;
143 typedef
std::set<
std::
string > ActivityIdType;
145 struct SDynamicViewInfo
147 ::fwGuiQt::container::QtContainer::sptr container;
148 ::fwServices::IAppConfigManager::sptr helper;
155 std::string viewConfigID;
156 ReplaceMapType replaceMap;
157 ::fwMedData::ActivitySeries::sptr activitySeries;
160 typedef std::map< QWidget*, SDynamicViewInfo > SDynamicViewInfoMapType;
165 void launchTab(SDynamicViewInfo& info);
171 virtual void launchActivity(::fwMedData::ActivitySeries::sptr activitySeries)
override;
177 virtual void buildMainActivity();
180 SDynamicViewInfo createViewInfo(::fwMedData::ActivitySeries::sptr activitySeries);
187 void closeTab(
int index,
bool forceClose );
192 void closeTabSignal(
int index);
195 void changedTab(
int index);
199 std::map< std::string, unsigned int > m_titleToCount;
200 std::set< std::string > m_tabIDList;
202 ActivityIdType m_activityIds;
204 SDynamicViewInfoMapType m_dynamicInfoMap;
205 bool m_dynamicConfigStartStop;
207 QPointer<QTabWidget> m_tabWidget;
208 QPointer<QWidget> m_currentWidget;
210 ActivitySelectedSignalType::sptr m_sigActivitySelected;
211 NothingSelectedSignalType::sptr m_sigNothingSelected;
213 bool m_mainActivityClosable;
This editor manages tabs containing activities.
Namespace containing fw4spl communication tools.
Activity information sent by signal to launch new activities in a tab.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.
Defines the base class for services displaying activity view.
The namespace guiQt contains the basic services to build the application IHM with Qt...