[Baloo Widgets] Add KPropertiesDialog Plugin with file metadata
ClosedPublic

Authored by broulik on Feb 14 2017, 7:59 PM.

Details

Summary

FEATURE: 384194

This allows to view metadata (such as image dimensions, audio file album and artist information, etc) from the properties dialog. Through this, tagging and rating functionality is also somewhat more accessible.

Test Plan

I don't like tooltips and neither do I like the Dolphin sidebar. Also, I observed the properties dialog being the go-to place for Windows users to find this information (Windows has it here).

  • Doesn't have the configure widget where you can configure what to show (in Dolphin will just follow its settings) - didn't want to copy the confige dialog from there

Diff Detail

Repository
R824 Baloo Widgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik updated this revision to Diff 11350.Feb 14 2017, 7:59 PM
broulik retitled this revision from to [Baloo Widgets] Add KPropertiesDialog Plugin with file metadata.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added reviewers: Plasma, VDG, dfaure, aacid.
broulik set the repository for this revision to R824 Baloo Widgets.
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 14 2017, 7:59 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

looks sensible.

Messages.sh
6 ↗(On Diff #11350)

is this not overwriting the generated extraction above?

src/filepropertiesplugin/baloofilepropertiesplugin.cpp
51

I would argue that the FileMetaDataWidget should have the spacer on the end of it's own grid layout. A widget should be able to handle being resized gracefully without making every containing app do it.

(but I don't super object to this either. If this were on RB, imagine I haven't checked the "Open an Issue" checkbox)

src/filepropertiesplugin/baloofilepropertiesplugin.desktop
9

where does this list come from?

dfaure added inline comments.Feb 16 2017, 10:21 AM
Messages.sh
6 ↗(On Diff #11350)

This is obviously wrong, it would duplicate a lot of stuff that the previous line grabbed.

I think you misunderstood the use of "grep -v" in there, which is meant to *exclude* naturalqueryparser. Which means including everything else, including your filepropertiesplugin.

So AFAICS you don't need any change to this file at all, just revert.

src/filepropertiesplugin/CMakeLists.txt
13

If you're bored, the properties dialog could be ported to load plugins with json descriptions instead of desktop files.

broulik added inline comments.Feb 17 2017, 2:38 PM
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
9

I went through all extractors in KFileMetaData and looked at what they support.

Unfortunately KPropertiesDialog does not support wildcards. But then, showing this tab only for files where we can get meaningful information (read: stuff that isn't already on the main tab like file size and modified date), is probably better anyway.

ltoscano added inline comments.
Messages.sh
6 ↗(On Diff #11350)

As others pointed out: this is not needed: the new strings are already going to be extracted into baloowidgets.pot. Try it for yourself:
https://techbase.kde.org/Development/Tutorials/Localization/i18n_Build_Systems#Testing_your_Messages.sh_script

broulik updated this revision to Diff 11528.Feb 20 2017, 11:36 AM
  • Drop Message.sh change
broulik edited the test plan for this revision. (Show Details)Feb 20 2017, 11:36 AM

The layout looks good and is according to the HIG.
You probably shouldn't display duplicate information, but if I understood the comments correct this is already addressed.

A case could be made that this information is actually the most interesting one, and could have a more prominent place, then on the last tab. Would it be possible to display the information together with the information of the current first tab?

ltoscano added a comment.EditedFeb 22 2017, 9:31 AM

A case could be made that this information is actually the most interesting one, and could have a more prominent place, then on the last tab. Would it be possible to display the information together with the information of the current first tab?

Wouldn't this make the dialog too big?

Would it be possible to display the information together with the information of the current first tab?

No.

Also, currently I cannot tell the thing to exclude certain information (like file type and other info already shown on the first page).

dfaure requested changes to this revision.Mar 28 2017, 6:37 AM
dfaure added inline comments.
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
9

Well, as soon as your wrote all/all in the list, everything else was moot, since that means "any file or dir".
I think you want to remove all/all, based on what you wrote in the above comment.

(Note that whoever says all/all should say application/octet-stream instead, all/all is deprecated. Possibly adding inode/directory if directories should be supported too.)

Something else: your list of ServiceTypes contains many mimetypes; this works, but for clarity you should move them all to the MimeType key, and leave only KPropertiesDialog/Plugin as servicetype (which it is).

This revision now requires changes to proceed.Mar 28 2017, 6:37 AM
cfeck added a subscriber: cfeck.Sep 12 2017, 7:43 PM

Kai, do you plan to work on the mentioned issues?

broulik planned changes to this revision.Sep 12 2017, 8:06 PM
ngraham edited the summary of this revision. (Show Details)Oct 27 2017, 5:27 PM

@broulik Any update here? Looks like this is about 99% done, and it would be a shame not to to get it in. I often find myself wishing this information in the Properties window.

@broulik, any plans for this?

broulik updated this revision to Diff 24928.Jan 8 2018, 11:12 AM
  • Rebase on master
  • Just use MimeType=application/octet-stream
broulik edited the test plan for this revision. (Show Details)Jan 8 2018, 11:12 AM
michaelh added inline comments.Jan 8 2018, 12:00 PM
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
10

MimeType=inode/directory;application/octet-stream ?

broulik added inline comments.Jan 8 2018, 12:06 PM
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
10

The widget is primarily for showing additional file metadata (such as image sizes), there's no such extra information for folders, so I chose not to show it in this case.

michaelh added inline comments.Jan 8 2018, 12:09 PM
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
4

The baloo icon has a magnifying glass in it which is associated with searching.
The tag-properties icon may be more appropriate.

broulik added inline comments.Jan 8 2018, 12:13 PM
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
4

I don't think this icon is visible in the UI anywhere, certainly not in the properties dialog

michaelh added inline comments.Jan 8 2018, 12:13 PM
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
10

I tag and comment some folders containing e.g. tv-series.

broulik updated this revision to Diff 24934.Jan 8 2018, 12:15 PM
  • Show also for directories
michaelh added inline comments.Jan 8 2018, 12:15 PM
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
4

That's was also my first thought. Not sure, but it might appear in dolphin settings > services

broulik added inline comments.Jan 8 2018, 12:16 PM
src/filepropertiesplugin/baloofilepropertiesplugin.desktop
4

Btw you can submit multiple comments at once, this way I don't get a gazillion emails each asking a single question :) Just hit "Submit" once you've added all your comments

Sorry, we were overlapping. I should have hit the update page link in the lower left.

BTW: Mind to explain this "Restricted Application added a project:" .... to me? Please.

Is anything blocking this?

Nothing, I suppose. If noone objects I'll push this end of this week.

broulik planned changes to this revision.Jan 10 2018, 10:14 PM

I just saw I need to figure out the translation stuff but then it should be good.

dfaure accepted this revision.Jan 10 2018, 10:27 PM
ngraham accepted this revision as: VDG.Jan 10 2018, 10:34 PM

+1 from VDG, ship it!

This revision was not accepted when it landed; it landed in state Changes Planned.Jan 11 2018, 9:46 AM
This revision was automatically updated to reflect the committed changes.