summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/infowin.cpp
authorllornkcor <llornkcor>2002-07-01 23:24:08 (UTC)
committer llornkcor <llornkcor>2002-07-01 23:24:08 (UTC)
commit59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2 (patch) (unidiff)
treef148d4858859dac3b413e675c760acfdab24b8e6 /noncore/apps/opie-reader/infowin.cpp
parentc08be8ae22dcc1bfb83cfdec807149b161d770f5 (diff)
downloadopie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.zip
opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.gz
opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.bz2
initial
Diffstat (limited to 'noncore/apps/opie-reader/infowin.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/infowin.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/infowin.cpp b/noncore/apps/opie-reader/infowin.cpp
new file mode 100644
index 0000000..f9a6f5f
--- a/dev/null
+++ b/noncore/apps/opie-reader/infowin.cpp
@@ -0,0 +1,41 @@
1#include "infowin.h"
2#include "version.h"
3
4#define VERSION_STRING "QT Reader v" ## MAJOR ## "." ## MINOR ## " (" ## RELEASE_TYPE ## ")\nA small e-text reader"
5
6infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0) :
7 QWidget(parent, name, f)
8{
9 grid = new QGridLayout(this, 6, 2);
10 QLabel* l;
11 l = new QLabel("Compressed file size", this);
12 grid->addWidget(l, 0, 0);
13 fileSize = new QLabel("0", this);
14 fileSize->setAlignment( AlignVCenter | AlignRight );
15 grid->addWidget(fileSize, 0, 1);
16 l = new QLabel("Original text size", this);
17 grid->addWidget(l, 1, 0);
18 textSize = new QLabel("0", this);
19 textSize->setAlignment( AlignVCenter | AlignRight );
20 grid->addWidget(textSize, 1, 1);
21 l = new QLabel("Compression Ratio", this);
22 grid->addWidget(l, 2, 0);
23 ratio = new QLabel("0", this);
24 grid->addWidget(ratio, 2, 1);
25 ratio->setAlignment( AlignVCenter | AlignRight );
26 l = new QLabel("Current location", this);
27 grid->addWidget(l, 3, 0);
28 location = new QLabel("0", this);
29 location->setAlignment( AlignVCenter | AlignRight );
30 grid->addWidget(location, 3, 1);
31 l = new QLabel("Per centage read", this);
32 grid->addWidget(l, 4, 0);
33 read = new QLabel("0", this);
34 read->setAlignment( AlignVCenter | AlignRight );
35 grid->addWidget(read, 4, 1);
36 l = new QLabel(VERSION_STRING, this);
37 grid->addWidget(l, 5, 0);
38 QPushButton* exitbutton = new QPushButton("Cancel", this);
39 connect( exitbutton, SIGNAL( released() ), this, SLOT( infoClose() ) );
40 grid->addWidget(exitbutton, 5, 1);
41}