forked from Dax89/QHexView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqhexedit.h
38 lines (30 loc) · 862 Bytes
/
qhexedit.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
#ifndef QHEXEDIT_H
#define QHEXEDIT_H
#include <QHBoxLayout>
#include <QScrollArea>
#include <QFrame>
#include "document/qhexdocument.h"
#include "paint/qhexmetrics.h"
class QHexEditPrivate;
class QHexEdit : public QFrame
{
Q_OBJECT
public:
explicit QHexEdit(QWidget *parent = 0);
QHexDocument *document() const;
QHexMetrics *metrics() const;
bool readOnly() const;
public slots:
void setReadOnly(bool b);
void setDocument(QHexDocument *document);
void scroll(QWheelEvent *event);
signals:
void verticalScroll(integer_t value);
void visibleLinesChanged();
private:
QHexEditPrivate* _hexedit_p;
QScrollArea* _scrollarea;
QScrollBar* _vscrollbar;
QHBoxLayout* _hlayout;
};
#endif // QHEXEDIT_H