author | mickeyl <mickeyl> | 2004-05-03 14:15:54 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-05-03 14:15:54 (UTC) |
commit | 1ca586e85263f06f0de2e58d174da34fee4bf937 (patch) (unidiff) | |
tree | 2852372b1f8c8a143a8b8bb37d41842891c8ff73 /noncore/net/wellenreiter/gui | |
parent | aad04cffe30ef133edcd5051ce7e486f27599d83 (diff) | |
download | opie-1ca586e85263f06f0de2e58d174da34fee4bf937.zip opie-1ca586e85263f06f0de2e58d174da34fee4bf937.tar.gz opie-1ca586e85263f06f0de2e58d174da34fee4bf937.tar.bz2 |
I hereby declare his Version 1.0.3.
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index 9bdf3e0..a29d520 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |||
@@ -24,24 +24,25 @@ | |||
24 | #include "statwindow.h" | 24 | #include "statwindow.h" |
25 | #include "graphwindow.h" | 25 | #include "graphwindow.h" |
26 | 26 | ||
27 | #ifdef QWS | 27 | #ifdef QWS |
28 | #include <qpe/resource.h> | 28 | #include <qpe/resource.h> |
29 | #include <opie2/otabwidget.h> | 29 | #include <opie2/otabwidget.h> |
30 | using namespace Opie; | 30 | using namespace Opie; |
31 | #else | 31 | #else |
32 | #include "resource.h" | 32 | #include "resource.h" |
33 | #include <qtabwidget.h> | 33 | #include <qtabwidget.h> |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #define WELLENREITER_VERSION "V1.0.3 (unofficial)" | ||
36 | 37 | ||
37 | /* | 38 | /* |
38 | * Constructs a WellenreiterBase which is a child of 'parent', with the | 39 | * Constructs a WellenreiterBase which is a child of 'parent', with the |
39 | * name 'name' and widget flags set to 'f' | 40 | * name 'name' and widget flags set to 'f' |
40 | */ | 41 | */ |
41 | using namespace Opie::Ui; | 42 | using namespace Opie::Ui; |
42 | using namespace Opie::Ui; | 43 | using namespace Opie::Ui; |
43 | using namespace Opie::Ui; | 44 | using namespace Opie::Ui; |
44 | WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) | 45 | WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) |
45 | : QWidget( parent, name, fl ) | 46 | : QWidget( parent, name, fl ) |
46 | { | 47 | { |
47 | //ani1 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot0" ) ); | 48 | //ani1 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot0" ) ); |
@@ -96,25 +97,32 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f | |||
96 | about = new QWidget( TabWidget, "about" ); | 97 | about = new QWidget( TabWidget, "about" ); |
97 | aboutLayout = new QGridLayout( about ); | 98 | aboutLayout = new QGridLayout( about ); |
98 | aboutLayout->setSpacing( 6 ); | 99 | aboutLayout->setSpacing( 6 ); |
99 | aboutLayout->setMargin( 11 ); | 100 | aboutLayout->setMargin( 11 ); |
100 | 101 | ||
101 | PixmapLabel1_3_2 = new QLabel( about, "PixmapLabel1_3_2" ); | 102 | PixmapLabel1_3_2 = new QLabel( about, "PixmapLabel1_3_2" ); |
102 | PixmapLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, PixmapLabel1_3_2->sizePolicy().hasHeightForWidth() ) ); | 103 | PixmapLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, PixmapLabel1_3_2->sizePolicy().hasHeightForWidth() ) ); |
103 | PixmapLabel1_3_2->setFrameShape( QLabel::Panel ); | 104 | PixmapLabel1_3_2->setFrameShape( QLabel::Panel ); |
104 | PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); | 105 | PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); |
105 | PixmapLabel1_3_2->setLineWidth( 2 ); | 106 | PixmapLabel1_3_2->setLineWidth( 2 ); |
106 | PixmapLabel1_3_2->setMargin( 0 ); | 107 | PixmapLabel1_3_2->setMargin( 0 ); |
107 | PixmapLabel1_3_2->setMidLineWidth( 0 ); | 108 | PixmapLabel1_3_2->setMidLineWidth( 0 ); |
108 | PixmapLabel1_3_2->setPixmap( Resource::loadPixmap( "wellenreiter/logo" ) ); | 109 | |
110 | QPixmap logo = Resource::loadPixmap( "wellenreiter/logo" ); | ||
111 | QPainter draw( &logo ); | ||
112 | draw.setPen( Qt::black ); | ||
113 | draw.setFont( QFont( "Fixed", 8 ) ); | ||
114 | draw.drawText( 30, 10, WELLENREITER_VERSION ); | ||
115 | |||
116 | PixmapLabel1_3_2->setPixmap( logo ); | ||
109 | PixmapLabel1_3_2->setScaledContents( TRUE ); | 117 | PixmapLabel1_3_2->setScaledContents( TRUE ); |
110 | PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); | 118 | PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); |
111 | 119 | ||
112 | aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); | 120 | aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); |
113 | 121 | ||
114 | TextLabel1_4_2 = new QLabel( about, "TextLabel1_4_2" ); | 122 | TextLabel1_4_2 = new QLabel( about, "TextLabel1_4_2" ); |
115 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); | 123 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); |
116 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); | 124 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); |
117 | TextLabel1_4_2_font.setPointSize( 10 ); | 125 | TextLabel1_4_2_font.setPointSize( 10 ); |
118 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); | 126 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); |
119 | TextLabel1_4_2->setText( | 127 | TextLabel1_4_2->setText( |
120 | "<p align=center>" | 128 | "<p align=center>" |