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(
"aod/path").toString()==
""){
66 text = settings.value(
"aod/path").toString();
72 QGridLayout *mainLayout =
new QGridLayout(
this);
73 mainLayout->addWidget(
new QLabel(tr(
"Select AOD file:")), 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 AOD file"), QDir::currentPath(),
106 tr(
"AOD Files (*)"));
124 QSettings settings(
"ATLAS",
"VP1Light");
130 msgBox.setWindowTitle(
"Virtual Point 1");
131 msgBox.setText(
"AOD file does not exist. Please choose another file.");
135 VP1AODSelection::setResult(1);