12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QMainWindow>
- #include "utils.h"
- #include <QObject>
- #include <QDebug>
- #include <QFileDialog>
- #include "textcolortab.h"
- #include "themeinfotab.h"
- #include <QColor>
- #include <QJsonObject>
- #include <QJsonDocument>
- #include <QJsonArray>
- #include <QMessageBox>
- namespace Ui {
- class MainWindow;
- }
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit MainWindow(QWidget *parent = 0);
- ~MainWindow();
- public slots:
- void openFile();
- void saveFile();
- void aboutQt();
- void aboutMyself();
- void updateLabelColor(QColor labelPrimaryColor, QColor labelSecondaryColor, QColor labelIconSetColor, QColor labelSetActiveColor, QColor labelTransitionScreen);
- void updatePrimaryColor();
- void updateSecondaryColor();
- void updateIconSetColor();
- void updateIconSetActiveColor();
- void updateTransitionScreenColor();
- void updateThemeInfos(QString themeName, QString themeVer, QString themeDesc);
- void updateThemeName();
- void updateThemeVersion();
- void updateThemeDescription();
- signals:
- void jsonDataUpdated(QString jsonData);
- private:
- Ui::MainWindow *ui;
- QString m_jsonData;
- QJsonObject m_jsonObject;
- textColorTab *m_textColorTab;
- themeInfoTab *m_themeInfoTab;
- };
- #endif // MAINWINDOW_H
|