graph_analysis
SwapFiltersDialog.hpp
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'add_node_dialog_gui.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 4.8.6
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef SWAPFILTERSDIALOG_H
10 #define SWAPFILTERSDIALOG_H
11 
12 #include "../FilterManager.hpp"
13 
14 #include <set>
15 #include <string>
16 #include <QObject>
17 #include <QtCore/QVariant>
18 #include <QtGui/QAction>
19 #include <QtGui/QApplication>
20 #include <QtGui/QButtonGroup>
21 #include <QtGui/QComboBox>
22 #include <QtGui/QDialog>
23 #include <QtGui/QDialogButtonBox>
24 #include <QtGui/QHeaderView>
25 #include <QtGui/QLabel>
26 
27 namespace graph_analysis {
28 namespace gui {
29 namespace dialogs {
30 
37 class SwapFiltersDialog : public QObject
38 {
39  Q_OBJECT
40 public:
46  void setupUi(QDialog *Dialog);
48  void retranslateUi(QDialog *Dialog);
50  bool isValid() { return mValid; }
52  std::string getFilter1Index () { return mFilter1Index; }
54  std::string getFilter2Index () { return mFilter2Index; }
55 
56 public slots:
58  void swapAccept();
60  void swapReject();
61 
62 private:
64  QDialog mDialog;
66  std::string mFilter1Index;
68  std::string mFilter2Index;
69 
71  FilterManager::Filters mFilters;
73  bool mValid;
75  QDialogButtonBox *mpButtonBox;
77  QLabel *mpFilter1Label;
79  QLabel *mpFilter2Label;
81  QComboBox *mpComboBox1;
83  QComboBox *mpComboBox2;
84 };
85 
86 } // end namespace dialogs
87 } // end namespace gui
88 } // end namespace graph_analysis
89 #endif // SWAPFILTERSDIALOG_H
void setupUi(QDialog *Dialog)
sets up the provided qt dialog instance
Definition: SwapFiltersDialog.cpp:18
void retranslateUi(QDialog *Dialog)
sets up visible titles for the scene (e.g. buttons labels)
Definition: SwapFiltersDialog.cpp:61
SwapFiltersDialog(const FilterManager::Filters &filters)
constructor; stores the concerned cluster node reference
Definition: SwapFiltersDialog.cpp:10
~SwapFiltersDialog()
destructor
Definition: SwapFiltersDialog.hpp:44
bool isValid()
getter method for boolean validation witness
Definition: SwapFiltersDialog.hpp:50
std::string getFilter2Index()
getter method for the second feature ID dialog result
Definition: SwapFiltersDialog.hpp:54
std::string getFilter1Index()
getter method for the first feature ID dialog result
Definition: SwapFiltersDialog.hpp:52
void swapReject()
slot for listening for whenever the user presses "Cancel" (or ESC/close window corner button) in the ...
Definition: SwapFiltersDialog.cpp:75
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
void swapAccept()
slot for listening for whenever the user presses "Ok" in the resulting pop-up dialog window ...
Definition: SwapFiltersDialog.cpp:68
std::vector< FilterItem * > Filters
container datatype for an array of filter items
Definition: FilterManager.hpp:26
pop-up dialog manager for swapping two custom regexp filters in the filters manager in the layers tab...
Definition: SwapFiltersDialog.hpp:37