Sun, 19 Jan 2020 02:54:48 +0200
commit work on GL rendering
3 | 1 | #pragma once |
2 | #include <QDate> | |
3 | #include "main.h" | |
4 | ||
5 | struct LDHeader | |
6 | { | |
7 | struct HistoryEntry | |
8 | { | |
9 | QDate date; | |
10 | QString author; | |
11 | QString description; | |
12 | }; | |
13 | enum FileType | |
14 | { | |
15 | NoHeader, | |
16 | Part, | |
17 | Subpart, | |
18 | Shortcut, | |
19 | Primitive, | |
20 | Primitive_8, | |
21 | Primitive_48, | |
22 | Configuration, | |
23 | } type = NoHeader; | |
24 | enum Qualifier | |
25 | { | |
26 | Alias = 1 << 0, | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
3
diff
changeset
|
27 | PhysicalColour = 1 << 1, |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
3
diff
changeset
|
28 | FlexibleSection = 1 << 2, |
3 | 29 | }; |
30 | QFlags<Qualifier> qualfiers; | |
31 | QString description; | |
32 | QString name; | |
33 | QString author; | |
34 | QString category; | |
35 | QString cmdline; | |
36 | QString help; | |
37 | QString keywords; | |
38 | QVector<HistoryEntry> history; | |
39 | enum | |
40 | { | |
41 | UnspecifiedLicense, | |
42 | CaLicense, | |
43 | NonCaLicense | |
44 | } license = UnspecifiedLicense; | |
45 | static decltype(license) defaultLicense(); | |
46 | }; | |
47 | ||
48 | Q_DECLARE_OPERATORS_FOR_FLAGS(QFlags<LDHeader::Qualifier>) |