22 #ifndef SIMPLESTRINGSLISTSELECTIONWIDGET_H_
23 #define SIMPLESTRINGSLISTSELECTIONWIDGET_H_
27 #include "StringsListSelectionWidgetInterface.h"
30 class SimpleStringsListSelectionData;
33 class QListWidgetItem;
37 class TLP_QT_SCOPE SimpleStringsListSelectionWidget :
public QWidget,
public StringsListSelectionWidgetInterface {
41 Ui::SimpleStringsListSelectionData* _ui;
45 SimpleStringsListSelectionWidget(QWidget *parent = NULL,
const unsigned int maxSelectedStringsListSize = 0);
46 ~SimpleStringsListSelectionWidget();
48 void setUnselectedStringsList(
const std::vector<std::string> &unselectedStringsList);
50 void setSelectedStringsList(
const std::vector<std::string> &selectedStringsList);
52 void clearUnselectedStringsList();
54 void clearSelectedStringsList();
56 void setMaxSelectedStringsListSize(
const unsigned int maxSelectedStringsListSize);
58 std::vector<std::string> getSelectedStringsList()
const;
60 std::vector<std::string> getUnselectedStringsList()
const;
62 void selectAllStrings();
64 void unselectAllStrings();
68 void pressButtonSelectAll();
69 void pressButtonUnselectAll();
70 void listItemClicked(QListWidgetItem *item);
72 void pressButtonDown();
76 void qtWidgetsConnection();
78 unsigned int maxSelectedStringsListSize;