[Differential] [Request, 243 lines] D2296: RFC: "Add Widget" runner

broulik (Kai Uwe Broulik) noreply at phabricator.kde.org
Wed Jul 27 08:36:23 UTC 2016


broulik created this revision.
broulik added reviewers: Plasma, Plasma: Design.
broulik set the repository for this revision to rPLASMAWORKSPACE Plasma Workspace.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  This runner allows to find all Plasma widgets and adds them to the desktop.

TEST PLAN
  Suggested by Eike. The widget is added to the desktop where the mouse is (was easiest solution as a runner doesn't know (and shouldn't) where the krunner window is but this is close enough). The widget can also be dragged from krunner to anywhere (eg. to a panel).
  
  The code is adapted from the windowed widgets runner and perhaps we could merge the two, even.
  
  There's a bit of an overlap if I eg serach "Calculator" I get "Add Widget: Calculator" and "Windowed Widget: Calculator" but if we merge the two with action button it will be inconsistent if an applet does *not* offer standalone mode :/
  
  Todo:
  
  - The script is hardcoded in the c++ file and then sent on dbus, dunno, could be saved to a different file but I wanted to save me the trouble with cmake and qstandardpaths.
  - It does not check whether widgets are locked (how can I do that?) because then it would just do nothing
  - The priority/relevance level might need tweaking

REPOSITORY
  rPLASMAWORKSPACE Plasma Workspace

REVISION DETAIL
  https://phabricator.kde.org/D2296

AFFECTED FILES
  runners/CMakeLists.txt
  runners/addwidgets/CMakeLists.txt
  runners/addwidgets/Messages.sh
  runners/addwidgets/addwidgetsrunner.cpp
  runners/addwidgets/addwidgetsrunner.h
  runners/addwidgets/plasma-runner-addwidgets.desktop

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: broulik, #plasma, #plasma:_design
Cc: plasma-devel, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160727/3e068feb/attachment-0001.html>


More information about the Plasma-devel mailing list