Diffstat (limited to 'noncore/apps/opie-reader/infowin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/infowin.h | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/noncore/apps/opie-reader/infowin.h b/noncore/apps/opie-reader/infowin.h index 9ddce36..6f0fb99 100644 --- a/noncore/apps/opie-reader/infowin.h +++ b/noncore/apps/opie-reader/infowin.h | |||
@@ -1,52 +1,39 @@ | |||
1 | #ifndef __INFOWIN_H | 1 | #ifndef __INFOWIN_H |
2 | #define __INFOWIN_H | 2 | #define __INFOWIN_H |
3 | 3 | ||
4 | #include <qlayout.h> | ||
5 | #include <qpushbutton.h> | ||
6 | #include <qgrid.h> | ||
7 | #include <qlabel.h> | 4 | #include <qlabel.h> |
5 | class QString; | ||
6 | class QMultiLineEdit; | ||
8 | 7 | ||
9 | class infowin : public QWidget | 8 | class infowin : public QWidget |
10 | { | 9 | { |
11 | Q_OBJECT | 10 | Q_OBJECT |
12 | QLabel* fileSize; | 11 | QLabel* fileSize; |
13 | QLabel* textSize; | 12 | QLabel* textSize; |
14 | QLabel* ratio; | 13 | QLabel* ratio; |
15 | QLabel* location; | 14 | QLabel* location; |
16 | QLabel* read; | 15 | QLabel* read; |
17 | QGridLayout* grid; | 16 | QLabel* docread; |
17 | QLabel* docSize; | ||
18 | QLabel* docLocation; | ||
19 | QLabel* zoom; | ||
20 | QMultiLineEdit* aboutbox; | ||
18 | public: | 21 | public: |
19 | infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0); | 22 | infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0); |
20 | /* | ||
21 | void addcancel(QPushButton* exitbutton) | ||
22 | { | ||
23 | grid->addWidget(exitbutton, 5, 1); | ||
24 | } | ||
25 | */ | ||
26 | void setFileSize(int sz) { fileSize->setNum(sz); } | 23 | void setFileSize(int sz) { fileSize->setNum(sz); } |
27 | void setTextSize(int sz) { textSize->setNum(sz); } | 24 | void setTextSize(int sz) { textSize->setNum(sz); } |
28 | void setRatio(int sz) { ratio->setText(QString().setNum(sz)+"%"); } | 25 | void setRatio(int sz) { ratio->setText(QString().setNum(sz)+"%"); } |
29 | void setLocation(int sz) { location->setNum(sz); } | 26 | void setLocation(int sz) { location->setNum(sz); } |
30 | void setRead(int sz) { read->setText(QString().setNum(sz)+"%"); } | 27 | void setRead(int sz) { read->setText(QString().setNum(sz)+"%"); } |
31 | /* | 28 | void setDocRead(int sz) { docread->setText(QString().setNum(sz)+"%"); } |
32 | virtual void keyPressEvent(QKeyEvent* e) | 29 | void setZoom(int sz) { zoom->setText(QString().setNum(sz)+"%"); } |
33 | { | 30 | void setDocSize(int sz) { docSize->setNum(sz); } |
34 | printf("Received:%d\n", e->key()); | 31 | void setDocLocation(int sz) { docLocation->setNum(sz); } |
35 | switch (e->key()) | 32 | void setAbout(const QString& s); |
36 | { | ||
37 | case Key_Escape: | ||
38 | e->accept(); | ||
39 | emit Close(); | ||
40 | break; | ||
41 | default: | ||
42 | e->ignore(); | ||
43 | } | ||
44 | } | ||
45 | */ | ||
46 | private slots: | 33 | private slots: |
47 | void infoClose() { emit Close(); } | 34 | void infoClose() { emit Close(); } |
48 | signals: | 35 | signals: |
49 | void Close(); | 36 | void Close(); |
50 | }; | 37 | }; |
51 | 38 | ||
52 | #endif | 39 | #endif |