ddt  1.0.0
ddtTabularRegionDialog.hpp
Go to the documentation of this file.
1 
19 #ifndef DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
20 #define DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
21 
22 #include <QtWidgets>
23 
26 
31  Q_OBJECT
32 
33  public:
38  explicit DdtTabularRegionDialog(QWidget *parent = nullptr);
39 
43  virtual ~DdtTabularRegionDialog() = default;
44 
51  void SetInitialParameter(const QString parameter_id,
52  const QVariant parameter) override;
53 
58  QString GetDialogName() override;
59 
60  protected:
64  virtual void CreateDialog() override;
65 
66  virtual void RetranslateUi();
67 
71  void UpdateTableData(const QList<QVariant> table_data);
72 
76  void UpdateRowColData(const QList<QVariant> table_rowcol_data);
77 
81  void UpdateStatisticData(const QList<QVariant> table_statistic_data);
82 
83  private:
84  void CreateLayouts();
85  void CreateWidgets();
86  void Reset();
87 
88  QGridLayout *grid_layout_3;
89  QVBoxLayout *vertical_layout;
90  QHBoxLayout *horizontal_layout_header;
91  QLabel *label_pixel_table;
92  QLabel *label_nx;
93  QLineEdit *line_edit_nx;
94  QLabel *label_ny;
95  QLineEdit *line_edit_ny;
96  QPushButton *push_button_resize_table;
97 
98  QHBoxLayout *table_layout;
99  QTableWidget *table_widget;
100  QLabel *label_table;
101 
102  QGridLayout *grid_layout_statistics;
103  QLabel *label_ave;
104  QLabel *label_max;
105  QLineEdit *line_edit_rms;
106  QLineEdit *line_edit_max;
107  QLabel *label_rms;
108  QLineEdit *line_edit_min;
109  QLabel *label_min;
110  QLineEdit *line_edit_ave;
111  QLabel *label_statistics;
112 
113  QDialogButtonBox *push_buttons_box;
114  QPushButton *push_button_cancel;
115 
116  public slots:
121  virtual void ConfirmPressed() override;
122 
127  virtual void QuitPressed() override;
128 
132  virtual void CancelPressed() override;
133 
139  void SetChangedParameter(const QString param_id,
140  const QVariant parameter) override;
141 
142  private slots:
146  void ResizeTable();
147 
148  signals:
152  void ParameterChanged(const QString dialog_id, const QString param_id,
153  const QVariant parameter);
154 };
155 
156 #endif // DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
157 
Definition: ddtDialog.hpp:27
Definition: ddtTabularRegionDialog.hpp:30
virtual void ConfirmPressed() override
Definition: ddtTabularRegionDialog.cpp:341
DdtTabularRegionDialog(QWidget *parent=nullptr)
Definition: ddtTabularRegionDialog.cpp:25
QString GetDialogName() override
Definition: ddtTabularRegionDialog.cpp:31
void SetInitialParameter(const QString parameter_id, const QVariant parameter) override
Definition: ddtTabularRegionDialog.cpp:206
void ParameterChanged(const QString dialog_id, const QString param_id, const QVariant parameter)
void UpdateStatisticData(const QList< QVariant > table_statistic_data)
Definition: ddtTabularRegionDialog.cpp:315
void SetChangedParameter(const QString param_id, const QVariant parameter) override
Definition: ddtTabularRegionDialog.cpp:235
virtual ~DdtTabularRegionDialog()=default
virtual void CancelPressed() override
Definition: ddtTabularRegionDialog.cpp:345
void UpdateRowColData(const QList< QVariant > table_rowcol_data)
Definition: ddtTabularRegionDialog.cpp:253
void UpdateTableData(const QList< QVariant > table_data)
Definition: ddtTabularRegionDialog.cpp:285
virtual void RetranslateUi()
Definition: ddtTabularRegionDialog.cpp:181
virtual void QuitPressed() override
Definition: ddtTabularRegionDialog.cpp:343
virtual void CreateDialog() override
Definition: ddtTabularRegionDialog.cpp:36
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.