Advertisement
Guest User

dd

a guest
Sep 26th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QMainWindow>
  5.  
  6. #include "field.h"
  7.  
  8. namespace Ui {
  9. class MainWindow;
  10. }
  11.  
  12. namespace GAME
  13. {
  14.  
  15. class PaintTab;
  16.  
  17. class MainWindow : public QMainWindow
  18. {
  19.     Q_OBJECT
  20.  
  21. public:
  22.     std::vector<PaintTab*> tabs;
  23.     field * Data;
  24.  
  25.     void clearSpellBox();
  26.     void setPrimaryParam();
  27.     void graphicTabHadler();
  28.  
  29.     explicit MainWindow(QWidget *parent = 0);
  30.     ~MainWindow();
  31.  
  32. private slots:
  33.     void on_actionQuit_triggered();
  34.     void on_actionNew_game_triggered();
  35.     void on_actionReset_game_triggered();
  36.  
  37.     void setStartForm();
  38.  
  39.     void setForm();
  40.  
  41.     void disableMoveBtn(const QString & reason);
  42.  
  43.     void on_btn_make_attack_clicked();
  44.  
  45.     void calcwinner();
  46.  
  47.     void on_btn_attack_clicked();
  48.  
  49.     void on_btn_mag_attack_clicked();
  50.  
  51.     void on_btn_shield_clicked();
  52.  
  53.     void on_btn_res_mana_clicked();
  54.  
  55.     void on_actionAbout_game_triggered();
  56.  
  57.     void on_actionClear_form_triggered();
  58.  
  59. signals:
  60.         void StartFormChanged();
  61.         void FormChanged();
  62.         void reasonDisabledMoveBtn(const QString & reason);
  63.         void endgame();
  64.  
  65. private:
  66.     Ui::MainWindow *ui;
  67. };
  68.  
  69. } // end of GAME
  70. #endif // MAINWINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement