summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/infowin.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/infowin.h') (more/less context) (show 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 @@
#ifndef __INFOWIN_H
#define __INFOWIN_H
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qgrid.h>
#include <qlabel.h>
+class QString;
+class QMultiLineEdit;
class infowin : public QWidget
{
@@ -14,35 +13,23 @@ Q_OBJECT
QLabel* ratio;
QLabel* location;
QLabel* read;
- QGridLayout* grid;
+ QLabel* docread;
+ QLabel* docSize;
+ QLabel* docLocation;
+ QLabel* zoom;
+ QMultiLineEdit* aboutbox;
public:
infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0);
-/*
- void addcancel(QPushButton* exitbutton)
- {
- grid->addWidget(exitbutton, 5, 1);
- }
-*/
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)+"%"); }
-/*
- virtual void keyPressEvent(QKeyEvent* e)
- {
- printf("Received:%d\n", e->key());
- switch (e->key())
- {
- case Key_Escape:
- e->accept();
- emit Close();
- break;
- default:
- e->ignore();
- }
- }
-*/
+ 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: