ddt 1.4.0
 
Loading...
Searching...
No Matches
ddtTabularRegionDialog.hpp
Go to the documentation of this file.
1
9
10#ifndef DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
11#define DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
12
13#include <QtWidgets>
14
17
22 Q_OBJECT
23
24 public:
29 explicit DdtTabularRegionDialog(QWidget *parent = nullptr);
30
34 virtual ~DdtTabularRegionDialog() = default;
35
42 void SetInitialParameter(const QString parameter_id,
43 const QVariant parameter) override;
44
49 QString GetDialogName() override;
50
51 protected:
55 virtual void CreateDialog() override;
56
57 virtual void RetranslateUi();
58
62 void UpdateTableData(const QList<QVariant> table_data);
63
67 void UpdateRowColData(const QList<QVariant> table_rowcol_data);
68
72 void UpdateStatisticData(const QList<QVariant> table_statistic_data);
73
74 private:
75 void CreateLayouts();
76 void CreateWidgets();
77 void Reset();
78
79 QGridLayout *grid_layout_3;
80 QVBoxLayout *vertical_layout;
81 QHBoxLayout *horizontal_layout_header;
82 QLabel *label_pixel_table;
83 QLabel *label_nx;
84 QLineEdit *line_edit_nx;
85 QLabel *label_ny;
86 QLineEdit *line_edit_ny;
87 QPushButton *push_button_resize_table;
88
89 QHBoxLayout *table_layout;
90 QTableWidget *table_widget;
91 QLabel *label_table;
92
93 QGridLayout *grid_layout_statistics;
94 QLabel *label_ave;
95 QLabel *label_max;
96 QLineEdit *line_edit_rms;
97 QLineEdit *line_edit_max;
98 QLabel *label_rms;
99 QLineEdit *line_edit_min;
100 QLabel *label_min;
101 QLineEdit *line_edit_ave;
102 QLabel *label_statistics;
103
104 QDialogButtonBox *push_buttons_box;
105 QPushButton *push_button_cancel;
106
107 public slots:
112 virtual void ConfirmPressed() override;
113
118 virtual void QuitPressed() override;
119
123 virtual void CancelPressed() override;
124
130 void SetChangedParameter(const QString param_id,
131 const QVariant parameter) override;
132
133 private slots:
137 void ResizeTable();
138
139 signals:
143 void ParameterChanged(const QString dialog_id, const QString param_id,
144 const QVariant parameter);
145};
146
147#endif // DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
DdtDialog(QWidget *parent=nullptr)
Definition ddtDialog.cpp:16
virtual void ConfirmPressed() override
Definition ddtTabularRegionDialog.cpp:332
DdtTabularRegionDialog(QWidget *parent=nullptr)
Definition ddtTabularRegionDialog.cpp:16
QString GetDialogName() override
Definition ddtTabularRegionDialog.cpp:22
void SetInitialParameter(const QString parameter_id, const QVariant parameter) override
Definition ddtTabularRegionDialog.cpp:197
void ParameterChanged(const QString dialog_id, const QString param_id, const QVariant parameter)
void UpdateStatisticData(const QList< QVariant > table_statistic_data)
Definition ddtTabularRegionDialog.cpp:306
void SetChangedParameter(const QString param_id, const QVariant parameter) override
Definition ddtTabularRegionDialog.cpp:226
virtual ~DdtTabularRegionDialog()=default
virtual void CancelPressed() override
Definition ddtTabularRegionDialog.cpp:336
void UpdateRowColData(const QList< QVariant > table_rowcol_data)
Definition ddtTabularRegionDialog.cpp:244
void UpdateTableData(const QList< QVariant > table_data)
Definition ddtTabularRegionDialog.cpp:276
virtual void RetranslateUi()
Definition ddtTabularRegionDialog.cpp:172
virtual void QuitPressed() override
Definition ddtTabularRegionDialog.cpp:334
virtual void CreateDialog() override
Definition ddtTabularRegionDialog.cpp:27
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.