StartGameTab.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. void refreshUpdateStatus(EGameUpdateStatus status);
  28. void refreshTranslation(ETranslationStatus status);
  29. void refreshMods();
  30. void refreshPresets();
  31. void refreshGameData();
  32. void changeEvent(QEvent *event) override;
  33. public:
  34. explicit StartGameTab(QWidget * parent = nullptr);
  35. ~StartGameTab();
  36. void refreshState();
  37. private slots:
  38. void on_buttonGameStart_clicked();
  39. void on_buttonOpenChangelog_clicked();
  40. void on_buttonOpenDownloads_clicked();
  41. void on_buttonUpdateCheck_clicked();
  42. void on_buttonGameEditor_clicked();
  43. void on_buttonImportFiles_clicked();
  44. void on_buttonInstallTranslation_clicked();
  45. void on_buttonActivateTranslation_clicked();
  46. void on_buttonUpdateMods_clicked();
  47. void on_buttonHelpImportFiles_clicked();
  48. void on_buttonInstallTranslationHelp_clicked();
  49. void on_buttonActivateTranslationHelp_clicked();
  50. void on_buttonUpdateModsHelp_clicked();
  51. void on_buttonChroniclesHelp_clicked();
  52. void on_buttonMissingSoundtrackHelp_clicked();
  53. void on_buttonMissingVideoHelp_clicked();
  54. void on_buttonMissingFilesHelp_clicked();
  55. void on_buttonMissingCampaignsHelp_clicked();
  56. void on_buttonPresetExport_clicked();
  57. void on_buttonPresetImport_clicked();
  58. void on_buttonPresetNew_clicked();
  59. void on_buttonPresetDelete_clicked();
  60. void on_comboBoxModPresets_currentTextChanged(const QString &arg1);
  61. void on_buttonPresetRename_clicked();
  62. void clipboardDataChanged();
  63. private:
  64. Ui::StartGameTab * ui;
  65. };