author | harlekin <harlekin> | 2002-06-11 17:05:46 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-11 17:05:46 (UTC) |
commit | 53cbd5404cea16ec1ddbd2e264fcc42acfb453c8 (patch) (side-by-side diff) | |
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 @@ -52,19 +52,20 @@ int MAX_CHAR_CLIP; int MAX_LINES_MEET; int SHOW_LOCATION; int SHOW_NOTES; // show only later dates int ONLY_LATER; int AUTOSTART; int NEW_START=1; QString AUTOSTART_TIMER; +int NEXTDAYS=1; -/* - * Constructs a Example which is a child of 'parent', with the + +/* Constructs a Example which is a child of 'parent', with the * name 'name' and widget flags set to 'f' */ Today::Today( QWidget* parent, const char* name, WFlags fl ) : TodayBase( parent, name, fl ), AllDateBookEvents(NULL) { QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) ); QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) ); QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) ); QObject::connect( (QObject*)MailButton, SIGNAL( clicked() ), this, SLOT(startMail() ) ); @@ -417,35 +418,38 @@ void Today::getTodo() { output = tr("No active tasks"); } TodoField->setText(tr(output)); } /* - * launch addressbook + * launch addressbook (personal card) */ void Today::editCard() { - QCopEnvelope e("QPE/System", "execute(QString)"); - e << QString("addressbook"); + QCopEnvelope w("QPE/System", "execute(QString)"); + w << QString("addressbook"); + + QCopEnvelope v("QPE/Addressbook", "editPersonalAndClose()"); } /* * launches datebook */ void Today::startDatebook() { QCopEnvelope e("QPE/System", "execute(QString)"); e << QString("datebook"); } /* * starts the edit dialog as known from datebook */ + extern QPEApplication *todayApp; void Today::editEvent(const Event &e) { startDatebook(); while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); QCopEnvelope env("QPE/Datebook", "editEvent(int)"); env << e.uid(); |