22 #ifndef STRINGLISTSELECTIONWIDGET_H_
23 #define STRINGLISTSELECTIONWIDGET_H_
27 #include "StringsListSelectionWidgetInterface.h"
40 class TLP_QT_SCOPE StringsListSelectionWidget:
public QWidget,
41 public StringsListSelectionWidgetInterface {
46 SIMPLE_LIST, DOUBLE_LIST
55 StringsListSelectionWidget(QWidget *parent = NULL,
const ListType listType =
56 DOUBLE_LIST,
const unsigned int maxSelectedStringsListSize = 0);
65 StringsListSelectionWidget(
66 const std::vector<std::string> &unselectedStringsList,
67 QWidget *parent = NULL,
const ListType listType = DOUBLE_LIST,
68 const unsigned int maxSelectedStringsListSize = 0);
74 void setListType(
const ListType listType);
80 void setUnselectedStringsList(
81 const std::vector<std::string> &unselectedStringsList);
87 void setSelectedStringsList(
88 const std::vector<std::string> &selectedStringsList);
93 void clearUnselectedStringsList();
98 void clearSelectedStringsList();
104 void setUnselectedStringsListLabel(
105 const std::string &unselectedStringsListLabel);
111 void setSelectedStringsListLabel(
112 const std::string &selectedStringsListLabel);
117 void setMaxSelectedStringsListSize(
118 const unsigned int maxSelectedStringsListSize);
123 std::vector<std::string> getSelectedStringsList()
const;
128 std::vector<std::string> getUnselectedStringsList()
const;
133 std::vector<std::string> getCompleteStringsList()
const;
138 void selectAllStrings();
143 void unselectAllStrings();
148 StringsListSelectionWidgetInterface *stringsListSelectionWidget;