-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvalueeditor.h
More file actions
42 lines (32 loc) · 796 Bytes
/
Copy pathvalueeditor.h
File metadata and controls
42 lines (32 loc) · 796 Bytes
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
#ifndef VALUEEDITOR_H
#define VALUEEDITOR_H
#include <QDialog>
#include <QModelIndex>
#include <QPointer>
#include "regutils.h"
#include "qhexedit.h"
namespace Ui {
class CValueEditor;
}
class CValue;
class CValueEditor : public QDialog
{
Q_OBJECT
Q_DISABLE_COPY(CValueEditor)
public:
explicit CValueEditor(QWidget *parent, int createType, const QModelIndex &idx);
~CValueEditor() override;
bool initFailed() const { return m_initFailure; }
CValue getValue() const { return m_value; }
public Q_SLOTS:
void saveValue();
private:
Ui::CValueEditor *ui;
QPointer<QHexEdit> hexEditor;
CValue m_value;
QModelIndex valueIndex;
bool m_initFailure { true };
int m_createType { REG_NONE };
void prepareWidgets();
};
#endif // VALUEEDITOR_H