General Purpose Geodetic Library
VmStartupWizard.h
Go to the documentation of this file.
1 /*
2  *
3  * This file is a part of vgosDbMake. vgosDbMake is a part of CALC/SOLVE
4  * system and is designed to convert correlator output data into VgosDb format.
5  * Copyright (C) 2015-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 VM_STARTUP_WIZARD_H
23 #define VM_STARTUP_WIZARD_H
24 
25 
26 #ifdef HAVE_CONFIG_H
27 # include <config.h>
28 #endif
29 
30 
31 
32 #include <QtCore/QtGlobal>
33 
34 #if QT_VERSION >= 0x050000
35 # include <QtWidgets/QLabel>
36 # include <QtWidgets/QVBoxLayout>
37 # include <QtWidgets/QWizard>
38 # include <QtWidgets/QWizardPage>
39 #else
40 # include <QtGui/QLabel>
41 # include <QtGui/QVBoxLayout>
42 # include <QtGui/QWizard>
43 # include <QtGui/QWizardPage>
44 #endif
45 
46 
47 
48 
49 
50 class QButtonGroup;
51 class QCheckBox;
52 class QLineEdit;
53 class QRadioButton;
54 class QSpinBox;
55 class QSettings;
56 
57 
58 
59 
60 /*=====================================================================================================*/
61 class VmWizardPage : public QWizardPage
62 {
63 public:
64  inline VmWizardPage(QWidget* parent=0) : QWizardPage(parent) {};
65  inline void registerField(const QString& name, QWidget* widget, const char* property=0,
66  const char* changedSignal=0)
67  {QWizardPage::registerField(name, widget, property, changedSignal);};
68 };
69 /*=====================================================================================================*/
70 
71 
72 
73 
74 /*=====================================================================================================*/
75 class VmStartupWizard : public QWizard
76 {
77  Q_OBJECT
78 public:
79 
80  //
81  // constructors/destructors:
82  //
85  VmStartupWizard(bool isFirstRun, bool isForcedRun, bool isSystemWideRun,
86  QSettings *settings, QWidget *parent=0);
87 
91  virtual ~VmStartupWizard();
92 
93 
94 
95  //
96  // Interfaces:
97  //
98  static int serialNumber();
99 
100  //
101  // Functions:
102  //
103  inline QString className() const {return "VmStartupWizard";};
104 
106 
108 
110 
112 
114 
116  //
117  // Friends:
118  //
119 
120 
121 
122  //
123  // I/O:
124  //
125  //
126 
127 private slots:
128  void accept();
129 
130 private:
131  // aux classes :
132  /*
133  // pages:
134  IntroPage *introPage_;
135  UserIdentitiesPage *userIdentitiesPage_;
136  AcIdentitiesPage *acIdentitiesPage_;
137  FinalPage *finalPage_;
138  */
139 
140  // other variables:
144 
145  // user identities:
146  QLineEdit *leUserName_;
147  QLineEdit *leUserEmail_;
148  QLineEdit *leUserInitials_;
149  QLineEdit *leAcFullName_;
150  QLineEdit *leAcAbbrevName_;
151  QLineEdit *leAcAbbName_;
152  QLineEdit *leHomeDirName_;
153  QLineEdit *leVgosDbDirName_;
154  QLineEdit *leInputDirName_;
156  QCheckBox *cbUseLocalLocale_;
157  QLineEdit *leAuxLogsDirName_;
158  QCheckBox *cbMakeAuxLog_;
159  // for logger:
160  QCheckBox *cbLogStoreInFile_;
161  QCheckBox *cbLogTimeLabel_;
162  QLineEdit *eLogFileName_;
163  QSpinBox *sLogCapacity_;
164  QButtonGroup *bgLogLevels_;
165  //
166  static const int serialNumber_;
167  QSettings *settings_;
168 
169 protected:
170 };
171 /*=====================================================================================================*/
172 
173 
174 
175 
176 
177 
178 
179 
180 /*=====================================================================================================*/
181 #endif // VM_STARTUP_WIZARD_H
QLineEdit * eLogFileName_
QLineEdit * leInputDirName_
QCheckBox * cbLogStoreInFile_
QLineEdit * leVgosDbDirName_
virtual ~VmStartupWizard()
VmWizardPage * createIntroPage()
VmWizardPage * createPageOne()
QLineEdit * leAcAbbrevName_
VmWizardPage * createPageHomeDir()
QButtonGroup * bgLogLevels_
QCheckBox * cbLogTimeLabel_
QLineEdit * leAcFullName_
VmWizardPage * createPageThree()
QLineEdit * leHomeDirName_
QString className() const
VmWizardPage * createPageTwo()
QCheckBox * cbMakeAuxLog_
QLineEdit * leUserEmail_
QLineEdit * leUserInitials_
QLineEdit * leAcAbbName_
VmStartupWizard(bool isFirstRun, bool isForcedRun, bool isSystemWideRun, QSettings *settings, QWidget *parent=0)
static int serialNumber()
QLineEdit * leMasterFilesDirName_
QCheckBox * cbUseLocalLocale_
QLineEdit * leUserName_
QLineEdit * leAuxLogsDirName_
QSettings * settings_
QSpinBox * sLogCapacity_
static const int serialNumber_
VmWizardPage * createConclusionPage()
void registerField(const QString &name, QWidget *widget, const char *property=0, const char *changedSignal=0)
VmWizardPage(QWidget *parent=0)