Fix remaining model editor sync issues with RawSource changes. (#5936)
[opentx.git] / companion / src / styleeditdialog.h
blobd66c5460217758688abc50303f51c292956dcf62
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 _STYLEEDITDIALOG_H_
22 #define _STYLEEDITDIALOG_H_
24 #include "helpers_html.h"
25 #include <QtWidgets>
27 namespace Ui {
28 class StyleEditDialog;
31 class StyleEditDialog : public QDialog
33 Q_OBJECT
35 public:
36 StyleEditDialog(QWidget * parent, const QString stylesheet);
37 ~StyleEditDialog();
39 private slots:
40 void update();
41 void changed();
42 void resetToDefault();
44 private:
45 Ui::StyleEditDialog *ui;
46 Stylesheet mStylesheet;
47 bool mDirty;
50 #endif // _STYLEEDITDIALOG_H_