-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathqefientryview.h
58 lines (42 loc) · 1.19 KB
/
qefientryview.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
#ifndef QEFIENTRYVIEW_H
#define QEFIENTRYVIEW_H
#include <QWidget>
#include <QBoxLayout>
#include <QLabel>
#include <QListWidget>
#include <QPushButton>
#include <QMap>
#include <QList>
#include "qefientry.h"
class QEFIEntryView: public QWidget
{
Q_OBJECT
QBoxLayout *m_topLevelLayout;
QListWidget *m_entries;
QBoxLayout *m_buttonLayout;
QPushButton *m_moveUpEntryButton;
QPushButton *m_moveDownEntryButton;
QPushButton *m_setCurrentButton;
QPushButton *m_saveButton;
QPushButton *m_resetButton;
QPushButton *m_rebootTargetButton;
QLabel *m_bootTimeoutLabel;
QMap<quint16, QEFIEntry> m_entryItems;
QList<quint16> m_order;
int m_selectedItemIndex;
int m_rebootItemIndex;
void updateButtonState();
public:
QEFIEntryView(QWidget *parent = nullptr);
~QEFIEntryView();
public slots:
void entryChanged(int currentRow);
void resetClicked(bool checked);
void resetFromStaticListClicked(bool checked);
void saveClicked(bool checked);
void setCurrentClicked(bool checked);
void rebootClicked(bool checked);
void moveUpClicked(bool checked);
void moveDownClicked(bool checked);
};
#endif // QEFIENTRYVIEW_H