Compilation fix
[opentx.git] / companion / src / simulation / simulatorstartupdialog.h
blobba5dc2f6a94c4c0beab338fc806fc95b609afb37
1 /*
2 * Copyright (C) OpenTX
4 * Based on code named
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"
25 #include <QDialog>
27 namespace Ui {
28 class SimulatorStartupDialog;
31 class SimulatorStartupDialog : public QDialog
33 Q_OBJECT
35 public:
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();
46 public slots:
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);
56 protected:
58 bool usesCategorizedStorage();
59 void changeEvent(QEvent *e);
61 private:
62 Ui::SimulatorStartupDialog *ui;
63 SimulatorOptions * m_options;
64 int * m_profileId;
67 #endif // SIMULATORSTARTUPDIALOG_H