21 #ifndef SIMPLESTRINGSLISTSELECTIONWIDGET_H_
22 #define SIMPLESTRINGSLISTSELECTIONWIDGET_H_
26 #include "StringsListSelectionWidgetInterface.h"
29 class SimpleStringsListSelectionData;
32 class QListWidgetItem;
36 class TLP_QT_SCOPE SimpleStringsListSelectionWidget :
public QWidget,
37 public StringsListSelectionWidgetInterface {
41 Ui::SimpleStringsListSelectionData *_ui;
44 SimpleStringsListSelectionWidget(QWidget *parent =
nullptr,
45 const unsigned int maxSelectedStringsListSize = 0,
46 bool orderable =
true);
47 ~SimpleStringsListSelectionWidget()
override;
49 void setUnselectedStringsList(
const std::vector<std::string> &unselectedStringsList)
override;
51 void setSelectedStringsList(
const std::vector<std::string> &selectedStringsList)
override;
53 void clearUnselectedStringsList()
override;
55 void clearSelectedStringsList()
override;
57 void setMaxSelectedStringsListSize(
const unsigned int maxSelectedStringsListSize)
override;
59 std::vector<std::string> getSelectedStringsList()
const override;
61 std::vector<std::string> getUnselectedStringsList()
const override;
63 void selectAllStrings()
override;
65 void unselectAllStrings()
override;
69 void pressButtonSelectAll();
70 void pressButtonUnselectAll();
71 void listItemClicked(QListWidgetItem *item);
73 void pressButtonDown();
76 unsigned int maxSelectedStringsListSize;