22 #ifndef STRINGLISTSELECTIONWIDGET_H_
23 #define STRINGLISTSELECTIONWIDGET_H_
27 #include <tulip/StringsListSelectionWidgetInterface.h>
42 class TLP_QT_SCOPE StringsListSelectionWidget:
public QWidget,
43 public StringsListSelectionWidgetInterface {
48 SIMPLE_LIST, DOUBLE_LIST
57 StringsListSelectionWidget(QWidget *parent = NULL,
const ListType listType =
58 DOUBLE_LIST,
const unsigned int maxSelectedStringsListSize = 0);
67 StringsListSelectionWidget(
68 const std::vector<std::string> &unselectedStringsList,
69 QWidget *parent = NULL,
const ListType listType = DOUBLE_LIST,
70 const unsigned int maxSelectedStringsListSize = 0);
76 void setListType(
const ListType listType);
82 void setUnselectedStringsList(
83 const std::vector<std::string> &unselectedStringsList);
89 void setSelectedStringsList(
90 const std::vector<std::string> &selectedStringsList);
95 void clearUnselectedStringsList();
100 void clearSelectedStringsList();
106 void setUnselectedStringsListLabel(
107 const std::string &unselectedStringsListLabel);
113 void setSelectedStringsListLabel(
114 const std::string &selectedStringsListLabel);
119 void setMaxSelectedStringsListSize(
120 const unsigned int maxSelectedStringsListSize);
125 std::vector<std::string> getSelectedStringsList()
const;
130 std::vector<std::string> getUnselectedStringsList()
const;
135 std::vector<std::string> getCompleteStringsList()
const;
140 void selectAllStrings();
145 void unselectAllStrings();
150 StringsListSelectionWidgetInterface *stringsListSelectionWidget;