From 73253e93327cf4ef0932de1b4afb56af22a0f37e Mon Sep 17 00:00:00 2001 From: pohly Date: Tue, 24 Aug 2004 20:52:45 +0000 Subject: updated source to opie-reader 0.7g --- (limited to 'noncore/apps/opie-reader/infowin.h') 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 -#include -#include #include +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: -- cgit v0.9.0.2