summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-07-03 16:13:47 (UTC)
committer zautrix <zautrix>2004-07-03 16:13:47 (UTC)
commit2dd6ac0b2d24c91d35ce674a6c26351352df2b15 (patch) (unidiff)
treeb8474ca04d5e1bf79ca956ecaefc0c5d62280e8c
parenta95f7085c5dd7234c254750e32e44941599f3390 (diff)
downloadkdepimpi-2dd6ac0b2d24c91d35ce674a6c26351352df2b15.zip
kdepimpi-2dd6ac0b2d24c91d35ce674a6c26351352df2b15.tar.gz
kdepimpi-2dd6ac0b2d24c91d35ce674a6c26351352df2b15.tar.bz2
Popupmenu rearrangeg
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/simplealarmdaemonimpl.cpp16
-rw-r--r--kalarmd/simplealarmdaemonimpl.h1
2 files changed, 10 insertions, 7 deletions
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp
index 2bc6643..471836b 100644
--- a/kalarmd/simplealarmdaemonimpl.cpp
+++ b/kalarmd/simplealarmdaemonimpl.cpp
@@ -46,26 +46,25 @@
46 46
47SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) 47SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent )
48 : QLabel( parent ) 48 : QLabel( parent )
49{ 49{
50 mAlarmDialog = new AlarmDialog( 0 ); 50 mAlarmDialog = new AlarmDialog( 0 );
51 mPopUp = new QPopupMenu( 0 ); 51 mPopUp = new QPopupMenu( 0 );
52 mPopUp->insertItem( "Addresses", this, SLOT ( showAdd() ) );
53 mPopUp->insertSeparator();
54 mPopUp->insertItem( "Multi Sync", this, SLOT ( ringSync() ) );
55 mPopUp->insertSeparator();
56 mPopUp->insertItem( "What's Next?", this, SLOT ( showWN() ) ); 52 mPopUp->insertItem( "What's Next?", this, SLOT ( showWN() ) );
53 mPopUp->insertItem( "Next Days!", this, SLOT ( showKO() ) );
57 mPopUp->insertSeparator(); 54 mPopUp->insertSeparator();
58 mPopUp->insertItem( "What's Todo?", this, SLOT ( showTodo() ) ); 55 mPopUp->insertItem( "What's Todo?", this, SLOT ( showTodo() ) );
59 mPopUp->insertSeparator(); 56 mPopUp->insertSeparator();
60 mPopUp->insertItem( "Next Days!", this, SLOT ( showKO() ) ); 57 mPopUp->insertItem( "Addresses", this, SLOT ( showAdd() ) );
61 mPopUp->insertSeparator(); 58 mPopUp->insertSeparator();
62 mPopUp->insertItem( "Edit Journal", this, SLOT ( writeJournal() ) ); 59 mPopUp->insertItem( "Edit Journal", this, SLOT ( writeJournal() ) );
63 mPopUp->insertSeparator();
64 mPopUp->insertItem( "New Event", this, SLOT ( newEvent() ) ); 60 mPopUp->insertItem( "New Event", this, SLOT ( newEvent() ) );
65 mPopUp->insertItem( "New Todo", this, SLOT ( newTodo() ) ); 61 mPopUp->insertItem( "New Todo", this, SLOT ( newTodo() ) );
62 mPopUp->insertItem( "New Mail", this, SLOT ( newMail() ) );
63 mPopUp->insertSeparator();
64 mPopUp->insertItem( "Multi Sync", this, SLOT ( ringSync() ) );
66 mTimerPopUp = new QPopupMenu( mPopUp ); 65 mTimerPopUp = new QPopupMenu( mPopUp );
67 66
68 mBeepPopUp = new QPopupMenu( mPopUp ); 67 mBeepPopUp = new QPopupMenu( mPopUp );
69 mSoundPopUp = new QPopupMenu( mBeepPopUp ); 68 mSoundPopUp = new QPopupMenu( mBeepPopUp );
70 mPausePopUp = new QPopupMenu( mBeepPopUp ); 69 mPausePopUp = new QPopupMenu( mBeepPopUp );
71 QPopupMenu* savePopUp = new QPopupMenu( mBeepPopUp ); 70 QPopupMenu* savePopUp = new QPopupMenu( mBeepPopUp );
@@ -503,13 +502,16 @@ void SimpleAlarmDaemonImpl::newTodo()
503 502
504void SimpleAlarmDaemonImpl::newEvent() 503void SimpleAlarmDaemonImpl::newEvent()
505{ 504{
506 QCopEnvelope e("QPE/Application/kopi", "-newEvent"); 505 QCopEnvelope e("QPE/Application/kopi", "-newEvent");
507 506
508} 507}
509 508void SimpleAlarmDaemonImpl::newMail()
509{
510 QCopEnvelope e("QPE/Application/kmpi", "newMail()");
511}
510void SimpleAlarmDaemonImpl::showAdd() 512void SimpleAlarmDaemonImpl::showAdd()
511{ 513{
512 QCopEnvelope e("QPE/Application/kapi", " "); 514 QCopEnvelope e("QPE/Application/kapi", " ");
513} 515}
514void SimpleAlarmDaemonImpl::ringSync() 516void SimpleAlarmDaemonImpl::ringSync()
515{ 517{
diff --git a/kalarmd/simplealarmdaemonimpl.h b/kalarmd/simplealarmdaemonimpl.h
index 1c16af8..32a3867 100644
--- a/kalarmd/simplealarmdaemonimpl.h
+++ b/kalarmd/simplealarmdaemonimpl.h
@@ -45,12 +45,13 @@ class SimpleAlarmDaemonImpl : public QLabel
45 void newEvent(); 45 void newEvent();
46 void newCountdown(); 46 void newCountdown();
47 void simulate(); 47 void simulate();
48 void showKO(); 48 void showKO();
49 void showWN(); 49 void showWN();
50 void showAdd(); 50 void showAdd();
51 void newMail();
51 void ringSync(); 52 void ringSync();
52 void showTodo(); 53 void showTodo();
53 void writeFile(); 54 void writeFile();
54 void writeJournal(); 55 void writeJournal();
55 void slotPlayBeep( int ); 56 void slotPlayBeep( int );
56 void showTimer( ); 57 void showTimer( );