21 #ifndef STRINGSLISTSELECTIONDIALOG_H
22 #define STRINGSLISTSELECTIONDIALOG_H
26 #include <tulip/tulipconf.h>
27 #include <tulip/StringsListSelectionWidget.h>
30 class StringsListSelectionDialog;
50 class TLP_QT_SCOPE StringsListSelectionDialog :
public QDialog {
57 explicit StringsListSelectionDialog(QWidget *parent =
nullptr);
63 void setListType(
const StringsListSelectionWidget::ListType listType);
68 void setMaxSelectedStringsListSize(
const unsigned int maxSize);
73 void setStringsList(
const std::vector<std::string> &unselList,
74 const std::vector<std::string> &selList);
79 std::vector<std::string> getSelectedStringsList()
const;
85 void setUnselectedStringsListLabel(
const std::string &unselectedStringsListLabel);
91 void setSelectedStringsListLabel(
const std::string &selectedStringsListLabel);
100 explicit StringsListSelectionDialog(
101 QString title, QWidget *parent =
nullptr,
102 const StringsListSelectionWidget::ListType listType = StringsListSelectionWidget::SIMPLE_LIST,
103 const unsigned int maxSelectedStringsListSize = 0);
104 ~StringsListSelectionDialog()
override;
119 QString title,
const std::vector<std::string> &strList, std::vector<std::string> &selList,
120 QWidget *parent =
nullptr,
121 const StringsListSelectionWidget::ListType listType = StringsListSelectionWidget::SIMPLE_LIST,
122 const unsigned int maxSize = 0);
125 Ui::StringsListSelectionDialog *ui;