Hey Matthias<br><br><div class="gmail_quote">On Wed, Apr 27, 2011 at 1:35 PM, Matthias Fuchs <span dir="ltr">&lt;<a href="mailto:mat69@gmx.net">mat69@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
while adding metada to files downloaded via KGet and comics stored on your<br>
computer I came across a problem and I think I have an idea which could solve<br>
it.<br>
<br>
Suppose the following case:<br>
<br>
Nepomuk::File downloadedFile(dest);<br>
Nepomuk::Resource hashRes(hash, NFO::FileHash());<br>
hashRes.addProperty(NFO::hashAlgorithm(), hashType);<br>
hashRes.addProperty(NFO::hashValue(), hash);<br>
hashRes.setLabel(hashType);<br>
downloadedFile.addProperty(NFO::hasHash(), hasRes);<br>
<br>
In this case Dolphin would show e.g. &quot;Has hash: _MD5_&quot;, yet there would be no<br>
way to see what the actual hash looks like in dolphin. Clicking on _MD5_ would<br>
start a query. A kinda wrong workaround would be to directly do<br>
downloadedFile.addProperty(NFO::hashAlgorithm(), hashType); and<br>
downloadedFile.addProperty(NFO::hashValue(), hash);<br>
what I do at the moment. But it is _really_ wrong.<br>
<br></blockquote><div><br></div><div>Yup. That&#39;s wrong! Soon, you won&#39;t be able to do even if you wanted to!</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

What I thought of now is just an idea, nothing is implemented yet.<br>
The user should have the possibility to browse resources in the side panel.<br>
If clicking on a resource (e.g. middle click, as left click is already in<br>
useage) that one would be displayed instead, a back arrow would make it<br>
possible to go to the initial resource.<br></blockquote><div><br></div><div>I have trouble middle clicking on my laptop. :P Maybe we could have some kind of pop-up menu which comes on left-clicking on the link. Like the one that comes when you try to moves files into a folder in Dolphin. That should allow us to easily add some basic actions.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
That way the following scenarios would be possible:<br>
1. A user wants to check if a file that has a hash assigned to it is still<br>
valid. Clicking on &quot;MD5&quot; he is presented with the information needed and<br>
compares that with the output of md5sum.<br>
2. A user wants to call a person, who a file came from, via telephone. To get<br>
the telephone number he would simply click on the person&#39;s name in the<br>
information of that file and then on the entry for &quot;Has Phone Number&quot;.<br>
He does not have to open a different tool like KRunner or the adress book.<br>
Everything would be visually directly connected to the file instead.<br>
<br></blockquote><div><br></div><div>This would be very nice. We would need some kind of rule based framework for this.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Now after looking shortly at the way the side panel is implemented there might<br>
be some problems e.g.: KFileMetaDataWidget request KFileItems, so it would<br>
have to be done inside of KFileMetaDataWidget since resources are no<br>
KFileItems. Which would change the meaning of the KFileMetaDataWidget.<br>
<br>
<br>
What do you think of the general idea? Is it something worth looking into?<br>
<br></blockquote><div><br></div><div>I actually don&#39;t like the Dolphin Side Panel that much. Specially for showing large amounts of metadata. It&#39;s just too small. Even on a wide screen, I do not give it much space. Implementation wise, the side panel could always be implemented differently, if all the concerned developers agree. </div>
<div><br></div></div>-- <br><font color="#999999">Vishesh Handa</font><br>