ddt  0.1
ddtTabularRegionDialog.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtTabularRegionDialog.hpp
8 // @brief DDT Dialogs. Class for the tabular region dialog
9 // Dialog to display in tabular format the pixel values of a
10 // region.
11 //
12 // Class for the DDT Tabular Region Dialog
13 //
14 // @author Carsten Mannel, CGI
15 // @since 2020/11/12
16 //
17 
18 #ifndef DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
19 #define DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
20 
21 #include <QtWidgets>
22 
25 
30  Q_OBJECT
31 
32  public:
37  explicit DdtTabularRegionDialog(QWidget *parent = nullptr);
41  virtual ~DdtTabularRegionDialog() = default;
42 
49  void SetInitialParameter(const QString parameter_id,
50  const QVariant parameter) override;
51 
52  protected:
56  virtual void CreateDialog();
57  virtual void RetranslateUi();
58 
62  void UpdateTableData(QList<QVariant> table_data);
63 
67  void UpdateRowColData(QList<QVariant> table_rowcol_data);
68 
72  void UpdateStatisticData(QList<QVariant> table_statistic_data);
73 
74  private:
75  QGridLayout *gridLayout_3;
76  QVBoxLayout *verticalLayout;
77  QHBoxLayout *horizontalLayout_header;
78  QLabel *label_pixel_table;
79  QLabel *label_nx;
80  QLineEdit *lineEdit_nx;
81  QLabel *label_ny;
82  QLineEdit *lineEdit_ny;
83  QPushButton *pushButton_resize_table;
84 
85  QHBoxLayout *tableLayout;
86  QTableWidget *tableWidget;
87  QLabel *label_table;
88 
89  QGridLayout *gridLayout_statistics;
90  QLabel *label_ave;
91  QLabel *label_max;
92  QLineEdit *lineEdit_rms;
93  QPushButton *pushButton_quit;
94  QLineEdit *lineEdit_max;
95  QLabel *label_rms;
96  QLineEdit *lineEdit_min;
97  QLabel *label_min;
98  QLineEdit *lineEdit_ave;
99  QLabel *label_statistics;
100 
101  public slots:
106  virtual void ConfirmPressed();
107 
112  virtual void QuitPressed();
113 
117  virtual void CancelPressed();
118 
124  void SetChangedParameter(const QString param_id,
125  const QVariant parameter) override;
126 
127  private slots:
128 
132  void ResizeTable();
133 
134  signals:
138  void ParameterChanged(const QString dialog_id, const QString param_id,
139  const QVariant parameter);
140 };
141 
142 #endif // DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
DdtTabularRegionDialog::ConfirmPressed
virtual void ConfirmPressed()
Definition: ddtTabularRegionDialog.cpp:323
DdtTabularRegionDialog::CancelPressed
virtual void CancelPressed()
Definition: ddtTabularRegionDialog.cpp:327
DdtTabularRegionDialog::ParameterChanged
void ParameterChanged(const QString dialog_id, const QString param_id, const QVariant parameter)
DdtTabularRegionDialog::UpdateStatisticData
void UpdateStatisticData(QList< QVariant > table_statistic_data)
Definition: ddtTabularRegionDialog.cpp:296
DdtTabularRegionDialog::~DdtTabularRegionDialog
virtual ~DdtTabularRegionDialog()=default
DdtTabularRegionDialog::SetInitialParameter
void SetInitialParameter(const QString parameter_id, const QVariant parameter) override
Definition: ddtTabularRegionDialog.cpp:187
ddtDialog.hpp
DdtTabularRegionDialog::DdtTabularRegionDialog
DdtTabularRegionDialog(QWidget *parent=nullptr)
Definition: ddtTabularRegionDialog.cpp:22
DdtTabularRegionDialog
Definition: ddtTabularRegionDialog.hpp:29
ddtDialogIds.hpp
DdtTabularRegionDialog::UpdateTableData
void UpdateTableData(QList< QVariant > table_data)
Definition: ddtTabularRegionDialog.cpp:265
DdtDialog
Definition: ddtDialog.hpp:24
DdtTabularRegionDialog::RetranslateUi
virtual void RetranslateUi()
Definition: ddtTabularRegionDialog.cpp:162
DdtTabularRegionDialog::SetChangedParameter
void SetChangedParameter(const QString param_id, const QVariant parameter) override
Definition: ddtTabularRegionDialog.cpp:216
DdtTabularRegionDialog::UpdateRowColData
void UpdateRowColData(QList< QVariant > table_rowcol_data)
Definition: ddtTabularRegionDialog.cpp:232
DdtTabularRegionDialog::CreateDialog
virtual void CreateDialog()
Definition: ddtTabularRegionDialog.cpp:29
DdtTabularRegionDialog::QuitPressed
virtual void QuitPressed()
Definition: ddtTabularRegionDialog.cpp:325