[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/kickoff
From:       Will Stephenson <wstephenson () kde ! org>
Date:       2009-08-24 12:25:42
Message-ID: 1251116742.438784.26444.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1015064 by wstephens:

Allow adding submenus of the application launcher to the panel or the
desktop by right clicking on them in the main menu.

This works by storing the relative path and icon name of KServiceGroups
(== submenus) in the application model used by the menu

When an 'Add to Panel/Desktop' context menu action is triggered, add a
simplelauncher applet (instead of an Icon).

This receives the relative path of the submenu and the icon name in its
args, and when it builds its menu, it walks the applications model and
locates the submenu, rooting the menu at that index rather than the real
root, and setting the icon for the launcher to that of the submenu.

When the applet is showing a submenu, the view types and number of
recent applications to show are not shown in the config UI.

TODO: set tooltip to title of submenu instead of 'Application Launcher
Menu'.

BUG: 189583



 M  +7 -0      core/applicationmodel.cpp  
 M  +4 -1      core/models.h  
 M  +35 -5     simpleapplet/menuview.cpp  
 M  +1 -1      simpleapplet/menuview.h  
 M  +101 -54   simpleapplet/simpleapplet.cpp  
 M  +27 -15    ui/contextmenufactory.cpp  


http://websvn.kde.org/?view=rev&revision=1015064
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic