-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
qefidpeditorview.h
43 lines (32 loc) · 1.01 KB
/
qefidpeditorview.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
#ifndef QEFIDPEDITORVIEW_H
#define QEFIDPEDITORVIEW_H
#include <QWidget>
#include <QFormLayout>
#include <QLabel>
#include <QComboBox>
#include <QLineEdit>
#include <QSpinBox>
#include <QList>
#include <QPair>
#include <qefi.h>
class QEFIDPEditorView: public QWidget
{
Q_OBJECT
QFormLayout *m_topLevelLayout;
QComboBox *m_dpTypeSelector;
QComboBox *m_dpSubtypeSelector;
int m_dpTypeSelected;
int m_dpSubtypeSelected;
QList<QPair<QString, QWidget *> > m_currentWidgets;
QList<QPair<QString, QWidget *> > constructDPEditView(enum QEFIDevicePathType type, quint8 subType);
QList<QPair<QString, QWidget *> > constructDPEditView(QEFIDevicePath *dp);
public:
QEFIDPEditorView(QEFIDevicePath *dp = nullptr,
QWidget *parent = nullptr);
~QEFIDPEditorView();
QEFIDevicePath *getDevicePath(); // Ownership is yours
public slots:
void dpTypeComboBoxCurrentIndexChanged(int index);
void dpSubtypeComboBoxCurrentIndexChanged(int index);
};
#endif // QEFIDPEDITORVIEW_H