-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
70 lines (54 loc) · 1.44 KB
/
mainwindow.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* (c) Picobyte 2017, GPL2
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QApplication>
#include <QFrame>
#include <QGraphicsView>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QStackedWidget>
#include <QLabel>
#include <QListView>
#include <QMainWindow>
#include <QDesktopWidget>
#include <QProgressBar>
#include <QPushButton>
#include <QWidget>
#include "location_view.h"
#include "person_interaction.h"
#include "school_management.h"
#include "generic.h"
#include "game.h"
static const char* displaystat[] = {"Education", "Happiness", "Loyalty", "Inhibition", "Lust", "Corruption", "Reputation", "Students", "Money"};
static unsigned wait_time[] = {10, 30, 60};
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
class Location_view;
class MainWindow : public QMainWindow
{
Q_OBJECT
QWidget W, gridW;
QGridLayout grid;
QLabel time_display, date_display, location;
QProgressBar energy_bar, arousal_bar;
QStackedWidget stackWidget;
Game game;
QLabel displaystat_hdr[ARRAY_LEN(displaystat)];
QLabel displaystat_val[ARRAY_LEN(displaystat)];
Location_view *loc;
AspectRatioPixmapLabel siteView;
SchoolManagement* school_management;
QPushButton push_wait[ARRAY_LEN(wait_time)];
public:
explicit MainWindow(QWidget *parent = 0);
void dummy_startup();
void retranslateUi();
public slots:
void toggle_school_management();
};
#endif // MAINWINDOW_H