<br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 11:25 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 05.08.09 22:56:20, Aleix Pol wrote:<br>
> On Wed, Aug 5, 2009 at 9:30 PM, Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br>
><br>
> > On 05.08.09 12:39:32, Aleix Pol wrote:<br>
> > > Yes, I know... but it was a little workaroundish... I think that the<br>
> > files<br>
> > > that don't have a url representation is because they have a specific URL<br>
> > > (like unnamed or something like that). Plus we still need some way to get<br>
> > > the information from the Document.<br>
> ><br>
> > Hmm, I just remembered that just the URL won't be enough, you'll also<br>
> > have to have a proper mimetype to register your custom document with the<br>
> > documentcontroller. So you'll have to make sure to supply either a<br>
> > custom mimetype, or you could use the diff-mimetype but will have to<br>
> > make sure that KMimeType will identify the given url as that mimetype...<br>
><br>
</div><div class="im">> If the URL is the file's, we will have the .cpp mimetype (in the case of<br>
> .cpp files). I should add something after or smth like that, isn't it?<br>
<br>
</div>Hmm, indeed. I'm actually not sure if we can do this at all this easily<br>
as KMimeType won't know about custom mimetypes. So I guess we'd have to<br>
add our own custom mimetype for kdelibs/mimetypes/kde.xml, I'm just not<br>
sure how the general position with core-devs is about adding a mimetype<br>
there that won't ever get into the fdo shared-mime-info...</blockquote><div>when I had to add the CMake mimetype they were very cautious about that. KDE and FDo share the mime database so they won't accept that (which I understand because it's not even a file, just a workaround for a missing feature of ours). <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
I suggest to ask kde-core-devel how we should go about this, that is how<br>
a url/filename could be created that matches our home-grown mimetype<br>
such that our documentcontroller will know what kind of document to<br>
create.</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
If thats not possible, we'll have to extend our documentcontroller to<br>
allow more direct creation of document instances...</blockquote><div> <br>I wonder if that would be possible, in the document controller we have stuff like:<br>d->documents.contains(url)<br><br>that would make it impossible to have the diff+text document opened, for example.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
You have been selected for a secret mission.<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br>Aleix<br>