summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-03-30 22:28:09 (UTC)
committer harlekin <harlekin>2003-03-30 22:28:09 (UTC)
commit0b6d158a2a2b52d83ad4b1046ce9dbffff2190e6 (patch) (unidiff)
treee9e62695cf309a14bcffa31dc3dd70f652629211
parent608a9f1537af0f0f679ec5f7358e9a9716604f8b (diff)
downloadopie-0b6d158a2a2b52d83ad4b1046ce9dbffff2190e6.zip
opie-0b6d158a2a2b52d83ad4b1046ce9dbffff2190e6.tar.gz
opie-0b6d158a2a2b52d83ad4b1046ce9dbffff2190e6.tar.bz2
layout changes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp2
-rw-r--r--core/pim/today/todaybase.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index d0cdd18..4ec690c 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -171,224 +171,224 @@ void Today::loadPlugins() {
171 delete (*tit).library; 171 delete (*tit).library;
172 } 172 }
173 pluginList.clear(); 173 pluginList.clear();
174 } 174 }
175 175
176 QString path = QPEApplication::qpeDir() + "/plugins/today"; 176 QString path = QPEApplication::qpeDir() + "/plugins/today";
177 QDir dir( path, "lib*.so" ); 177 QDir dir( path, "lib*.so" );
178 178
179 QStringList list = dir.entryList(); 179 QStringList list = dir.entryList();
180 QStringList::Iterator it; 180 QStringList::Iterator it;
181 181
182 QMap<QString, TodayPlugin> tempList; 182 QMap<QString, TodayPlugin> tempList;
183 183
184 for ( it = list.begin(); it != list.end(); ++it ) { 184 for ( it = list.begin(); it != list.end(); ++it ) {
185 QInterfacePtr<TodayPluginInterface> iface; 185 QInterfacePtr<TodayPluginInterface> iface;
186 QLibrary *lib = new QLibrary( path + "/" + *it ); 186 QLibrary *lib = new QLibrary( path + "/" + *it );
187 187
188 qDebug( "querying: %s", QString( path + "/" + *it ).latin1() ); 188 qDebug( "querying: %s", QString( path + "/" + *it ).latin1() );
189 if ( lib->queryInterface( IID_TodayPluginInterface, (QUnknownInterface**)&iface ) == QS_OK ) { 189 if ( lib->queryInterface( IID_TodayPluginInterface, (QUnknownInterface**)&iface ) == QS_OK ) {
190 qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() ); 190 qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() );
191 qDebug( QString(*it) ); 191 qDebug( QString(*it) );
192 192
193 TodayPlugin plugin; 193 TodayPlugin plugin;
194 plugin.library = lib; 194 plugin.library = lib;
195 plugin.iface = iface; 195 plugin.iface = iface;
196 plugin.name = QString(*it); 196 plugin.name = QString(*it);
197 197
198 QString type = (*it).left( (*it).find(".") ); 198 QString type = (*it).left( (*it).find(".") );
199 QStringList langs = Global::languageList(); 199 QStringList langs = Global::languageList();
200 for (QStringList::ConstIterator lit = langs.begin(); lit!=langs.end(); ++lit) { 200 for (QStringList::ConstIterator lit = langs.begin(); lit!=langs.end(); ++lit) {
201 QString lang = *lit; 201 QString lang = *lit;
202 qDebug( "Languages: " + lang ); 202 qDebug( "Languages: " + lang );
203 QTranslator * trans = new QTranslator( qApp ); 203 QTranslator * trans = new QTranslator( qApp );
204 QString tfn = QPEApplication::qpeDir()+"/i18n/" + lang + "/" + type + ".qm"; 204 QString tfn = QPEApplication::qpeDir()+"/i18n/" + lang + "/" + type + ".qm";
205 if ( trans->load( tfn ) ) { 205 if ( trans->load( tfn ) ) {
206 qApp->installTranslator( trans ); 206 qApp->installTranslator( trans );
207 } else { 207 } else {
208 delete trans; 208 delete trans;
209 } 209 }
210 } 210 }
211 211
212 // find out if plugins should be shown 212 // find out if plugins should be shown
213 if ( m_excludeApplets.grep( *it ).isEmpty() ) { 213 if ( m_excludeApplets.grep( *it ).isEmpty() ) {
214 plugin.active = true; 214 plugin.active = true;
215 } else { 215 } else {
216 plugin.active = false; 216 plugin.active = false;
217 } 217 }
218 218
219 plugin.guiPart = plugin.iface->guiPart(); 219 plugin.guiPart = plugin.iface->guiPart();
220 plugin.excludeRefresh = plugin.guiPart->excludeFromRefresh(); 220 plugin.excludeRefresh = plugin.guiPart->excludeFromRefresh();
221 221
222 // package the whole thing into a qwidget so it can be shown and hidden 222 // package the whole thing into a qwidget so it can be shown and hidden
223 plugin.guiBox = new QWidget( this ); 223 plugin.guiBox = new QWidget( this );
224 QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox ); 224 QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox );
225 QPixmap plugPix; 225 QPixmap plugPix;
226 plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 ); 226 plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 );
227 OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox ); 227 OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox );
228 plugIcon->setPixmap( plugPix ); 228 plugIcon->setPixmap( plugPix );
229 QWhatsThis::add( plugIcon, tr("Click here to launch the associated app") ); 229 QWhatsThis::add( plugIcon, tr("Click here to launch the associated app") );
230 plugIcon->setName( plugin.guiPart->appName() ); 230 plugIcon->setName( plugin.guiPart->appName() );
231 connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) ); 231 connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) );
232 // a scrollview for each plugin 232 // a scrollview for each plugin
233 QScrollView* sv = new QScrollView( plugin.guiBox ); 233 QScrollView* sv = new QScrollView( plugin.guiBox );
234 QWidget *plugWidget = plugin.guiPart->widget( sv->viewport() ); 234 QWidget *plugWidget = plugin.guiPart->widget( sv->viewport() );
235 // not sure if that is good .-) 235 // not sure if that is good .-)
236 sv->setMinimumHeight( 12 ); 236 sv->setMinimumHeight( 12 );
237 sv->setResizePolicy( QScrollView::AutoOneFit ); 237 sv->setResizePolicy( QScrollView::AutoOneFit );
238 sv->setHScrollBarMode( QScrollView::AlwaysOff ); 238 sv->setHScrollBarMode( QScrollView::AlwaysOff );
239 sv->setFrameShape( QFrame::NoFrame ); 239 sv->setFrameShape( QFrame::NoFrame );
240 sv->addChild( plugWidget ); 240 sv->addChild( plugWidget );
241 // make sure the icon is on the top alligned 241 // make sure the icon is on the top alligned
242 boxLayout->addWidget( plugIcon, 0, AlignTop ); 242 boxLayout->addWidget( plugIcon, 0, AlignTop );
243 boxLayout->addWidget( sv, 0, AlignTop ); 243 boxLayout->addWidget( sv, 0, AlignTop );
244 boxLayout->setStretchFactor( plugIcon, 1 ); 244 boxLayout->setStretchFactor( plugIcon, 1 );
245 boxLayout->setStretchFactor( sv, 9 ); 245 boxLayout->setStretchFactor( sv, 9 );
246 // "prebuffer" it in one more list, to get the sorting done 246 // "prebuffer" it in one more list, to get the sorting done
247 tempList.insert( plugin.name, plugin ); 247 tempList.insert( plugin.name, plugin );
248 248
249 // on first start the list is off course empty 249 // on first start the list is off course empty
250 if ( m_allApplets.isEmpty() ) { 250 if ( m_allApplets.isEmpty() ) {
251 layout->addWidget( plugin.guiBox ); 251 layout->addWidget( plugin.guiBox );
252 pluginList.append( plugin ); 252 pluginList.append( plugin );
253 } 253 }
254 254
255 // if plugin is not yet in the list, add it to the layout too 255 // if plugin is not yet in the list, add it to the layout too
256 else if ( !m_allApplets.contains( plugin.name ) ) { 256 else if ( !m_allApplets.contains( plugin.name ) ) {
257 layout->addWidget( plugin.guiBox ); 257 layout->addWidget( plugin.guiBox );
258 pluginList.append( plugin ); 258 pluginList.append( plugin );
259 } 259 }
260 } else { 260 } else {
261 qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() ); 261 qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() );
262 delete lib; 262 delete lib;
263 } 263 }
264 } 264 }
265 265
266 if ( !m_allApplets.isEmpty() ) { 266 if ( !m_allApplets.isEmpty() ) {
267 TodayPlugin tempPlugin; 267 TodayPlugin tempPlugin;
268 QStringList::Iterator stringit; 268 QStringList::Iterator stringit;
269 269
270 for( stringit = m_allApplets.begin(); stringit != m_allApplets.end(); ++stringit ) { 270 for( stringit = m_allApplets.begin(); stringit != m_allApplets.end(); ++stringit ) {
271 tempPlugin = ( tempList.find( *stringit ) ).data(); 271 tempPlugin = ( tempList.find( *stringit ) ).data();
272 if ( !( (tempPlugin.name).isEmpty() ) ) { 272 if ( !( (tempPlugin.name).isEmpty() ) ) {
273 layout->addWidget( tempPlugin.guiBox ); 273 layout->addWidget( tempPlugin.guiBox );
274 pluginList.append( tempPlugin ); 274 pluginList.append( tempPlugin );
275 } 275 }
276 } 276 }
277 } 277 }
278 draw(); 278 draw();
279} 279}
280 280
281 281
282/** 282/**
283 * Repaint method. Reread all fields. 283 * Repaint method. Reread all fields.
284 */ 284 */
285void Today::draw() { 285void Today::draw() {
286 286
287 if ( pluginList.count() == 0 ) { 287 if ( pluginList.count() == 0 ) {
288 QLabel *noPlugins = new QLabel( this ); 288 QLabel *noPlugins = new QLabel( this );
289 noPlugins->setText( tr( "No plugins found" ) ); 289 noPlugins->setText( tr( "No plugins found" ) );
290 layout->addWidget( noPlugins ); 290 layout->addWidget( noPlugins );
291 return; 291 return;
292 } 292 }
293 293
294 uint count = 0; 294 uint count = 0;
295 TodayPlugin plugin; 295 TodayPlugin plugin;
296 for ( uint i = 0; i < pluginList.count(); i++ ) { 296 for ( uint i = 0; i < pluginList.count(); i++ ) {
297 plugin = pluginList[i]; 297 plugin = pluginList[i];
298 298
299 if ( plugin.active ) { 299 if ( plugin.active ) {
300 // qDebug( plugin.name + " is ACTIVE " ); 300 // qDebug( plugin.name + " is ACTIVE " );
301 plugin.guiBox->show(); 301 plugin.guiBox->show();
302 } else { 302 } else {
303 // qDebug( plugin.name + " is INACTIVE" ); 303 // qDebug( plugin.name + " is INACTIVE" );
304 plugin.guiBox->hide(); 304 plugin.guiBox->hide();
305 } 305 }
306 count++; 306 count++;
307 } 307 }
308 308
309 if ( count == 0 ) { 309 if ( count == 0 ) {
310 QLabel *noPluginsActive = new QLabel( this ); 310 QLabel *noPluginsActive = new QLabel( this );
311 noPluginsActive->setText( tr( "No plugins activated" ) ); 311 noPluginsActive->setText( tr( "No plugins activated" ) );
312 layout->addWidget( noPluginsActive ); 312 layout->addWidget( noPluginsActive );
313 } 313 }
314 layout->addStretch(0); 314 layout->addStretch(0);
315} 315}
316 316
317 317
318/** 318/**
319 * The method for the configuration dialog. 319 * The method for the configuration dialog.
320 */ 320 */
321void Today::startConfig() { 321void Today::startConfig() {
322 322
323 // disconnect timer to prevent problems while being on config dialog 323 // disconnect timer to prevent problems while being on config dialog
324 disconnect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); 324 disconnect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) );
325 m_refreshTimer->stop( ); 325 m_refreshTimer->stop( );
326 326
327 TodayConfig conf( this, "dialog", true ); 327 TodayConfig conf( this, "dialog", true );
328 328
329 TodayPlugin plugin; 329 TodayPlugin plugin;
330 QList<TodayConfigWidget> configWidgetList; 330 QList<TodayConfigWidget> configWidgetList;
331 331
332 for ( int i = pluginList.count() - 1; i >= 0; i-- ) { 332 for ( int i = pluginList.count() - 1; i >= 0; i-- ) {
333 plugin = pluginList[i]; 333 plugin = pluginList[i];
334 334
335 // load the config widgets in the tabs 335 // load the config widgets in the tabs
336 if ( plugin.guiPart->configWidget( this ) != 0l ) { 336 if ( plugin.guiPart->configWidget( this ) != 0l ) {
337 TodayConfigWidget* widget = plugin.guiPart->configWidget( conf.TabWidget3 ); 337 TodayConfigWidget* widget = plugin.guiPart->configWidget( conf.TabWidget3 );
338 configWidgetList.append( widget ); 338 configWidgetList.append( widget );
339 conf.TabWidget3->addTab( widget, plugin.guiPart->pixmapNameConfig() 339 conf.TabWidget3->addTab( widget, plugin.guiPart->pixmapNameConfig()
340 , plugin.guiPart->appName() ); 340 , plugin.guiPart->appName() );
341 } 341 }
342 // set the order/activate tab 342 // set the order/activate tab
343 conf.pluginManagement( plugin.name, plugin.guiPart->pluginName(), 343 conf.pluginManagement( plugin.name, plugin.guiPart->pluginName(),
344 Resource::loadPixmap( plugin.guiPart->pixmapNameWidget() ) ); 344 Resource::loadPixmap( plugin.guiPart->pixmapNameWidget() ) );
345 } 345 }
346 346
347 if ( conf.exec() == QDialog::Accepted ) { 347 if ( conf.exec() == QDialog::Accepted ) {
348 conf.writeConfig(); 348 conf.writeConfig();
349 TodayConfigWidget *confWidget; 349 TodayConfigWidget *confWidget;
350 for ( confWidget = configWidgetList.first(); confWidget != 0; 350 for ( confWidget = configWidgetList.first(); confWidget != 0;
351 confWidget = configWidgetList.next() ) { 351 confWidget = configWidgetList.next() ) {
352 confWidget->writeConfig(); 352 confWidget->writeConfig();
353 } 353 }
354 loadPlugins(); 354 loadPlugins();
355 } else { 355 } else {
356 // since refresh is not called in that case , reconnect the signal 356 // since refresh is not called in that case , reconnect the signal
357 m_refreshTimer->start( 15000 ); // get the config value in here later 357 m_refreshTimer->start( 15000 ); // get the config value in here later
358 connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); 358 connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) );
359 } 359 }
360} 360}
361 361
362 362
363/** 363/**
364 * Refresh for the view. Reload all applets 364 * Refresh for the view. Reload all applets
365 * 365 *
366 */ 366 */
367void Today::refresh() { 367void Today::refresh() {
368 368
369 init(); 369 init();
370 370
371 QValueList<TodayPlugin>::Iterator it; 371 QValueList<TodayPlugin>::Iterator it;
372 for ( it = pluginList.begin(); it != pluginList.end(); ++it ) { 372 for ( it = pluginList.begin(); it != pluginList.end(); ++it ) {
373 if ( !(*it).excludeRefresh ) { 373 if ( !(*it).excludeRefresh ) {
374 (*it).guiPart->refresh(); 374 (*it).guiPart->refresh();
375 qDebug( "refresh" ); 375 qDebug( "refresh" );
376 } 376 }
377 } 377 }
378} 378}
379 379
380void Today::startApplication() { 380void Today::startApplication() {
381 QCopEnvelope e( "QPE/System", "execute(QString)" ); 381 QCopEnvelope e( "QPE/System", "execute(QString)" );
382 e << QString( sender()->name() ); 382 e << QString( sender()->name() );
383} 383}
384 384
385/** 385/**
386 * launch addressbook (personal card) 386 * launch addressbook (personal card)
387 */ 387 */
388void Today::editCard() { 388void Today::editCard() {
389 QCopEnvelope env( "QPE/Application/addressbook", "editPersonalAndClose()" ); 389 QCopEnvelope env( "QPE/Application/addressbook", "editPersonalAndClose()" );
390} 390}
391 391
392Today::~Today() { 392Today::~Today() {
393} 393}
394 394
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index c896463..7beed34 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -1,107 +1,109 @@
1/* 1/*
2 * todaybase.cpp 2 * todaybase.cpp
3 * 3 *
4 * copyright : (c) 2002, 2003 by Maximilian Reiß 4 * copyright : (c) 2002, 2003 by Maximilian Reiß
5 * email : harlekin@handhelds.org 5 * email : harlekin@handhelds.org
6 * 6 *
7 */ 7 */
8/*************************************************************************** 8/***************************************************************************
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17#include "todaybase.h" 17#include "todaybase.h"
18 18
19#include <qvbox.h> 19#include <qvbox.h>
20#include <qlabel.h> 20#include <qlabel.h>
21#include <qwhatsthis.h> 21#include <qwhatsthis.h>
22 22
23#include <qpe/resource.h> 23#include <qpe/resource.h>
24 24
25 25
26TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) 26TodayBase::TodayBase( QWidget* parent, const char* name, WFlags )
27 : QWidget( parent, name, WStyle_ContextHelp ) { 27 : QWidget( parent, name, WStyle_ContextHelp ) {
28 28
29 QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo 29 QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo
30 QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla 30 QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla
31 QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon 31 QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon
32 32
33 layout = new QVBoxLayout( this ); 33 layout = 0L;
34 34
35 QPalette pal = this->palette(); 35 QPalette pal = this->palette();
36 QColor col = pal.color( QPalette::Active, QColorGroup::Background ); 36 QColor col = pal.color( QPalette::Active, QColorGroup::Background );
37 pal.setColor( QPalette::Active, QColorGroup::Button, col ); 37 pal.setColor( QPalette::Active, QColorGroup::Button, col );
38 pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); 38 pal.setColor( QPalette::Inactive, QColorGroup::Button, col );
39 pal.setColor( QPalette::Normal, QColorGroup::Button, col ); 39 pal.setColor( QPalette::Normal, QColorGroup::Button, col );
40 pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); 40 pal.setColor( QPalette::Disabled, QColorGroup::Button, col );
41 this->setPalette( pal ); 41 this->setPalette( pal );
42 42
43 // --- logo Section --- 43 // --- logo Section ---
44 QPalette pal2; 44 QPalette pal2;
45 QColorGroup cg; 45 QColorGroup cg;
46 cg.setColor( QColorGroup::Text, white ); 46 cg.setColor( QColorGroup::Text, white );
47 cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); 47 cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) );
48 pal2.setActive( cg ); 48 pal2.setActive( cg );
49 49
50// today logo 50// today logo
51 Frame = new QLabel( this, "Frame" ); 51 Frame = new QLabel( this, "Frame" );
52 Frame->setPalette( pal2 ); 52 Frame->setPalette( pal2 );
53 Frame->setFrameShape( QFrame::StyledPanel ); 53 Frame->setFrameShape( QFrame::StyledPanel );
54 Frame->setFrameShadow( QFrame::Raised ); 54 Frame->setFrameShadow( QFrame::Raised );
55 Frame->setLineWidth( 0 ); 55 Frame->setLineWidth( 0 );
56 Frame->setMaximumHeight( 50 );
56 57
57 QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); 58 QHBoxLayout *frameLayout = new QHBoxLayout( Frame );
58 QVBox *box1 = new QVBox( Frame ); 59 QVBox *box1 = new QVBox( Frame );
60 box1->setMinimumWidth( 100 );
59 // Today text 61 // Today text
60 TodayLabel = new QLabel( box1, "TodayText" ); 62 TodayLabel = new QLabel( box1, "TodayText" );
61 QFont TodayLabel_font( TodayLabel->font() ); 63 QFont TodayLabel_font( TodayLabel->font() );
62 TodayLabel_font.setBold( TRUE ); 64 TodayLabel_font.setBold( TRUE );
63 TodayLabel_font.setPointSize( 40 ); 65 TodayLabel_font.setPointSize( 40 );
64 TodayLabel->setFont( TodayLabel_font ); 66 TodayLabel->setFont( TodayLabel_font );
65 TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); 67 TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin );
66 TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" ); 68 TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" );
67 69
68 // date 70 // date
69 DateLabel = new QLabel( box1, "TextLabel1" ); 71 DateLabel = new QLabel( box1, "TextLabel1" );
70 QFont DateLabel_font( DateLabel->font() ); 72 QFont DateLabel_font( DateLabel->font() );
71 DateLabel_font.setBold( TRUE ); 73 DateLabel_font.setBold( TRUE );
72 DateLabel->setFont( DateLabel_font ); 74 DateLabel->setFont( DateLabel_font );
73 DateLabel->setBackgroundOrigin( QLabel::ParentOrigin ); 75 DateLabel->setBackgroundOrigin( QLabel::ParentOrigin );
74 DateLabel->setTextFormat( RichText ); 76 DateLabel->setTextFormat( RichText );
75 77
76 // Opiezilla 78 // Opiezilla
77 Opiezilla = new QLabel( Frame, "OpieZilla" ); 79 Opiezilla = new QLabel( Frame, "OpieZilla" );
78 Opiezilla->setPixmap( opiezilla ); 80 Opiezilla->setPixmap( opiezilla );
79 QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) ); 81 QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) );
80 Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); 82 Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin );
81 83
82 84
83 // Ownerfield 85 // Ownerfield
84 OwnerField = new OClickableLabel( this , "Owner" ); 86 OwnerField = new OClickableLabel( this , "Owner" );
85 OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) ); 87 OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) );
86 OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) ); 88 OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) );
87 OwnerField->setMaximumHeight(12); 89 OwnerField->setMaximumHeight(12);
88 90
89 // config 91 // config
90 ConfigButton = new OClickableLabel ( Frame, "PushButton1" ); 92 ConfigButton = new OClickableLabel ( Frame, "PushButton1" );
91 ConfigButton->setPixmap( config ); 93 ConfigButton->setPixmap( config );
92 QWhatsThis::add( ConfigButton, tr( "Click here to get to the config dialog" ) ); 94 QWhatsThis::add( ConfigButton, tr( "Click here to get to the config dialog" ) );
93 ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin ); 95 ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin );
94 96
95 frameLayout->addWidget( box1 ); 97 frameLayout->addWidget( box1 );
96 frameLayout->addStretch( 2 ); 98 frameLayout->addStretch( 2 );
97 frameLayout->addWidget( ConfigButton, 0, AlignBottom ); 99 frameLayout->addWidget( ConfigButton, 0, AlignBottom );
98 frameLayout->addWidget( Opiezilla ); 100 frameLayout->addWidget( Opiezilla );
99} 101}
100 102
101 103
102/** 104/**
103 * D' tor 105 * D' tor
104 */ 106 */
105TodayBase::~TodayBase() { 107TodayBase::~TodayBase() {
106} 108}
107 109