summaryrefslogtreecommitdiff
path: root/core/pim/today
Side-by-side diff
Diffstat (limited to 'core/pim/today') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/TODO2
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginconfig.cpp5
-rw-r--r--core/pim/today/plugins/todolist/todopluginconfig.cpp11
-rw-r--r--core/pim/today/today.cpp2
-rw-r--r--core/pim/today/todaybase.cpp7
-rw-r--r--core/pim/today/todaybase.h2
-rw-r--r--core/pim/today/todayconfig.cpp1
7 files changed, 21 insertions, 9 deletions
diff --git a/core/pim/today/TODO b/core/pim/today/TODO
index 49503bd..4dc22aa 100644
--- a/core/pim/today/TODO
+++ b/core/pim/today/TODO
@@ -1,7 +1,5 @@
TODO for today:
-- all icons clickable
-
- retail rom mail plugin (z)
- autostart on retail rom (Z)
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
index 606916b..e93c82c 100644
--- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
@@ -8,6 +8,7 @@
#include <qtoolbutton.h>
#include <qlabel.h>
#include <qhbox.h>
+#include <qwhatsthis.h>
#include <qvbox.h>
DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name)
@@ -20,22 +21,26 @@ DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name)
QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" );
TextLabel4->setText( tr( "Show location" ) );
CheckBox1 = new QCheckBox( box1, "CheckBox1" );
+ QWhatsThis::add( CheckBox1 , tr( "Check this if the location of an appointment should be shown for each one" ) );
QHBox *box2 = new QHBox( this );
QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" );
TextLabel5->setText( tr( "Show notes" ) );
CheckBox2 = new QCheckBox( box2, "CheckBox2" );
+ QWhatsThis::add( CheckBox2 , tr( "Check this if the note attached to an appointment should be shown for each one" ) );
QHBox *box3 = new QHBox( this );
QLabel* TextLabel6 = new QLabel( box3, "All Day");
TextLabel6->setText( tr( "Show only later\n appointments") );
CheckBox3 = new QCheckBox ( box3, "CheckBox3" );
+ QWhatsThis::add( CheckBox3 , tr( "Check this if only appointments later then current time should be shown" ) );
QHBox *box4 = new QHBox( this );
QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" );
TextLabel3->setText( tr( "How many \nappointment\n"
"should be \nshown?" ) );
SpinBox1 = new QSpinBox( box4, "SpinBox1" );
+ QWhatsThis::add( SpinBox1 , tr( "How many appointments should be shown maximal. In chronical order" ) );
SpinBox1->setMaxValue( 10 );
SpinBox1->setValue( 5 );
diff --git a/core/pim/today/plugins/todolist/todopluginconfig.cpp b/core/pim/today/plugins/todolist/todopluginconfig.cpp
index 110b2e0..56b7aa2 100644
--- a/core/pim/today/plugins/todolist/todopluginconfig.cpp
+++ b/core/pim/today/plugins/todolist/todopluginconfig.cpp
@@ -22,6 +22,7 @@
#include <qhbox.h>
#include <qtoolbutton.h>
#include <qlabel.h>
+#include <qwhatsthis.h>
@@ -34,20 +35,22 @@ TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name)
QHBox *box1 = new QHBox( this );
QLabel* TextLabel6 = new QLabel( box1, "TextLabel6" );
- TextLabel6->setText( tr( "How many\n tasks should \n"
- "be shown?" ) );
+ TextLabel6->setText( tr( "tasks shown " ) );
SpinBox2 = new QSpinBox( box1, "SpinBox2" );
SpinBox2->setMaxValue( 40 );
+ QWhatsThis::add( SpinBox2 , tr( "Set the maximum number of task that should be shown" ) );
+
+
QHBox *box2 = new QHBox( this );
QLabel* clipLabel = new QLabel( box2, "" );
- clipLabel->setText( tr( "Clip line after\n X chars" ) );
+ clipLabel->setText( tr( "Clip line after X chars" ) );
SpinBoxClip = new QSpinBox( box2, "SpinClip" );
SpinBoxClip->setMaxValue( 200 );
-
+ QWhatsThis::add( SpinBoxClip , tr( "After how many chars should be the info about the task be cut off" ) );
layout->addWidget( box1 );
layout->addWidget( box2 );
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 34ec3cb..dd98824 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -35,6 +35,7 @@
#include <qhbox.h>
#include <opie/otabwidget.h>
#include <qdialog.h>
+#include <qwhatsthis.h>
struct TodayPlugin {
@@ -167,6 +168,7 @@ void Today::loadPlugins() {
plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 );
OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox );
plugIcon->setPixmap( plugPix );
+ QWhatsThis::add( plugIcon, tr("Click here to launch the associated app") );
plugIcon->setName( plugin.guiPart->appName() );
connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) );
// a scrollview for each plugin
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index 352c9c1..12e8411 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -21,12 +21,13 @@
#include <qimage.h>
#include <qpixmap.h>
#include <qapplication.h>
+#include <qwhatsthis.h>
#include <qpe/resource.h>
-TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl ) {
+TodayBase::TodayBase( QWidget* parent, const char* name, WFlags )
+ : QWidget( parent, name, WStyle_ContextHelp ) {
QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo
QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla
@@ -80,6 +81,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
QLabel* Opiezilla = new QLabel( Frame, "OpieZilla" );
Opiezilla->setPixmap( opiezilla );
Opiezilla->setGeometry( QApplication::desktop()->width()-50 ,1, 45, 47 );
+ QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) );
Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin );
// Ownerfield
@@ -92,6 +94,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
ConfigButton = new OClickableLabel ( Frame, "PushButton1" );
ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 30, 25, 21 ) );
ConfigButton->setPixmap( config );
+ QWhatsThis::add( ConfigButton, tr( "Click here to get to the config dialog" ) );
ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin );
}
diff --git a/core/pim/today/todaybase.h b/core/pim/today/todaybase.h
index 7c50f32..340c7a6 100644
--- a/core/pim/today/todaybase.h
+++ b/core/pim/today/todaybase.h
@@ -33,7 +33,7 @@ class TodayBase : public QWidget
Q_OBJECT
public:
- TodayBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ TodayBase( QWidget* parent = 0, const char* name = 0, WFlags = 0 );
~TodayBase();
QFrame* Frame4;
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp
index d15e2ab..f9dd8f7 100644
--- a/core/pim/today/todayconfig.cpp
+++ b/core/pim/today/todayconfig.cpp
@@ -69,6 +69,7 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
m_appletListView->addColumn( "PluginList" );
m_appletListView->header()->hide();
m_appletListView->setSorting( -1 );
+ QWhatsThis::add( m_appletListView, tr( "Check a checkbox to activate/deactivate a plugin ore use the arrow buttons on the right to change the appearance order" ) );
QVBox *vbox1 = new QVBox( hbox1 );
new ToolButton( vbox1, tr( "Move Up" ), "up", this , SLOT( moveSelectedUp() ) );
new ToolButton( vbox1, tr( "Move Down" ), "down", this , SLOT( moveSelectedDown() ) );