Simple dialog box where user can pick path to IWAD and additional game files. More...
#include <iwadandwadspickerdialog.h>
Public Member Functions | |
IwadAndWadsPickerDialog (QWidget *parent) | |
QString | executable () const |
QStringList | filePaths () const |
List of file paths (excluding IWAD) that were picked by the user. More... | |
QString | iwadPath () const |
Path to IWAD file that was picked by the user. More... | |
void | setExecutables (const QStringList &executables) |
void | setIwadByName (const QString &iwad) |
Attempt to chose default IWAD by name. More... | |
Simple dialog box where user can pick path to IWAD and additional game files.
This dialog box contains two input widgets and standard accept/cancel buttons. User can pick a single IWAD from a combo box, and multiple other files (PWADs, Dehacked patches, etc.) using a list that also accepts drag'n'drops. Files can also be browsed using OS standard file browser dialog.
Doomseeker will attempt to find all known IWADs in "File paths" that are configured by the user. It will populate the combo box with all found paths. If it's desired, the dialog can be instructed to select a default IWAD by name using setIwadByName() method.
If dialog is "Accepted", results can be obtained through filePaths() and iwadPath() accessors.
Definition at line 49 of file iwadandwadspickerdialog.h.
QStringList IwadAndWadsPickerDialog::filePaths | ( | ) | const |
List of file paths (excluding IWAD) that were picked by the user.
Definition at line 72 of file iwadandwadspickerdialog.cpp.
QString IwadAndWadsPickerDialog::iwadPath | ( | ) | const |
Path to IWAD file that was picked by the user.
Definition at line 77 of file iwadandwadspickerdialog.cpp.
void IwadAndWadsPickerDialog::setIwadByName | ( | const QString & | iwad | ) |
Attempt to chose default IWAD by name.
Attempts to set the path to the IWAD. It might be unsuccessful if IWAD cannot be found in any directory that was preconfigured by the user. In this case the method fails silently and does nothing.
Definition at line 82 of file iwadandwadspickerdialog.cpp.