mainwindow.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 "loadingcolortab.h"
  11. #include "dialogboxestab.h"
  12. #include <QColor>
  13. #include <QJsonObject>
  14. #include <QJsonDocument>
  15. #include <QJsonArray>
  16. #include <QMessageBox>
  17. namespace Ui {
  18. class MainWindow;
  19. }
  20. class MainWindow : public QMainWindow
  21. {
  22. Q_OBJECT
  23. public:
  24. explicit MainWindow(QWidget *parent = 0);
  25. ~MainWindow();
  26. public slots:
  27. void openFile();
  28. void saveFile();
  29. void aboutQt();
  30. void aboutMyself();
  31. void updateLabelColor(QColor labelPrimaryColor, QColor labelSecondaryColor, QColor labelIconSetColor, QColor labelSetActiveColor, QColor labelTransitionScreen);
  32. void updatePrimaryColor();
  33. void updateSecondaryColor();
  34. void updateIconSetColor();
  35. void updateIconSetActiveColor();
  36. void updateTransitionScreenColor();
  37. void updateLabelLoadingColor(QColor labelLoadingIconColor, QColor labelLoadingTextColor, QColor labelFreTextColor, QColor labelVersionTextColor, QColor labelPercentageTextColor);
  38. void updateLoadingIconColor();
  39. void updateLoadingTextColor();
  40. void updateFreTextColor();
  41. void updateVersionTextColor();
  42. void updatePercentageTextColor();
  43. void updateLabelDialogBoxesColor(QColor labelBoxColor, QColor labelBoxOutlineColor, QColor labelDialogBackground, QColor labelDialogButton, QColor labelDialogButtonText);
  44. void updateBoxColor();
  45. void updateBoxOutlineColor();
  46. void updateDialogBackground();
  47. void updateDialogButton();
  48. void updateDialogButtonText();
  49. void updateThemeInfos(QString themeName, QString themeVer, QString themeDesc);
  50. void updateThemeName();
  51. void updateThemeVersion();
  52. void updateThemeDescription();
  53. signals:
  54. void jsonDataUpdated(QString jsonData);
  55. private:
  56. Ui::MainWindow *ui;
  57. QString m_jsonData;
  58. QJsonObject m_jsonObject;
  59. textColorTab *m_textColorTab;
  60. loadingColorTab *m_loadingColorTab;
  61. dialogBoxesTab *m_dialogBoxesTab;
  62. themeInfoTab *m_themeInfoTab;
  63. };
  64. #endif // MAINWINDOW_H