General Purpose Geodetic Library
NsSessionNameDialog.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_SESSION_NAME_DIALOG_H
23 #define NS_SESSION_NAME_DIALOG_H
24 
25 
26 #ifdef HAVE_CONFIG_H
27 # include <config.h>
28 #endif
29 
30 #include <QtCore/QtGlobal>
31 
32 
33 #if QT_VERSION >= 0x050000
34 # include <QtWidgets/QDialog>
35 #else
36 # include <QtGui/QDialog>
37 #endif
38 
39 
40 class QCheckBox;
41 class QLineEdit;
42 
43 /*=====================================================================================================*/
45 {
46  Q_OBJECT
47 public:
48 
49  //
50  // constructors/destructors:
51  //
54  NsSessionNameDialog(QWidget *parent, QString *fileName, QString *auxFileName=NULL, Qt::WindowFlags flags=0);
55 
59  virtual ~NsSessionNameDialog();
60 
61 
62 
63  //
64  // Interfaces:
65  //
66 
67 
68 
69  //
70  // Functions:
71  //
72  inline QString className() const {return "NsSessionNameDialog";};
73 
74 
75  //
76  // Friends:
77  //
78 
79 
80 
81  //
82  // I/O:
83  //
84  //
85 
86 private slots:
87  void accept();
88  void reject();
89  void changeAutoload(int);
90 
91 
92 
93 private:
94  QString *fileName_;
95  QString *auxFileName_;
96  QLineEdit *leDbName_;
97  QLineEdit *leDbName2_;
98  QCheckBox *cbAutoLoad2band_;
99 
100 protected:
101  virtual void closeEvent(QCloseEvent *) {deleteLater();};
102 };
103 /*=====================================================================================================*/
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 /*=====================================================================================================*/
114 #endif // NS_SESSION_NAME_DIALOG_H
QString className() const
virtual void closeEvent(QCloseEvent *)
NsSessionNameDialog(QWidget *parent, QString *fileName, QString *auxFileName=NULL, Qt::WindowFlags flags=0)