18 #include <QPushButton>
19 #include <QGridLayout>
26 # pragma GCC diagnostic push
27 # pragma GCC diagnostic ignored "-Wtemplate-id-cdtor"
31 # pragma GCC diagnostic pop
44 resize(nWidth, nHeight);
58 QSettings settings(
"ATLAS",
"VP1Light");
62 if(settings.value(
"db/path").toString()==
""){
66 text = settings.value(
"db/path").toString();
72 QGridLayout *mainLayout =
new QGridLayout(
this);
73 mainLayout->addWidget(
new QLabel(tr(
"Select Geometry Database:")), 0, 0);
80 m_browseButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
81 m_buttonBox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
87 QComboBox *comboBox =
new QComboBox;
88 comboBox->setMinimumWidth(600);
89 comboBox->setEditable(
false);
90 comboBox->addItem(
text);
91 comboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
104 m_fileName = QFileDialog::getOpenFileName(
this,
105 tr(
"Select Database"), QDir::currentPath(),
106 tr(
"DB Files (*.db)"));
124 QSettings settings(
"ATLAS",
"VP1Light");
130 msgBox.setWindowTitle(
"Virtual Point 1");
131 msgBox.setText(
"Database does not exist. Please choose another database file.");
135 VP1GeoDBSelection::setResult(1);