5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #ifndef SIMULATORSTARTUPDIALOG_H
22 #define SIMULATORSTARTUPDIALOG_H
24 #include "simulator.h"
28 class SimulatorStartupDialog
;
31 class SimulatorStartupDialog
: public QDialog
37 explicit SimulatorStartupDialog(SimulatorOptions
* options
, int * profId
, QWidget
*parent
= 0);
38 ~SimulatorStartupDialog();
40 static bool usesCategorizedStorage(const QString
& name
);
41 static QString
findRadioId(const QString
& str
);
42 static QString
radioEepromFileName(const QString
& firmwareId
, QString folder
= "");
44 void updateContainerTypes();
48 virtual void accept();
49 void loadRadioProfile(int id
);
50 void onRadioProfileChanged(int index
);
51 void onRadioTypeChanged(int index
);
52 void onDataFileSelect(bool);
53 void onDataFolderSelect(bool);
54 void onSdPathSelect(bool);
58 bool usesCategorizedStorage();
59 void changeEvent(QEvent
*e
);
62 Ui::SimulatorStartupDialog
*ui
;
63 SimulatorOptions
* m_options
;
67 #endif // SIMULATORSTARTUPDIALOG_H