-rw-r--r-- | core/pim/today/today.cpp | 44 | ||||
-rw-r--r-- | core/pim/today/todayconfig.cpp | 18 | ||||
-rw-r--r-- | core/pim/today/todayconfig.h | 1 |
3 files changed, 53 insertions, 10 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index eb8b50c..0f6e598 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -26,191 +26,225 @@ | |||
26 | #include <qpe/config.h> | 26 | #include <qpe/config.h> |
27 | #include <qpe/qcopenvelope_qws.h> | 27 | #include <qpe/qcopenvelope_qws.h> |
28 | #include <qpe/qprocess.h> | 28 | #include <qpe/qprocess.h> |
29 | 29 | ||
30 | #include <qdir.h> | 30 | #include <qdir.h> |
31 | #include <qfile.h> | 31 | #include <qfile.h> |
32 | #include <qdatetime.h> | 32 | #include <qdatetime.h> |
33 | #include <qtextstream.h> | 33 | #include <qtextstream.h> |
34 | #include <qcheckbox.h> | 34 | #include <qcheckbox.h> |
35 | #include <qspinbox.h> | 35 | #include <qspinbox.h> |
36 | #include <qpushbutton.h> | 36 | #include <qpushbutton.h> |
37 | #include <qlabel.h> | 37 | #include <qlabel.h> |
38 | #include <qtimer.h> | 38 | #include <qtimer.h> |
39 | 39 | ||
40 | //#include <iostream.h> | 40 | //#include <iostream.h> |
41 | //#include <unistd.h> | 41 | //#include <unistd.h> |
42 | #include <stdlib.h> | 42 | #include <stdlib.h> |
43 | 43 | ||
44 | int MAX_LINES_TASK; | 44 | int MAX_LINES_TASK; |
45 | int MAX_CHAR_CLIP; | 45 | int MAX_CHAR_CLIP; |
46 | int MAX_LINES_MEET; | 46 | int MAX_LINES_MEET; |
47 | int SHOW_LOCATION; | 47 | int SHOW_LOCATION; |
48 | int SHOW_NOTES; | 48 | int SHOW_NOTES; |
49 | // show only later dates | 49 | // show only later dates |
50 | int ONLY_LATER = 1; | 50 | int ONLY_LATER; |
51 | /* | 51 | /* |
52 | * Constructs a Example which is a child of 'parent', with the | 52 | * Constructs a Example which is a child of 'parent', with the |
53 | * name 'name' and widget flags set to 'f' | 53 | * name 'name' and widget flags set to 'f' |
54 | */ | 54 | */ |
55 | Today::Today( QWidget* parent, const char* name, WFlags fl ) | 55 | Today::Today( QWidget* parent, const char* name, WFlags fl ) |
56 | : TodayBase( parent, name, fl ) | 56 | : TodayBase( parent, name, fl ) |
57 | { | 57 | { |
58 | QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) ); | 58 | QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) ); |
59 | QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) ); | 59 | QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) ); |
60 | QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) ); | 60 | QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) ); |
61 | QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startMail() ) ); | 61 | QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startMail() ) ); |
62 | 62 | ||
63 | QDate date = QDate::currentDate(); | 63 | QDate date = QDate::currentDate(); |
64 | QString time = (date.toString()); | 64 | QString time = (date.toString()); |
65 | TextLabel1->setText(time); | 65 | TextLabel1->setText(time); |
66 | db = new DateBookDB; | 66 | db = new DateBookDB; |
67 | 67 | ||
68 | draw(); | 68 | draw(); |
69 | } | 69 | } |
70 | 70 | ||
71 | 71 | ||
72 | void Today::draw() | 72 | void Today::draw() |
73 | { | 73 | { |
74 | init(); | 74 | init(); |
75 | getDates(); | 75 | getDates(); |
76 | getMail(); | 76 | getMail(); |
77 | getTodo(); | 77 | getTodo(); |
78 | QTimer::singleShot( 60*1000, this, SLOT(draw()) ); | 78 | // how often refresh |
79 | QTimer::singleShot( 30*1000, this, SLOT(draw()) ); | ||
79 | 80 | ||
80 | } | 81 | } |
81 | 82 | ||
82 | void Today::init() | 83 | void Today::init() |
83 | { | 84 | { |
84 | // read config | 85 | // read config |
85 | Config cfg("today"); | 86 | Config cfg("today"); |
86 | cfg.setGroup("BaseConfig"); | 87 | cfg.setGroup("BaseConfig"); |
87 | 88 | ||
88 | // how many lines should be showed in the task section | 89 | // how many lines should be showed in the task section |
89 | MAX_LINES_TASK = cfg.readNumEntry("maxlinestask",5); | 90 | MAX_LINES_TASK = cfg.readNumEntry("maxlinestask",5); |
90 | // after how many chars should the be cut off on tasks and notes | 91 | // after how many chars should the be cut off on tasks and notes |
91 | MAX_CHAR_CLIP = cfg.readNumEntry("maxcharclip",30); | 92 | MAX_CHAR_CLIP = cfg.readNumEntry("maxcharclip",30); |
92 | // how many lines should be showed in the datebook section | 93 | // how many lines should be showed in the datebook section |
93 | MAX_LINES_MEET = cfg.readNumEntry("maxlinesmeet",5); | 94 | MAX_LINES_MEET = cfg.readNumEntry("maxlinesmeet",5); |
94 | // If location is to be showed too, 1 to activate it. | 95 | // If location is to be showed too, 1 to activate it. |
95 | SHOW_LOCATION = cfg.readNumEntry("showlocation",1); | 96 | SHOW_LOCATION = cfg.readNumEntry("showlocation",1); |
96 | // if notes should be shown | 97 | // if notes should be shown |
97 | SHOW_NOTES = cfg.readNumEntry("shownotes",0); | 98 | SHOW_NOTES = cfg.readNumEntry("shownotes",0); |
99 | ONLY_LATER = cfg.readNumEntry("onlylater",1); | ||
100 | |||
98 | } | 101 | } |
99 | 102 | ||
100 | void Today::startConfig() | 103 | void Today::startConfig() |
101 | { | 104 | { |
102 | conf = new todayconfig ( this, "", true ); | 105 | conf = new todayconfig ( this, "", true ); |
103 | 106 | ||
104 | 107 | ||
105 | //Config cfg = new Config("today"); | 108 | //Config cfg = new Config("today"); |
106 | 109 | ||
107 | // read the config | 110 | // read the config |
108 | Config cfg("today"); | 111 | Config cfg("today"); |
109 | cfg.setGroup("BaseConfig"); | 112 | cfg.setGroup("BaseConfig"); |
110 | 113 | ||
111 | //init(); | 114 | //init(); |
112 | 115 | ||
113 | conf->SpinBox1->setValue(MAX_LINES_MEET); | 116 | conf->SpinBox1->setValue(MAX_LINES_MEET); |
114 | // location show box | 117 | // location show box |
115 | conf->CheckBox1->setChecked(SHOW_LOCATION); | 118 | conf->CheckBox1->setChecked(SHOW_LOCATION); |
116 | // notes show box | 119 | // notes show box |
117 | conf->CheckBox2->setChecked(SHOW_NOTES); | 120 | conf->CheckBox2->setChecked(SHOW_NOTES); |
118 | // task lines | 121 | // task lines |
119 | conf->SpinBox2->setValue(MAX_LINES_TASK); | 122 | conf->SpinBox2->setValue(MAX_LINES_TASK); |
120 | // clip when? | 123 | // clip when? |
121 | conf->SpinBox7->setValue(MAX_CHAR_CLIP); | 124 | conf->SpinBox7->setValue(MAX_CHAR_CLIP); |
122 | 125 | // only later | |
126 | conf->CheckBox3->setChecked(ONLY_LATER); | ||
127 | |||
123 | conf->exec(); | 128 | conf->exec(); |
124 | 129 | ||
125 | int maxlinestask = conf->SpinBox2->value(); | 130 | int maxlinestask = conf->SpinBox2->value(); |
126 | int maxmeet = conf->SpinBox1->value(); | 131 | int maxmeet = conf->SpinBox1->value(); |
127 | int location = conf->CheckBox1->isChecked(); | 132 | int location = conf->CheckBox1->isChecked(); |
128 | int notes = conf->CheckBox2->isChecked(); | 133 | int notes = conf->CheckBox2->isChecked(); |
129 | int maxcharclip = conf->SpinBox7->value(); | 134 | int maxcharclip = conf->SpinBox7->value(); |
130 | 135 | int onlylater = conf->CheckBox3->isChecked(); | |
136 | |||
131 | cfg.writeEntry("maxlinestask",maxlinestask); | 137 | cfg.writeEntry("maxlinestask",maxlinestask); |
132 | cfg.writeEntry("maxcharclip", maxcharclip); | 138 | cfg.writeEntry("maxcharclip", maxcharclip); |
133 | cfg.writeEntry("maxlinesmeet",maxmeet); | 139 | cfg.writeEntry("maxlinesmeet",maxmeet); |
134 | cfg.writeEntry("showlocation",location); | 140 | cfg.writeEntry("showlocation",location); |
135 | cfg.writeEntry("shownotes", notes); | 141 | cfg.writeEntry("shownotes", notes); |
142 | cfg.writeEntry("onlylater", onlylater); | ||
136 | // sync it to "disk" | 143 | // sync it to "disk" |
137 | cfg.write(); | 144 | cfg.write(); |
138 | 145 | ||
139 | draw(); | 146 | draw(); |
140 | } | 147 | } |
141 | 148 | ||
142 | 149 | ||
143 | /* | 150 | /* |
144 | * Get all events that are in the datebook xml file for today | 151 | * Get all events that are in the datebook xml file for today |
145 | */ | 152 | */ |
146 | void Today::getDates() | 153 | void Today::getDates() |
147 | { | 154 | { |
148 | QDate date = QDate::currentDate(); | 155 | QDate date = QDate::currentDate(); |
149 | QTime time = QTime::currentTime(); | 156 | QTime time = QTime::currentTime(); |
150 | QValueList<EffectiveEvent> list = db->getEffectiveEvents(date, date); | 157 | QValueList<EffectiveEvent> list = db->getEffectiveEvents(date, date); |
151 | 158 | ||
152 | Config config( "qpe" ); | 159 | Config config( "qpe" ); |
153 | // if 24 h format | 160 | // if 24 h format |
154 | // bool ampm = config.readBoolEntry( "AMPM", TRUE ); | 161 | // bool ampm = config.readBoolEntry( "AMPM", TRUE ); |
155 | 162 | ||
156 | int count=0; | 163 | int count=0; |
157 | 164 | ||
158 | if ( list.count() > 0 ) { | 165 | if ( list.count() > 0 ) { |
159 | QString msg; | 166 | QString msg; |
160 | 167 | ||
161 | for ( QValueList<EffectiveEvent>::ConstIterator it=list.begin(); | 168 | for ( QValueList<EffectiveEvent>::ConstIterator it=list.begin(); |
162 | it!=list.end(); ++it ) { | 169 | it!=list.end(); ++it ) { |
163 | 170 | ||
164 | count++; | 171 | count++; |
165 | 172 | ||
166 | if ( count <= MAX_LINES_MEET ) | 173 | if ( count <= MAX_LINES_MEET ) |
167 | { | 174 | { |
168 | //only get events past current time (start or end??) | 175 | //only get events past current time (start or end??) |
169 | //cout << time.toString() << endl; | 176 | //cout << time.toString() << endl; |
170 | //cout << TimeString::dateString((*it).event().end()) << endl; | 177 | //cout << TimeString::dateString((*it).event().end()) << endl; |
171 | // still some bug in here, 1 h off | 178 | // still some bug in here, 1 h off |
172 | if ((time.toString() <= TimeString::dateString((*it).event().end())) && ONLY_LATER ) | 179 | |
180 | // decide if to get all day or only later appointments | ||
181 | if (!ONLY_LATER) | ||
182 | { | ||
183 | msg += "<B>" + (*it).description() + "</B>"; | ||
184 | // include location or not | ||
185 | if (SHOW_LOCATION == 1) | ||
186 | { | ||
187 | msg+= "<BR>" + (*it).location(); | ||
188 | } | ||
189 | msg += "<BR>" | ||
190 | // start time of event | ||
191 | + TimeString::timeString(QTime((*it).event().start().time()) ) | ||
192 | // end time of event | ||
193 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) | ||
194 | + "<BR>"; | ||
195 | // include possible note or not | ||
196 | if (SHOW_NOTES == 1) | ||
197 | { | ||
198 | msg += " <i>note</i>:" +((*it).notes()).mid(0, MAX_CHAR_CLIP) + "<br>"; | ||
199 | } | ||
200 | } | ||
201 | else if ((time.toString() <= TimeString::dateString((*it).event().end())) && ONLY_LATER ) | ||
173 | { | 202 | { |
174 | msg += "<B>" + (*it).description() + "</B>"; | 203 | msg += "<B>" + (*it).description() + "</B>"; |
175 | // include location or not | 204 | // include location or not |
176 | if (SHOW_LOCATION == 1) | 205 | if (SHOW_LOCATION == 1) |
177 | { | 206 | { |
178 | msg+= "<BR>" + (*it).location(); | 207 | msg+= "<BR>" + (*it).location(); |
179 | } | 208 | } |
180 | msg += "<BR>" | 209 | msg += "<BR>" |
181 | // start time of event | 210 | // start time of event |
182 | + TimeString::timeString(QTime((*it).event().start().time()) ) | 211 | + TimeString::timeString(QTime((*it).event().start().time()) ) |
183 | // end time of event | 212 | // end time of event |
184 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) | 213 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) |
185 | + "<BR>"; | 214 | + "<BR>"; |
186 | // include possible note or not | 215 | // include possible note or not |
187 | if (SHOW_NOTES == 1) | 216 | if (SHOW_NOTES == 1) |
188 | { | 217 | { |
189 | msg += " <i>note</i>:" +((*it).notes()).mid(0, MAX_CHAR_CLIP) + "<br>"; | 218 | msg += " <i>note</i>:" +((*it).notes()).mid(0, MAX_CHAR_CLIP) + "<br>"; |
190 | } | 219 | } |
191 | } | 220 | } |
192 | } | 221 | } |
222 | |||
223 | if (msg.isEmpty()) | ||
224 | { | ||
225 | msg = "No more appointments today"; | ||
226 | } | ||
193 | } | 227 | } |
194 | DatesField->setText(msg); | 228 | DatesField->setText(msg); |
195 | } | 229 | } |
196 | } | 230 | } |
197 | 231 | ||
198 | /* | 232 | /* |
199 | * Parse in the todolist.xml | 233 | * Parse in the todolist.xml |
200 | * | 234 | * |
201 | */ | 235 | */ |
202 | QList<TodoItem> Today::loadTodo(const char *filename) | 236 | QList<TodoItem> Today::loadTodo(const char *filename) |
203 | { | 237 | { |
204 | DOM *todo; | 238 | DOM *todo; |
205 | ELE *tasks; | 239 | ELE *tasks; |
206 | ELE **tasklist; | 240 | ELE **tasklist; |
207 | ATT **attlist; | 241 | ATT **attlist; |
208 | int i, j; | 242 | int i, j; |
209 | char *description; | 243 | char *description; |
210 | int completed; | 244 | int completed; |
211 | int priority; | 245 | int priority; |
212 | TodoItem *tmp; | 246 | TodoItem *tmp; |
213 | QList<TodoItem> loadtodolist; | 247 | QList<TodoItem> loadtodolist; |
214 | 248 | ||
215 | todo = minidom_load(filename); | 249 | todo = minidom_load(filename); |
216 | 250 | ||
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp index 0f00802..4f2633d 100644 --- a/core/pim/today/todayconfig.cpp +++ b/core/pim/today/todayconfig.cpp | |||
@@ -27,73 +27,81 @@ | |||
27 | * TRUE to construct a modal dialog. | 27 | * TRUE to construct a modal dialog. |
28 | */ | 28 | */ |
29 | todayconfig::todayconfig( QWidget* parent, const char* name, bool modal, WFlags fl ) | 29 | todayconfig::todayconfig( QWidget* parent, const char* name, bool modal, WFlags fl ) |
30 | : QDialog( parent, name, modal, fl ) | 30 | : QDialog( parent, name, modal, fl ) |
31 | { | 31 | { |
32 | if ( !name ) | 32 | if ( !name ) |
33 | setName( "todayconfig" ); | 33 | setName( "todayconfig" ); |
34 | resize( 175, 232 ); | 34 | resize( 175, 232 ); |
35 | setCaption( tr( "Today config" ) ); | 35 | setCaption( tr( "Today config" ) ); |
36 | 36 | ||
37 | TabWidget3 = new QTabWidget( this, "TabWidget3" ); | 37 | TabWidget3 = new QTabWidget( this, "TabWidget3" ); |
38 | TabWidget3->setGeometry( QRect( 0, 0, 220, 320 ) ); | 38 | TabWidget3->setGeometry( QRect( 0, 0, 220, 320 ) ); |
39 | TabWidget3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, TabWidget3->sizePolicy().hasHeightForWidth() ) ); | 39 | TabWidget3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, TabWidget3->sizePolicy().hasHeightForWidth() ) ); |
40 | TabWidget3->setAutoMask( FALSE ); | 40 | TabWidget3->setAutoMask( FALSE ); |
41 | TabWidget3->setTabShape( QTabWidget::Rounded ); | 41 | TabWidget3->setTabShape( QTabWidget::Rounded ); |
42 | 42 | ||
43 | tab = new QWidget( TabWidget3, "tab" ); | 43 | tab = new QWidget( TabWidget3, "tab" ); |
44 | 44 | ||
45 | Frame8 = new QFrame( tab, "Frame8" ); | 45 | Frame8 = new QFrame( tab, "Frame8" ); |
46 | Frame8->setGeometry( QRect( -5, 0, 200, 300 ) ); | 46 | Frame8->setGeometry( QRect( -5, 0, 200, 300 ) ); |
47 | Frame8->setFrameShape( QFrame::StyledPanel ); | 47 | Frame8->setFrameShape( QFrame::StyledPanel ); |
48 | Frame8->setFrameShadow( QFrame::Raised ); | 48 | Frame8->setFrameShadow( QFrame::Raised ); |
49 | 49 | ||
50 | TextLabel4 = new QLabel( Frame8, "TextLabel4" ); | 50 | TextLabel4 = new QLabel( Frame8, "TextLabel4" ); |
51 | TextLabel4->setGeometry( QRect( 20, 89, 100, 60 ) ); | 51 | TextLabel4->setGeometry( QRect( 20, 65, 100, 60 ) ); |
52 | TextLabel4->setText( tr( "Should the \n" | 52 | TextLabel4->setText( tr( "Should the \n" |
53 | "location \n" | 53 | "location \n" |
54 | "be shown?" ) ); | 54 | "be shown?" ) ); |
55 | 55 | ||
56 | TextLabel5 = new QLabel( Frame8, "TextLabel5" ); | 56 | TextLabel5 = new QLabel( Frame8, "TextLabel5" ); |
57 | TextLabel5->setGeometry( QRect( 20, 160, 120, 40 ) ); | 57 | TextLabel5->setGeometry( QRect( 20, 160, 120, 40 ) ); |
58 | TextLabel5->setText( tr( "Should the notes \n" | 58 | TextLabel5->setText( tr( "Should the notes \n" |
59 | "be shown?" ) ); | 59 | "be shown?" ) ); |
60 | 60 | ||
61 | CheckBox2 = new QCheckBox( Frame8, "CheckBox2" ); | 61 | CheckBox2 = new QCheckBox( Frame8, "CheckBox2" ); |
62 | CheckBox2->setGeometry( QRect( 158, 170, 27, 21 ) ); | 62 | CheckBox2->setGeometry( QRect( 158, 170, 27, 21 ) ); |
63 | CheckBox2->setText( tr( "" ) ); | 63 | //CheckBox2->setText( tr( "" ) ); |
64 | 64 | ||
65 | CheckBox1 = new QCheckBox( Frame8, "CheckBox1" ); | 65 | CheckBox1 = new QCheckBox( Frame8, "CheckBox1" ); |
66 | CheckBox1->setGeometry( QRect( 158, 90, 27, 50 ) ); | 66 | CheckBox1->setGeometry( QRect( 158, 65, 27, 50 ) ); |
67 | CheckBox1->setText( tr( "" ) ); | 67 | //CheckBox1->setText( tr( "" ) ); |
68 | |||
69 | CheckBox3 = new QCheckBox (Frame8, "CheckBox3" ); | ||
70 | CheckBox3->setGeometry( QRect( 158, 125, 27, 21 ) ); | ||
71 | |||
72 | TextLabel6 = new QLabel( Frame8, "All Day"); | ||
73 | TextLabel6->setGeometry( QRect( 20, 120, 100, 30 ) ); | ||
74 | TextLabel6->setText( tr( "Show only later\n" | ||
75 | "appointments") ); | ||
68 | 76 | ||
69 | SpinBox1 = new QSpinBox( Frame8, "SpinBox1" ); | 77 | SpinBox1 = new QSpinBox( Frame8, "SpinBox1" ); |
70 | SpinBox1->setGeometry( QRect( 115, 20, 58, 25 ) ); | 78 | SpinBox1->setGeometry( QRect( 115, 20, 58, 25 ) ); |
71 | SpinBox1->setMaxValue( 10 ); | 79 | SpinBox1->setMaxValue( 10 ); |
72 | SpinBox1->setValue( 5 ); | 80 | SpinBox1->setValue( 5 ); |
73 | 81 | ||
74 | TextLabel3 = new QLabel( Frame8, "TextLabel3" ); | 82 | TextLabel3 = new QLabel( Frame8, "TextLabel3" ); |
75 | TextLabel3->setGeometry( QRect( 20, 10, 90, 70 ) ); | 83 | TextLabel3->setGeometry( QRect( 20, 10, 90, 60 ) ); |
76 | TextLabel3->setText( tr( "How many \n" | 84 | TextLabel3->setText( tr( "How many \n" |
77 | "appointment\n" | 85 | "appointment\n" |
78 | "should should \n" | 86 | "should should \n" |
79 | "be shown?" ) ); | 87 | "be shown?" ) ); |
80 | TabWidget3->insertTab( tab, tr( "Calendar" ) ); | 88 | TabWidget3->insertTab( tab, tr( "Calendar" ) ); |
81 | 89 | ||
82 | tab_2 = new QWidget( TabWidget3, "tab_2" ); | 90 | tab_2 = new QWidget( TabWidget3, "tab_2" ); |
83 | 91 | ||
84 | Frame9 = new QFrame( tab_2, "Frame9" ); | 92 | Frame9 = new QFrame( tab_2, "Frame9" ); |
85 | Frame9->setGeometry( QRect( -5, 0, 230, 310 ) ); | 93 | Frame9->setGeometry( QRect( -5, 0, 230, 310 ) ); |
86 | Frame9->setFrameShape( QFrame::StyledPanel ); | 94 | Frame9->setFrameShape( QFrame::StyledPanel ); |
87 | Frame9->setFrameShadow( QFrame::Raised ); | 95 | Frame9->setFrameShadow( QFrame::Raised ); |
88 | 96 | ||
89 | TextLabel6 = new QLabel( Frame9, "TextLabel6" ); | 97 | TextLabel6 = new QLabel( Frame9, "TextLabel6" ); |
90 | TextLabel6->setGeometry( QRect( 20, 10, 100, 60 ) ); | 98 | TextLabel6->setGeometry( QRect( 20, 10, 100, 60 ) ); |
91 | TextLabel6->setText( tr( "How many\n" | 99 | TextLabel6->setText( tr( "How many\n" |
92 | "tasks should \n" | 100 | "tasks should \n" |
93 | "be shown?" ) ); | 101 | "be shown?" ) ); |
94 | 102 | ||
95 | SpinBox2 = new QSpinBox( Frame9, "SpinBox2" ); | 103 | SpinBox2 = new QSpinBox( Frame9, "SpinBox2" ); |
96 | SpinBox2->setGeometry( QRect( 115, 20, 58, 25 ) ); | 104 | SpinBox2->setGeometry( QRect( 115, 20, 58, 25 ) ); |
97 | SpinBox2->setMaxValue( 20 ); | 105 | SpinBox2->setMaxValue( 20 ); |
98 | SpinBox2->setValue( 5 ); | 106 | SpinBox2->setValue( 5 ); |
99 | TabWidget3->insertTab( tab_2, tr( "Tasks" ) ); | 107 | TabWidget3->insertTab( tab_2, tr( "Tasks" ) ); |
diff --git a/core/pim/today/todayconfig.h b/core/pim/today/todayconfig.h index 38e9beb..7facf85 100644 --- a/core/pim/today/todayconfig.h +++ b/core/pim/today/todayconfig.h | |||
@@ -13,40 +13,41 @@ | |||
13 | #include <qdialog.h> | 13 | #include <qdialog.h> |
14 | class QVBoxLayout; | 14 | class QVBoxLayout; |
15 | class QHBoxLayout; | 15 | class QHBoxLayout; |
16 | class QGridLayout; | 16 | class QGridLayout; |
17 | class QCheckBox; | 17 | class QCheckBox; |
18 | class QFrame; | 18 | class QFrame; |
19 | class QLabel; | 19 | class QLabel; |
20 | class QSpinBox; | 20 | class QSpinBox; |
21 | class QTabWidget; | 21 | class QTabWidget; |
22 | class QWidget; | 22 | class QWidget; |
23 | 23 | ||
24 | class todayconfig : public QDialog | 24 | class todayconfig : public QDialog |
25 | { | 25 | { |
26 | Q_OBJECT | 26 | Q_OBJECT |
27 | 27 | ||
28 | public: | 28 | public: |
29 | todayconfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | 29 | todayconfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); |
30 | ~todayconfig(); | 30 | ~todayconfig(); |
31 | 31 | ||
32 | QTabWidget* TabWidget3; | 32 | QTabWidget* TabWidget3; |
33 | QWidget* tab; | 33 | QWidget* tab; |
34 | QFrame* Frame8; | 34 | QFrame* Frame8; |
35 | QLabel* TextLabel4; | 35 | QLabel* TextLabel4; |
36 | QLabel* TextLabel5; | 36 | QLabel* TextLabel5; |
37 | QCheckBox* CheckBox3; | ||
37 | QCheckBox* CheckBox2; | 38 | QCheckBox* CheckBox2; |
38 | QCheckBox* CheckBox1; | 39 | QCheckBox* CheckBox1; |
39 | QSpinBox* SpinBox1; | 40 | QSpinBox* SpinBox1; |
40 | QLabel* TextLabel3; | 41 | QLabel* TextLabel3; |
41 | QWidget* tab_2; | 42 | QWidget* tab_2; |
42 | QFrame* Frame9; | 43 | QFrame* Frame9; |
43 | QLabel* TextLabel6; | 44 | QLabel* TextLabel6; |
44 | QSpinBox* SpinBox2; | 45 | QSpinBox* SpinBox2; |
45 | QWidget* tab_3; | 46 | QWidget* tab_3; |
46 | QFrame* Frame14; | 47 | QFrame* Frame14; |
47 | QLabel* TextLabel1; | 48 | QLabel* TextLabel1; |
48 | QSpinBox* SpinBox7; | 49 | QSpinBox* SpinBox7; |
49 | 50 | ||
50 | }; | 51 | }; |
51 | 52 | ||
52 | #endif // TODAYCONFIG_H | 53 | #endif // TODAYCONFIG_H |