-rw-r--r-- | core/pim/today/changelog | 7 | ||||
-rw-r--r-- | core/pim/today/opie-today.control | 2 | ||||
-rw-r--r-- | core/pim/today/today.cpp | 8 | ||||
-rw-r--r-- | core/pim/today/todaybase.cpp | 28 |
4 files changed, 22 insertions, 23 deletions
diff --git a/core/pim/today/changelog b/core/pim/today/changelog index 500090d..a77e581 100644 --- a/core/pim/today/changelog +++ b/core/pim/today/changelog | |||
@@ -1,16 +1,21 @@ | |||
1 | 0.6.2 | ||
2 | |||
3 | * header can now be made smaller | ||
4 | * changed header to different layout mode to play nicer with life rotation | ||
5 | |||
1 | 0.6.1 | 6 | 0.6.1 |
2 | 7 | ||
3 | * datebook plugin now can now also show following days | 8 | * datebook plugin now can now also show following days |
4 | + changed refresh | 9 | * changed refresh |
5 | * fixed one mem leak | 10 | * fixed one mem leak |
6 | 11 | ||
7 | 0.6 | 12 | 0.6 |
8 | 13 | ||
9 | * longer refresh intervals possible | 14 | * longer refresh intervals possible |
10 | * plugins can decide now if they want to take part in refresh cycles | 15 | * plugins can decide now if they want to take part in refresh cycles |
11 | 16 | ||
12 | 0.5.2 | 17 | 0.5.2 |
13 | 18 | ||
14 | * refresh settings | 19 | * refresh settings |
15 | * only launch datebook config when clicked on a date ( opie only ) | 20 | * only launch datebook config when clicked on a date ( opie only ) |
16 | * less qcop trouble on sharps retail rom | 21 | * less qcop trouble on sharps retail rom |
diff --git a/core/pim/today/opie-today.control b/core/pim/today/opie-today.control index 40c2cdf..0e79d69 100644 --- a/core/pim/today/opie-today.control +++ b/core/pim/today/opie-today.control | |||
@@ -1,16 +1,16 @@ | |||
1 | Files: bin/today apps/1Pim/today.desktop pics/today/* | 1 | Files: bin/today apps/1Pim/today.desktop pics/today/* |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/applications | 3 | Section: opie/applications |
4 | Maintainer: Maximilian Reiß <harlekin@handhelds.org> | 4 | Maintainer: Maximilian Reiß <harlekin@handhelds.org> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: 0.6-$SUB_VERSION | 6 | Version: 0.6,2-$SUB_VERSION |
7 | Depends: opie-base, libopie1 | 7 | Depends: opie-base, libopie1 |
8 | License: GPL | 8 | License: GPL |
9 | Description: today screen | 9 | Description: today screen |
10 | This today screen app gives an overview of appointments | 10 | This today screen app gives an overview of appointments |
11 | and todos. | 11 | and todos. |
12 | It also shows incoming and outgoing mails from opiemail. | 12 | It also shows incoming and outgoing mails from opiemail. |
13 | When using Opie (opie.handhelds.org) today can be autostarted | 13 | When using Opie (opie.handhelds.org) today can be autostarted |
14 | on resume. | 14 | on resume. |
15 | It is highly configurable. | 15 | It is highly configurable. |
16 | 16 | ||
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 0b61bf8..d0cdd18 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -136,35 +136,27 @@ void Today::init() { | |||
136 | 136 | ||
137 | // set the date in top label | 137 | // set the date in top label |
138 | QDate date = QDate::currentDate(); | 138 | QDate date = QDate::currentDate(); |
139 | DateLabel->setText( QString( "<font color=#FFFFFF>" + TimeString::longDateString( date ) + "</font>" ) ); | 139 | DateLabel->setText( QString( "<font color=#FFFFFF>" + TimeString::longDateString( date ) + "</font>" ) ); |
140 | 140 | ||
141 | if ( layout ) { | 141 | if ( layout ) { |
142 | delete layout; | 142 | delete layout; |
143 | } | 143 | } |
144 | 144 | ||
145 | if ( m_hideBanner ) { | 145 | if ( m_hideBanner ) { |
146 | Opiezilla->hide(); | 146 | Opiezilla->hide(); |
147 | TodayLabel->hide(); | 147 | TodayLabel->hide(); |
148 | Frame->setMaximumHeight( 18 ); | ||
149 | Frame->setMinimumHeight( 18 ); | ||
150 | DateLabel->setGeometry( QRect( 10, 2, 168, 12 ) ); | ||
151 | ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-20, 0, 25, 20 ) ); | ||
152 | } else { | 148 | } else { |
153 | Opiezilla->show(); | 149 | Opiezilla->show(); |
154 | TodayLabel->show(); | 150 | TodayLabel->show(); |
155 | Frame->setMaximumHeight( 50 ); | ||
156 | Frame->setMinimumHeight( 50 ); | ||
157 | DateLabel->setGeometry( QRect( 10, 35, 168, 12 ) ); | ||
158 | ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 29, 25, 20 ) ); | ||
159 | } | 151 | } |
160 | 152 | ||
161 | layout = new QVBoxLayout( this ); | 153 | layout = new QVBoxLayout( this ); |
162 | layout->addWidget( Frame ); | 154 | layout->addWidget( Frame ); |
163 | layout->addWidget( OwnerField ); | 155 | layout->addWidget( OwnerField ); |
164 | } | 156 | } |
165 | 157 | ||
166 | /** | 158 | /** |
167 | * Load the plugins | 159 | * Load the plugins |
168 | */ | 160 | */ |
169 | void Today::loadPlugins() { | 161 | void Today::loadPlugins() { |
170 | 162 | ||
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index a36ecaa..c896463 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -1,34 +1,32 @@ | |||
1 | /* | 1 | /* |
2 | * todaybase.cpp | 2 | * todaybase.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002 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 <qlabel.h> | 20 | #include <qlabel.h> |
20 | #include <qimage.h> | ||
21 | #include <qpixmap.h> | ||
22 | #include <qapplication.h> | ||
23 | #include <qwhatsthis.h> | 21 | #include <qwhatsthis.h> |
24 | 22 | ||
25 | #include <qpe/resource.h> | 23 | #include <qpe/resource.h> |
26 | 24 | ||
27 | 25 | ||
28 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | 26 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) |
29 | : QWidget( parent, name, WStyle_ContextHelp ) { | 27 | : QWidget( parent, name, WStyle_ContextHelp ) { |
30 | 28 | ||
31 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo | 29 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo |
32 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla | 30 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla |
33 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon | 31 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon |
34 | 32 | ||
@@ -39,67 +37,71 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | |||
39 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); | 37 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); |
40 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); | 38 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); |
41 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); | 39 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); |
42 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); | 40 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); |
43 | this->setPalette( pal ); | 41 | this->setPalette( pal ); |
44 | 42 | ||
45 | // --- logo Section --- | 43 | // --- logo Section --- |
46 | QPalette pal2; | 44 | QPalette pal2; |
47 | QColorGroup cg; | 45 | QColorGroup cg; |
48 | cg.setColor( QColorGroup::Text, white ); | 46 | cg.setColor( QColorGroup::Text, white ); |
49 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); | 47 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); |
50 | pal2.setActive( cg ); | 48 | pal2.setActive( cg ); |
51 | // today logo | 49 | |
50 | // today logo | ||
52 | Frame = new QLabel( this, "Frame" ); | 51 | Frame = new QLabel( this, "Frame" ); |
53 | Frame->setPalette( pal2 ); | 52 | Frame->setPalette( pal2 ); |
54 | Frame->setFrameShape( QFrame::StyledPanel ); | 53 | Frame->setFrameShape( QFrame::StyledPanel ); |
55 | Frame->setFrameShadow( QFrame::Raised ); | 54 | Frame->setFrameShadow( QFrame::Raised ); |
56 | Frame->setLineWidth( 0 ); | 55 | Frame->setLineWidth( 0 ); |
57 | Frame->setMaximumHeight( 50 ); | ||
58 | Frame->setMinimumHeight( 50 ); | ||
59 | 56 | ||
57 | QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); | ||
58 | QVBox *box1 = new QVBox( Frame ); | ||
60 | // Today text | 59 | // Today text |
61 | TodayLabel = new QLabel( Frame, "TodayText" ); | 60 | TodayLabel = new QLabel( box1, "TodayText" ); |
62 | TodayLabel->setGeometry( QRect( 10, 1, 168, 40 ) ); | ||
63 | QFont TodayLabel_font( TodayLabel->font() ); | 61 | QFont TodayLabel_font( TodayLabel->font() ); |
64 | TodayLabel_font.setBold( TRUE ); | 62 | TodayLabel_font.setBold( TRUE ); |
65 | TodayLabel_font.setPointSize( 40 ); | 63 | TodayLabel_font.setPointSize( 40 ); |
66 | TodayLabel->setFont( TodayLabel_font ); | 64 | TodayLabel->setFont( TodayLabel_font ); |
67 | TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); | 65 | TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); |
68 | TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" ); | 66 | TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" ); |
69 | 67 | ||
70 | // date | 68 | // date |
71 | DateLabel = new QLabel( Frame, "TextLabel1" ); | 69 | DateLabel = new QLabel( box1, "TextLabel1" ); |
72 | DateLabel->setGeometry( QRect( 10, 35, 168, 12 ) ); | ||
73 | QFont DateLabel_font( DateLabel->font() ); | 70 | QFont DateLabel_font( DateLabel->font() ); |
74 | DateLabel_font.setBold( TRUE ); | 71 | DateLabel_font.setBold( TRUE ); |
75 | DateLabel->setFont( DateLabel_font ); | 72 | DateLabel->setFont( DateLabel_font ); |
76 | DateLabel->setBackgroundOrigin( QLabel::ParentOrigin ); | 73 | DateLabel->setBackgroundOrigin( QLabel::ParentOrigin ); |
77 | DateLabel->setTextFormat( RichText ); | 74 | DateLabel->setTextFormat( RichText ); |
78 | 75 | ||
79 | // Opiezilla | 76 | // Opiezilla |
80 | Opiezilla = new QLabel( Frame, "OpieZilla" ); | 77 | Opiezilla = new QLabel( Frame, "OpieZilla" ); |
81 | Opiezilla->setPixmap( opiezilla ); | 78 | Opiezilla->setPixmap( opiezilla ); |
82 | Opiezilla->setGeometry( QApplication::desktop()->width()-50 ,1, 45, 47 ); | ||
83 | QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) ); | 79 | QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) ); |
84 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); | 80 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); |
85 | 81 | ||
82 | |||
86 | // Ownerfield | 83 | // Ownerfield |
87 | OwnerField = new OClickableLabel( this , "Owner" ); | 84 | OwnerField = new OClickableLabel( this , "Owner" ); |
88 | OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) ); | 85 | OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) ); |
89 | OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) ); | 86 | OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) ); |
90 | OwnerField->setMaximumHeight(12); | 87 | OwnerField->setMaximumHeight(12); |
91 | 88 | ||
92 | // config | 89 | // config |
93 | ConfigButton = new OClickableLabel ( Frame, "PushButton1" ); | 90 | ConfigButton = new OClickableLabel ( Frame, "PushButton1" ); |
94 | ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 29, 25, 20 ) ); | ||
95 | ConfigButton->setPixmap( config ); | 91 | ConfigButton->setPixmap( config ); |
96 | QWhatsThis::add( ConfigButton, tr( "Click here to get to the config dialog" ) ); | 92 | QWhatsThis::add( ConfigButton, tr( "Click here to get to the config dialog" ) ); |
97 | ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin ); | 93 | ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin ); |
94 | |||
95 | frameLayout->addWidget( box1 ); | ||
96 | frameLayout->addStretch( 2 ); | ||
97 | frameLayout->addWidget( ConfigButton, 0, AlignBottom ); | ||
98 | frameLayout->addWidget( Opiezilla ); | ||
98 | } | 99 | } |
99 | 100 | ||
101 | |||
100 | /** | 102 | /** |
101 | * D' tor | 103 | * D' tor |
102 | */ | 104 | */ |
103 | TodayBase::~TodayBase() { | 105 | TodayBase::~TodayBase() { |
104 | } | 106 | } |
105 | 107 | ||