-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginconfig.cpp | 5 | ||||
-rw-r--r-- | core/pim/today/plugins/todolist/todopluginconfig.cpp | 11 |
2 files changed, 12 insertions, 4 deletions
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 | |||
@@ -1,50 +1,55 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | #include "datebookpluginconfig.h" | 3 | #include "datebookpluginconfig.h" |
4 | 4 | ||
5 | #include <qpe/config.h> | 5 | #include <qpe/config.h> |
6 | 6 | ||
7 | #include <qlayout.h> | 7 | #include <qlayout.h> |
8 | #include <qtoolbutton.h> | 8 | #include <qtoolbutton.h> |
9 | #include <qlabel.h> | 9 | #include <qlabel.h> |
10 | #include <qhbox.h> | 10 | #include <qhbox.h> |
11 | #include <qwhatsthis.h> | ||
11 | #include <qvbox.h> | 12 | #include <qvbox.h> |
12 | 13 | ||
13 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) | 14 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) |
14 | : TodayConfigWidget( parent, name ) { | 15 | : TodayConfigWidget( parent, name ) { |
15 | 16 | ||
16 | QVBoxLayout * layout = new QVBoxLayout( this ); | 17 | QVBoxLayout * layout = new QVBoxLayout( this ); |
17 | layout->setMargin( 20 ); | 18 | layout->setMargin( 20 ); |
18 | 19 | ||
19 | QHBox *box1 = new QHBox( this ); | 20 | QHBox *box1 = new QHBox( this ); |
20 | QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" ); | 21 | QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" ); |
21 | TextLabel4->setText( tr( "Show location" ) ); | 22 | TextLabel4->setText( tr( "Show location" ) ); |
22 | CheckBox1 = new QCheckBox( box1, "CheckBox1" ); | 23 | CheckBox1 = new QCheckBox( box1, "CheckBox1" ); |
24 | QWhatsThis::add( CheckBox1 , tr( "Check this if the location of an appointment should be shown for each one" ) ); | ||
23 | 25 | ||
24 | QHBox *box2 = new QHBox( this ); | 26 | QHBox *box2 = new QHBox( this ); |
25 | QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" ); | 27 | QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" ); |
26 | TextLabel5->setText( tr( "Show notes" ) ); | 28 | TextLabel5->setText( tr( "Show notes" ) ); |
27 | CheckBox2 = new QCheckBox( box2, "CheckBox2" ); | 29 | CheckBox2 = new QCheckBox( box2, "CheckBox2" ); |
30 | QWhatsThis::add( CheckBox2 , tr( "Check this if the note attached to an appointment should be shown for each one" ) ); | ||
28 | 31 | ||
29 | QHBox *box3 = new QHBox( this ); | 32 | QHBox *box3 = new QHBox( this ); |
30 | QLabel* TextLabel6 = new QLabel( box3, "All Day"); | 33 | QLabel* TextLabel6 = new QLabel( box3, "All Day"); |
31 | TextLabel6->setText( tr( "Show only later\n appointments") ); | 34 | TextLabel6->setText( tr( "Show only later\n appointments") ); |
32 | CheckBox3 = new QCheckBox ( box3, "CheckBox3" ); | 35 | CheckBox3 = new QCheckBox ( box3, "CheckBox3" ); |
36 | QWhatsThis::add( CheckBox3 , tr( "Check this if only appointments later then current time should be shown" ) ); | ||
33 | 37 | ||
34 | QHBox *box4 = new QHBox( this ); | 38 | QHBox *box4 = new QHBox( this ); |
35 | QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" ); | 39 | QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" ); |
36 | TextLabel3->setText( tr( "How many \nappointment\n" | 40 | TextLabel3->setText( tr( "How many \nappointment\n" |
37 | "should be \nshown?" ) ); | 41 | "should be \nshown?" ) ); |
38 | SpinBox1 = new QSpinBox( box4, "SpinBox1" ); | 42 | SpinBox1 = new QSpinBox( box4, "SpinBox1" ); |
43 | QWhatsThis::add( SpinBox1 , tr( "How many appointments should be shown maximal. In chronical order" ) ); | ||
39 | SpinBox1->setMaxValue( 10 ); | 44 | SpinBox1->setMaxValue( 10 ); |
40 | SpinBox1->setValue( 5 ); | 45 | SpinBox1->setValue( 5 ); |
41 | 46 | ||
42 | layout->addWidget( box1 ); | 47 | layout->addWidget( box1 ); |
43 | layout->addWidget( box2 ); | 48 | layout->addWidget( box2 ); |
44 | layout->addWidget( box3 ); | 49 | layout->addWidget( box3 ); |
45 | layout->addWidget( box4 ); | 50 | layout->addWidget( box4 ); |
46 | 51 | ||
47 | readConfig(); | 52 | readConfig(); |
48 | } | 53 | } |
49 | 54 | ||
50 | void DatebookPluginConfig::readConfig() { | 55 | void DatebookPluginConfig::readConfig() { |
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 | |||
@@ -13,50 +13,53 @@ | |||
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 <qhbox.h> | 22 | #include <qhbox.h> |
23 | #include <qtoolbutton.h> | 23 | #include <qtoolbutton.h> |
24 | #include <qlabel.h> | 24 | #include <qlabel.h> |
25 | #include <qwhatsthis.h> | ||
25 | 26 | ||
26 | 27 | ||
27 | 28 | ||
28 | TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name) | 29 | TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name) |
29 | : TodayConfigWidget(parent, name ) { | 30 | : TodayConfigWidget(parent, name ) { |
30 | 31 | ||
31 | QVBoxLayout * layout = new QVBoxLayout( this ); | 32 | QVBoxLayout * layout = new QVBoxLayout( this ); |
32 | layout->setMargin( 20 ); | 33 | layout->setMargin( 20 ); |
33 | 34 | ||
34 | QHBox *box1 = new QHBox( this ); | 35 | QHBox *box1 = new QHBox( this ); |
35 | 36 | ||
36 | QLabel* TextLabel6 = new QLabel( box1, "TextLabel6" ); | 37 | QLabel* TextLabel6 = new QLabel( box1, "TextLabel6" ); |
37 | TextLabel6->setText( tr( "How many\n tasks should \n" | 38 | TextLabel6->setText( tr( "tasks shown " ) ); |
38 | "be shown?" ) ); | ||
39 | 39 | ||
40 | SpinBox2 = new QSpinBox( box1, "SpinBox2" ); | 40 | SpinBox2 = new QSpinBox( box1, "SpinBox2" ); |
41 | SpinBox2->setMaxValue( 40 ); | 41 | SpinBox2->setMaxValue( 40 ); |
42 | QWhatsThis::add( SpinBox2 , tr( "Set the maximum number of task that should be shown" ) ); | ||
43 | |||
44 | |||
42 | 45 | ||
43 | QHBox *box2 = new QHBox( this ); | 46 | QHBox *box2 = new QHBox( this ); |
44 | 47 | ||
45 | QLabel* clipLabel = new QLabel( box2, "" ); | 48 | QLabel* clipLabel = new QLabel( box2, "" ); |
46 | clipLabel->setText( tr( "Clip line after\n X chars" ) ); | 49 | clipLabel->setText( tr( "Clip line after X chars" ) ); |
47 | 50 | ||
48 | SpinBoxClip = new QSpinBox( box2, "SpinClip" ); | 51 | SpinBoxClip = new QSpinBox( box2, "SpinClip" ); |
49 | SpinBoxClip->setMaxValue( 200 ); | 52 | SpinBoxClip->setMaxValue( 200 ); |
50 | 53 | QWhatsThis::add( SpinBoxClip , tr( "After how many chars should be the info about the task be cut off" ) ); | |
51 | layout->addWidget( box1 ); | 54 | layout->addWidget( box1 ); |
52 | layout->addWidget( box2 ); | 55 | layout->addWidget( box2 ); |
53 | 56 | ||
54 | readConfig(); | 57 | readConfig(); |
55 | } | 58 | } |
56 | 59 | ||
57 | void TodolistPluginConfig::readConfig() { | 60 | void TodolistPluginConfig::readConfig() { |
58 | Config cfg( "todaytodoplugin" ); | 61 | Config cfg( "todaytodoplugin" ); |
59 | cfg.setGroup( "config" ); | 62 | cfg.setGroup( "config" ); |
60 | m_max_lines_task = cfg.readNumEntry( "maxlinestask", 5 ); | 63 | m_max_lines_task = cfg.readNumEntry( "maxlinestask", 5 ); |
61 | SpinBox2->setValue( m_max_lines_task ); | 64 | SpinBox2->setValue( m_max_lines_task ); |
62 | m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); | 65 | m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); |