StartGameTab.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * StartGameTab.cpp, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include <QWidget>
  12. namespace Ui
  13. {
  14. class StartGameTab;
  15. }
  16. enum class EGameUpdateStatus : int8_t
  17. {
  18. NOT_CHECKED,
  19. NO_UPDATE,
  20. UPDATE_AVAILABLE
  21. };
  22. enum class ETranslationStatus : int8_t;
  23. class MainWindow;
  24. class StartGameTab : public QWidget
  25. {
  26. Q_OBJECT
  27. MainWindow * getMainWindow();
  28. void refreshUpdateStatus(EGameUpdateStatus status);
  29. void refreshTranslation(ETranslationStatus status);
  30. void refreshMods();
  31. void refreshPresets();
  32. void refreshGameData();
  33. void changeEvent(QEvent *event) override;
  34. public:
  35. explicit StartGameTab(QWidget * parent = nullptr);
  36. ~StartGameTab();
  37. void refreshState();
  38. private slots:
  39. void on_buttonGameStart_clicked();
  40. void on_buttonOpenChangelog_clicked();
  41. void on_buttonOpenDownloads_clicked();
  42. void on_buttonUpdateCheck_clicked();
  43. void on_buttonGameEditor_clicked();
  44. void on_buttonImportFiles_clicked();
  45. void on_buttonInstallTranslation_clicked();
  46. void on_buttonActivateTranslation_clicked();
  47. void on_buttonUpdateMods_clicked();
  48. void on_buttonHelpImportFiles_clicked();
  49. void on_buttonInstallTranslationHelp_clicked();
  50. void on_buttonActivateTranslationHelp_clicked();
  51. void on_buttonUpdateModsHelp_clicked();
  52. void on_buttonChroniclesHelp_clicked();
  53. void on_buttonMissingSoundtrackHelp_clicked();
  54. void on_buttonMissingVideoHelp_clicked();
  55. void on_buttonMissingFilesHelp_clicked();
  56. void on_buttonMissingCampaignsHelp_clicked();
  57. void on_buttonPresetExport_clicked();
  58. void on_buttonPresetImport_clicked();
  59. void on_buttonPresetNew_clicked();
  60. void on_buttonPresetDelete_clicked();
  61. void on_comboBoxModPresets_currentTextChanged(const QString &arg1);
  62. void on_buttonPresetRename_clicked();
  63. private:
  64. Ui::StartGameTab * ui;
  65. };