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 
56  QString GetDialogName() override;
57 
58  protected:
62  virtual void CreateDialog();
63  virtual void RetranslateUi();
64 
68  void UpdateTableData(const QList<QVariant> table_data);
69 
73  void UpdateRowColData(const QList<QVariant> table_rowcol_data);
74 
78  void UpdateStatisticData(const QList<QVariant> table_statistic_data);
79 
80  private:
81  void createLayouts();
82  void createWidgets();
83 
84  QGridLayout *gridLayout_3;
85  QVBoxLayout *verticalLayout;
86  QHBoxLayout *horizontalLayout_header;
87  QLabel *label_pixel_table;
88  QLabel *label_nx;
89  QLineEdit *lineEdit_nx;
90  QLabel *label_ny;
91  QLineEdit *lineEdit_ny;
92  QPushButton *pushButton_resize_table;
93 
94  QHBoxLayout *tableLayout;
95  QTableWidget *tableWidget;
96  QLabel *label_table;
97 
98  QGridLayout *gridLayout_statistics;
99  QLabel *label_ave;
100  QLabel *label_max;
101  QLineEdit *lineEdit_rms;
102  QPushButton *pushButton_quit;
103  QLineEdit *lineEdit_max;
104  QLabel *label_rms;
105  QLineEdit *lineEdit_min;
106  QLabel *label_min;
107  QLineEdit *lineEdit_ave;
108  QLabel *label_statistics;
109 
110  public slots:
115  virtual void ConfirmPressed();
116 
121  virtual void QuitPressed();
122 
126  virtual void CancelPressed();
127 
133  void SetChangedParameter(const QString param_id,
134  const QVariant parameter) override;
135 
136  private slots:
137 
141  void ResizeTable();
142 
143  signals:
147  void ParameterChanged(const QString dialog_id, const QString param_id,
148  const QVariant parameter);
149 };
150 
151 #endif // DDT_DATAVISUALISATION_DDTDIALOGS_TABULARREGION_HPP
DdtTabularRegionDialog::ConfirmPressed
virtual void ConfirmPressed()
Definition: ddtTabularRegionDialog.cpp:336
DdtTabularRegionDialog::CancelPressed
virtual void CancelPressed()
Definition: ddtTabularRegionDialog.cpp:340
DdtTabularRegionDialog::UpdateTableData
void UpdateTableData(const QList< QVariant > table_data)
Definition: ddtTabularRegionDialog.cpp:278
DdtTabularRegionDialog::ParameterChanged
void ParameterChanged(const QString dialog_id, const QString param_id, const QVariant parameter)
DdtTabularRegionDialog::~DdtTabularRegionDialog
virtual ~DdtTabularRegionDialog()=default
DdtTabularRegionDialog::SetInitialParameter
void SetInitialParameter(const QString parameter_id, const QVariant parameter) override
Definition: ddtTabularRegionDialog.cpp:201
ddtDialog.hpp
DdtTabularRegionDialog::DdtTabularRegionDialog
DdtTabularRegionDialog(QWidget *parent=nullptr)
Definition: ddtTabularRegionDialog.cpp:22
DdtTabularRegionDialog
Definition: ddtTabularRegionDialog.hpp:29
DdtTabularRegionDialog::GetDialogName
QString GetDialogName() override
Definition: ddtTabularRegionDialog.cpp:28
DdtTabularRegionDialog::UpdateStatisticData
void UpdateStatisticData(const QList< QVariant > table_statistic_data)
Definition: ddtTabularRegionDialog.cpp:308
DdtTabularRegionDialog::UpdateRowColData
void UpdateRowColData(const QList< QVariant > table_rowcol_data)
Definition: ddtTabularRegionDialog.cpp:246
ddtDialogIds.hpp
DdtDialog
Definition: ddtDialog.hpp:24
DdtTabularRegionDialog::RetranslateUi
virtual void RetranslateUi()
Definition: ddtTabularRegionDialog.cpp:176
DdtTabularRegionDialog::SetChangedParameter
void SetChangedParameter(const QString param_id, const QVariant parameter) override
Definition: ddtTabularRegionDialog.cpp:230
DdtTabularRegionDialog::CreateDialog
virtual void CreateDialog()
Definition: ddtTabularRegionDialog.cpp:33
DdtTabularRegionDialog::QuitPressed
virtual void QuitPressed()
Definition: ddtTabularRegionDialog.cpp:338