author | zautrix <zautrix> | 2004-10-27 13:36:25 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-27 13:36:25 (UTC) |
commit | e099c37ac90e95c5a3110941aaae2be229bccb8e (patch) (unidiff) | |
tree | dad2ae54474767c4c5797e1780c4a3fee8c132e5 /kalarmd | |
parent | 2f3396d84d2f3c92e1e0e420d677892c1f9c0778 (diff) | |
download | kdepimpi-e099c37ac90e95c5a3110941aaae2be229bccb8e.zip kdepimpi-e099c37ac90e95c5a3110941aaae2be229bccb8e.tar.gz kdepimpi-e099c37ac90e95c5a3110941aaae2be229bccb8e.tar.bz2 |
wn view enhancements
-rw-r--r-- | kalarmd/simplealarmdaemonapplet.cpp | 1 | ||||
-rw-r--r-- | kalarmd/simplealarmdaemonapplet.h | 1 | ||||
-rw-r--r-- | kalarmd/simplealarmdaemonimpl.cpp | 18 |
3 files changed, 10 insertions, 10 deletions
diff --git a/kalarmd/simplealarmdaemonapplet.cpp b/kalarmd/simplealarmdaemonapplet.cpp index 7e8125d..94d8428 100644 --- a/kalarmd/simplealarmdaemonapplet.cpp +++ b/kalarmd/simplealarmdaemonapplet.cpp | |||
@@ -14,8 +14,9 @@ SimpleAlarmDaemonApplet::SimpleAlarmDaemonApplet() | |||
14 | 14 | ||
15 | SimpleAlarmDaemonApplet::~SimpleAlarmDaemonApplet() | 15 | SimpleAlarmDaemonApplet::~SimpleAlarmDaemonApplet() |
16 | { | 16 | { |
17 | delete mApplet; | 17 | delete mApplet; |
18 | mApplet = 0; | ||
18 | } | 19 | } |
19 | 20 | ||
20 | 21 | ||
21 | QWidget *SimpleAlarmDaemonApplet::applet( QWidget *parent ) | 22 | QWidget *SimpleAlarmDaemonApplet::applet( QWidget *parent ) |
diff --git a/kalarmd/simplealarmdaemonapplet.h b/kalarmd/simplealarmdaemonapplet.h index a4cbee4..1787bf3 100644 --- a/kalarmd/simplealarmdaemonapplet.h +++ b/kalarmd/simplealarmdaemonapplet.h | |||
@@ -3,9 +3,8 @@ | |||
3 | 3 | ||
4 | #include <qpe/taskbarappletinterface.h> | 4 | #include <qpe/taskbarappletinterface.h> |
5 | 5 | ||
6 | class SimpleAlarmDaemonImpl; | 6 | class SimpleAlarmDaemonImpl; |
7 | class ScreenshotApplet; | ||
8 | 7 | ||
9 | class SimpleAlarmDaemonApplet : public TaskbarAppletInterface | 8 | class SimpleAlarmDaemonApplet : public TaskbarAppletInterface |
10 | { | 9 | { |
11 | public: | 10 | public: |
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp index 4ff6861..50c4605 100644 --- a/kalarmd/simplealarmdaemonimpl.cpp +++ b/kalarmd/simplealarmdaemonimpl.cpp | |||
@@ -47,9 +47,9 @@ | |||
47 | SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) | 47 | SimpleAlarmDaemonImpl::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( this ); |
52 | 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() ) ); | 53 | mPopUp->insertItem( "Next Days!", this, SLOT ( showKO() ) ); |
54 | mPopUp->insertSeparator(); | 54 | mPopUp->insertSeparator(); |
55 | mPopUp->insertItem( "What's Todo?", this, SLOT ( showTodo() ) ); | 55 | mPopUp->insertItem( "What's Todo?", this, SLOT ( showTodo() ) ); |
@@ -61,14 +61,14 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) | |||
61 | mPopUp->insertItem( "New Todo", this, SLOT ( newTodo() ) ); | 61 | mPopUp->insertItem( "New Todo", this, SLOT ( newTodo() ) ); |
62 | mPopUp->insertItem( "New Mail", this, SLOT ( newMail() ) ); | 62 | mPopUp->insertItem( "New Mail", this, SLOT ( newMail() ) ); |
63 | mPopUp->insertSeparator(); | 63 | mPopUp->insertSeparator(); |
64 | mPopUp->insertItem( "Multi Sync", this, SLOT ( ringSync() ) ); | 64 | mPopUp->insertItem( "Multi Sync", this, SLOT ( ringSync() ) ); |
65 | mTimerPopUp = new QPopupMenu( mPopUp ); | 65 | mTimerPopUp = new QPopupMenu( this ); |
66 | 66 | ||
67 | mBeepPopUp = new QPopupMenu( mPopUp ); | 67 | mBeepPopUp = new QPopupMenu( this ); |
68 | mSoundPopUp = new QPopupMenu( mBeepPopUp ); | 68 | mSoundPopUp = new QPopupMenu( this ); |
69 | mPausePopUp = new QPopupMenu( mBeepPopUp ); | 69 | mPausePopUp = new QPopupMenu( this ); |
70 | QPopupMenu* savePopUp = new QPopupMenu( mBeepPopUp ); | 70 | QPopupMenu* savePopUp = new QPopupMenu( this ); |
71 | savePopUp->insertItem( "Save", 0 ); | 71 | savePopUp->insertItem( "Save", 0 ); |
72 | savePopUp->insertItem( "Load", 1 ); | 72 | savePopUp->insertItem( "Load", 1 ); |
73 | mSoundPopUp->insertItem( "Buzzer", 0 ); | 73 | mSoundPopUp->insertItem( "Buzzer", 0 ); |
74 | mSoundPopUp->insertItem( "Wav file", 1 ); | 74 | mSoundPopUp->insertItem( "Wav file", 1 ); |
@@ -80,9 +80,9 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) | |||
80 | mPausePopUp->insertItem( "30 sec", 30 ); | 80 | mPausePopUp->insertItem( "30 sec", 30 ); |
81 | mPausePopUp->insertItem( " 1 min", 60 ); | 81 | mPausePopUp->insertItem( " 1 min", 60 ); |
82 | mPausePopUp->insertItem( " 5 min", 300 ); | 82 | mPausePopUp->insertItem( " 5 min", 300 ); |
83 | mPausePopUp->insertItem( "10 min", 600 ); | 83 | mPausePopUp->insertItem( "10 min", 600 ); |
84 | mSuspendPopUp = new QPopupMenu( mBeepPopUp ); | 84 | mSuspendPopUp = new QPopupMenu( this ); |
85 | mSuspendPopUp->insertItem( "Off", 0 ); | 85 | mSuspendPopUp->insertItem( "Off", 0 ); |
86 | mSuspendPopUp->insertItem( " 1x", 1 ); | 86 | mSuspendPopUp->insertItem( " 1x", 1 ); |
87 | mSuspendPopUp->insertItem( " 2x", 2 ); | 87 | mSuspendPopUp->insertItem( " 2x", 2 ); |
88 | mSuspendPopUp->insertItem( " 3x", 3 ); | 88 | mSuspendPopUp->insertItem( " 3x", 3 ); |
@@ -141,9 +141,9 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) | |||
141 | } | 141 | } |
142 | 142 | ||
143 | SimpleAlarmDaemonImpl::~SimpleAlarmDaemonImpl() | 143 | SimpleAlarmDaemonImpl::~SimpleAlarmDaemonImpl() |
144 | { | 144 | { |
145 | delete mPopUp; | 145 | //delete mPopUp; |
146 | delete mAlarmDialog; | 146 | delete mAlarmDialog; |
147 | } | 147 | } |
148 | void SimpleAlarmDaemonImpl::saveSlot( int load ) | 148 | void SimpleAlarmDaemonImpl::saveSlot( int load ) |
149 | { | 149 | { |
@@ -563,9 +563,9 @@ void SimpleAlarmDaemonImpl::newMail() | |||
563 | QCopEnvelope e("QPE/Application/ompi", "newMail()"); | 563 | QCopEnvelope e("QPE/Application/ompi", "newMail()"); |
564 | } | 564 | } |
565 | void SimpleAlarmDaemonImpl::showAdd() | 565 | void SimpleAlarmDaemonImpl::showAdd() |
566 | { | 566 | { |
567 | QCopEnvelope e("QPE/Application/kapi", " "); | 567 | QCopEnvelope e("QPE/Application/kapi", "raise()"); |
568 | } | 568 | } |
569 | void SimpleAlarmDaemonImpl::ringSync() | 569 | void SimpleAlarmDaemonImpl::ringSync() |
570 | { | 570 | { |
571 | QCopEnvelope e("QPE/Application/kopi", "-ringSync"); | 571 | QCopEnvelope e("QPE/Application/kopi", "-ringSync"); |