23 #include "iwadandwadspickerdialog.h" 25 #include "ui_iwadandwadspickerdialog.h" 26 #include "filefilter.h" 27 #include "gui/commongui.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 foreach (
const QString &path, paths)
55 if (d->executableInput->findText(path) < 0)
57 d->executableInput->addItem(path);
62 void IwadAndWadsPickerDialog::browseExecutable()
64 QString path = QFileDialog::getOpenFileName(
this, tr(
"Doomseeker - Browse executable"),
65 executable(), FileFilter::executableFilesFilter());
69 if (d->executableInput->findText(path) < 0)
71 d->executableInput->addItem(path);
78 return d->wadsPicker->filePaths();
83 return d->iwadPicker->currentIwad();
88 d->iwadPicker->setIwadByName(iwad);
void setIwadByName(const QString &iwad)
Attempt to chose default IWAD by name.
QString iwadPath() const
Path to IWAD file that was picked by the user.
QStringList filePaths() const
List of file paths (excluding IWAD) that were picked by the user.
Simple dialog box where user can pick path to IWAD and additional game files.
static void setCurrentText(QComboBox *box, const QString &text)
Qt4 compliant implementation of Qt5's QComboBox::setCurrentText().