17 #ifndef GEPETTO_GUI_SELECTION_HANDLER_H__
18 #define GEPETTO_GUI_SELECTION_HANDLER_H__
50 virtual QString
getName() {
return "None"; }
66 virtual QString
getName() {
return "Unique"; }
79 virtual QString
getName() {
return "Multi"; }
99 void getBodies(QStringList selectedBodies);
100 void changeMode(
int index);
105 std::vector<SelectionMode*> modes_;
108 QStringList selected_;
Definition: selection-handler.hh:69
MultiSelection(WindowsManagerPtr_t wsm)
virtual QString getName()
Definition: selection-handler.hh:79
virtual void onSelect(SelectionEvent *event)
QStringList selectedBodies_
Definition: selection-handler.hh:82
Definition: selection-event.hh:31
Definition: selection-handler.hh:85
SelectionHandler(WindowsManagerPtr_t wsm, QWidget *parent=0)
void addMode(SelectionMode *mode)
Definition: selection-handler.hh:31
QString currentSelected_
Definition: selection-handler.hh:53
QString currentBody()
Definition: selection-handler.hh:39
void selectedBodies(QStringList selectedBodies)
~SelectionMode()
Definition: selection-handler.hh:35
SelectionMode(WindowsManagerPtr_t wsm)
Definition: selection-handler.hh:34
virtual void reset()
Definition: selection-handler.hh:37
virtual void onSelect(SelectionEvent *event)=0
virtual QString getName()
Definition: selection-handler.hh:50
WindowsManagerPtr_t wsm_
Definition: selection-handler.hh:54
Class that allows to select one body.
Definition: selection-handler.hh:58
virtual QString getName()
Definition: selection-handler.hh:66
virtual void onSelect(SelectionEvent *event)
UniqueSelection(WindowsManagerPtr_t wsm)
viewer::shared_ptr< WindowsManager > WindowsManagerPtr_t
Definition: fwd.hh:58
Definition: action-search-bar.hh:27