[go: up one dir, main page]

Menu

[4cf102]: / binarynumber.h  Maximize  Restore  History

Download this file

36 lines (29 with data), 672 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
#ifndef BINARYNUMBER_H
#define BINARYNUMBER_H
#include <QtGui>
#include <QWidget>
class BinaryNumber: public QWidget
{
Q_OBJECT
public:
BinaryNumber();
char chars[80];
void clear();
void setNibbles(int x, int w, int show = -1);
void setBits(int x, int w, int show = -1);
void setBit(int x, int b);
void setText(QString s, int w);
void setHighlight(int l, int h = -1);
QSize sizeHint() const;
int width;
int show;
int highlightLow, highlightHigh;
int charSize;
bool underline;
void setUnderline();
bool overline;
void setOverline();
protected:
void paintEvent(QPaintEvent *event);
};
#endif