ddt 1.4.0
 
Loading...
Searching...
No Matches
ddtGraphicsControlDialog.hpp
Go to the documentation of this file.
1
9
10#ifndef DATAVISUALISATION_WIDGETSDIALOGS_SRC_INCLUDE_DDT_DIALOGS_DDTGRAPHICSCONTROLDIALOG_CPP_
11#define DATAVISUALISATION_WIDGETSDIALOGS_SRC_INCLUDE_DDT_DIALOGS_DDTGRAPHICSCONTROLDIALOG_CPP_
12
13#include <QtWidgets>
14
17
22 Q_OBJECT
23
24 public:
29 explicit DdtGraphicsControlDialog(QWidget *parent = nullptr);
30
34 ~DdtGraphicsControlDialog() override = default;
35
42 void SetInitialParameter(const QString parameter_id,
43 const QVariant parameter) override;
44
49 QString GetDialogName() override;
50
51 protected:
55 void CreateDialog() override;
56
60 virtual void AddElementsToGroupBox();
61
62 private:
63 QVBoxLayout *vertical_layout;
64 QHBoxLayout *hlayout_lines;
65 QHBoxLayout *hlayout_rectangles;
66 QHBoxLayout *hlayout_crosses;
67 QHBoxLayout *hlayout_text;
68 QHBoxLayout *hlayout_ellipses;
69 QHBoxLayout *hlayout_tag;
70 QVBoxLayout *group_box_layout;
71
72 QGroupBox *group_box_graphical_elements;
73
74 QCheckBox *checkbox_show_lines;
75 QCheckBox *checkbox_show_rectangles;
76 QCheckBox *checkbox_show_crosses;
77 QCheckBox *checkbox_show_text;
78 QCheckBox *checkbox_show_ellipses;
79
80 QCheckBox *checkbox_show_tag;
81
82 QLineEdit *tag_list;
83
84 QPushButton *button_select_lines;
85 QCheckBox *checkbox_show_selected_lines;
86 QLineEdit *line_list;
87
88 QPushButton *button_select_rectangles;
89 QCheckBox *checkbox_show_selected_rectangles;
90 QLineEdit *rectangle_list;
91
92 QPushButton *button_select_crosses;
93 QCheckBox *checkbox_show_selected_crosses;
94 QLineEdit *cross_list;
95
96 QPushButton *button_select_text;
97 QCheckBox *checkbox_show_selected_text;
98 QLineEdit *text_list;
99
100 QPushButton *button_select_ellipses;
101 QCheckBox *checkbox_show_selected_ellipses;
102 QLineEdit *ellipse_list;
103
104 QStringList id_list;
105
106 public slots:
112 void SetChangedParameter(const QString param_id,
113 const QVariant parameter) override;
114
119 void QuitPressed() override;
120
121 private slots:
122 void ShowGraphicalElementsSelected(const bool flag);
123 void ShowLinesSelected(const bool flag);
124 void ShowSelectedLinesSelected(const bool flag);
125 void ShowRectanglesSelected(const bool flag);
126 void ShowSelectedRectanglesSelected(const bool flag);
127 void ShowCrossesSelected(const bool flag);
128 void ShowSelectedCrossesSelected(const bool flag);
129 void ShowTextSelected(const bool flag);
130 void ShowSelectedTextSelected(const bool flag);
131 void ShowEllipsesSelected(const bool flag);
132 void ShowSelectedEllipsesSelected(const bool flag);
133 void ShowTagSelected(const bool flag);
134
135 QString SelectItems(const QString item_type);
136 void SelectLineItems();
137 void SelectRectangleItems();
138 void SelectCrossItems();
139 void SelectTextItems();
140 void SelectEllipseItems();
141
142 void AddControlsLines(const int checkboxsize);
143 void AddControlsRectangles(const int checkboxsize);
144 void AddControlsCrosses(const int checkboxsize);
145 void AddControlsText(const int checkboxsize);
146 void AddControlsEllipses(const int checkboxsize);
147 void AddControlsTags();
148
149 signals:
153 void ParameterChanged(const QString dialog_id, const QString param_id,
154 const QVariant parameter);
155};
156
157#endif // DATAVISUALISATION_WIDGETSDIALOGS_SRC_INCLUDE_DDT_DIALOGS_DDTGRAPHICSCONTROLDIALOG_CPP_
DdtDialog(QWidget *parent=nullptr)
Definition ddtDialog.cpp:16
void CreateDialog() override
Definition ddtGraphicsControlDialog.cpp:28
void QuitPressed() override
Definition ddtGraphicsControlDialog.cpp:474
~DdtGraphicsControlDialog() override=default
DdtGraphicsControlDialog(QWidget *parent=nullptr)
Definition ddtGraphicsControlDialog.cpp:17
void SetChangedParameter(const QString param_id, const QVariant parameter) override
Definition ddtGraphicsControlDialog.cpp:246
QString GetDialogName() override
Definition ddtGraphicsControlDialog.cpp:23
virtual void AddElementsToGroupBox()
Definition ddtGraphicsControlDialog.cpp:106
void ParameterChanged(const QString dialog_id, const QString param_id, const QVariant parameter)
void SetInitialParameter(const QString parameter_id, const QVariant parameter) override
Definition ddtGraphicsControlDialog.cpp:229
DDT Dialog IDs. ID values for all used dialogs. IDs for the used dialogs.
DDT Dialogs. Base class for the DDT dialogs. Base class for the DDT dialogs.