22 #ifndef SIMPLESTRINGSLISTSELECTIONWIDGET_H_
23 #define SIMPLESTRINGSLISTSELECTIONWIDGET_H_
25 #include <QtGui/QWidget>
27 #include "StringsListSelectionWidgetInterface.h"
28 #include "ui_SimpleStringsListSelectionWidget.h"
32 class TLP_QT_SCOPE SimpleStringsListSelectionWidget :
public QWidget,
public StringsListSelectionWidgetInterface,
public Ui::SimpleStringsListSelectionData {
38 SimpleStringsListSelectionWidget(QWidget *parent = NULL,
const unsigned int maxSelectedStringsListSize = 0);
40 void setUnselectedStringsList(
const std::vector<std::string> &unselectedStringsList);
42 void setSelectedStringsList(
const std::vector<std::string> &selectedStringsList);
44 void clearUnselectedStringsList();
46 void clearSelectedStringsList();
48 void setMaxSelectedStringsListSize(
const unsigned int maxSelectedStringsListSize);
50 std::vector<std::string> getSelectedStringsList()
const;
52 std::vector<std::string> getUnselectedStringsList()
const;
54 void selectAllStrings();
56 void unselectAllStrings();
60 void pressButtonSelectAll();
61 void pressButtonUnselectAll();
62 void listItemClicked(QListWidgetItem *item);
64 void pressButtonDown();
68 void qtWidgetsConnection();
70 unsigned int maxSelectedStringsListSize;