General Purpose Geodetic Library
NsStartupWizard.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_STARTUP_WIZARD_H
23 #define NS_STARTUP_WIZARD_H
24 
25 
26 #ifdef HAVE_CONFIG_H
27 # include <config.h>
28 #endif
29 
30 
31 //#include <QtCore/QVersionNumber>
32 #include <QtCore/QtGlobal>
33 
34 
35 #if QT_VERSION >= 0x050000
36 # include <QtWidgets/QLabel>
37 # include <QtWidgets/QVBoxLayout>
38 # include <QtWidgets/QWizard>
39 # include <QtWidgets/QWizardPage>
40 #else
41 # include <QtGui/QLabel>
42 # include <QtGui/QVBoxLayout>
43 # include <QtGui/QWizard>
44 # include <QtGui/QWizardPage>
45 #endif
46 
47 
48 
49 class QCheckBox;
50 class QLineEdit;
51 
52 
53 class NsWizardPage : public QWizardPage
54 {
55 public:
56  inline NsWizardPage(QWidget* parent=0) : QWizardPage(parent) {};
57  inline void registerField(const QString& name, QWidget* widget, const char* property=0,
58  const char* changedSignal=0)
59  {QWizardPage::registerField(name, widget, property, changedSignal);};
60 };
61 
62 
63 
64 /*=====================================================================================================*/
65 class NsStartupWizard : public QWizard
66 {
67  Q_OBJECT
68 public:
69 
70  //
71  // constructors/destructors:
72  //
75  NsStartupWizard(bool isFirstRun, bool isForcedRun, bool isSystemWideRun, QWidget *parent=0);
76 
80  virtual ~NsStartupWizard();
81 
82 
83 
84  //
85  // Interfaces:
86  //
87  static int serialNumber();
88 
89 
90  //
91  // Functions:
92  //
93  inline QString className() const {return "NsStartupWizard";};
94 
96 
98 
100 
102 
104  //
105  // Friends:
106  //
107 
108 
109 
110  //
111  // I/O:
112  //
113  //
114 
115 private slots:
116  void accept();
117 
118 private:
119  // other variables:
123 
124  // user identities:
125  QLineEdit *leUserName_;
126  QLineEdit *leUserEmail_;
127  QLineEdit *leUserInitials_;
128  QLineEdit *leAcFullName_;
129  QLineEdit *leAcAbbrevName_;
130  QLineEdit *leAcAbbName_;
131  QLineEdit *leHomeDirName_;
132  QLineEdit *leAuxLogsDirName_;
133  QCheckBox *cbMakeAuxLog_;
134  //
135  QLineEdit *lePath2CatNu_;
136  QLineEdit *lePath2Dbh_;
137  QLineEdit *lePath2VgosDb_;
138  QLineEdit *lePath2VgosDa_;
139  QLineEdit *lePath2Apriori_;
141  QLineEdit *lePath2Spoolfiles_;
142  QLineEdit *lePath2NotUsedObs_;
143  QLineEdit *lePath2Reports_;
144  QLineEdit *lePath2NgsOutput_;
147 
148 
149  static const int serialNumber_;
150 
151 protected:
152 };
153 /*=====================================================================================================*/
154 
155 
156 
157 
158 
159 
160 
161 /*=====================================================================================================*/
162 #endif // NS_STARTUP_WIZARD_H
NsWizardPage * createConclusionPage()
QLineEdit * lePath2Dbh_
QLineEdit * lePath2VgosDa_
QLineEdit * lePath2CatNu_
QLineEdit * lePath2Spoolfiles_
NsStartupWizard(bool isFirstRun, bool isForcedRun, bool isSystemWideRun, QWidget *parent=0)
QLineEdit * leAcFullName_
QLineEdit * leAcAbbrevName_
virtual ~NsStartupWizard()
QLineEdit * lePath2Reports_
static const int serialNumber_
QLineEdit * lePath2IntermediateResults_
QLineEdit * lePath2Apriori_
QLineEdit * lePath2VgosDb_
QCheckBox * cbMakeAuxLog_
NsWizardPage * createPageHomeDir()
QLineEdit * lePath2NotUsedObs_
static int serialNumber()
QLineEdit * lePath2NgsOutput_
QLineEdit * leUserInitials_
QString className() const
NsWizardPage * createPageTwo()
QLineEdit * leAcAbbName_
NsWizardPage * createIntroPage()
QLineEdit * lePath2Masterfiles_
QLineEdit * lePath2PlotterOutput_
QLineEdit * leHomeDirName_
NsWizardPage * createPageOne()
QLineEdit * leAuxLogsDirName_
QLineEdit * leUserName_
QLineEdit * leUserEmail_
NsWizardPage(QWidget *parent=0)
void registerField(const QString &name, QWidget *widget, const char *property=0, const char *changedSignal=0)