mainwindow.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "utils.h"
  5. #include <QObject>
  6. #include <QDebug>
  7. #include <QFileDialog>
  8. #include "textcolortab.h"
  9. #include "themeinfotab.h"
  10. #include <QColor>
  11. #include <QJsonObject>
  12. #include <QJsonDocument>
  13. #include <QJsonArray>
  14. #include <QMessageBox>
  15. namespace Ui {
  16. class MainWindow;
  17. }
  18. class MainWindow : public QMainWindow
  19. {
  20. Q_OBJECT
  21. public:
  22. explicit MainWindow(QWidget *parent = 0);
  23. ~MainWindow();
  24. public slots:
  25. void openFile();
  26. void saveFile();
  27. void aboutQt();
  28. void aboutMyself();
  29. void updateLabelColor(QColor labelPrimaryColor, QColor labelSecondaryColor, QColor labelIconSetColor, QColor labelSetActiveColor, QColor labelTransitionScreen);
  30. void updatePrimaryColor();
  31. void updateSecondaryColor();
  32. void updateIconSetColor();
  33. void updateIconSetActiveColor();
  34. void updateTransitionScreenColor();
  35. void updateThemeInfos(QString themeName, QString themeVer, QString themeDesc);
  36. void updateThemeName();
  37. void updateThemeVersion();
  38. void updateThemeDescription();
  39. signals:
  40. void jsonDataUpdated(QString jsonData);
  41. private:
  42. Ui::MainWindow *ui;
  43. QString m_jsonData;
  44. QJsonObject m_jsonObject;
  45. textColorTab *m_textColorTab;
  46. themeInfoTab *m_themeInfoTab;
  47. };
  48. #endif // MAINWINDOW_H