summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/infowin.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/infowin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/infowin.h37
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,10 +1,9 @@
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>
5class QString;
6class QMultiLineEdit;
8 7
9class infowin : public QWidget 8class infowin : public QWidget
10{ 9{
@@ -14,35 +13,23 @@ Q_OBJECT
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;
18public: 21public:
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*/
46private slots: 33private slots:
47 void infoClose() { emit Close(); } 34 void infoClose() { emit Close(); }
48 signals: 35 signals: