23 #include "iwadandwadspickerdialog.h"
25 #include "filefilter.h"
26 #include "gui/commongui.h"
27 #include "ui_iwadandwadspickerdialog.h"
28 #include <QFileDialog>
30 DClass<IwadAndWadsPickerDialog> :
public Ui::IwadAndWadsPickerDialog
42 IwadAndWadsPickerDialog::~IwadAndWadsPickerDialog()
46 QString IwadAndWadsPickerDialog::executable()
const
48 return d->executableInput->currentText();
51 void IwadAndWadsPickerDialog::setExecutables(
const QStringList &paths)
53 for (
const QString &path : paths)
55 if (d->executableInput->findText(path) < 0)
56 d->executableInput->addItem(path);
60 void IwadAndWadsPickerDialog::browseExecutable()
62 QString path = QFileDialog::getOpenFileName(
this, tr(
"Doomseeker - Browse executable"),
63 executable(), FileFilter::executableFilesFilter());
66 d->executableInput->setCurrentText(path);
67 if (d->executableInput->findText(path) < 0)
68 d->executableInput->addItem(path);
74 return d->wadsPicker->filePaths();
79 return d->iwadPicker->currentIwad();
84 d->iwadPicker->setIwadByName(iwad);