28 #if QT_VERSION >= 0x050000
29 # include <QtWidgets/QBoxLayout>
30 # include <QtWidgets/QCheckBox>
31 # include <QtWidgets/QGroupBox>
32 # include <QtWidgets/QLabel>
33 # include <QtWidgets/QLineEdit>
34 # include <QtWidgets/QPushButton>
36 # include <QtGui/QBoxLayout>
37 # include <QtGui/QCheckBox>
38 # include <QtGui/QGroupBox>
39 # include <QtGui/QLabel>
40 # include <QtGui/QLineEdit>
41 # include <QtGui/QPushButton>
55 Qt::WindowFlags flags) :
QDialog(parent, flags)
60 bool isVdb = auxFileName==NULL;
67 setWindowTitle(
"Open a session");
68 gbox =
new QGroupBox(
"Session name",
this);
69 grid =
new QGridLayout(gbox);
71 label=
new QLabel(
"<h5>Loading default wrapper file for the specified session.</h5>"
73 "Enter a name of the session to open."
77 "The format of the name is one of:"
79 "<li></t></t> <b>YYMMMDDBC</b>[_V<b>xxx</b>]</li>"
80 "<li></t></t> <b>YYYYMMDD-SessionCode</b>[_V<b>xxx</b>]</li>"
84 "<li><b>YY</b> </t> - two digits of a year of observations</li>"
85 "<li><b>YYYY</b> </t> - four digits of a year of observations</li>"
86 "<li><b>MMM</b> - three chars of a month</li>"
87 "<li><b>MM</b> - number of a month</li>"
88 "<li><b>DD</b> - day of observation</li>"
89 "<li><b>B</b> - band, usually, it is <b>X</b></li>"
90 "<li><b>C</b> - network code</li>"
91 "<li><b>SessionCode</b> - session code according to masterfile</li>"
92 "<li><b>xxx</b> - version number of the session (optional)</li>"
100 setWindowTitle(
"Open a database");
101 gbox =
new QGroupBox(
"Database file name",
this);
102 grid =
new QGridLayout(gbox);
104 label=
new QLabel(
"<h5>Working through CALC/SOLVE catalog sysem.</h5>"
106 "Enter a name of the database to open. You can specify one file, "
107 "X- or S-band, νSolve will pick the second one automatically (if it exists). "
108 "Or, you can provide both file names, but be sure that they belongs to one VLBI session."
111 "The format of the name is: [$]<b>YYMMMDDBC</b>[_V<b>xxx</b>]<br>"
114 "<li><b>YY</b> </t> - two digits of year of observation</li>"
115 "<li><b>MMM</b> - three chars of month</li>"
116 "<li><b>DD</b> - day of observation</li>"
117 "<li><b>B</b> - band, usually, it is <b>X</b> or <b>S</b></li>"
118 "<li><b>C</b> - network code</li>"
119 "<li><b>xxx</b> - version number of the database (optional)</li>"
126 label->setWordWrap(
true);
128 label->setMinimumWidth(1.5*label->sizeHint().width());
129 label->setMinimumHeight(label->sizeHint().height());
130 grid ->addWidget(label, 0, 0, 1, 2);
131 grid ->setRowStretch(1, 2);
133 label=
new QLabel(
"Session name to open: ", gbox);
134 label->setMinimumSize(label->sizeHint());
135 grid ->addWidget(label, 2, 0, Qt::AlignLeft | Qt::AlignVCenter);
137 leDbName_ =
new QLineEdit(
"YYMMMDDBC_Vxxx", gbox);
160 QHBoxLayout *subLayout;
161 layout =
new QVBoxLayout(
this);
162 layout -> addWidget(gbox);
163 subLayout =
new QHBoxLayout();
164 layout->addLayout(subLayout);
165 subLayout->addStretch(1);
167 QPushButton *bOk=
new QPushButton(
"OK",
this);
168 QPushButton *bCancel=
new QPushButton(
"Cancel",
this);
169 bOk->setDefault(
true);
172 bCancel->setMinimumSize((btnSize=bCancel->sizeHint()));
173 bOk->setMinimumSize(btnSize);
174 subLayout->addWidget(bOk);
175 subLayout->addWidget(bCancel);
176 connect(bOk, SIGNAL(clicked()), SLOT(
accept()));
177 connect(bCancel, SIGNAL(clicked()), SLOT(
reject()));
192 leDbName2_->setEnabled(chkState==Qt::Checked);
212 ": accept selected");
223 ": reject selected");
bool getHave2AutoloadAllBands() const
virtual void write(LogLevel, quint32, const QString &, bool=false)