blob: 6f0fb99c1a13c2c1059f4f093914a0e9c293d7e9 (
plain)
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
|
#ifndef __INFOWIN_H
#define __INFOWIN_H
#include <qlabel.h>
class QString;
class QMultiLineEdit;
class infowin : public QWidget
{
Q_OBJECT
QLabel* fileSize;
QLabel* textSize;
QLabel* ratio;
QLabel* location;
QLabel* read;
QLabel* docread;
QLabel* docSize;
QLabel* docLocation;
QLabel* zoom;
QMultiLineEdit* aboutbox;
public:
infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0);
void setFileSize(int sz) { fileSize->setNum(sz); }
void setTextSize(int sz) { textSize->setNum(sz); }
void setRatio(int sz) { ratio->setText(QString().setNum(sz)+"%"); }
void setLocation(int sz) { location->setNum(sz); }
void setRead(int sz) { read->setText(QString().setNum(sz)+"%"); }
void setDocRead(int sz) { docread->setText(QString().setNum(sz)+"%"); }
void setZoom(int sz) { zoom->setText(QString().setNum(sz)+"%"); }
void setDocSize(int sz) { docSize->setNum(sz); }
void setDocLocation(int sz) { docLocation->setNum(sz); }
void setAbout(const QString& s);
private slots:
void infoClose() { emit Close(); }
signals:
void Close();
};
#endif
|