-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyWindow.h
39 lines (32 loc) · 1.23 KB
/
MyWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef DEF_MYWINDOW_H
#define DEF_MYWINDOW_H
#include <QtWidgets>
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QTabWidget>
#include <QVBoxLayout>
#include "troops.h"
class MyWindow : public QMainWindow
{
Q_OBJECT
public:
MyWindow();
void manageBackground(),
setChooseTribeGUI();
protected:
void resizeEvent(QResizeEvent* evt) override;
public slots:
void setChooseLocationGUI(bool first = true, bool isNorth = true, bool isWest = true);
void startGame(bool isRestoring = false); // can't use a single void for all slots :'(
void refreshLoop(/*bool refresh = false*/); // connect in MyWindow doesn't seem to work according to Qt logs otherwise
private:
void addTribe(tribeEnum tribe, QString timeRequirement, QString speciality, QString troopsTraining, QString designedForUsers, bool recommended = false),
addTribeText(QVBoxLayout* vbox, QString tribeName, QString troopName, QString text);
void keyPressEvent(QKeyEvent* pe) override;
QTabWidget* m_tabs;
QLabel* setTitle(QString title);
QLineEdit* nicknameLineEdit;
};
#endif