From 59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Mon, 01 Jul 2002 23:24:08 +0000 Subject: initial --- (limited to 'noncore/apps/opie-reader/infowin.h') diff --git a/noncore/apps/opie-reader/infowin.h b/noncore/apps/opie-reader/infowin.h new file mode 100644 index 0000000..9ddce36 --- a/dev/null +++ b/noncore/apps/opie-reader/infowin.h @@ -0,0 +1,52 @@ +#ifndef __INFOWIN_H +#define __INFOWIN_H + +#include +#include +#include +#include + +class infowin : public QWidget +{ +Q_OBJECT + QLabel* fileSize; + QLabel* textSize; + QLabel* ratio; + QLabel* location; + QLabel* read; + QGridLayout* grid; +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(); + } + } +*/ +private slots: + void infoClose() { emit Close(); } + signals: + void Close(); +}; + +#endif -- cgit v0.9.0.2