summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/main.cpp1
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginconfig.cpp1
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginwidget.cpp8
-rw-r--r--core/pim/today/plugins/datebook/datebookevent.cpp2
-rw-r--r--core/pim/today/plugins/datebook/datebookplugin.cpp1
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginconfig.cpp4
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginwidget.cpp3
-rw-r--r--core/pim/today/plugins/todolist/todopluginconfig.cpp1
-rw-r--r--core/pim/today/today.cpp3
-rw-r--r--core/pim/today/todaybase.cpp1
-rw-r--r--core/pim/today/todayconfig.cpp3
11 files changed, 0 insertions, 28 deletions
diff --git a/core/pim/today/main.cpp b/core/pim/today/main.cpp
index 156cd0f..d4ec3ce 100644
--- a/core/pim/today/main.cpp
+++ b/core/pim/today/main.cpp
@@ -1,24 +1,23 @@
1/* 1/*
2 * main.cpp 2 * main.cpp
3 * 3 *
4 * --------------------- 4 * ---------------------
5 * 5 *
6 * begin : Sun 10 17:20:00 CEST 2002 6 * begin : Sun 10 17:20:00 CEST 2002
7 * copyright : (c) 2002 by Maximilian Reiß 7 * copyright : (c) 2002 by Maximilian Reiß
8 * email : max.reiss@gmx.de 8 * email : max.reiss@gmx.de
9 * 9 *
10 */ 10 */
11/*************************************************************************** 11/***************************************************************************
12 * * 12 * *
13 * This program is free software; you can redistribute it and/or modify * 13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by * 14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or * 15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. * 16 * (at your option) any later version. *
17 * * 17 * *
18 ***************************************************************************/ 18 ***************************************************************************/
19 19
20#include "today.h" 20#include "today.h"
21#include <qpe/qpeapplication.h>
22#include <opie/oapplicationfactory.h> 21#include <opie/oapplicationfactory.h>
23 22
24OPIE_EXPORT_APP( OApplicationFactory<Today> ) 23OPIE_EXPORT_APP( OApplicationFactory<Today> )
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
index 8863192..8c55937 100644
--- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
@@ -1,73 +1,72 @@
1/* 1/*
2 * addresspluginconfig.cpp 2 * addresspluginconfig.cpp
3 * 3 *
4 * copyright : (c) 2003 by Stefan Eilers 4 * copyright : (c) 2003 by Stefan Eilers
5 * email : eilers.stefan@epost.de 5 * email : eilers.stefan@epost.de
6 * 6 *
7 * This implementation was derived from the todolist plugin implementation 7 * This implementation was derived from the todolist plugin implementation
8 * 8 *
9 */ 9 */
10/*************************************************************************** 10/***************************************************************************
11 * * 11 * *
12 * This program is free software; you can redistribute it and/or modify * 12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by * 13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or * 14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. * 15 * (at your option) any later version. *
16 * * 16 * *
17 ***************************************************************************/ 17 ***************************************************************************/
18 18
19#include "addresspluginconfig.h" 19#include "addresspluginconfig.h"
20 20
21#include <qpe/config.h> 21#include <qpe/config.h>
22 22
23#include <qlayout.h> 23#include <qlayout.h>
24#include <qhbox.h> 24#include <qhbox.h>
25#include <qtoolbutton.h>
26#include <qlabel.h> 25#include <qlabel.h>
27#include <qwhatsthis.h> 26#include <qwhatsthis.h>
28#include <qvgroupbox.h> 27#include <qvgroupbox.h>
29 28
30 29
31AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name) 30AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name)
32 : TodayConfigWidget(parent, name ) { 31 : TodayConfigWidget(parent, name ) {
33 32
34 QVBoxLayout * layout = new QVBoxLayout( this ); 33 QVBoxLayout * layout = new QVBoxLayout( this );
35 layout->setMargin( 20 ); 34 layout->setMargin( 20 );
36 35
37#if 0 36#if 0
38 // Informational stuff 37 // Informational stuff
39 QHBox *box4 = new QHBox( this ); 38 QHBox *box4 = new QHBox( this );
40 QLabel* colorLabel = new QLabel( box4, "" ); 39 QLabel* colorLabel = new QLabel( box4, "" );
41 colorLabel->setText( tr( "To activate settings: Restart application !" ) ); 40 colorLabel->setText( tr( "To activate settings: Restart application !" ) );
42#endif 41#endif
43 42
44 // Buttongroup to enable/disable shown stuff 43 // Buttongroup to enable/disable shown stuff
45 QVGroupBox* b_group = new QVGroupBox( this, "name" ); 44 QVGroupBox* b_group = new QVGroupBox( this, "name" );
46 b_group -> setTitle( tr("Enable/Disable Views") ); 45 b_group -> setTitle( tr("Enable/Disable Views") );
47 m_showBirthdayButton = new QRadioButton( b_group ); 46 m_showBirthdayButton = new QRadioButton( b_group );
48 m_showBirthdayButton -> setText( tr( "Show &Birthdays" ) ); 47 m_showBirthdayButton -> setText( tr( "Show &Birthdays" ) );
49 m_showAnniversaryButton = new QRadioButton( b_group ); 48 m_showAnniversaryButton = new QRadioButton( b_group );
50 m_showAnniversaryButton -> setText( tr( "Show &Anniveraries" ) ); 49 m_showAnniversaryButton -> setText( tr( "Show &Anniveraries" ) );
51 50
52 QWhatsThis::add( m_showBirthdayButton , tr( "The next birthdays will just be shown, if enabled!" ) ); 51 QWhatsThis::add( m_showBirthdayButton , tr( "The next birthdays will just be shown, if enabled!" ) );
53 QWhatsThis::add( m_showAnniversaryButton , tr( "The next anniversaries will just be shown, if enabled !" ) ); 52 QWhatsThis::add( m_showAnniversaryButton , tr( "The next anniversaries will just be shown, if enabled !" ) );
54 53
55 // Max lines settings 54 // Max lines settings
56 QHBox *box1 = new QHBox( this ); 55 QHBox *box1 = new QHBox( this );
57 QLabel* TextLabel6 = new QLabel( box1, "TextLabel6" ); 56 QLabel* TextLabel6 = new QLabel( box1, "TextLabel6" );
58 TextLabel6->setText( tr( "Max Lines: " ) ); 57 TextLabel6->setText( tr( "Max Lines: " ) );
59 SpinBox2 = new QSpinBox( box1, "SpinBox2" ); 58 SpinBox2 = new QSpinBox( box1, "SpinBox2" );
60 SpinBox2->setMaxValue( 40 ); 59 SpinBox2->setMaxValue( 40 );
61 QWhatsThis::add( SpinBox2 , tr( "Set the maximum number of lines that should be shown for each anniversaries/birthdays" ) ); 60 QWhatsThis::add( SpinBox2 , tr( "Set the maximum number of lines that should be shown for each anniversaries/birthdays" ) );
62 61
63#if 0 62#if 0
64 // Clip settings (currently not used) 63 // Clip settings (currently not used)
65 QHBox *box2 = new QHBox( this ); 64 QHBox *box2 = new QHBox( this );
66 QLabel* clipLabel = new QLabel( box2, "" ); 65 QLabel* clipLabel = new QLabel( box2, "" );
67 clipLabel->setText( tr( "Clip line after X chars: " ) ); 66 clipLabel->setText( tr( "Clip line after X chars: " ) );
68 SpinBoxClip = new QSpinBox( box2, "SpinClip" ); 67 SpinBoxClip = new QSpinBox( box2, "SpinClip" );
69 SpinBoxClip->setMaxValue( 200 ); 68 SpinBoxClip->setMaxValue( 200 );
70 QWhatsThis::add( SpinBoxClip , tr( "After how many chars should be the info about the task be cut off" ) ); 69 QWhatsThis::add( SpinBoxClip , tr( "After how many chars should be the info about the task be cut off" ) );
71#endif 70#endif
72 71
73 // Look ahead settings 72 // Look ahead settings
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
index d47bc0b..c8652f3 100644
--- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
@@ -1,78 +1,70 @@
1/* 1/*
2 * addresspluginwidget.cpp 2 * addresspluginwidget.cpp
3 * 3 *
4 * copyright : (c) 2003 by Stefan Eilers 4 * copyright : (c) 2003 by Stefan Eilers
5 * email : eilers.stefan@epost.de 5 * email : eilers.stefan@epost.de
6 * 6 *
7 * This implementation was derived from the todolist plugin implementation 7 * This implementation was derived from the todolist plugin implementation
8 * 8 *
9 */ 9 */
10/*************************************************************************** 10/***************************************************************************
11 * * 11 * *
12 * This program is free software; you can redistribute it and/or modify * 12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by * 13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or * 14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. * 15 * (at your option) any later version. *
16 * * 16 * *
17 ***************************************************************************/ 17 ***************************************************************************/
18 18
19#include "addresspluginwidget.h" 19#include "addresspluginwidget.h"
20 20
21#include <qvaluelist.h>
22#include <qtl.h>
23#include <qstring.h>
24#include <qscrollview.h>
25#include <qobject.h>
26#include <qdatetime.h>
27 21
28#include <qpe/config.h> 22#include <qpe/config.h>
29#include <qpe/timestring.h>
30#include <qpe/qcopenvelope_qws.h>
31 23
32#include <opie/ocontact.h> 24#include <opie/ocontact.h>
33 25
34AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name ) 26AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name )
35 : QWidget( parent, name ) { 27 : QWidget( parent, name ) {
36 28
37 addressLabel = 0l; 29 addressLabel = 0l;
38 m_contactdb = 0l; 30 m_contactdb = 0l;
39 layoutTodo = 0l; 31 layoutTodo = 0l;
40 32
41 // Hä ? Nonsense ! (se) 33 // Hä ? Nonsense ! (se)
42 if ( m_contactdb ) { 34 if ( m_contactdb ) {
43 delete m_contactdb; 35 delete m_contactdb;
44 } 36 }
45 37
46 m_contactdb = new OContactAccess("addressplugin"); 38 m_contactdb = new OContactAccess("addressplugin");
47 39
48 connect( m_contactdb, SIGNAL( signalChanged( const OContactAccess * ) ), 40 connect( m_contactdb, SIGNAL( signalChanged( const OContactAccess * ) ),
49 this, SLOT( refresh( const OContactAccess * ) ) ); 41 this, SLOT( refresh( const OContactAccess * ) ) );
50 42
51 43
52 readConfig(); 44 readConfig();
53 getAddress(); 45 getAddress();
54} 46}
55 47
56AddressBookPluginWidget::~AddressBookPluginWidget() { 48AddressBookPluginWidget::~AddressBookPluginWidget() {
57 delete m_contactdb; 49 delete m_contactdb;
58} 50}
59 51
60void AddressBookPluginWidget::refresh( const OContactAccess* ) 52void AddressBookPluginWidget::refresh( const OContactAccess* )
61{ 53{
62 qWarning(" AddressBookPluginWidget::Database was changed externally ! "); 54 qWarning(" AddressBookPluginWidget::Database was changed externally ! ");
63 m_contactdb->reload(); 55 m_contactdb->reload();
64 getAddress(); 56 getAddress();
65} 57}
66 58
67void AddressBookPluginWidget::reinitialize() { 59void AddressBookPluginWidget::reinitialize() {
68 readConfig(); 60 readConfig();
69 getAddress(); 61 getAddress();
70} 62}
71 63
72void AddressBookPluginWidget::readConfig() { 64void AddressBookPluginWidget::readConfig() {
73 Config cfg( "todayaddressplugin" ); 65 Config cfg( "todayaddressplugin" );
74 cfg.setGroup( "config" ); 66 cfg.setGroup( "config" );
75 m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); 67 m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 );
76 m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); 68 m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 );
77 m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 ); 69 m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 );
78 m_urgentDays = cfg.readNumEntry( "urgentdays", 7 ); 70 m_urgentDays = cfg.readNumEntry( "urgentdays", 7 );
diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp
index e595047..e19a690 100644
--- a/core/pim/today/plugins/datebook/datebookevent.cpp
+++ b/core/pim/today/plugins/datebook/datebookevent.cpp
@@ -1,69 +1,67 @@
1/* 1/*
2 * datebookevent.cpp 2 * datebookevent.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 "datebookevent.h" 17#include "datebookevent.h"
18#include <qpe/config.h> 18#include <qpe/config.h>
19#include <qpe/timestring.h>
20#include <qpe/qcopenvelope_qws.h> 19#include <qpe/qcopenvelope_qws.h>
21#include <qpe/qpeapplication.h>
22#include <qpe/calendar.h> 20#include <qpe/calendar.h>
23 21
24#include <opie/odevice.h> 22#include <opie/odevice.h>
25 23
26using namespace Opie; 24using namespace Opie;
27 25
28DateBookEvent::DateBookEvent(const EffectiveEvent &ev, 26DateBookEvent::DateBookEvent(const EffectiveEvent &ev,
29 QWidget* parent, 27 QWidget* parent,
30 bool show_location, 28 bool show_location,
31 bool show_notes, 29 bool show_notes,
32 bool timeExtraLine, 30 bool timeExtraLine,
33 int maxCharClip, 31 int maxCharClip,
34 const char* name, 32 const char* name,
35 WFlags fl) : 33 WFlags fl) :
36 OClickableLabel(parent,name,fl), event(ev) { 34 OClickableLabel(parent,name,fl), event(ev) {
37 35
38 // setAlignment( AlignTop ); 36 // setAlignment( AlignTop );
39 37
40 QString msg; 38 QString msg;
41 39
42 Config config( "qpe" ); 40 Config config( "qpe" );
43 config.setGroup( "Time" ); 41 config.setGroup( "Time" );
44 // if 24 h format 42 // if 24 h format
45 ampm = config.readBoolEntry( "AMPM", TRUE ); 43 ampm = config.readBoolEntry( "AMPM", TRUE );
46 44
47 msg += "<B>" + (ev).description() + "</B>"; 45 msg += "<B>" + (ev).description() + "</B>";
48 if ( (ev).event().hasAlarm() ) { 46 if ( (ev).event().hasAlarm() ) {
49 msg += " <b>" + tr("[with alarm]") +"</b>"; 47 msg += " <b>" + tr("[with alarm]") +"</b>";
50 } 48 }
51 49
52 // include location or not 50 // include location or not
53 if ( show_location ) { 51 if ( show_location ) {
54 msg += "<BR><i>" + (ev).location() + "</i>"; 52 msg += "<BR><i>" + (ev).location() + "</i>";
55 } 53 }
56 54
57 QString timeSpacer = " "; 55 QString timeSpacer = " ";
58 if ( timeExtraLine ) { 56 if ( timeExtraLine ) {
59 timeSpacer = "<br>"; 57 timeSpacer = "<br>";
60 } 58 }
61 59
62 if ( ( TimeString::timeString( QTime( (ev).event().start().time() ) ) == "00:00" ) 60 if ( ( TimeString::timeString( QTime( (ev).event().start().time() ) ) == "00:00" )
63 && ( TimeString::timeString( QTime( (ev).event().end().time() ) ) == "23:59" ) ) { 61 && ( TimeString::timeString( QTime( (ev).event().end().time() ) ) == "23:59" ) ) {
64 msg += tr ( "All day" ); 62 msg += tr ( "All day" );
65 } else { 63 } else {
66 // start time of event 64 // start time of event
67// QDate tempDate = (ev).event().start().date(); 65// QDate tempDate = (ev).event().start().date();
68 msg += timeSpacer; 66 msg += timeSpacer;
69 msg += ampmTime( QTime( (ev).event().start().time() ) ) 67 msg += ampmTime( QTime( (ev).event().start().time() ) )
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp
index f77e440..8dfa52f 100644
--- a/core/pim/today/plugins/datebook/datebookplugin.cpp
+++ b/core/pim/today/plugins/datebook/datebookplugin.cpp
@@ -1,68 +1,67 @@
1 1
2/* 2/*
3 * datebookplugin.cpp 3 * datebookplugin.cpp
4 * 4 *
5 * copyright : (c) 2002,2003 by Maximilian Reiß 5 * copyright : (c) 2002,2003 by Maximilian Reiß
6 * email : harlekin@handhelds.org 6 * email : harlekin@handhelds.org
7 * 7 *
8 */ 8 */
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. * 14 * (at your option) any later version. *
15 * * 15 * *
16 ***************************************************************************/ 16 ***************************************************************************/
17 17
18 18
19 19
20#include "datebookevent.h"
21#include "datebookplugin.h" 20#include "datebookplugin.h"
22#include "datebookpluginconfig.h" 21#include "datebookpluginconfig.h"
23 22
24 23
25DatebookPlugin::DatebookPlugin() { 24DatebookPlugin::DatebookPlugin() {
26} 25}
27 26
28DatebookPlugin::~DatebookPlugin() { 27DatebookPlugin::~DatebookPlugin() {
29 delete (DatebookPluginWidget*)m_widget; 28 delete (DatebookPluginWidget*)m_widget;
30} 29}
31 30
32QString DatebookPlugin::pluginName() const { 31QString DatebookPlugin::pluginName() const {
33 return QObject::tr( "Datebook plugin"); 32 return QObject::tr( "Datebook plugin");
34} 33}
35 34
36double DatebookPlugin::versionNumber() const { 35double DatebookPlugin::versionNumber() const {
37 return 1.0; 36 return 1.0;
38} 37}
39 38
40QString DatebookPlugin::pixmapNameWidget() const { 39QString DatebookPlugin::pixmapNameWidget() const {
41 return "datebook/DateBook"; 40 return "datebook/DateBook";
42} 41}
43 42
44QWidget* DatebookPlugin::widget( QWidget* wid ) { 43QWidget* DatebookPlugin::widget( QWidget* wid ) {
45 if(!m_widget) { 44 if(!m_widget) {
46 m_widget = new DatebookPluginWidget( wid, "Datebook" ); 45 m_widget = new DatebookPluginWidget( wid, "Datebook" );
47 } 46 }
48 return m_widget; 47 return m_widget;
49} 48}
50 49
51QString DatebookPlugin::pixmapNameConfig() const { 50QString DatebookPlugin::pixmapNameConfig() const {
52 return "datebook/DateBook"; 51 return "datebook/DateBook";
53} 52}
54 53
55TodayConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) { 54TodayConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) {
56 return new DatebookPluginConfig( wid , "Datebook" ); 55 return new DatebookPluginConfig( wid , "Datebook" );
57} 56}
58 57
59QString DatebookPlugin::appName() const { 58QString DatebookPlugin::appName() const {
60 return "datebook"; 59 return "datebook";
61} 60}
62 61
63bool DatebookPlugin::excludeFromRefresh() const { 62bool DatebookPlugin::excludeFromRefresh() const {
64 return false; 63 return false;
65} 64}
66 65
67void DatebookPlugin::refresh() { 66void DatebookPlugin::refresh() {
68 if ( m_widget ) { 67 if ( m_widget ) {
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
index 54f820b..8ead40d 100644
--- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
@@ -1,74 +1,70 @@
1/* 1/*
2 * datebookpluginconfig.cpp 2 * datebookpluginconfig.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 17
18#include "datebookpluginconfig.h" 18#include "datebookpluginconfig.h"
19 19
20#include <qpe/config.h> 20#include <qpe/config.h>
21 21
22#include <qlayout.h> 22#include <qlayout.h>
23#include <qlabel.h>
24#include <qhbox.h>
25#include <qwhatsthis.h>
26#include <qvbox.h>
27 23
28DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) 24DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name)
29 : TodayConfigWidget( parent, name ) { 25 : TodayConfigWidget( parent, name ) {
30 26
31 QVBoxLayout *layout = new QVBoxLayout( this ); 27 QVBoxLayout *layout = new QVBoxLayout( this );
32 28
33 m_gui = new DatebookPluginConfigBase( this ); 29 m_gui = new DatebookPluginConfigBase( this );
34 30
35 layout->addWidget( m_gui ); 31 layout->addWidget( m_gui );
36 32
37 readConfig(); 33 readConfig();
38} 34}
39 35
40void DatebookPluginConfig::readConfig() { 36void DatebookPluginConfig::readConfig() {
41 Config cfg( "todaydatebookplugin" ); 37 Config cfg( "todaydatebookplugin" );
42 cfg.setGroup( "config" ); 38 cfg.setGroup( "config" );
43 39
44 m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 ); 40 m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 );
45 m_gui->SpinBox1->setValue( m_max_lines_meet ); 41 m_gui->SpinBox1->setValue( m_max_lines_meet );
46 m_show_location = cfg.readNumEntry( "showlocation", 1 ); 42 m_show_location = cfg.readNumEntry( "showlocation", 1 );
47 m_gui->CheckBox1->setChecked( m_show_location ); 43 m_gui->CheckBox1->setChecked( m_show_location );
48 m_show_notes = cfg.readNumEntry( "shownotes", 0 ); 44 m_show_notes = cfg.readNumEntry( "shownotes", 0 );
49 m_gui->CheckBox2->setChecked( m_show_notes ); 45 m_gui->CheckBox2->setChecked( m_show_notes );
50 m_only_later = cfg.readNumEntry( "onlylater", 1 ); 46 m_only_later = cfg.readNumEntry( "onlylater", 1 );
51 m_gui->CheckBox4->setChecked( cfg.readNumEntry( "timeextraline", 1 ) ); 47 m_gui->CheckBox4->setChecked( cfg.readNumEntry( "timeextraline", 1 ) );
52 m_gui->CheckBox3->setChecked( m_only_later ); 48 m_gui->CheckBox3->setChecked( m_only_later );
53 m_more_days = cfg.readNumEntry( "moredays", 0 ); 49 m_more_days = cfg.readNumEntry( "moredays", 0 );
54 m_gui->SpinBox2->setValue( m_more_days ); 50 m_gui->SpinBox2->setValue( m_more_days );
55} 51}
56 52
57 53
58void DatebookPluginConfig::writeConfig() { 54void DatebookPluginConfig::writeConfig() {
59 Config cfg( "todaydatebookplugin" ); 55 Config cfg( "todaydatebookplugin" );
60 cfg.setGroup( "config" ); 56 cfg.setGroup( "config" );
61 57
62 m_max_lines_meet = m_gui->SpinBox1->value(); 58 m_max_lines_meet = m_gui->SpinBox1->value();
63 cfg.writeEntry( "maxlinesmeet", m_max_lines_meet); 59 cfg.writeEntry( "maxlinesmeet", m_max_lines_meet);
64 m_show_location = m_gui->CheckBox1->isChecked(); 60 m_show_location = m_gui->CheckBox1->isChecked();
65 cfg.writeEntry( "showlocation", m_show_location); 61 cfg.writeEntry( "showlocation", m_show_location);
66 m_show_notes = m_gui->CheckBox2->isChecked(); 62 m_show_notes = m_gui->CheckBox2->isChecked();
67 cfg.writeEntry( "shownotes", m_show_notes ); 63 cfg.writeEntry( "shownotes", m_show_notes );
68 m_only_later = m_gui->CheckBox3->isChecked(); 64 m_only_later = m_gui->CheckBox3->isChecked();
69 cfg.writeEntry( "timeextraline", m_gui->CheckBox4->isChecked() ); 65 cfg.writeEntry( "timeextraline", m_gui->CheckBox4->isChecked() );
70 cfg.writeEntry( "onlylater", m_only_later ); 66 cfg.writeEntry( "onlylater", m_only_later );
71 m_more_days = m_gui->SpinBox2->value(); 67 m_more_days = m_gui->SpinBox2->value();
72 cfg.writeEntry( "moredays", m_more_days ); 68 cfg.writeEntry( "moredays", m_more_days );
73 cfg.write(); 69 cfg.write();
74} 70}
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
index 9e95bcd..1b11d1b 100644
--- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
@@ -1,72 +1,69 @@
1 /* 1 /*
2 * datebookpluginwidget.cpp 2 * datebookpluginwidget.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 17
18#include "datebookpluginwidget.h" 18#include "datebookpluginwidget.h"
19 19
20#include <qpe/timestring.h>
21#include <qpe/config.h> 20#include <qpe/config.h>
22 21
23#include <qdatetime.h>
24#include <qlabel.h>
25#include <qtl.h> 22#include <qtl.h>
26 23
27DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name ) 24DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name )
28 : QWidget(parent, name ) { 25 : QWidget(parent, name ) {
29 26
30 db = 0l; 27 db = 0l;
31 m_layoutDates = 0l; 28 m_layoutDates = 0l;
32 29
33 if ( m_layoutDates ) { 30 if ( m_layoutDates ) {
34 delete m_layoutDates; 31 delete m_layoutDates;
35 } 32 }
36 m_layoutDates = new QVBoxLayout( this ); 33 m_layoutDates = new QVBoxLayout( this );
37 m_layoutDates->setAutoAdd( true ); 34 m_layoutDates->setAutoAdd( true );
38 35
39 m_eventsList.setAutoDelete( true ); 36 m_eventsList.setAutoDelete( true );
40 37
41 readConfig(); 38 readConfig();
42 getDates(); 39 getDates();
43} 40}
44 41
45DatebookPluginWidget::~DatebookPluginWidget() { 42DatebookPluginWidget::~DatebookPluginWidget() {
46 delete db; 43 delete db;
47 delete m_layoutDates; 44 delete m_layoutDates;
48} 45}
49 46
50 47
51void DatebookPluginWidget::readConfig() { 48void DatebookPluginWidget::readConfig() {
52 Config cfg( "todaydatebookplugin" ); 49 Config cfg( "todaydatebookplugin" );
53 cfg.setGroup( "config" ); 50 cfg.setGroup( "config" );
54 m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 ); 51 m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 );
55 m_show_location = cfg.readNumEntry( "showlocation", 1 ); 52 m_show_location = cfg.readNumEntry( "showlocation", 1 );
56 m_show_notes = cfg.readNumEntry( "shownotes", 0 ); 53 m_show_notes = cfg.readNumEntry( "shownotes", 0 );
57 m_onlyLater = cfg.readNumEntry( "onlylater", 1 ); 54 m_onlyLater = cfg.readNumEntry( "onlylater", 1 );
58 m_moreDays = cfg.readNumEntry( "moredays", 0 ); 55 m_moreDays = cfg.readNumEntry( "moredays", 0 );
59 m_timeExtraLine = cfg.readNumEntry( "timeextraline", 1 ); 56 m_timeExtraLine = cfg.readNumEntry( "timeextraline", 1 );
60} 57}
61 58
62void DatebookPluginWidget::reinitialize() { 59void DatebookPluginWidget::reinitialize() {
63 readConfig(); 60 readConfig();
64 refresh(); 61 refresh();
65} 62}
66 63
67void DatebookPluginWidget::refresh() { 64void DatebookPluginWidget::refresh() {
68 m_eventsList.clear(); 65 m_eventsList.clear();
69 66
70 if ( m_layoutDates ) { 67 if ( m_layoutDates ) {
71 delete m_layoutDates; 68 delete m_layoutDates;
72 } 69 }
diff --git a/core/pim/today/plugins/todolist/todopluginconfig.cpp b/core/pim/today/plugins/todolist/todopluginconfig.cpp
index 4821776..76c08a9 100644
--- a/core/pim/today/plugins/todolist/todopluginconfig.cpp
+++ b/core/pim/today/plugins/todolist/todopluginconfig.cpp
@@ -1,59 +1,58 @@
1/* 1/*
2 * todopluginconfig.cpp 2 * todopluginconfig.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 "todopluginconfig.h" 17#include "todopluginconfig.h"
18 18
19#include <qpe/config.h> 19#include <qpe/config.h>
20 20
21#include <qlayout.h> 21#include <qlayout.h>
22#include <qwhatsthis.h>
23 22
24 23
25TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name) 24TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name)
26 : TodayConfigWidget(parent, name ) { 25 : TodayConfigWidget(parent, name ) {
27 26
28 QVBoxLayout * layout = new QVBoxLayout( this ); 27 QVBoxLayout * layout = new QVBoxLayout( this );
29 28
30 m_gui = new TodoPluginConfigBase( this ); 29 m_gui = new TodoPluginConfigBase( this );
31 30
32 layout->addWidget( m_gui ); 31 layout->addWidget( m_gui );
33 32
34 readConfig(); 33 readConfig();
35} 34}
36 35
37void TodolistPluginConfig::readConfig() { 36void TodolistPluginConfig::readConfig() {
38 Config cfg( "todaytodoplugin" ); 37 Config cfg( "todaytodoplugin" );
39 cfg.setGroup( "config" ); 38 cfg.setGroup( "config" );
40 m_max_lines_task = cfg.readNumEntry( "maxlinestask", 5 ); 39 m_max_lines_task = cfg.readNumEntry( "maxlinestask", 5 );
41 m_gui->SpinBox2->setValue( m_max_lines_task ); 40 m_gui->SpinBox2->setValue( m_max_lines_task );
42 m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); 41 m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 );
43 m_gui->SpinBoxClip->setValue( m_maxCharClip ); 42 m_gui->SpinBoxClip->setValue( m_maxCharClip );
44} 43}
45 44
46 45
47void TodolistPluginConfig::writeConfig() { 46void TodolistPluginConfig::writeConfig() {
48 Config cfg( "todaytodoplugin" ); 47 Config cfg( "todaytodoplugin" );
49 cfg.setGroup( "config" ); 48 cfg.setGroup( "config" );
50 m_max_lines_task = m_gui->SpinBox2->value(); 49 m_max_lines_task = m_gui->SpinBox2->value();
51 cfg.writeEntry( "maxlinestask", m_max_lines_task ); 50 cfg.writeEntry( "maxlinestask", m_max_lines_task );
52 m_maxCharClip = m_gui->SpinBoxClip->value(); 51 m_maxCharClip = m_gui->SpinBoxClip->value();
53 cfg.writeEntry( "maxcharclip", m_maxCharClip ); 52 cfg.writeEntry( "maxcharclip", m_maxCharClip );
54 cfg.write(); 53 cfg.write();
55} 54}
56 55
57 56
58TodolistPluginConfig::~TodolistPluginConfig() { 57TodolistPluginConfig::~TodolistPluginConfig() {
59} 58}
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index d4a0ae6..2e7e1a8 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -1,83 +1,80 @@
1/* 1/*
2 * today.cpp 2 * today.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 17
18 18
19#define QTOPIA_INTERNAL_LANGLIST 19#define QTOPIA_INTERNAL_LANGLIST
20 20
21#include "today.h" 21#include "today.h"
22 22
23#include <qpe/config.h> 23#include <qpe/config.h>
24#include <qpe/qcopenvelope_qws.h> 24#include <qpe/qcopenvelope_qws.h>
25#include <qpe/resource.h> 25#include <qpe/resource.h>
26#include <qpe/global.h> 26#include <qpe/global.h>
27#include <qpe/qpeapplication.h> 27#include <qpe/qpeapplication.h>
28#include <qpe/contact.h> 28#include <qpe/contact.h>
29#include <qpe/timestring.h>
30 29
31#include <qdir.h> 30#include <qdir.h>
32#include <qfile.h>
33#include <qtimer.h> 31#include <qtimer.h>
34#include <qwhatsthis.h> 32#include <qwhatsthis.h>
35#include <qtranslator.h>
36 33
37struct TodayPlugin { 34struct TodayPlugin {
38 TodayPlugin() : library( 0 ), iface( 0 ), guiPart( 0 ), guiBox( 0 ) {} 35 TodayPlugin() : library( 0 ), iface( 0 ), guiPart( 0 ), guiBox( 0 ) {}
39 QLibrary *library; 36 QLibrary *library;
40 QInterfacePtr<TodayPluginInterface> iface; 37 QInterfacePtr<TodayPluginInterface> iface;
41 TodayPluginObject *guiPart; 38 TodayPluginObject *guiPart;
42 QWidget *guiBox; 39 QWidget *guiBox;
43 QString name; 40 QString name;
44 bool active; 41 bool active;
45 bool excludeRefresh; 42 bool excludeRefresh;
46 int pos; 43 int pos;
47}; 44};
48 45
49static QValueList<TodayPlugin> pluginList; 46static QValueList<TodayPlugin> pluginList;
50 47
51static QMap<QString, TodayPlugin> tempList; 48static QMap<QString, TodayPlugin> tempList;
52 49
53Today::Today( QWidget* parent, const char* name, WFlags fl ) 50Today::Today( QWidget* parent, const char* name, WFlags fl )
54 : TodayBase( parent, name, fl ) { 51 : TodayBase( parent, name, fl ) {
55 52
56 QObject::connect( (QObject*)ConfigButton, SIGNAL( clicked() ), this, SLOT( startConfig() ) ); 53 QObject::connect( (QObject*)ConfigButton, SIGNAL( clicked() ), this, SLOT( startConfig() ) );
57 QObject::connect( (QObject*)OwnerField, SIGNAL( clicked() ), this, SLOT( editCard() ) ); 54 QObject::connect( (QObject*)OwnerField, SIGNAL( clicked() ), this, SLOT( editCard() ) );
58 55
59#if defined(Q_WS_QWS) 56#if defined(Q_WS_QWS)
60#if !defined(QT_NO_COP) 57#if !defined(QT_NO_COP)
61 QCopChannel *todayChannel = new QCopChannel( "QPE/Today" , this ); 58 QCopChannel *todayChannel = new QCopChannel( "QPE/Today" , this );
62 connect ( todayChannel, SIGNAL( received( const QCString &, const QByteArray &) ), 59 connect ( todayChannel, SIGNAL( received( const QCString &, const QByteArray &) ),
63 this, SLOT ( channelReceived( const QCString &, const QByteArray &) ) ); 60 this, SLOT ( channelReceived( const QCString &, const QByteArray &) ) );
64#endif 61#endif
65#endif 62#endif
66 63
67 setOwnerField(); 64 setOwnerField();
68 m_refreshTimer = new QTimer( this ); 65 m_refreshTimer = new QTimer( this );
69 connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); 66 connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) );
70 m_refreshTimer->start( 15000 ); 67 m_refreshTimer->start( 15000 );
71 m_big_box = 0L; 68 m_big_box = 0L;
72 69
73 70
74 layout = new QVBoxLayout( this ); 71 layout = new QVBoxLayout( this );
75 layout->addWidget( Frame ); 72 layout->addWidget( Frame );
76 layout->addWidget( OwnerField ); 73 layout->addWidget( OwnerField );
77 74
78 m_sv = new QScrollView( this ); 75 m_sv = new QScrollView( this );
79 m_sv->setResizePolicy( QScrollView::AutoOneFit ); 76 m_sv->setResizePolicy( QScrollView::AutoOneFit );
80 m_sv->setHScrollBarMode( QScrollView::AlwaysOff ); 77 m_sv->setHScrollBarMode( QScrollView::AlwaysOff );
81 m_sv->setFrameShape( QFrame::NoFrame ); 78 m_sv->setFrameShape( QFrame::NoFrame );
82 79
83 layout->addWidget( m_sv ); 80 layout->addWidget( m_sv );
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index feb9a84..f2958ad 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -1,68 +1,67 @@
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>
21#include <qwhatsthis.h> 20#include <qwhatsthis.h>
22 21
23#include <qpe/resource.h> 22#include <qpe/resource.h>
24 23
25 24
26TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) 25TodayBase::TodayBase( QWidget* parent, const char* name, WFlags )
27 : QWidget( parent, name, WStyle_ContextHelp ) { 26 : QWidget( parent, name, WStyle_ContextHelp ) {
28 27
29 QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo 28 QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo
30 QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla 29 QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla
31 QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon 30 QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon
32 31
33 layout = 0L; 32 layout = 0L;
34 33
35 QPalette pal = this->palette(); 34 QPalette pal = this->palette();
36 QColor col = pal.color( QPalette::Active, QColorGroup::Background ); 35 QColor col = pal.color( QPalette::Active, QColorGroup::Background );
37 pal.setColor( QPalette::Active, QColorGroup::Button, col ); 36 pal.setColor( QPalette::Active, QColorGroup::Button, col );
38 pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); 37 pal.setColor( QPalette::Inactive, QColorGroup::Button, col );
39 pal.setColor( QPalette::Normal, QColorGroup::Button, col ); 38 pal.setColor( QPalette::Normal, QColorGroup::Button, col );
40 pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); 39 pal.setColor( QPalette::Disabled, QColorGroup::Button, col );
41 this->setPalette( pal ); 40 this->setPalette( pal );
42 41
43 // --- logo Section --- 42 // --- logo Section ---
44 QPalette pal2; 43 QPalette pal2;
45 QColorGroup cg; 44 QColorGroup cg;
46 cg.setColor( QColorGroup::Text, white ); 45 cg.setColor( QColorGroup::Text, white );
47 cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); 46 cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) );
48 pal2.setActive( cg ); 47 pal2.setActive( cg );
49 48
50// today logo 49// today logo
51 Frame = new QLabel( this, "Frame" ); 50 Frame = new QLabel( this, "Frame" );
52 Frame->setPalette( pal2 ); 51 Frame->setPalette( pal2 );
53 Frame->setFrameShape( QFrame::StyledPanel ); 52 Frame->setFrameShape( QFrame::StyledPanel );
54 Frame->setFrameShadow( QFrame::Raised ); 53 Frame->setFrameShadow( QFrame::Raised );
55 Frame->setLineWidth( 0 ); 54 Frame->setLineWidth( 0 );
56 55
57 QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); 56 QHBoxLayout *frameLayout = new QHBoxLayout( Frame );
58 QVBox *box1 = new QVBox( Frame ); 57 QVBox *box1 = new QVBox( Frame );
59 58
60 // Today text 59 // Today text
61 TodayLabel = new QLabel( box1, "TodayText" ); 60 TodayLabel = new QLabel( box1, "TodayText" );
62 QFont TodayLabel_font( TodayLabel->font() ); 61 QFont TodayLabel_font( TodayLabel->font() );
63 TodayLabel_font.setBold( TRUE ); 62 TodayLabel_font.setBold( TRUE );
64 TodayLabel_font.setPointSize( 40 ); 63 TodayLabel_font.setPointSize( 40 );
65 TodayLabel->setFont( TodayLabel_font ); 64 TodayLabel->setFont( TodayLabel_font );
66 TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); 65 TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin );
67 TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" ); 66 TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" );
68 67
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp
index bfb5ec6..e71c5b0 100644
--- a/core/pim/today/todayconfig.cpp
+++ b/core/pim/today/todayconfig.cpp
@@ -1,80 +1,77 @@
1/* 1/*
2 * todayconfig.cpp 2 * todayconfig.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 "todayconfig.h" 17#include "todayconfig.h"
18 18
19#include <qpe/config.h> 19#include <qpe/config.h>
20#include <qpe/resource.h> 20#include <qpe/resource.h>
21#include <qpe/qcopenvelope_qws.h> 21#include <qpe/qcopenvelope_qws.h>
22 22
23#include <qcheckbox.h> 23#include <qcheckbox.h>
24#include <qlabel.h> 24#include <qlabel.h>
25#include <qspinbox.h> 25#include <qspinbox.h>
26#include <qtabwidget.h>
27#include <qlayout.h> 26#include <qlayout.h>
28#include <qheader.h> 27#include <qheader.h>
29#include <qhbox.h>
30#include <qvbox.h> 28#include <qvbox.h>
31#include <qtoolbutton.h> 29#include <qtoolbutton.h>
32#include <qtooltip.h>
33#include <qwhatsthis.h> 30#include <qwhatsthis.h>
34 31
35class ToolButton : public QToolButton { 32class ToolButton : public QToolButton {
36 33
37public: 34public:
38 ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) 35 ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE )
39 : QToolButton( parent, name ) { 36 : QToolButton( parent, name ) {
40 setPixmap( Resource::loadPixmap( icon ) ); 37 setPixmap( Resource::loadPixmap( icon ) );
41 setAutoRaise( TRUE ); 38 setAutoRaise( TRUE );
42 setFocusPolicy( QWidget::NoFocus ); 39 setFocusPolicy( QWidget::NoFocus );
43 setToggleButton( t ); 40 setToggleButton( t );
44 connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); 41 connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot );
45 } 42 }
46}; 43};
47 44
48 45
49/** 46/**
50 * The class has currently quite some duplicate code. 47 * The class has currently quite some duplicate code.
51 * By that way it would be real easy to have it as seperate app in settings tab 48 * By that way it would be real easy to have it as seperate app in settings tab
52 * 49 *
53 */ 50 */
54TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal ) 51TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
55 : QDialog( parent, name, modal, WStyle_ContextHelp ) { 52 : QDialog( parent, name, modal, WStyle_ContextHelp ) {
56 53
57 setCaption( tr( "Today Config" ) ); 54 setCaption( tr( "Today Config" ) );
58 55
59 QVBoxLayout *layout = new QVBoxLayout( this ); 56 QVBoxLayout *layout = new QVBoxLayout( this );
60 TabWidget3 = new OTabWidget ( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom ); 57 TabWidget3 = new OTabWidget ( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom );
61 layout->addWidget( TabWidget3 ); 58 layout->addWidget( TabWidget3 );
62 59
63 tab_2 = new QWidget( TabWidget3, "tab_2" ); 60 tab_2 = new QWidget( TabWidget3, "tab_2" );
64 QVBoxLayout *tab2Layout = new QVBoxLayout( tab_2, 4 ,4 ); 61 QVBoxLayout *tab2Layout = new QVBoxLayout( tab_2, 4 ,4 );
65 QLabel *l = new QLabel( tr( "Load which plugins in what order:" ), tab_2 ); 62 QLabel *l = new QLabel( tr( "Load which plugins in what order:" ), tab_2 );
66 tab2Layout->addWidget( l ); 63 tab2Layout->addWidget( l );
67 QHBox *hbox1 = new QHBox( tab_2 ); 64 QHBox *hbox1 = new QHBox( tab_2 );
68 m_appletListView = new QListView( hbox1 ); 65 m_appletListView = new QListView( hbox1 );
69 m_appletListView->addColumn( "PluginList" ); 66 m_appletListView->addColumn( "PluginList" );
70 m_appletListView->header()->hide(); 67 m_appletListView->header()->hide();
71 m_appletListView->setSorting( -1 ); 68 m_appletListView->setSorting( -1 );
72 QWhatsThis::add( m_appletListView, tr( "Check a checkbox to activate/deactivate a plugin or use the arrow buttons on the right to change the appearance order" ) ); 69 QWhatsThis::add( m_appletListView, tr( "Check a checkbox to activate/deactivate a plugin or use the arrow buttons on the right to change the appearance order" ) );
73 QVBox *vbox1 = new QVBox( hbox1 ); 70 QVBox *vbox1 = new QVBox( hbox1 );
74 new ToolButton( vbox1, tr( "Move Up" ), "up", this , SLOT( moveSelectedUp() ) ); 71 new ToolButton( vbox1, tr( "Move Up" ), "up", this , SLOT( moveSelectedUp() ) );
75 new ToolButton( vbox1, tr( "Move Down" ), "down", this , SLOT( moveSelectedDown() ) ); 72 new ToolButton( vbox1, tr( "Move Down" ), "down", this , SLOT( moveSelectedDown() ) );
76 tab2Layout->addWidget( hbox1 ); 73 tab2Layout->addWidget( hbox1 );
77 TabWidget3->addTab( tab_2, "pass", tr( "active/order" ) ); 74 TabWidget3->addTab( tab_2, "pass", tr( "active/order" ) );
78 75
79 // Misc tab 76 // Misc tab
80 tab_3 = new QWidget( TabWidget3, "tab_3" ); 77 tab_3 = new QWidget( TabWidget3, "tab_3" );