-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor_comp_rules.h
More file actions
68 lines (55 loc) · 1.3 KB
/
editor_comp_rules.h
File metadata and controls
68 lines (55 loc) · 1.3 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
#ifndef EDITOR_COMP_RULES_H
#define EDITOR_COMP_RULES_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_rules.h"
#include "preset.h"
class EditorCompRules : 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_;
// Line up rules
QFormLayout *frmLineUp_;
QGroupBox *grpLineUp_;
QLabel *lblLineUpHex_;
QLabel *lblLineUpPos_;
QLabel *lblLineUpRelativePos_;
QComboBox * comboLineUp_;
int currentRow_;
private slots:
void on_listComps_currentRowChanged(int currentRow);
void on_comboLineUp_currentIndexChanged(int currentIndex);
public:
EditorCompRules(QWidget &parent);
EditorCompRules() {}
~EditorCompRules() {}
void clear();
void init();
};
#endif // EDITOR_COMP_RULES_H