QGCSettingsWidget.h 677 Bytes
Newer Older
lm's avatar
lm committed
1 2 3 4
#ifndef QGCSETTINGSWIDGET_H
#define QGCSETTINGSWIDGET_H

#include <QDialog>
5
#include "MainWindow.h"
lm's avatar
lm committed
6

7 8 9
namespace Ui
{
class QGCSettingsWidget;
lm's avatar
lm committed
10 11 12 13 14 15 16
}

class QGCSettingsWidget : public QDialog
{
    Q_OBJECT

public:
17
    QGCSettingsWidget(JoystickInput *joystick, QWidget *parent = 0, Qt::WindowFlags flags = Qt::Sheet);
lm's avatar
lm committed
18 19
    ~QGCSettingsWidget();

20
public slots:
21
    void styleChanged(int index);
22
    void lineEditFinished();
23 24
    void setDefaultStyle();
    void selectStylesheet();
25
    void selectCustomMode(int mode);
26
    void resetSettings();
27

lm's avatar
lm committed
28
private:
29
    MainWindow* mainWindow;
30 31
    Ui::QGCSettingsWidget* ui;
    bool updateStyle(QString style);
lm's avatar
lm committed
32 33 34
};

#endif // QGCSETTINGSWIDGET_H