summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/changelog4
-rw-r--r--core/pim/today/opie-today.control2
-rw-r--r--core/pim/today/plugins/datebook/datebookplugin.cpp4
-rw-r--r--core/pim/today/plugins/mail/mailplugin.cpp6
-rw-r--r--core/pim/today/plugins/todolist/todoplugin.cpp4
-rw-r--r--core/pim/today/plugins/todolist/todopluginwidget.cpp2
-rw-r--r--core/pim/today/today.cpp14
-rw-r--r--core/pim/today/today.h6
-rw-r--r--core/pim/today/todayconfig.cpp22
-rw-r--r--core/pim/today/todayconfig.h2
10 files changed, 49 insertions, 17 deletions
diff --git a/core/pim/today/changelog b/core/pim/today/changelog
index 5fd3284..25d63ef 100644
--- a/core/pim/today/changelog
+++ b/core/pim/today/changelog
@@ -1,2 +1,6 @@
10.5.1
2
3* icons scalable and clickable again
4
10.5 50.5
2 6
diff --git a/core/pim/today/opie-today.control b/core/pim/today/opie-today.control
index 6ea5090..28087f9 100644
--- a/core/pim/today/opie-today.control
+++ b/core/pim/today/opie-today.control
@@ -4,5 +4,5 @@ Section: opie/applications
4Maintainer: Maximilian Reiß <harlekin@handhelds.org> 4Maintainer: Maximilian Reiß <harlekin@handhelds.org>
5Architecture: arm 5Architecture: arm
6Version: 0.5-$SUB_VERSION 6Version: 0.5.1-$SUB_VERSION
7Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION) 7Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION)
8License: GPL 8License: GPL
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp
index 4ebb178..cacdb65 100644
--- a/core/pim/today/plugins/datebook/datebookplugin.cpp
+++ b/core/pim/today/plugins/datebook/datebookplugin.cpp
@@ -31,5 +31,5 @@ DatebookPlugin::~DatebookPlugin() {
31 31
32QString DatebookPlugin::pluginName() const { 32QString DatebookPlugin::pluginName() const {
33 return "Datebook plugin"; 33 return QObject::tr( "Datebook plugin");
34} 34}
35 35
@@ -55,5 +55,5 @@ TodayConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) {
55 55
56QString DatebookPlugin::appName() const { 56QString DatebookPlugin::appName() const {
57 return QObject::tr( "Datebook" ); 57 return "datebook";
58} 58}
59 59
diff --git a/core/pim/today/plugins/mail/mailplugin.cpp b/core/pim/today/plugins/mail/mailplugin.cpp
index 3ddf16e..1c90df4 100644
--- a/core/pim/today/plugins/mail/mailplugin.cpp
+++ b/core/pim/today/plugins/mail/mailplugin.cpp
@@ -27,9 +27,9 @@ MailPlugin::~MailPlugin() {
27 27
28QString MailPlugin::pluginName() const { 28QString MailPlugin::pluginName() const {
29 return "Mail plugin"; 29 return QObject::tr( "Mail plugin" );
30} 30}
31 31
32double MailPlugin::versionNumber() const { 32double MailPlugin::versionNumber() const {
33 return 0.5; 33 return 0.6;
34} 34}
35 35
@@ -51,5 +51,5 @@ TodayConfigWidget* MailPlugin::configWidget( QWidget* wid ) {
51 51
52QString MailPlugin::appName() const { 52QString MailPlugin::appName() const {
53 return "Mail"; 53 return "mail";
54} 54}
55 55
diff --git a/core/pim/today/plugins/todolist/todoplugin.cpp b/core/pim/today/plugins/todolist/todoplugin.cpp
index 19d9f37..09b54af 100644
--- a/core/pim/today/plugins/todolist/todoplugin.cpp
+++ b/core/pim/today/plugins/todolist/todoplugin.cpp
@@ -29,5 +29,5 @@ TodolistPlugin::~TodolistPlugin() {
29 29
30QString TodolistPlugin::pluginName() const { 30QString TodolistPlugin::pluginName() const {
31 return "Todolist plugin"; 31 return QObject::tr( "Todolist plugin" );
32} 32}
33 33
@@ -53,5 +53,5 @@ TodayConfigWidget* TodolistPlugin::configWidget( QWidget* wid ) {
53 53
54QString TodolistPlugin::appName() const { 54QString TodolistPlugin::appName() const {
55 return QObject::tr( "Todolist" ); 55 return "todolist";
56} 56}
57 57
diff --git a/core/pim/today/plugins/todolist/todopluginwidget.cpp b/core/pim/today/plugins/todolist/todopluginwidget.cpp
index d793aae..320969e 100644
--- a/core/pim/today/plugins/todolist/todopluginwidget.cpp
+++ b/core/pim/today/plugins/todolist/todopluginwidget.cpp
@@ -31,5 +31,5 @@ TodolistPluginWidget::TodolistPluginWidget( QWidget *parent, const char* name )
31 : QWidget( parent, name ) { 31 : QWidget( parent, name ) {
32 32
33 todoLabel= 0l; 33 todoLabel = 0l;
34 todo = 0l; 34 todo = 0l;
35 35
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 35758d5..34ec3cb 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -115,4 +115,6 @@ void Today::init() {
115 m_excludeApplets = cfg.readListEntry( "ExcludeApplets", ',' ); 115 m_excludeApplets = cfg.readListEntry( "ExcludeApplets", ',' );
116 m_allApplets = cfg.readListEntry( "AllApplets", ',' ); 116 m_allApplets = cfg.readListEntry( "AllApplets", ',' );
117 cfg.setGroup( "General" );
118 m_iconSize = cfg.readNumEntry( "IconSize", 18 );
117} 119}
118 120
@@ -136,5 +138,4 @@ void Today::loadPlugins() {
136 QStringList::Iterator it; 138 QStringList::Iterator it;
137 139
138
139 QMap<QString, TodayPlugin> tempList; 140 QMap<QString, TodayPlugin> tempList;
140 141
@@ -164,7 +165,9 @@ void Today::loadPlugins() {
164 QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox ); 165 QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox );
165 QPixmap plugPix; 166 QPixmap plugPix;
166 plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( 18, 18 ), 0 ); 167 plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 );
167 OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox ); 168 OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox );
168 plugIcon->setPixmap( plugPix ); 169 plugIcon->setPixmap( plugPix );
170 plugIcon->setName( plugin.guiPart->appName() );
171 connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) );
169 // a scrollview for each plugin 172 // a scrollview for each plugin
170 QScrollView* sv = new QScrollView( plugin.guiBox ); 173 QScrollView* sv = new QScrollView( plugin.guiBox );
@@ -252,5 +255,5 @@ void Today::startConfig() {
252 TodayConfig conf( this, "dialog", true ); 255 TodayConfig conf( this, "dialog", true );
253 256
254 TodayPlugin plugin; 257 TodayPlugin plugin;
255 QList<TodayConfigWidget> configWidgetList; 258 QList<TodayConfigWidget> configWidgetList;
256 259
@@ -312,4 +315,9 @@ void Today::startAddressbook() {
312 315
313 316
317void Today::startApplication() {
318 QCopEnvelope e( "QPE/System", "execute(QString)" );
319 e << QString( sender()->name() );
320}
321
314/** 322/**
315 * launch addressbook (personal card) 323 * launch addressbook (personal card)
diff --git a/core/pim/today/today.h b/core/pim/today/today.h
index 92512b9..6f13df6 100644
--- a/core/pim/today/today.h
+++ b/core/pim/today/today.h
@@ -33,5 +33,5 @@
33 33
34class QVBoxLayout; 34class QVBoxLayout;
35 35class OClickableLabel;
36 36
37 37
@@ -47,4 +47,5 @@ private slots:
47 void startConfig(); 47 void startConfig();
48 void startAddressbook(); 48 void startAddressbook();
49 void startApplication();
49 void editCard(); 50 void editCard();
50 void refresh(); 51 void refresh();
@@ -65,7 +66,6 @@ private slots:
65 QStringList m_allApplets; 66 QStringList m_allApplets;
66 67
67 // QString m_autoStartTimer;
68 int m_newStart; 68 int m_newStart;
69 // int m_autoStart; 69 int m_iconSize;
70 int m_maxCharClip; 70 int m_maxCharClip;
71}; 71};
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp
index 3fc5830..097965b 100644
--- a/core/pim/today/todayconfig.cpp
+++ b/core/pim/today/todayconfig.cpp
@@ -30,4 +30,5 @@
30#include <qvbox.h> 30#include <qvbox.h>
31#include <qtoolbutton.h> 31#include <qtoolbutton.h>
32#include <qtooltip.h>
32 33
33class ToolButton : public QToolButton { 34class ToolButton : public QToolButton {
@@ -82,9 +83,17 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags
82 CheckBoxAuto = new QCheckBox( hbox_auto, "CheckBoxAuto" ); 83 CheckBoxAuto = new QCheckBox( hbox_auto, "CheckBoxAuto" );
83 QHBox *hbox_inactive = new QHBox( tab_3 ); 84 QHBox *hbox_inactive = new QHBox( tab_3 );
84 TimeLabel = new QLabel( hbox_inactive , "TimeLabel" ); 85 TimeLabel = new QLabel( hbox_inactive, "TimeLabel" );
85 TimeLabel->setText( tr( "minutes inactive" ) ); 86 TimeLabel->setText( tr( "minutes inactive" ) );
86 SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" ); 87 SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" );
88 QHBox *hbox_iconSize = new QHBox( tab_3 );
89 QLabel *iconSizeLabel = new QLabel( hbox_iconSize, "iconSizeLabel" );
90 iconSizeLabel->setText( tr( "Icon size" ) );
91 // iconSizeLabel->setToolTip( tr( "Set the icon size in pixel" ) );
92 SpinBoxIconSize = new QSpinBox( hbox_iconSize, "TimeSpinner" );
93 SpinBoxIconSize->setMaxValue( 32 );
94
87 tab3Layout->addWidget( hbox_auto ); 95 tab3Layout->addWidget( hbox_auto );
88 tab3Layout->addWidget( hbox_inactive ); 96 tab3Layout->addWidget( hbox_inactive );
97 tab3Layout->addWidget( hbox_iconSize );
89 TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) ); 98 TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) );
90 99
@@ -109,5 +118,5 @@ void TodayConfig::setAutoStart() {
109 e << QString( "add" ); 118 e << QString( "add" );
110 e << QString( "today" ); 119 e << QString( "today" );
111 e << QString("%1").arg( m_autoStartTimer ); 120 e << QString( "%1" ).arg( m_autoStartTimer );
112 } else { 121 } else {
113 QCopEnvelope e( "QPE/System", "autoStart(QString,QString)" ); 122 QCopEnvelope e( "QPE/System", "autoStart(QString,QString)" );
@@ -128,4 +137,8 @@ void TodayConfig::readConfig() {
128 SpinBoxTime->setValue( m_autoStartTimer ); 137 SpinBoxTime->setValue( m_autoStartTimer );
129 138
139 cfg.setGroup( "General" );
140 m_iconSize = cfg.readNumEntry( "IconSize", 18 );
141 SpinBoxIconSize->setValue( m_iconSize );
142
130 cfg.setGroup( "Plugins" ); 143 cfg.setGroup( "Plugins" );
131 m_excludeApplets = cfg.readListEntry( "ExcludeApplets", ',' ); 144 m_excludeApplets = cfg.readListEntry( "ExcludeApplets", ',' );
@@ -169,4 +182,9 @@ void TodayConfig::writeConfig() {
169 m_autoStartTimer = SpinBoxTime->value(); 182 m_autoStartTimer = SpinBoxTime->value();
170 cfg.writeEntry( "autostartdelay", m_autoStartTimer ); 183 cfg.writeEntry( "autostartdelay", m_autoStartTimer );
184 m_iconSize = SpinBoxIconSize->value();
185
186 cfg.setGroup( "General" );
187 cfg.writeEntry( "IconSize", m_iconSize );
188
171 189
172 // set autostart settings 190 // set autostart settings
diff --git a/core/pim/today/todayconfig.h b/core/pim/today/todayconfig.h
index f23b850..aa227dd 100644
--- a/core/pim/today/todayconfig.h
+++ b/core/pim/today/todayconfig.h
@@ -56,4 +56,5 @@ private:
56 int m_autoStart; 56 int m_autoStart;
57 int m_autoStartTimer; 57 int m_autoStartTimer;
58 int m_iconSize;
58 QStringList m_excludeApplets; 59 QStringList m_excludeApplets;
59 bool m_applets_changed; 60 bool m_applets_changed;
@@ -67,4 +68,5 @@ private:
67 QLabel* TimeLabel; 68 QLabel* TimeLabel;
68 QSpinBox* SpinBoxTime; 69 QSpinBox* SpinBoxTime;
70 QSpinBox* SpinBoxIconSize;
69}; 71};
70 72