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."
76 "The format of the name is: <b>YYMMMDDBC</b>[_V<b>xxx</b>]<br>"
79 "<li><b>YY</b> </t> - two digits of year of observation</li>"
80 "<li><b>MMM</b> - three chars of month</li>"
81 "<li><b>DD</b> - day of observation</li>"
82 "<li><b>B</b> - band, usually, it is <b>X</b></li>"
83 "<li><b>C</b> - network code</li>"
84 "<li><b>xxx</b> - version number of the session (optional)</li>"
92 setWindowTitle(
"Open a database");
93 gbox =
new QGroupBox(
"Database file name",
this);
94 grid =
new QGridLayout(gbox);
96 label=
new QLabel(
"<h5>Working through CALC/SOLVE catalog sysem.</h5>"
98 "Enter a name of the database to open. You can specify one file, "
99 "X- or S-band, νSolve will pick the second one automatically (if it exists). "
100 "Or, you can provide both file names, but be sure that they belongs to one VLBI session."
103 "The format of the name is: [$]<b>YYMMMDDBC</b>[_V<b>xxx</b>]<br>"
106 "<li><b>YY</b> </t> - two digits of year of observation</li>"
107 "<li><b>MMM</b> - three chars of month</li>"
108 "<li><b>DD</b> - day of observation</li>"
109 "<li><b>B</b> - band, usually, it is <b>X</b> or <b>S</b></li>"
110 "<li><b>C</b> - network code</li>"
111 "<li><b>xxx</b> - version number of the database (optional)</li>"
118 label->setWordWrap(
true);
120 label->setMinimumWidth(1.5*label->sizeHint().width());
121 label->setMinimumHeight(label->sizeHint().height());
122 grid ->addWidget(label, 0, 0, 1, 2);
123 grid ->setRowStretch(1, 2);
125 label=
new QLabel(
"Session name to open: ", gbox);
126 label->setMinimumSize(label->sizeHint());
127 grid ->addWidget(label, 2, 0, Qt::AlignLeft | Qt::AlignVCenter);
129 leDbName_ =
new QLineEdit(
"YYMMMDDBC_Vxxx", gbox);
152 QHBoxLayout *subLayout;
153 layout =
new QVBoxLayout(
this);
154 layout -> addWidget(gbox);
155 subLayout =
new QHBoxLayout();
156 layout->addLayout(subLayout);
157 subLayout->addStretch(1);
159 QPushButton *bOk=
new QPushButton(
"OK",
this);
160 QPushButton *bCancel=
new QPushButton(
"Cancel",
this);
161 bOk->setDefault(
true);
164 bCancel->setMinimumSize((btnSize=bCancel->sizeHint()));
165 bOk->setMinimumSize(btnSize);
166 subLayout->addWidget(bOk);
167 subLayout->addWidget(bCancel);
168 connect(bOk, SIGNAL(clicked()), SLOT(
accept()));
169 connect(bCancel, SIGNAL(clicked()), SLOT(
reject()));
184 leDbName2_->setEnabled(chkState==Qt::Checked);
204 ": accept selected");
215 ": reject selected");
bool getHave2AutoloadAllBands() const
virtual void write(LogLevel, quint32, const QString &, bool=false)