9 #include "guiQt/config.hpp" 11 #include <fwGui/editor/IEditor.hpp> 13 #include <QListWidget> 59 GUIQT_API static const ::
fwCom::Signals::SignalKeyType s_ITEM_ADDED_SIG;
62 GUIQT_API static const ::
fwCom::Signals::SignalKeyType s_ITEM_REMOVED_SIG;
65 GUIQT_API static const ::
fwCom::Signals::SignalKeyType s_ITEM_DOUBLE_CLICKED_SIG;
75 GUIQT_API static const ::
fwCom::Slots::SlotKeyType s_INSERT_ITEM_SLOT;
76 GUIQT_API static const ::
fwCom::Slots::SlotKeyType s_REMOVE_ITEM_SLOT;
79 void insertItem(
int index,
std::
string value );
82 void removeItem(
int index);
89 bool eventFilter(QObject* watched, QEvent* event) override;
91 typedef ::
fwRuntime::ConfigurationElement::sptr Configuration;
94 virtual
void starting() override;
97 virtual
void stopping() override;
100 virtual
void updating() override;
103 virtual
void swapping() override;
106 virtual
void configuring() override;
110 QPointer<QListWidget> m_listWidget;
115 void onItemDoubleClicked(QListWidgetItem* item);
Namespace containing fw4spl communication tools.
Defines the service interface managing the editor service for object.
This editor allows to draw a list. The currently selected item can be deleted by pressing on "del" ke...
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace guiQt contains the basic services to build the application IHM with Qt...