forked from SlopeCraft/SlopeCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtpstrategywind.h
76 lines (64 loc) · 1.75 KB
/
tpstrategywind.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
71
72
73
74
75
76
/*
Copyright © 2021 TokiNoBug
This file is part of SlopeCraft.
SlopeCraft is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SlopeCraft is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SlopeCraft. If not, see <https://www.gnu.org/licenses/>.
Contact with me:
github:https://github.com/ToKiNoBug
bilibili:https://space.bilibili.com/351429231
*/
#ifndef TPSTRATEGYWIND_H
#define TPSTRATEGYWIND_H
#include <QMainWindow>
#include"mainwindow.h"
namespace Ui {
class tpStrategyWind;
}
class MainWindow;
#ifndef TPS__
#define TPS__
class tpS{
public:
tpS(char _pTpS='B',char _hTpS='C',QRgb _BGC=qRgb(220,220,220)){
pTpS=_pTpS;
hTpS=_hTpS;
BGC=_BGC; }
~tpS();
char pTpS;
char hTpS;
QRgb BGC;
};
#endif
class tpStrategyWind : public QMainWindow
{
Q_OBJECT
public:
explicit tpStrategyWind(QWidget *parent = nullptr);
~tpStrategyWind();
MainWindow*parent;
char pTpS;
char hTpS;
QRgb BackGroundColor;
void setVal(tpS);
protected:
void closeEvent(QCloseEvent*event);
private:
Ui::tpStrategyWind *ui;
signals:
void Confirm(tpS);
public slots:
void grabTpSInfo();
private slots:
void on_Confirm_clicked();
void on_isBGCCustom_clicked();
void on_Reset_clicked();
};
#endif // TPSTRATEGYWIND_H