summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/configdocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/configdocument.h')
-rw-r--r--utils/themeeditor/gui/configdocument.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/utils/themeeditor/gui/configdocument.h b/utils/themeeditor/gui/configdocument.h
index e91c5cc..29278db 100644
--- a/utils/themeeditor/gui/configdocument.h
+++ b/utils/themeeditor/gui/configdocument.h
@@ -30,8 +30,10 @@
#include <QLabel>
#include <QMap>
#include <QWheelEvent>
+#include <QTimer>
#include "tabcontent.h"
+#include "codeeditor.h"
namespace Ui {
class ConfigDocument;
@@ -58,6 +60,8 @@ public:
QString title() const;
QString toPlainText() const;
+ void syncFromBoxes();
+ void syncFromText();
void save();
void saveAs();
@@ -73,9 +77,20 @@ signals:
private slots:
void deleteClicked();
void addClicked();
+ void boxesChanged();
void textChanged();
+ void contentsChanged();
+ void blockUpdates()
+ {
+ block = true;
+ QTimer::singleShot(20, this, SLOT(unblockUpdates()));
+ }
+ void unblockUpdates(){ block = false; }
+ void buttonChecked();
private:
+ void addRow(QString key, QString value);
+
Ui::ConfigDocument *ui;
QList<QHBoxLayout*> containers;
QList<NoScrollCombo*> keys;
@@ -89,7 +104,9 @@ private:
QString filePath;
QString saved;
- void addRow(QString key, QString value);
+ CodeEditor* editor;
+
+ bool block;
};
#endif // CONFIGDOCUMENT_H