ImageD  v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
d_popup_listedit.h
Go to the documentation of this file.
1 /************************************
2  * added: 04.11.2019 *
3  * author: David Eilenstein *
4  * contact: D.Eilenstein@gsi.de *
5  * project: ImageD *
6  * facility: GSI Darmstadt, Ger *
7  ************************************/
8 
9 #ifndef D_POPUP_LISTEDIT_H
10 #define D_POPUP_LISTEDIT_H
11 
12 //own
13 #include <d_enum.h>
14 
15 //general
16 #include <vector>
17 
18 //Qt
19 #include <QDialog>
20 #include <QString>
21 #include <QStringList>
22 #include <QDebug>
23 #include <QMessageBox>
24 
25 //namespaces
26 using namespace std;
27 
28 namespace Ui {
29 class D_Popup_ListEdit;
30 }
31 
36 class D_Popup_ListEdit : public QDialog
37 {
38  Q_OBJECT
39 
40 public:
41  explicit D_Popup_ListEdit(QString Title, vector<int> *Indices, QStringList Names, int init_index, QWidget *parent = nullptr);
43 
44 private slots:
45  void ShowSelection();
46 
47  void on_pushButton_Add_clicked();
48 
49  void on_pushButton_All_clicked();
50 
51  void on_pushButton_Remove_clicked();
52 
53  void on_pushButton_Clear_clicked();
54 
55  void on_pushButton_Reset_clicked();
56 
57  void on_pushButton_Done_clicked();
58 
59 private:
60  Ui::D_Popup_ListEdit *ui;
61 
62  vector<int> *pvIndices;
63  vector<int> vIndicesBackup;
64  QStringList QSL_IndicesNames;
65 };
66 
67 #endif // D_POPUP_LISTEDIT_H
D_Popup_ListEdit
The D_Popup_ListEdit class Lets the user choose any number of entries from a QStringList
Definition: d_popup_listedit.h:37
D_Popup_ListEdit::D_Popup_ListEdit
D_Popup_ListEdit(QString Title, vector< int > *Indices, QStringList Names, int init_index, QWidget *parent=nullptr)
Definition: d_popup_listedit.cpp:12
D_Popup_ListEdit::~D_Popup_ListEdit
~D_Popup_ListEdit()
Definition: d_popup_listedit.cpp:29
d_popup_listedit.h
Ui
Definition: d_analysiswindow.h:58
d_enum.h