Review Request 122352: dolphin: SpaceInfoToolsMenu: introduce KMoreTools
Gregor Mi
codestruct at posteo.org
Wed Feb 11 10:16:15 GMT 2015
> On Feb. 4, 2015, 6:44 a.m., Emmanuel Pescosta wrote:
> > I'll review this patch next week because I have a lot of other things to do and I want to finish the porting of Dolphin first, ok? ;)
>
> Gregor Mi wrote:
> Perfectly ok. :-)
>
> As additional demo, I added KMoreTools to kate's project addon: https://git.reviewboard.kde.org/r/122374/.
>
> Meanwhile I got some hints from Dominik:
> - KWidgetAddons seems a good place as location for KMoreTools.
> - the kmt-desktopfiles could probably better placed like this: /usr/share/kde/kmoretools/<app_id>/
>
> Christoph Feck wrote:
> If it uses KService, it cannot be in KWidgetsAddons
>
> Gregor Mi wrote:
> Thanks for the hint. When I look at the current KF5 tier layout (http://api.kde.org/frameworks-api/frameworks5-apidocs/) only the KService framework itself looks like a good place (apart from adding a new framework).
On the other hand, KService currently has no dependency to QT UI components (widgets etc.) but KMoreTools should provide some GUI.
- Gregor
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122352/#review75350
-----------------------------------------------------------
On Feb. 1, 2015, 11:05 p.m., Gregor Mi wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122352/
> -----------------------------------------------------------
>
> (Updated Feb. 1, 2015, 11:05 p.m.)
>
>
> Review request for Dolphin, Dominik Haumann, Emmanuel Pescosta, Eike Hein, and Michael Lutynski.
>
>
> Repository: kde-baseapps
>
>
> Description
> -------
>
> As said in https://git.reviewboard.kde.org/r/121478/ I created a set of classes called "KMoreTools" that should help with "more tools" scenarios like this one. The corresponding wiki page is now https://community.kde.org/Scratchpad/KMoreToolsFramework. The code examples there are not up-to-date, the latest demo code is in this RR.
>
> Though the classes around KMoreTools are designed so that it could be used in any KDE application, for this RR I added it to dolphin because SpaceInfoToolsMenu is a first use-case and proof-of-concept for KMoreTools.
>
> From the standpoint of SpaceInfoToolsMenu (dolphin/src/statusbar/spaceinfotoolsmenu.cpp) the following has improved:
>
> - The code for creating the menu is shorter and better readable.
> - Not-installed applications are now automatically placed to the new "More" submenu under the "Not installed" menu section.
> - The "More" menu is not created when not needed (e.g. when all applications in the menu are installed)
> - A new application was added: gparted, which is placed in the "More" submenu by default.
> - For "Not installed" applications there is a menu item that opens the applications homepage in the default browser or a hint if no such information was provided.
> - Slightly reduced amount of needed translations since the not-installed handling is done by KMoreTools
>
> There are some discussion points like the installation location of the locally-copied desktop files (kmt-desktopfiles).
>
> I propose to use KMoreTools in its current state (after review) as replacement for the current SpaceInfoTools implementation. If it is considered useful it could be somewhen moved to a common module
>
>
> Diffs
> -----
>
> dolphin/src/kmoretools/kmoretools.h PRE-CREATION
> dolphin/src/kmoretools/kmoretools.cpp PRE-CREATION
> dolphin/src/statusbar/kmt-desktopfiles/filelight.desktop PRE-CREATION
> dolphin/src/statusbar/kmt-desktopfiles/gparted.desktop PRE-CREATION
> dolphin/src/statusbar/kmt-desktopfiles/gparted.png PRE-CREATION
> dolphin/src/statusbar/kmt-desktopfiles/kdf.desktop PRE-CREATION
> dolphin/src/statusbar/kmt-desktopfiles/myinvalidfileapp.desktop PRE-CREATION
> dolphin/src/statusbar/kmt-desktopfiles/mynotinstalledapp.desktop PRE-CREATION
> dolphin/src/statusbar/kmt-desktopfiles/mynotinstalledapp.png PRE-CREATION
> dolphin/src/statusbar/spaceinfotoolsmenu.cpp bd3d648c9a2b6fc1f7806890813ced24756ec197
> dolphin/src/kmoretools/CMakeLists.later.txt PRE-CREATION
> dolphin/src/CMakeLists.txt 748b09316bdb4961c1ef21c5609655d39805194f
>
> Diff: https://git.reviewboard.kde.org/r/122352/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Gregor Mi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20150211/6c2f2c4e/attachment.htm>
More information about the kfm-devel
mailing list