-
Notifications
You must be signed in to change notification settings - Fork 9
/
gamemacro.h
72 lines (56 loc) · 1.28 KB
/
gamemacro.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
#ifndef GAMEMACRO_H
#define GAMEMACRO_H
#include <QString>
#include <QListWidgetItem>
class GameMacro : public QListWidgetItem {
QString contents;
QString name;
QString icon;
QString color;
int id;
public:
GameMacro();
GameMacro(const GameMacro& m) {
initializeFrom(m);
}
GameMacro& operator=(const GameMacro& m) {
if (this == &m)
return *this;
initializeFrom(m);
return *this;
}
void initializeFrom(const GameMacro& m) {
contents = m.contents;
name = m.name;
icon = m.icon;
color = m.color;
id = m.id;
}
bool parseMacro(const QString& macroString);
QString toString();
void setContents(const QString& cont) {
contents = cont;
}
void setName(const QString& nm) {
name = nm;
}
void setIcon(const QString& ic) {
icon = ic;
}
QString getColor() const {
return color;
}
QString getContents() const {
return contents;
}
QString getIcon() const {
return icon;
}
QString getName() const {
return name;
}
int getId() const {
return id;
}
};
#endif // GAMEMACRO_H