author | mark <mark> | 2002-01-29 20:36:55 (UTC) |
---|---|---|
committer | mark <mark> | 2002-01-29 20:36:55 (UTC) |
commit | 5221bd5fe7bb240acdced3e91ea4bdbceff36703 (patch) (unidiff) | |
tree | 5a901da37f3210603b6c2a7794b6ad8ba712f0c8 | |
parent | 28b2412b7a59f110752c262e6645199b5cb63470 (diff) | |
download | opie-5221bd5fe7bb240acdced3e91ea4bdbceff36703.zip opie-5221bd5fe7bb240acdced3e91ea4bdbceff36703.tar.gz opie-5221bd5fe7bb240acdced3e91ea4bdbceff36703.tar.bz2 |
Moving from Qtopia logo to Opie one
-rw-r--r-- | core/apps/calibrate/calibrate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/apps/calibrate/calibrate.cpp b/core/apps/calibrate/calibrate.cpp index 96cd1ca..c0ec933 100644 --- a/core/apps/calibrate/calibrate.cpp +++ b/core/apps/calibrate/calibrate.cpp | |||
@@ -28,35 +28,35 @@ | |||
28 | 28 | ||
29 | #include <qpainter.h> | 29 | #include <qpainter.h> |
30 | #include <qtimer.h> | 30 | #include <qtimer.h> |
31 | #include <qwindowsystem_qws.h> | 31 | #include <qwindowsystem_qws.h> |
32 | #include <qgfx_qws.h> | 32 | #include <qgfx_qws.h> |
33 | 33 | ||
34 | 34 | ||
35 | Calibrate::Calibrate(QWidget* parent, const char * name, WFlags wf) : | 35 | Calibrate::Calibrate(QWidget* parent, const char * name, WFlags wf) : |
36 | QDialog( parent, name, TRUE, wf | WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop ) | 36 | QDialog( parent, name, TRUE, wf | WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop ) |
37 | { | 37 | { |
38 | showCross = TRUE; | 38 | showCross = TRUE; |
39 | const int offset = 30; | 39 | const int offset = 30; |
40 | QRect desk = qApp->desktop()->geometry(); | 40 | QRect desk = qApp->desktop()->geometry(); |
41 | setGeometry( 0, 0, desk.width(), desk.height() ); | 41 | setGeometry( 0, 0, desk.width(), desk.height() ); |
42 | if ( desk.height() < 250 ) { | 42 | if ( desk.height() < 250 ) { |
43 | int w = desk.height()/3; | 43 | int w = desk.height()/3; |
44 | logo.convertFromImage(Resource::loadImage("qtlogo").smoothScale(w,w)); | 44 | logo.convertFromImage(Resource::loadImage("opielogo").smoothScale(w,w)); |
45 | } else { | 45 | } else { |
46 | logo = Resource::loadPixmap( "qtlogo" ); | 46 | logo = Resource::loadPixmap( "opielogo" ); |
47 | } | 47 | } |
48 | cd.screenPoints[QWSPointerCalibrationData::TopLeft] = QPoint( offset, offset ); | 48 | cd.screenPoints[QWSPointerCalibrationData::TopLeft] = QPoint( offset, offset ); |
49 | cd.screenPoints[QWSPointerCalibrationData::BottomLeft] = QPoint( offset, qt_screen->deviceHeight() - offset ); | 49 | cd.screenPoints[QWSPointerCalibrationData::BottomLeft] = QPoint( offset, qt_screen->deviceHeight() - offset ); |
50 | cd.screenPoints[QWSPointerCalibrationData::BottomRight] = QPoint( qt_screen->deviceWidth() - offset, qt_screen->deviceHeight() - offset ); | 50 | cd.screenPoints[QWSPointerCalibrationData::BottomRight] = QPoint( qt_screen->deviceWidth() - offset, qt_screen->deviceHeight() - offset ); |
51 | cd.screenPoints[QWSPointerCalibrationData::TopRight] = QPoint( qt_screen->deviceWidth() - offset, offset ); | 51 | cd.screenPoints[QWSPointerCalibrationData::TopRight] = QPoint( qt_screen->deviceWidth() - offset, offset ); |
52 | cd.screenPoints[QWSPointerCalibrationData::Center] = QPoint( qt_screen->deviceWidth()/2, qt_screen->deviceHeight()/2 ); | 52 | cd.screenPoints[QWSPointerCalibrationData::Center] = QPoint( qt_screen->deviceWidth()/2, qt_screen->deviceHeight()/2 ); |
53 | goodcd = cd; | 53 | goodcd = cd; |
54 | reset(); | 54 | reset(); |
55 | 55 | ||
56 | timer = new QTimer( this ); | 56 | timer = new QTimer( this ); |
57 | connect( timer, SIGNAL(timeout()), this, SLOT(timeout()) ); | 57 | connect( timer, SIGNAL(timeout()), this, SLOT(timeout()) ); |
58 | } | 58 | } |
59 | 59 | ||
60 | Calibrate::~Calibrate() | 60 | Calibrate::~Calibrate() |
61 | { | 61 | { |
62 | store(); | 62 | store(); |
@@ -144,33 +144,33 @@ void Calibrate::paintEvent( QPaintEvent * ) | |||
144 | int y; | 144 | int y; |
145 | 145 | ||
146 | if ( !logo.isNull() ) { | 146 | if ( !logo.isNull() ) { |
147 | y = height() / 2 - logo.height() - 15; | 147 | y = height() / 2 - logo.height() - 15; |
148 | p.drawPixmap( (width() - logo.width())/2, y, logo ); | 148 | p.drawPixmap( (width() - logo.width())/2, y, logo ); |
149 | } | 149 | } |
150 | 150 | ||
151 | y = height() / 2 + 15; | 151 | y = height() / 2 + 15; |
152 | 152 | ||
153 | p.drawText( 0, y+height()/8, width(), height() - y, AlignHCenter, | 153 | p.drawText( 0, y+height()/8, width(), height() - y, AlignHCenter, |
154 | tr("Touch the crosshairs firmly and\n" | 154 | tr("Touch the crosshairs firmly and\n" |
155 | "accurately to calibrate your screen.") ); | 155 | "accurately to calibrate your screen.") ); |
156 | 156 | ||
157 | QFont f = p.font(); f.setBold(TRUE); | 157 | QFont f = p.font(); f.setBold(TRUE); |
158 | p.setFont( f ); | 158 | p.setFont( f ); |
159 | p.drawText( 0, y, width(), height() - y, AlignHCenter|WordBreak, | 159 | p.drawText( 0, y, width(), height() - y, AlignHCenter|WordBreak, |
160 | tr("Welcome to Qtopia") ); | 160 | tr("Welcome to Opie") ); |
161 | 161 | ||
162 | /* | 162 | /* |
163 | saveUnder = QPixmap::grabWindow( winId(), crossPos.x()-8, crossPos.y()-8, | 163 | saveUnder = QPixmap::grabWindow( winId(), crossPos.x()-8, crossPos.y()-8, |
164 | 16, 16 ); | 164 | 16, 16 ); |
165 | moveCrosshair( crossPos ); | 165 | moveCrosshair( crossPos ); |
166 | */ | 166 | */ |
167 | if ( showCross ) { | 167 | if ( showCross ) { |
168 | p.drawRect( crossPos.x()-1, crossPos.y()-8, 2, 7 ); | 168 | p.drawRect( crossPos.x()-1, crossPos.y()-8, 2, 7 ); |
169 | p.drawRect( crossPos.x()-1, crossPos.y()+1, 2, 7 ); | 169 | p.drawRect( crossPos.x()-1, crossPos.y()+1, 2, 7 ); |
170 | p.drawRect( crossPos.x()-8, crossPos.y()-1, 7, 2 ); | 170 | p.drawRect( crossPos.x()-8, crossPos.y()-1, 7, 2 ); |
171 | p.drawRect( crossPos.x()+1, crossPos.y()-1, 7, 2 ); | 171 | p.drawRect( crossPos.x()+1, crossPos.y()-1, 7, 2 ); |
172 | } | 172 | } |
173 | } | 173 | } |
174 | 174 | ||
175 | void Calibrate::mousePressEvent( QMouseEvent *e ) | 175 | void Calibrate::mousePressEvent( QMouseEvent *e ) |
176 | { | 176 | { |