summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt3
-rw-r--r--kalarmd/alarmdialog.cpp5
2 files changed, 5 insertions, 3 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index 97c8154..be0d2b2 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -1,105 +1,106 @@
1Info about the changes in new versions of KDE-Pim/Pi 1Info about the changes in new versions of KDE-Pim/Pi
2 2
3********** VERSION 2.0.26 ************ 3********** VERSION 2.0.26 ************
4 4
5And again fixed some bugs.
6Added two more fields to the KA/Pi view config: 5Added two more fields to the KA/Pi view config:
7A "Mobile (home)" and a "Mobile (work)" field. 6A "Mobile (home)" and a "Mobile (work)" field.
8Fixed utf8 import (e.g. for Japaneese text) in KA/Pi. 7Fixed utf8 import (e.g. for Japaneese text) in KA/Pi.
9 8
9Some alarm applet enhancements, e.g. sound stops automatically if value of suspend spinbox changes.
10And again fixed some more small bugs.
10 11
11********** VERSION 2.0.25 ************ 12********** VERSION 2.0.25 ************
12 13
13And again fixed some bugs. 14And again fixed some bugs.
14 15
15********** VERSION 2.0.24 ************ 16********** VERSION 2.0.24 ************
16 17
17Fixed again a lot of small bugs. 18Fixed again a lot of small bugs.
18Some performance optimizations in date navigator. 19Some performance optimizations in date navigator.
19Month view displays now multi days events on top of each cell, such that it is more likely that all multi days items of one event are in the same row. 20Month view displays now multi days events on top of each cell, such that it is more likely that all multi days items of one event are in the same row.
20 21
21********** VERSION 2.0.23 ************ 22********** VERSION 2.0.23 ************
22 23
23Fixed again a lot of small and strange bugs, e.g. the missing toolbar of KA/Pi after a new installation. 24Fixed again a lot of small and strange bugs, e.g. the missing toolbar of KA/Pi after a new installation.
24Fixed the (agenda) layout of KO/Pi on 5500er. 25Fixed the (agenda) layout of KO/Pi on 5500er.
25Some usebility enhancements (e.g. reselection the current item of the todo view after some changes). 26Some usebility enhancements (e.g. reselection the current item of the todo view after some changes).
26 27
27********** VERSION 2.0.22 ************ 28********** VERSION 2.0.22 ************
28 29
29KO/Pi: 30KO/Pi:
30Fix for creating events/todos via the abgenda context menu. 31Fix for creating events/todos via the abgenda context menu.
31Added option to split toolbar to 3 toolbars. 32Added option to split toolbar to 3 toolbars.
32(Toolbar moving s disabled for this option due to a bug in Qt somewhere). 33(Toolbar moving s disabled for this option due to a bug in Qt somewhere).
33Added option to show one small filter-view-toolbar. 34Added option to show one small filter-view-toolbar.
34Added a print option to the desktop version: 35Added a print option to the desktop version:
35Now you can print out the view of the "Event Viewer". 36Now you can print out the view of the "Event Viewer".
36That means you can print all data of one particular event/todo. 37That means you can print all data of one particular event/todo.
37Added scaling options to printout of Event Viewer and What'sNext View. 38Added scaling options to printout of Event Viewer and What'sNext View.
38Fixed some problems in the month view in "week start sunday" mode. 39Fixed some problems in the month view in "week start sunday" mode.
39KA/Pi: 40KA/Pi:
40Added two more config options. 41Added two more config options.
41Fixed resizing problem of address request dialog when orientation was switched. 42Fixed resizing problem of address request dialog when orientation was switched.
42Cleaned up the menu structure. 43Cleaned up the menu structure.
43Fixed some more problems. 44Fixed some more problems.
44 45
45Fixed the annoying problem that scrolling continued after the key was released in KO/Pi Monthview and the KA/Pi views. 46Fixed the annoying problem that scrolling continued after the key was released in KO/Pi Monthview and the KA/Pi views.
46 47
47And, this is a really cool option (Ben did suggest it): 48And, this is a really cool option (Ben did suggest it):
48Now KO/Pi and KA/Pi can be run from a USB stick: 49Now KO/Pi and KA/Pi can be run from a USB stick:
49All data is read from and written to the stick. 50All data is read from and written to the stick.
50You can enable this in the global configure option TAB with: 51You can enable this in the global configure option TAB with:
51Save using LOCAL storage. 52Save using LOCAL storage.
52Just put KDE-Pim/Pi on a memory stick and you can access all your PIM data on every computer with Windows XP. It will work with the ME and Linux versions as well. I will put a memory stick version for teh next stable release online. 53Just put KDE-Pim/Pi on a memory stick and you can access all your PIM data on every computer with Windows XP. It will work with the ME and Linux versions as well. I will put a memory stick version for teh next stable release online.
53 54
54********** VERSION 2.0.21 ************ 55********** VERSION 2.0.21 ************
55 56
56Fixed another SMTP problem in OM/Pi. 57Fixed another SMTP problem in OM/Pi.
57Some small changed in the new datenavigator in KO/Pi. 58Some small changed in the new datenavigator in KO/Pi.
58Changed default setting for new filter in KA/Pi to "exclude categories". 59Changed default setting for new filter in KA/Pi to "exclude categories".
59Changed the default font size for 640x480 display . 60Changed the default font size for 640x480 display .
60Changed popup menu behaviour in agenda and list view. 61Changed popup menu behaviour in agenda and list view.
61Fixed some layout problems of the date label size in the month view. 62Fixed some layout problems of the date label size in the month view.
62Made month view update faster. 63Made month view update faster.
63Made first datenavigator repainting faster. 64Made first datenavigator repainting faster.
64Changed the title of the event/todo edit dialogs. 65Changed the title of the event/todo edit dialogs.
65Timelabels in agenga changed from 22:00 to 22 oo. ( the oo higher, of course). 66Timelabels in agenga changed from 22:00 to 22 oo. ( the oo higher, of course).
66Many small usebility fixes in KO/Pi. 67Many small usebility fixes in KO/Pi.
67Pressing the "Calendar" button on the Z switches now to the next view in KO/Pi. 68Pressing the "Calendar" button on the Z switches now to the next view in KO/Pi.
68The set of possible "next views" are the views you have toolbar buttons for. 69The set of possible "next views" are the views you have toolbar buttons for.
69 70
70Made alarm sound working on Linux. 71Made alarm sound working on Linux.
71 72
72KO/Pi alarm applet changed: 73KO/Pi alarm applet changed:
73Made buttons in alarm dialog much bigger. 74Made buttons in alarm dialog much bigger.
74Made setting of timer more user friendly by showing the actual timer fire time and making the buttons in the timer settings much bigger. 75Made setting of timer more user friendly by showing the actual timer fire time and making the buttons in the timer settings much bigger.
75The goal was it to make it possible to use a finger tip ( and not the stylus ) on the touchscreen to adjust the settings. 76The goal was it to make it possible to use a finger tip ( and not the stylus ) on the touchscreen to adjust the settings.
76 77
77And because this version is realeased at Easter, I added an Easter-egg: 78And because this version is realeased at Easter, I added an Easter-egg:
78With a new undocumented command you can get a message box about the next alarm. 79With a new undocumented command you can get a message box about the next alarm.
79Good luck to find it! 80Good luck to find it!
80 81
81 82
82 83
83********** VERSION 2.0.20 ************ 84********** VERSION 2.0.20 ************
84 85
85Two small fixes in OM/Pi. 86Two small fixes in OM/Pi.
86 87
87Better resizing of the new datenavigator in KO/Pi. 88Better resizing of the new datenavigator in KO/Pi.
88 89
89********** VERSION 2.0.19 ************ 90********** VERSION 2.0.19 ************
90KO/Pi: 91KO/Pi:
91Enhancements and bugfixes in the new datenavigator. 92Enhancements and bugfixes in the new datenavigator.
92Bugfix in this changelog: 93Bugfix in this changelog:
93The datenavigator was changed in version 2.0.18, not the datepicker. 94The datenavigator was changed in version 2.0.18, not the datepicker.
94 95
95********** VERSION 2.0.18 ************ 96********** VERSION 2.0.18 ************
96KO/Pi: 97KO/Pi:
97Fixed some minor problems. 98Fixed some minor problems.
98Cleaned up the KO/Pi config dialog. 99Cleaned up the KO/Pi config dialog.
99Fixed problem moving events in aganda view. 100Fixed problem moving events in aganda view.
100Made datepicker scaleable, i.e. if the datenavigator shows now a 101Made datepicker scaleable, i.e. if the datenavigator shows now a
101datenavigator matrix depending on its size. 102datenavigator matrix depending on its size.
102Birthdays are now displayed green in the datenavigator. 103Birthdays are now displayed green in the datenavigator.
103What'sThis Help in datenavigator shows all events of the day. 104What'sThis Help in datenavigator shows all events of the day.
104 105
105OM/Pi: 106OM/Pi:
diff --git a/kalarmd/alarmdialog.cpp b/kalarmd/alarmdialog.cpp
index d72a8c2..1cda534 100644
--- a/kalarmd/alarmdialog.cpp
+++ b/kalarmd/alarmdialog.cpp
@@ -175,160 +175,161 @@ void AlarmDialog::suspend()
175 Sound::soundAlarm (); 175 Sound::soundAlarm ();
176#endif 176#endif
177} 177}
178void AlarmDialog::slotOk() 178void AlarmDialog::slotOk()
179{ 179{
180 mStopAlarm = true; 180 mStopAlarm = true;
181 mMissedAlarms->setText("(No missed Alarms)"); 181 mMissedAlarms->setText("(No missed Alarms)");
182 mMessage->setText(""); 182 mMessage->setText("");
183 mMissedAlarmsCombo->clear(); 183 mMissedAlarmsCombo->clear();
184#ifndef _WIN32_ 184#ifndef _WIN32_
185 if ( fd_led > 0 ) { 185 if ( fd_led > 0 ) {
186 statusLED.status = LED_SALARM_OFF ; 186 statusLED.status = LED_SALARM_OFF ;
187 ioctl (fd_led, SHARP_LED_SETSTATUS, &statusLED); 187 ioctl (fd_led, SHARP_LED_SETSTATUS, &statusLED);
188 } 188 }
189#endif 189#endif
190 QDialog::accept(); 190 QDialog::accept();
191} 191}
192 192
193void AlarmDialog::slotSuspend() 193void AlarmDialog::slotSuspend()
194{ 194{
195 //qDebug("AlarmDialog::suspend() "); // emit suspendSignal(mSuspendSpin->value()); 195 //qDebug("AlarmDialog::suspend() "); // emit suspendSignal(mSuspendSpin->value());
196 mStopAlarm = true; 196 mStopAlarm = true;
197 QDateTime nextA = QDateTime::currentDateTime().addSecs( mSuspendSpin->value() * 60 ); 197 QDateTime nextA = QDateTime::currentDateTime().addSecs( mSuspendSpin->value() * 60 );
198 QString mess = "suspend_alarm" +mFileName+"+++" ; 198 QString mess = "suspend_alarm" +mFileName+"+++" ;
199 if ( mMessage->text().left( 10 ) !="Suspended:" ) 199 if ( mMessage->text().left( 10 ) !="Suspended:" )
200 mess += "Suspended:\n"; 200 mess += "Suspended:\n";
201 mess +=mMessage->text(); 201 mess +=mMessage->text();
202#ifndef DESKTOP_VERSION 202#ifndef DESKTOP_VERSION
203 if ( mServerNotification ) 203 if ( mServerNotification )
204 AlarmServer::addAlarm ( nextA,"koalarm",mess.latin1()); 204 AlarmServer::addAlarm ( nextA,"koalarm",mess.latin1());
205#endif 205#endif
206 emit addAlarm( nextA , mess ); 206 emit addAlarm( nextA , mess );
207 slotOk(); 207 slotOk();
208} 208}
209 209
210void AlarmDialog::setServerNotification( bool b ) 210void AlarmDialog::setServerNotification( bool b )
211{ 211{
212 mServerNotification = b; 212 mServerNotification = b;
213} 213}
214int AlarmDialog::getSuspendTime( ) 214int AlarmDialog::getSuspendTime( )
215{ 215{
216 return mSuspendSpin->value(); 216 return mSuspendSpin->value();
217 217
218} 218}
219void AlarmDialog::setSuspendTime( int val ) 219void AlarmDialog::setSuspendTime( int val )
220{ 220{
221 mSuspendSpin->setValue( val ); 221 mSuspendSpin->setValue( val );
222} 222}
223bool AlarmDialog::eventNotification( QString mess, int replay , QString fn, bool playwav, int pause , int suspendtimes) 223bool AlarmDialog::eventNotification( QString mess, int replay , QString fn, bool playwav, int pause , int suspendtimes)
224{ 224{
225 if ( mess.left( 9) != "Suspended" ) 225 if ( mess.left( 9) != "Suspended" )
226 mSuspendCounter = suspendtimes; 226 mSuspendCounter = suspendtimes;
227 mPauseCount = pause; 227 mPauseCount = pause;
228 mFileName = fn; 228 mFileName = fn;
229 mPlayWav = playwav; 229 mPlayWav = playwav;
230 if ( !QFile::exists( fn ) ) 230 if ( !QFile::exists( fn ) )
231 mFileName = ""; 231 mFileName = "";
232 alarmCounter = 0 ; 232 alarmCounter = 0 ;
233 maxAlarmReplay = replay ; 233 maxAlarmReplay = replay ;
234 mStopAlarm = false; 234 mStopAlarm = false;
235 mSilent = false; 235 mSilent = false;
236 if ( !mMessage->text().stripWhiteSpace().isEmpty() ) { 236 if ( !mMessage->text().stripWhiteSpace().isEmpty() ) {
237 mMissedAlarmsCombo->show(); 237 mMissedAlarmsCombo->show();
238 QString newItem = mMessage->text().stripWhiteSpace(); 238 QString newItem = mMessage->text().stripWhiteSpace();
239 newItem.replace( QRegExp("\n"), QString(" ") ); 239 newItem.replace( QRegExp("\n"), QString(" ") );
240 mMissedAlarmsCombo->insertItem( newItem ); 240 mMissedAlarmsCombo->insertItem( newItem );
241 mMissedAlarms->setText( "Missed alarms:"); 241 mMissedAlarms->setText( "Missed alarms:");
242 } else 242 } else
243 mMissedAlarmsCombo->hide(); 243 mMissedAlarmsCombo->hide();
244 mMessage->setText(mess); 244 mMessage->setText(mess);
245 int w = minimumSizeHint().width() ; 245 int w = minimumSizeHint().width() ;
246 int h = minimumSizeHint().height() ; 246 int h = minimumSizeHint().height() ;
247 int dw = QApplication::desktop()->width(); 247 int dw = QApplication::desktop()->width();
248 int dh = QApplication::desktop()->height(); 248 int dh = QApplication::desktop()->height();
249 setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); 249 setGeometry( (dw-w)/2, (dh - h )/2 ,w,h );
250 hide(); 250 hide();
251 251
252#ifndef _WIN32_ 252#ifndef _WIN32_
253 if ( fd_led > 0 ) { 253 if ( fd_led > 0 ) {
254 statusLED.status = LED_SALARM_ON ; 254 statusLED.status = LED_SALARM_ON ;
255 ioctl (fd_led, SHARP_LED_SETSTATUS, &statusLED); 255 ioctl (fd_led, SHARP_LED_SETSTATUS, &statusLED);
256 } 256 }
257#endif 257#endif
258 okbut->setDefault( true ); 258 okbut->setDefault( true );
259 QTimer::singleShot( 1, this, SLOT ( forceRepaint() ) ); 259 QTimer::singleShot( 1, this, SLOT ( forceRepaint() ) );
260 // playSoundTimer->start( 1000, true ); 260 // playSoundTimer->start( 1000, true );
261 return true; 261 return true;
262 262
263} 263}
264 264
265void AlarmDialog::forceRepaint() 265void AlarmDialog::forceRepaint()
266{ 266{
267 267
268 showNormal(); 268 showNormal();
269 setActiveWindow(); 269 setActiveWindow();
270 raise(); 270 raise();
271 mSuspendSpin->setFocus();
271 playSoundTimer->start( 1000, true ); 272 playSoundTimer->start( 1000, true );
272 273
273} 274}
274void AlarmDialog::spinBoxChanged( int v ) 275void AlarmDialog::spinBoxChanged( int v )
275{ 276{
276 okbut->setDefault( false ); 277 okbut->setDefault( false );
277 mSilent = true; 278 mSilent = true;
278} 279}
279 280
280void AlarmDialog::playSound () 281void AlarmDialog::playSound ()
281{ 282{
282 283
283 if (mStopAlarm ) 284 if (mStopAlarm )
284 return; 285 return;
285 if ( mSilent ) 286 if ( mSilent )
286 return; 287 return;
287 showNormal(); 288 //showNormal();
288 setActiveWindow(); 289 setActiveWindow();
289 raise(); 290 //raise();
290 mSuspendSpin->setFocus(); 291 mSuspendSpin->setFocus();
291 if ( alarmCounter < maxAlarmReplay && ! mSilent) { 292 if ( alarmCounter < maxAlarmReplay && ! mSilent) {
292 ++alarmCounter; 293 ++alarmCounter;
293#ifdef DESKTOP_VERSION 294#ifdef DESKTOP_VERSION
294 mPlayWav = true; 295 mPlayWav = true;
295#endif 296#endif
296 if ( !mPlayWav || mFileName.length() < 2 ) { 297 if ( !mPlayWav || mFileName.length() < 2 ) {
297 298
298#ifdef DESKTOP_VERSION 299#ifdef DESKTOP_VERSION
299 qDebug("Sound play not possible - file not found"); 300 qDebug("Sound play not possible - file not found");
300#else 301#else
301 Sound::soundAlarm (); 302 Sound::soundAlarm ();
302#endif 303#endif
303 } else 304 } else
304 305
305 { 306 {
306#ifdef DESKTOP_VERSION 307#ifdef DESKTOP_VERSION
307#ifdef _WIN32_ 308#ifdef _WIN32_
308 QSound::play ( mFileName ); 309 QSound::play ( mFileName );
309#else 310#else
310 311
311 QString command = "playwave -r 22050 " + mFileName; 312 QString command = "playwave -r 22050 " + mFileName;
312 qDebug("KO: Playing file %s with 22kHz",mFileName.latin1() ); 313 qDebug("KO: Playing file %s with 22kHz",mFileName.latin1() );
313 int ret = system ( command.latin1() ); 314 int ret = system ( command.latin1() );
314 if ( ret != 0 ) { 315 if ( ret != 0 ) {
315 qDebug("Sound play command failed: %s ",command.latin1() ); 316 qDebug("Sound play command failed: %s ",command.latin1() );
316 } 317 }
317 318
318#endif 319#endif
319 320
320#else 321#else
321 QSound::play ( mFileName ); 322 QSound::play ( mFileName );
322#endif 323#endif
323 qDebug("BEEP!"); 324 qDebug("BEEP!");
324 } 325 }
325 } else { 326 } else {
326 if ( ! mSilent && mSuspendCounter > 0 ) { 327 if ( ! mSilent && mSuspendCounter > 0 ) {
327 --mSuspendCounter; 328 --mSuspendCounter;
328 reject (); 329 reject ();
329 hide(); 330 hide();
330 return; 331 return;
331 } 332 }
332 } 333 }
333 playSoundTimer->start( mPauseCount * 1000, true ); 334 playSoundTimer->start( mPauseCount * 1000, true );
334} 335}