mainwindow_moc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * mainwindow_moc.h, 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 <QMainWindow>
  12. #include <QStringList>
  13. #include <QTranslator>
  14. namespace Ui
  15. {
  16. class MainWindow;
  17. const QString teamName = "VCMI Team";
  18. const QString appName = "VCMI Launcher";
  19. }
  20. class QTableWidgetItem;
  21. class CModList;
  22. class MainWindow : public QMainWindow
  23. {
  24. Q_OBJECT
  25. #ifdef ENABLE_QT_TRANSLATIONS
  26. QTranslator translator;
  27. #endif
  28. private:
  29. Ui::MainWindow * ui;
  30. void load();
  31. enum TabRows
  32. {
  33. MODS = 0, SETTINGS = 1, LOBBY = 2
  34. };
  35. void changeEvent(QEvent *event) override;
  36. public:
  37. explicit MainWindow(QWidget * parent = 0);
  38. ~MainWindow();
  39. const CModList & getModList() const;
  40. void updateTranslation();
  41. void computeSidePanelSizes();
  42. public slots:
  43. void on_startGameButton_clicked();
  44. private slots:
  45. void on_modslistButton_clicked();
  46. void on_settingsButton_clicked();
  47. void on_lobbyButton_clicked();
  48. void on_startEditorButton_clicked();
  49. };