On Monday, March 31, 2014 11:09:50 PM UTC+10, Fidel N wrote:
>
> Peter, in case you need @url nodes with paths to the files you are 
> dropping, I found a workaround that actually is pretty useful for me, since 
> it makes any dropped file into @url node, and then I can modify given url 
> at my convenience.
> The main advantage of this is that you can use a "standarized" way of 
> importing files or folders into Leo, and then use scripts to transform them 
> into what you want, instead of having to guess how the file will be 
> imported into Leo and making a specific script for each of the @directive 
> given to the diferent kind of files/folders.
>
> If you want this mod you have to go here:
>
> LeoPyRef.leo#Code-->Qt gui-->@file ../plugins/qtGui.py--> << define text 
> widget classes >>--> << define leoQtBaseTextWidget class >>--> Birth-->ctor 
> (leoQtBaseTextWidget)--><< define mouseReleaseEvent >> (leoQtBaseTextWidget)
>
>  
I can't find self.doFileUrl in that location.  Perhaps you have a different 
version of Leo to me (I think I have the latest now)?  I did find 
self.doFileUrl 
in the location below, but I'm not sure it is what you were describing.

LeoPyRef.leo#Code-->Qt gui-->@file ../plugins/qtGui.py-->Frame and 
component classes...-->class LeoQTreeWidget (QTreeWidget)-->Event handlers 
(LeoQTreeWidget)-->dropEvent & helpers-->urlDrop & helpers

Then replace:
>
>
> self.doFileUrl
>
>
> with:
>
>
> self.doHttpUrl
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to