Review Request: Implementation of KParts listing filter extension for Dolphin
Frank Reininghaus
frank78ac at googlemail.com
Tue Sep 4 06:59:34 BST 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106289/#review18482
-----------------------------------------------------------
Thanks for your explanations!
First of all, let me say that I greatly appreciate all the awesome work you're doing in Konqueror and kdelibs. I know that you made many great contributins to areas that many others have little interest in.
I see now why you propose to add these signals, but I ask you to also try to understand my point of view. One of my main goals is to keep Dolphin's code readable and maintainable. If we follow your suggestion, KFileItemModel would have the signals
itemsAdded(const KFileItemList&)
itemsDeleted(const KFileItemList&)
itemsInserted(const KItemRangeList&)
itemsRemoved(const KItemRangeList&)
which have completely different semantics. This would be quite confusing, not only at first sight, and seriously harm the readability of the code IMHO.
But I think that you can achieve what you want quite easily without these signals. You could create a dir lister inside the dir filter plugin that watches the directory. This would give you access to all files in the directory without the need to add those signals. You would just have to make sure that this dir lister has the correct "show hidden files" setting, but this should be doable because DolphinView has a signal hiddenFilesShownChanged(bool).
If this solution is acceptable for you, I'm happy to add the mime filter functionality to KFileItemModel.
Just for the record, I also discussed this with Peter last night, just to make sure that I don't tell you complete nonsense here. He agrees that adding those signals to KFileItemModel and DolphinView would be a very bad idea.
- Frank Reininghaus
On Sept. 3, 2012, 9:03 p.m., Dawit Alemayehu wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/106289/
> -----------------------------------------------------------
>
> (Updated Sept. 3, 2012, 9:03 p.m.)
>
>
> Review request for Dolphin and KDE Base Apps.
>
>
> Description
> -------
>
> The attached patch provides an implementation of KParts' ListingFilterExtension for Dolphin. The extension allows the Dolphin KPart to provide directory/file filtering services without requiring direct linking against Dolphin itself.
>
> The review for the new KPart listing filter extension (ListingFilterExtension) can be found at https://git.reviewboard.kde.org/r/106288/
>
>
> Diffs
> -----
>
> dolphin/src/views/dolphinview.h 10f63c5
> dolphin/src/views/dolphinview.cpp 8050415
> dolphin/src/kitemviews/private/kfileitemmodelfilter.cpp 816d356
> dolphin/src/kitemviews/private/kfileitemmodelfilter.h 9bdf1fd
> dolphin/src/dolphinpart.h e5693b3
> dolphin/src/dolphinpart.cpp fff7dc0
> dolphin/src/kitemviews/kfileitemmodel.h d9bebdf
> dolphin/src/kitemviews/kfileitemmodel.cpp 6936af4
>
> Diff: http://git.reviewboard.kde.org/r/106289/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Dawit Alemayehu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20120904/e7669bd6/attachment.htm>
More information about the kfm-devel
mailing list