QGCSettingsWidget.h 626 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(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

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

#endif // QGCSETTINGSWIDGET_H