summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
Unidiff
Diffstat (limited to 'core/pim/today/plugins/datebook/datebookpluginconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginconfig.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
index 7482f5e..51be40e 100644
--- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
@@ -1,63 +1,62 @@
1 1
2 2
3#include "datebookpluginconfig.h" 3#include "datebookpluginconfig.h"
4 4
5
6#include <qpe/config.h> 5#include <qpe/config.h>
7 6
8#include <qlayout.h> 7#include <qlayout.h>
9#include <qtoolbutton.h> 8#include <qtoolbutton.h>
10#include <qlabel.h> 9#include <qlabel.h>
11#include <qhbox.h> 10#include <qhbox.h>
12#include <qvbox.h> 11#include <qvbox.h>
13 12
14DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) 13DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name)
15 : ConfigWidget( parent, name ) { 14 : ConfigWidget( parent, name ) {
16 15
17 QVBoxLayout * layout = new QVBoxLayout( this ); 16 QVBoxLayout * layout = new QVBoxLayout( this );
18 17
19 QHBox *box1 = new QHBox( this ); 18 QHBox *box1 = new QHBox( this );
20 QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" ); 19 QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" );
21 TextLabel4->setText( tr( "Show location" ) ); 20 TextLabel4->setText( tr( "Show location" ) );
22 CheckBox1 = new QCheckBox( box1, "CheckBox1" ); 21 CheckBox1 = new QCheckBox( box1, "CheckBox1" );
23 22
24 QHBox *box2 = new QHBox( this ); 23 QHBox *box2 = new QHBox( this );
25 QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" ); 24 QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" );
26 TextLabel5->setText( tr( "Show notes" ) ); 25 TextLabel5->setText( tr( "Show notes" ) );
27 CheckBox2 = new QCheckBox( box2, "CheckBox2" ); 26 CheckBox2 = new QCheckBox( box2, "CheckBox2" );
28 27
29 QHBox *box3 = new QHBox( this ); 28 QHBox *box3 = new QHBox( this );
30 QLabel* TextLabel6 = new QLabel( box3, "All Day"); 29 QLabel* TextLabel6 = new QLabel( box3, "All Day");
31 TextLabel6->setText( tr( "Show only later\n" 30 TextLabel6->setText( tr( "Show only later\n"
32 "appointments") ); 31 "appointments") );
33 CheckBox3 = new QCheckBox ( box3, "CheckBox3" ); 32 CheckBox3 = new QCheckBox ( box3, "CheckBox3" );
34 33
35 QHBox *box4 = new QHBox( this ); 34 QHBox *box4 = new QHBox( this );
36 QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" ); 35 QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" );
37 TextLabel3->setText( tr( "How many \nappointment\n" 36 TextLabel3->setText( tr( "How many \nappointment\n"
38 "should be \nshown?" ) ); 37 "should be \nshown?" ) );
39 SpinBox1 = new QSpinBox( box4, "SpinBox1" ); 38 SpinBox1 = new QSpinBox( box4, "SpinBox1" );
40 SpinBox1->setMaxValue( 10 ); 39 SpinBox1->setMaxValue( 10 );
41 SpinBox1->setValue( 5 ); 40 SpinBox1->setValue( 5 );
42 41
43 layout->addWidget( box1 ); 42 layout->addWidget( box1 );
44 layout->addWidget( box2 ); 43 layout->addWidget( box2 );
45 layout->addWidget( box3 ); 44 layout->addWidget( box3 );
46 layout->addWidget( box4 ); 45 layout->addWidget( box4 );
47 46
48 readConfig(); 47 readConfig();
49} 48}
50 49
51void DatebookPluginConfig::readConfig() { 50void DatebookPluginConfig::readConfig() {
52 Config cfg( "todaydatebookplugin" ); 51 Config cfg( "todaydatebookplugin" );
53 cfg.setGroup( "config" ); 52 cfg.setGroup( "config" );
54 53
55 m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 ); 54 m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 );
56 SpinBox1->setValue( m_max_lines_meet ); 55 SpinBox1->setValue( m_max_lines_meet );
57 m_show_location = cfg.readNumEntry( "showlocation", 1 ); 56 m_show_location = cfg.readNumEntry( "showlocation", 1 );
58 CheckBox1->setChecked( m_show_location ); 57 CheckBox1->setChecked( m_show_location );
59 m_show_notes = cfg.readNumEntry( "shownotes", 0 ); 58 m_show_notes = cfg.readNumEntry( "shownotes", 0 );
60 CheckBox2->setChecked( m_show_notes ); 59 CheckBox2->setChecked( m_show_notes );
61 m_only_later = cfg.readNumEntry( "onlylater", 1 ); 60 m_only_later = cfg.readNumEntry( "onlylater", 1 );
62 CheckBox3->setChecked( m_only_later ); 61 CheckBox3->setChecked( m_only_later );
63} 62}