21 #ifndef STRINGLISTSELECTIONWIDGET_H_
22 #define STRINGLISTSELECTIONWIDGET_H_
26 #include <tulip/StringsListSelectionWidgetInterface.h>
46 class TLP_QT_SCOPE StringsListSelectionWidget :
public QWidget,
47 public StringsListSelectionWidgetInterface {
50 enum ListType { SIMPLE_LIST, DOUBLE_LIST, NON_ORDERABLE_LIST };
59 StringsListSelectionWidget(QWidget *parent =
nullptr,
const ListType listType = DOUBLE_LIST,
60 const unsigned int maxSelectedStringsListSize = 0);
70 StringsListSelectionWidget(
const std::vector<std::string> &unselectedStringsList,
71 QWidget *parent =
nullptr,
const ListType listType = DOUBLE_LIST,
72 const unsigned int maxSelectedStringsListSize = 0);
78 void setListType(
const ListType listType);
84 void setUnselectedStringsList(
const std::vector<std::string> &unselectedStringsList)
override;
90 void setSelectedStringsList(
const std::vector<std::string> &selectedStringsList)
override;
95 void clearUnselectedStringsList()
override;
100 void clearSelectedStringsList()
override;
106 void setUnselectedStringsListLabel(
const std::string &unselectedStringsListLabel);
112 void setSelectedStringsListLabel(
const std::string &selectedStringsListLabel);
117 void setMaxSelectedStringsListSize(
const unsigned int maxSelectedStringsListSize)
override;
122 std::vector<std::string> getSelectedStringsList()
const override;
127 std::vector<std::string> getUnselectedStringsList()
const override;
132 std::vector<std::string> getCompleteStringsList()
const;
137 void selectAllStrings()
override;
142 void unselectAllStrings()
override;
146 StringsListSelectionWidgetInterface *stringsListSelectionWidget;