author | sandman <sandman> | 2002-10-06 22:32:36 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-06 22:32:36 (UTC) |
commit | 814a6d0506a0296874949d2f220cf816830f1c80 (patch) (unidiff) | |
tree | 592b601293d8671b1f159db92ac463c9347d2a4b | |
parent | 8deb3ccbd188faf17aeb94afe108134ae72c4254 (diff) | |
download | opie-814a6d0506a0296874949d2f220cf816830f1c80.zip opie-814a6d0506a0296874949d2f220cf816830f1c80.tar.gz opie-814a6d0506a0296874949d2f220cf816830f1c80.tar.bz2 |
- reversed the sort order of menu applet positions
- added logout applet to the base opie-taskbar ipk
-rw-r--r-- | core/launcher/opie-taskbar.control | 2 | ||||
-rw-r--r-- | core/launcher/startmenu.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/launcher/opie-taskbar.control b/core/launcher/opie-taskbar.control index 8b88ec6..13e5715 100644 --- a/core/launcher/opie-taskbar.control +++ b/core/launcher/opie-taskbar.control | |||
@@ -1,9 +1,9 @@ | |||
1 | Files: bin/qpe apps/Settings/Calibrate.desktop pics/launcher plugins/applets/libsuspendapplet.so* plugins/applets/libhomeapplet.so* | 1 | Files: bin/qpe apps/Settings/Calibrate.desktop pics/launcher plugins/applets/libsuspendapplet.so* plugins/applets/libhomeapplet.so* plugins/applets/liblogoutapplet.so* |
2 | Priority: required | 2 | Priority: required |
3 | Section: opie/system | 3 | Section: opie/system |
4 | Maintainer: Project Opie <opie@handhelds.org> | 4 | Maintainer: Project Opie <opie@handhelds.org> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION.1 | 6 | Version: $QPE_VERSION-$SUB_VERSION.1 |
7 | Depends: qt-embedded (>=$QTE_VERSION) | 7 | Depends: qt-embedded (>=$QTE_VERSION) |
8 | Description: Launcher for Opie | 8 | Description: Launcher for Opie |
9 | The "finder" or "explorer", or whatever you want to call it. | 9 | The "finder" or "explorer", or whatever you want to call it. |
diff --git a/core/launcher/startmenu.cpp b/core/launcher/startmenu.cpp index 647d0f2..917f4c1 100644 --- a/core/launcher/startmenu.cpp +++ b/core/launcher/startmenu.cpp | |||
@@ -251,51 +251,51 @@ void StartMenu::launch() | |||
251 | launchMenu->popup( QPoint( 1, y ) ); | 251 | launchMenu->popup( QPoint( 1, y ) ); |
252 | } | 252 | } |
253 | 253 | ||
254 | const AppLnk* StartMenu::execToLink(const QString& appname) | 254 | const AppLnk* StartMenu::execToLink(const QString& appname) |
255 | { | 255 | { |
256 | const AppLnk* a = apps->findExec( appname ); | 256 | const AppLnk* a = apps->findExec( appname ); |
257 | return a; | 257 | return a; |
258 | } | 258 | } |
259 | 259 | ||
260 | void StartPopupMenu::keyPressEvent( QKeyEvent *e ) | 260 | void StartPopupMenu::keyPressEvent( QKeyEvent *e ) |
261 | { | 261 | { |
262 | if ( e->key() == Key_F33 || e->key() == Key_Space ) { | 262 | if ( e->key() == Key_F33 || e->key() == Key_Space ) { |
263 | // "OK" button, little hacky | 263 | // "OK" button, little hacky |
264 | QKeyEvent ke(QEvent::KeyPress, Key_Enter, 13, 0); | 264 | QKeyEvent ke(QEvent::KeyPress, Key_Enter, 13, 0); |
265 | QPopupMenu::keyPressEvent( &ke ); | 265 | QPopupMenu::keyPressEvent( &ke ); |
266 | } else { | 266 | } else { |
267 | QPopupMenu::keyPressEvent( e ); | 267 | QPopupMenu::keyPressEvent( e ); |
268 | } | 268 | } |
269 | } | 269 | } |
270 | 270 | ||
271 | static int compareAppletPositions(const void *a, const void *b) | 271 | static int compareAppletPositions(const void *a, const void *b) |
272 | { | 272 | { |
273 | const MenuApplet* aa = *(const MenuApplet**)a; | 273 | const MenuApplet* aa = *(const MenuApplet**)a; |
274 | const MenuApplet* ab = *(const MenuApplet**)b; | 274 | const MenuApplet* ab = *(const MenuApplet**)b; |
275 | int d = ab->iface->position() - aa->iface->position(); | 275 | int d = aa->iface->position() - ab->iface->position(); |
276 | if ( d ) return d; | 276 | if ( d ) return d; |
277 | return QString::compare(ab->library->library(),aa->library->library()); | 277 | return QString::compare(aa->library->library(),ab->library->library()); |
278 | } | 278 | } |
279 | 279 | ||
280 | void StartMenu::clearApplets() | 280 | void StartMenu::clearApplets() |
281 | { | 281 | { |
282 | launchMenu-> hide(); | 282 | launchMenu-> hide(); |
283 | 283 | ||
284 | for ( QIntDictIterator<MenuApplet> it ( applets ); it. current ( ); ++it ) { | 284 | for ( QIntDictIterator<MenuApplet> it ( applets ); it. current ( ); ++it ) { |
285 | MenuApplet *applet = it. current ( ); | 285 | MenuApplet *applet = it. current ( ); |
286 | if ( launchMenu ) { | 286 | if ( launchMenu ) { |
287 | launchMenu-> removeItem ( applet-> id ); | 287 | launchMenu-> removeItem ( applet-> id ); |
288 | delete applet-> popup; | 288 | delete applet-> popup; |
289 | } | 289 | } |
290 | 290 | ||
291 | applet-> iface-> release(); | 291 | applet-> iface-> release(); |
292 | applet-> library-> unload(); | 292 | applet-> library-> unload(); |
293 | delete applet-> library; | 293 | delete applet-> library; |
294 | } | 294 | } |
295 | applets.clear(); | 295 | applets.clear(); |
296 | } | 296 | } |
297 | 297 | ||
298 | 298 | ||
299 | 299 | ||
300 | void StartMenu::loadApplets() | 300 | void StartMenu::loadApplets() |
301 | { | 301 | { |