-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor_comp_structs.h
More file actions
95 lines (79 loc) · 2.13 KB
/
editor_comp_structs.h
File metadata and controls
95 lines (79 loc) · 2.13 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#ifndef EDITOR_COMP_STRUCTS_H
#define EDITOR_COMP_STRUCTS_H
#include <QComboBox>
#include <QFont>
#include <QFormLayout>
#include <QGroupBox>
#include <QLabel>
#include <QListWidget>
#include <QListWidgetItem>
#include <QHBoxLayout>
#include <QObject>
#include <QSpacerItem>
#include <QString>
#include <QVBoxLayout>
#include <QWidget>
#include "common.h"
#include "comp_structs.h"
#include "preset.h"
class EditorCompStructs : public QObject
{
Q_OBJECT
private:
// Parent
QWidget *parent_;
// Layout
QVBoxLayout *layoutRight_;
QHBoxLayout *layoutMain_;
// Left column
QListWidget *listComps_;
// Right column
QFormLayout *frmDetails_;
QGroupBox *grpDetails_;
QLabel *lblOffsetA_;
QLabel *lblOffsetB_;
QLabel *lblLongName_;
QLabel *lblShortName_;
// League size
QFormLayout *frmLeagueSize_;
QGroupBox *grpLeagueSize_;
QLabel *lblLeagueSizeHex_;
QLabel *lblLeagueSizePos_;
QLabel *lblLeagueSizeRelativePos_;
QComboBox * comboLeagueSize_;
// Playoffs
QFormLayout *frmPlayoffs_;
QGroupBox *grpPlayoffs_;
QLabel *lblPlayoffsHex_;
QLabel *lblPlayoffsPos_;
QLabel *lblPlayoffsRelativePos_;
QComboBox * comboPlayoffs_;
// Schedule
QFormLayout *frmSchedule_;
QGroupBox *grpSchedule_;
QLabel *lblScheduleHex_;
QLabel *lblSchedulePos_;
QLabel *lblScheduleRelativePos_;
QComboBox * comboSchedule_;
// Structure
QFormLayout *frmStructure_;
QGroupBox *grpStructure_;
QLabel *lblStructureHex_;
QLabel *lblStructurePos_;
QLabel *lblStructureRelativePos_;
QComboBox * comboStructure_;
int currentRow_;
private slots:
void on_listComps_currentRowChanged(int currentRow);
void on_comboLeagueSize_currentIndexChanged(int currentIndex);
void on_comboPlayoffs_currentIndexChanged(int currentIndex);
void on_comboSchedule_currentIndexChanged(int currentIndex);
void on_comboStructure_currentIndexChanged(int currentIndex);
public:
EditorCompStructs(QWidget &parent);
EditorCompStructs() {}
~EditorCompStructs() {}
void clear();
void init();
};
#endif // EDITOR_COMP_STRUCTS_H