ddt  1.0.0
ddtGraphicsControlDialog.hpp
Go to the documentation of this file.
1 
19 #ifndef DATAVISUALISATION_WIDGETSDIALOGS_SRC_INCLUDE_DDT_DIALOGS_DDTGRAPHICSCONTROLDIALOG_CPP_
20 #define DATAVISUALISATION_WIDGETSDIALOGS_SRC_INCLUDE_DDT_DIALOGS_DDTGRAPHICSCONTROLDIALOG_CPP_
21 
22 #include <QtWidgets>
23 
26 
31  Q_OBJECT
32 
33  public:
38  explicit DdtGraphicsControlDialog(QWidget *parent = nullptr);
39 
43  ~DdtGraphicsControlDialog() override = default;
44 
51  void SetInitialParameter(const QString parameter_id,
52  const QVariant parameter) override;
53 
58  QString GetDialogName() override;
59 
60  protected:
64  void CreateDialog() override;
65 
69  virtual void AddElementsToGroupBox();
70 
71  private:
72  QVBoxLayout *vertical_layout;
73  QHBoxLayout *hlayout_lines;
74  QHBoxLayout *hlayout_rectangles;
75  QHBoxLayout *hlayout_crosses;
76  QHBoxLayout *hlayout_text;
77  QHBoxLayout *hlayout_ellipses;
78  QHBoxLayout *hlayout_tag;
79  QVBoxLayout *group_box_layout;
80 
81  QGroupBox *group_box_graphical_elements;
82 
83  QCheckBox *checkbox_show_lines;
84  QCheckBox *checkbox_show_rectangles;
85  QCheckBox *checkbox_show_crosses;
86  QCheckBox *checkbox_show_text;
87  QCheckBox *checkbox_show_ellipses;
88 
89  QCheckBox *checkbox_show_tag;
90 
91  QLineEdit *tag_list;
92 
93  QPushButton *button_select_lines;
94  QCheckBox *checkbox_show_selected_lines;
95  QLineEdit *line_list;
96 
97  QPushButton *button_select_rectangles;
98  QCheckBox *checkbox_show_selected_rectangles;
99  QLineEdit *rectangle_list;
100 
101  QPushButton *button_select_crosses;
102  QCheckBox *checkbox_show_selected_crosses;
103  QLineEdit *cross_list;
104 
105  QPushButton *button_select_text;
106  QCheckBox *checkbox_show_selected_text;
107  QLineEdit *text_list;
108 
109  QPushButton *button_select_ellipses;
110  QCheckBox *checkbox_show_selected_ellipses;
111  QLineEdit *ellipse_list;
112 
113  QStringList id_list;
114 
115  public slots:
121  void SetChangedParameter(const QString param_id,
122  const QVariant parameter) override;
123 
128  void QuitPressed() override;
129 
130  private slots:
131  void ShowGraphicalElementsSelected(const bool flag);
132  void ShowLinesSelected(const bool flag);
133  void ShowSelectedLinesSelected(const bool flag);
134  void ShowRectanglesSelected(const bool flag);
135  void ShowSelectedRectanglesSelected(const bool flag);
136  void ShowCrossesSelected(const bool flag);
137  void ShowSelectedCrossesSelected(const bool flag);
138  void ShowTextSelected(const bool flag);
139  void ShowSelectedTextSelected(const bool flag);
140  void ShowEllipsesSelected(const bool flag);
141  void ShowSelectedEllipsesSelected(const bool flag);
142  void ShowTagSelected(const bool flag);
143 
144  QString SelectItems(const QString item_type);
145  void SelectLineItems();
146  void SelectRectangleItems();
147  void SelectCrossItems();
148  void SelectTextItems();
149  void SelectEllipseItems();
150 
151  void AddControlsLines(const int checkboxsize);
152  void AddControlsRectangles(const int checkboxsize);
153  void AddControlsCrosses(const int checkboxsize);
154  void AddControlsText(const int checkboxsize);
155  void AddControlsEllipses(const int checkboxsize);
156  void AddControlsTags();
157 
158  signals:
162  void ParameterChanged(const QString dialog_id, const QString param_id,
163  const QVariant parameter);
164 };
165 
166 #endif // DATAVISUALISATION_WIDGETSDIALOGS_SRC_INCLUDE_DDT_DIALOGS_DDTGRAPHICSCONTROLDIALOG_CPP_
167 
Definition: ddtDialog.hpp:27
Definition: ddtGraphicsControlDialog.hpp:30
void CreateDialog() override
Definition: ddtGraphicsControlDialog.cpp:37
void QuitPressed() override
Definition: ddtGraphicsControlDialog.cpp:483
~DdtGraphicsControlDialog() override=default
DdtGraphicsControlDialog(QWidget *parent=nullptr)
Definition: ddtGraphicsControlDialog.cpp:26
void SetChangedParameter(const QString param_id, const QVariant parameter) override
Definition: ddtGraphicsControlDialog.cpp:255
QString GetDialogName() override
Definition: ddtGraphicsControlDialog.cpp:32
virtual void AddElementsToGroupBox()
Definition: ddtGraphicsControlDialog.cpp:115
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:238
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.