9 #include "uiMedDataQt/config.hpp" 10 #include "uiMedDataQt/widget/Selector.hpp" 12 #include <fwCom/Slot.hpp> 13 #include <fwCom/Slots.hpp> 15 #include <fwData/Vector.hpp> 17 #include <fwGui/editor/IEditor.hpp> 19 #include <fwMedData/SeriesDB.hpp> 21 #include <QAbstractItemView> 61 class UIMEDDATAQT_CLASS_API
SSelector :
public QObject,
72 UIMEDDATAQT_API
virtual ~
SSelector() noexcept;
77 UIMEDDATAQT_API static const ::
fwCom::Signals::SignalKeyType s_SERIES_DOUBLE_CLICKED_SIG;
91 virtual
void starting() override;
94 virtual
void stopping() override;
97 virtual
void configuring() override;
100 virtual
void updating() override;
102 virtual
void info(
std::ostream& _sstream ) override;
111 void onSelectedSeries(QVector< ::
fwMedData::Series::sptr > selection,
112 QVector< ::
fwMedData::Series::sptr > deselection);
120 void onDoubleClick(const QModelIndex& index);
126 void onRemoveSeries(QVector< ::
fwMedData::Series::sptr > selection);
134 static const ::
fwCom::Slots::SlotKeyType s_ADD_SERIES_SLOT;
135 static const ::
fwCom::Slots::SlotKeyType s_REMOVE_SERIES_SLOT;
139 void addSeries(::
fwMedData::SeriesDB::ContainerType addedSeries);
141 void removeSeries(::
fwMedData::SeriesDB::ContainerType removedSeries);
144 RemoveSeriesSlotType::sptr m_slotRemoveSeries;
149 ::
fwData::Vector::sptr getSelection();
153 std::
string m_selectionId;
156 QPointer< ::
uiMedDataQt::widget::Selector > m_selectorWidget;
159 SeriesDoubleClickedSignalType::sptr m_sigSeriesDoubleClicked;
162 ::
uiMedDataQt::widget::Selector::SeriesIconType m_seriesIcons;
165 bool m_allowedRemove;
168 QAbstractItemView::SelectionMode m_selectionMode;
The namespace uiMedDataQt contains editors for medical data.
This class is a helper to define the connections of a service and its data.
Namespace containing medical data.
Namespace containing fw4spl communication tools.
Defines the service interface managing the editor service for object.
This editor shows information about the medical data. It allows to manipulate (select, erase, ...) studies and series.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Contains the representation of the data objects used in the framework.