author | harlekin <harlekin> | 2002-06-11 17:05:46 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-11 17:05:46 (UTC) |
commit | 53cbd5404cea16ec1ddbd2e264fcc42acfb453c8 (patch) (unidiff) | |
tree | 2daf9f13660755c1dca9594375d19184888c6338 /core/pim | |
parent | 5cff977f8b96077e7d6664d965be75d437a07e42 (diff) | |
download | opie-53cbd5404cea16ec1ddbd2e264fcc42acfb453c8.zip opie-53cbd5404cea16ec1ddbd2e264fcc42acfb453c8.tar.gz opie-53cbd5404cea16ec1ddbd2e264fcc42acfb453c8.tar.bz2 |
update
-rw-r--r-- | core/pim/today/today.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 69a0f75..06cfa01 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -54,15 +54,16 @@ int SHOW_LOCATION; | |||
54 | int SHOW_NOTES; | 54 | int SHOW_NOTES; |
55 | // show only later dates | 55 | // show only later dates |
56 | int ONLY_LATER; | 56 | int ONLY_LATER; |
57 | int AUTOSTART; | 57 | int AUTOSTART; |
58 | int NEW_START=1; | 58 | int NEW_START=1; |
59 | QString AUTOSTART_TIMER; | 59 | QString AUTOSTART_TIMER; |
60 | int NEXTDAYS=1; | ||
60 | 61 | ||
61 | /* | 62 | |
62 | * Constructs a Example which is a child of 'parent', with the | 63 | /* Constructs a Example which is a child of 'parent', with the |
63 | * name 'name' and widget flags set to 'f' | 64 | * name 'name' and widget flags set to 'f' |
64 | */ | 65 | */ |
65 | Today::Today( QWidget* parent, const char* name, WFlags fl ) | 66 | Today::Today( QWidget* parent, const char* name, WFlags fl ) |
66 | : TodayBase( parent, name, fl ), AllDateBookEvents(NULL) { | 67 | : TodayBase( parent, name, fl ), AllDateBookEvents(NULL) { |
67 | QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) ); | 68 | QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) ); |
68 | QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) ); | 69 | QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) ); |
@@ -419,17 +420,19 @@ void Today::getTodo() { | |||
419 | 420 | ||
420 | TodoField->setText(tr(output)); | 421 | TodoField->setText(tr(output)); |
421 | } | 422 | } |
422 | 423 | ||
423 | 424 | ||
424 | /* | 425 | /* |
425 | * launch addressbook | 426 | * launch addressbook (personal card) |
426 | */ | 427 | */ |
427 | void Today::editCard() { | 428 | void Today::editCard() { |
428 | QCopEnvelope e("QPE/System", "execute(QString)"); | 429 | QCopEnvelope w("QPE/System", "execute(QString)"); |
429 | e << QString("addressbook"); | 430 | w << QString("addressbook"); |
431 | |||
432 | QCopEnvelope v("QPE/Addressbook", "editPersonalAndClose()"); | ||
430 | } | 433 | } |
431 | 434 | ||
432 | /* | 435 | /* |
433 | * launches datebook | 436 | * launches datebook |
434 | */ | 437 | */ |
435 | void Today::startDatebook() { | 438 | void Today::startDatebook() { |
@@ -438,12 +441,13 @@ void Today::startDatebook() { | |||
438 | } | 441 | } |
439 | 442 | ||
440 | /* | 443 | /* |
441 | * starts the edit dialog as known from datebook | 444 | * starts the edit dialog as known from datebook |
442 | */ | 445 | */ |
443 | 446 | ||
447 | |||
444 | extern QPEApplication *todayApp; | 448 | extern QPEApplication *todayApp; |
445 | 449 | ||
446 | void Today::editEvent(const Event &e) { | 450 | void Today::editEvent(const Event &e) { |
447 | startDatebook(); | 451 | startDatebook(); |
448 | 452 | ||
449 | while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); | 453 | while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); |