General Purpose Geodetic Library
SgGuiParameterCfg.h
Go to the documentation of this file.
1 /*
2  *
3  * This file is a part of Space Geodetic Library. The library is used by
4  * nuSolve, a part of CALC/SOLVE system, and designed to make analysis of
5  * geodetic VLBI observations.
6  * Copyright (C) 2010-2020 Sergei Bolotin.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef SG_GUI_PARAMETER_CFG_H
24 #define SG_GUI_PARAMETER_CFG_H
25 
26 #ifdef HAVE_CONFIG_H
27 # include <config.h>
28 #endif
29 
30 
31 
32 #include <SgParameterCfg.h>
33 
34 #if QT_VERSION >= 0x050000
35 # include <QtWidgets/QDialog>
36 #else
37 # include <QtGui/QDialog>
38 #endif
39 
40 
41 
42 
43 class QLineEdit;
44 class QRadioButton;
45 class QTabWidget;
46 //class SgParametersDescriptor;
47 /*=====================================================================================================*/
48 class SgGuiParameterCfg : public QDialog
49 {
50  Q_OBJECT
51 
52 public:
53  SgGuiParameterCfg(SgParameterCfg*, int, bool=false, QWidget* =0, Qt::WindowFlags=Qt::Widget);
54  virtual inline ~SgGuiParameterCfg() {parConfig_=NULL; emit windowClosed();};
55  inline QString className() const {return "SgGuiParameterCfg";};
56 
57 
58 signals:
59  void windowClosed();
60  void valueModified(bool);
61 
62 private slots:
63  void accept();
64  void apply();
65  void reject() {QDialog::reject(); emit valueModified(false); deleteLater();};
66  void setDefault();
67  void stochasticTypeChanged(int);
68 
69 
70 protected:
71  virtual void closeEvent(QCloseEvent *) {deleteLater();};
72 
73 
74 private:
75  // data part:
81  // GUI part:
82  QString str_;
83  //
84  QLineEdit *leConvApriori_;
85  QLineEdit *leArcLength_;
86  QLineEdit *lePwlApriori_;
87  QLineEdit *lePwlLength_;
88  QLineEdit *leStcApriori_;
89  QLineEdit *leRWNPower_;
90  QLineEdit *leTau_;
91  QTabWidget *tabs4types_;
92  QRadioButton *rbSType_[3];
93 
94  // functions:
95  virtual void acquireData();
96  virtual void browseData();
97 
100  QWidget* tab4PWLType();
102 };
103 /*=====================================================================================================*/
104 
105 
106 
107 
108 /*=====================================================================================================*/
109 #endif // SG_GUI_PARAMETER_CFG_H
QString className() const
SgParameterCfg * parConfig_
QLineEdit * leArcLength_
QLineEdit * leStcApriori_
SgGuiParameterCfg(SgParameterCfg *, int, bool=false, QWidget *=0, Qt::WindowFlags=Qt::Widget)
virtual void browseData()
QRadioButton * rbSType_[3]
QLineEdit * leRWNPower_
virtual ~SgGuiParameterCfg()
virtual void acquireData()
QLineEdit * leConvApriori_
QTabWidget * tabs4types_
QLineEdit * lePwlLength_
QWidget * tab4StochasticType()
QLineEdit * lePwlApriori_
SgParameterCfg * parConfigOrig_
virtual void closeEvent(QCloseEvent *)