Tulip 5.7.1
Large graphs analysis and drawing
Loading...
Searching...
No Matches
DoubleStringsListSelectionWidget.h
1/*
2 *
3 * This file is part of Tulip (https://tulip.labri.fr)
4 *
5 * Authors: David Auber and the Tulip development Team
6 * from LaBRI, University of Bordeaux
7 *
8 * Tulip is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation, either version 3
11 * of the License, or (at your option) any later version.
12 *
13 * Tulip is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
17 *
18 */
19///@cond DOXYGEN_HIDDEN
20
21#ifndef DOUBLESTRINGSLISTSELECTIONWIDGET_H_
22#define DOUBLESTRINGSLISTSELECTIONWIDGET_H_
23
24#include <QWidget>
25
26#include "StringsListSelectionWidgetInterface.h"
27
28namespace Ui {
29class DoubleStringsListSelectionData;
30}
31
32namespace tlp {
33
34class TLP_QT_SCOPE DoubleStringsListSelectionWidget : public QWidget,
35 public StringsListSelectionWidgetInterface {
36
37 Q_OBJECT
38
39 Ui::DoubleStringsListSelectionData *_ui;
40
41public:
42 DoubleStringsListSelectionWidget(QWidget *parent = nullptr,
43 const unsigned int maxSelectedStringsListSize = 0);
44 ~DoubleStringsListSelectionWidget() override;
45
46 void setUnselectedStringsList(const std::vector<std::string> &unselectedStringsList) override;
47
48 void setSelectedStringsList(const std::vector<std::string> &selectedStringsList) override;
49
50 void clearUnselectedStringsList() override;
51
52 void clearSelectedStringsList() override;
53
54 void setMaxSelectedStringsListSize(const unsigned int maxSelectedStringsListSize) override;
55
56 std::vector<std::string> getSelectedStringsList() const override;
57
58 std::vector<std::string> getUnselectedStringsList() const override;
59
60 void selectAllStrings() override;
61
62 void unselectAllStrings() override;
63
64 void setUnselectedStringsListLabel(const std::string &unselectedStringsListLabel);
65
66 void setSelectedStringsListLabel(const std::string &selectedStringsListLabel);
67
68private slots:
69
70 void pressButtonSelectAll();
71 void pressButtonUnselectAll();
72 void pressButtonAdd();
73 void pressButtonRem();
74 void pressButtonUp();
75 void pressButtonDown();
76
77private:
78 void qtWidgetsConnection();
79};
80} // namespace tlp
81
82#endif /* DOUBLESTRINGSLISTSELECTIONWIDGET_H_ */
83///@endcond