General Purpose Geodetic Library
NsTestDialog.h
Go to the documentation of this file.
1 /*
2  *
3  * This file is a part of nuSolve. nuSolve is a part of CALC/SOLVE system
4  * and is designed to perform data analyis of a geodetic VLBI session.
5  * Copyright (C) 2010-2020 Sergei Bolotin.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef NS_TEST_DIALOG_H
23 #define NS_TEST_DIALOG_H
24 
25 
26 #ifdef HAVE_CONFIG_H
27 # include <config.h>
28 #endif
29 
30 
31 #include <QtCore/QtGlobal>
32 
33 
34 #if QT_VERSION >= 0x050000
35 # include <QtWidgets/QDialog>
36 #else
37 # include <QtGui/QDialog>
38 #endif
39 
40 
41 class SgPlot;
42 class SgPlotCarrier;
43 
44 /*=====================================================================================================*/
45 class NsTestDialog : public QDialog
46 {
47  Q_OBJECT
48 public:
49 
50  //
51  // constructors/destructors:
52  //
55  NsTestDialog(QWidget *parent=0, Qt::WindowFlags flags=0);
56 
60  virtual ~NsTestDialog();
61 
62 
63 
64  //
65  // Interfaces:
66  //
67 
68 
69 
70  //
71  // Functions:
72  //
73  inline QString className() const {return "NsTestDialog";};
74 
75  // construct a plot:
76  QWidget* testPlot();
77 
78 
79  //
80  // Friends:
81  //
82 
83 
84 
85  //
86  // I/O:
87  //
88  //
89 
90 private slots:
91  void accept();
92  void reject();
93 
94 private:
97 
98 
99 protected:
100  virtual void closeEvent(QCloseEvent *) {deleteLater();};
101 };
102 /*=====================================================================================================*/
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 /*=====================================================================================================*/
113 #endif // NS_TEST_DIALOG_H
QString className() const
Definition: NsTestDialog.h:73
virtual ~NsTestDialog()
SgPlotCarrier * carrier_
Definition: NsTestDialog.h:95
SgPlot * plot_
Definition: NsTestDialog.h:96
virtual void closeEvent(QCloseEvent *)
Definition: NsTestDialog.h:100
NsTestDialog(QWidget *parent=0, Qt::WindowFlags flags=0)
QWidget * testPlot()