29 #if QT_VERSION >= 0x050000
30 # include <QtWidgets/QBoxLayout>
31 # include <QtWidgets/QButtonGroup>
32 # include <QtWidgets/QCheckBox>
33 # include <QtWidgets/QComboBox>
34 # include <QtWidgets/QFrame>
35 # include <QtWidgets/QGroupBox>
36 # include <QtWidgets/QHeaderView>
37 # include <QtWidgets/QLabel>
38 # include <QtWidgets/QLineEdit>
39 # include <QtWidgets/QMessageBox>
40 # include <QtWidgets/QPushButton>
41 # include <QtWidgets/QSpinBox>
42 # include <QtWidgets/QRadioButton>
44 # include <QtGui/QBoxLayout>
45 # include <QtGui/QButtonGroup>
46 # include <QtGui/QCheckBox>
47 # include <QtGui/QComboBox>
48 # include <QtGui/QFrame>
49 # include <QtGui/QGroupBox>
50 # include <QtGui/QHeaderView>
51 # include <QtGui/QLabel>
52 # include <QtGui/QLineEdit>
53 # include <QtGui/QMessageBox>
54 # include <QtGui/QPushButton>
55 # include <QtGui/QSpinBox>
56 # include <QtGui/QRadioButton>
75 QBoxLayout *mainLayout;
77 QGridLayout *gridLayout;
79 mainLayout =
new QVBoxLayout(
this);
80 mainLayout -> addStretch(1);
82 gBox =
new QGroupBox(
"Logger's Options",
this);
83 gridLayout =
new QGridLayout(gBox);
87 label =
new QLabel(
"Log file name:", gBox);
88 label->setMinimumSize(label->sizeHint());
91 gridLayout->addWidget(label, 0, 0);
96 label =
new QLabel(
"Log capacity:", gBox);
97 label->setMinimumSize(label->sizeHint());
103 gridLayout->addWidget(label, 1, 0);
106 gridLayout->setColumnStretch( 2, 1);
110 cbFullDate_ =
new QCheckBox(
"Use full date format", gBox);
111 QCheckBox *cb=
new QCheckBox(
"Reserved", gBox);
112 cb->setEnabled(
false);
122 gridLayout->addWidget(cb, 0, 4);
125 gridLayout->activate();
127 mainLayout->addWidget(gBox);
128 mainLayout->addStretch(1);
132 gBox =
new QGroupBox(
"Log Levels",
this);
133 gridLayout =
new QGridLayout(gBox);
135 label =
new QLabel(
"Er", gBox);
136 label -> setMinimumSize(label->sizeHint());
137 gridLayout -> addWidget(label, 0, 2);
138 label =
new QLabel(
"Wn", gBox);
139 label -> setMinimumSize(label->sizeHint());
140 gridLayout -> addWidget(label, 0, 3);
141 label =
new QLabel(
"In", gBox);
142 label -> setMinimumSize(label->sizeHint());
143 gridLayout -> addWidget(label, 0, 4);
144 label =
new QLabel(
"Db", gBox);
145 label -> setMinimumSize(label->sizeHint());
146 gridLayout -> addWidget(label, 0, 5);
147 label =
new QLabel(
"Er", gBox);
148 label -> setMinimumSize(label->sizeHint());
149 gridLayout -> addWidget(label, 0, 8);
150 label =
new QLabel(
"Wn", gBox);
151 label -> setMinimumSize(label->sizeHint());
152 gridLayout -> addWidget(label, 0, 9);
153 label =
new QLabel(
"In", gBox);
154 label -> setMinimumSize(label->sizeHint());
155 gridLayout -> addWidget(label, 0,10);
156 label =
new QLabel(
"Db", gBox);
157 label -> setMinimumSize(label->sizeHint());
158 gridLayout -> addWidget(label, 0,11);
160 gridLayout -> setRowStretch( 0, 2);
161 gridLayout -> setColumnStretch( 0, 2);
162 gridLayout -> setColumnStretch( 1, 1);
164 for (
int i=0; i<16; i++)
167 label-> setMinimumSize(label->sizeHint());
168 gridLayout-> addWidget(label, 1+i, 1);
169 for (
int j=0; j<4; j++)
174 gridLayout -> addWidget(
cbLLevel_[j][i], 1+i, 2+j);
177 gridLayout->setColumnStretch( 6, 7);
178 gridLayout->setColumnStretch( 7, 1);
179 gridLayout->setColumnMinimumWidth( 6, label->fontMetrics().width(
"WW"));
180 for (
int i=0; i<16; i++)
183 label->setMinimumSize(label->sizeHint());
184 gridLayout->addWidget(label, 1+i, 7);
185 for (
int j=0; j<4; j++)
187 cbLLevel_[j][16+i] =
new QCheckBox(gBox);
190 gridLayout->addWidget(
cbLLevel_[j][16+i], 1+i, 8+j);
193 gridLayout->setColumnStretch( 12, 2);
194 gridLayout->activate();
196 mainLayout->addWidget(gBox);
197 mainLayout->addStretch(2);
200 unsigned int mask[4];
205 for (
int i=0; i<4; i++)
206 for (
int j=0; j<32; j++)
221 unsigned int mask[4]={0,0,0,0};
222 for (
int i=0; i<4; i++)
223 for (
int j=0; j<32; j++)
243 QString(
"IO: generic binary operations"),
244 QString(
"IO: generic text operations"),
245 QString(
"IO: NetCDF"),
246 QString(
"IO: Database handler"),
247 QString(
"General matrices"),
248 QString(
"3D Matrices"),
249 QString(
"Data interpolation"),
250 QString(
"Tools: Reserved"),
251 QString(
"Data structures: observation"),
252 QString(
"Data structures: station"),
253 QString(
"Data structures: source"),
254 QString(
"Data structures: session"),
255 QString(
"Reference frames"),
256 QString(
"Time conversion, scales"),
257 QString(
"Ionospheric correction"),
258 QString(
"Tropospheric refraction"),
259 QString(
"Calculation of delay"),
260 QString(
"Calculation of rate"),
261 QString(
"Applying flyby info"),
262 QString(
"Site displacements"),
263 QString(
"Geo: Reserved"),
264 QString(
"Estimator"),
265 QString(
"Piecewise linear parameters"),
266 QString(
"Stochastic parameters"),
267 QString(
"Config/Setup"),
268 QString(
"Graphical User Interface"),
269 QString(
"Report generator"),
270 QString(
"System resources"),
271 QString(
"Task manager"),
272 QString(
"Preliminary processing"),
273 QString(
"Reserved #1"),
274 QString(
"Reserved #2")
const int numOfFacilities
const QString facilityNames[]
const QString levelNames[4]
const int logFacilities[32]
SgGuiLoggerConfig(QWidget *, Qt::WindowFlags=Qt::Widget)
QLineEdit * eLogFileName_
QCheckBox * cbLogStoreInFile_
QCheckBox * cbLogTimeLabel_
QCheckBox * cbLLevel_[4][32]
bool getIsStoreInFile() const
void setIsStoreInFile(bool isStoreInFile)
void setLogFacility(LogLevel lvl, quint32 f)
void setFileName(const QString &fileName)
void setIsNeedTimeMark(bool isNeedTimeMark)
quint32 getLogFacility(LogLevel lvl) const
void setCapacity(int capacity)
bool getIsNeedTimeMark() const
const QString & getFileName() const
bool getUseFullDateFormat() const
void setUseFullDateFormat(bool useFullDateFormat)