[Kommander-devel] Drag & Drop

Dik Takken D.H.J.Takken at phys.uu.nl
Tue Mar 1 11:32:35 EST 2005


On Tue, 1 Mar 2005, Michal Rudolf wrote:

> Eric Laffoon,  poniedzia?ek, 28 lutego 2005 23:55:
>> It's something I'm very fond of. (figures as I used OS/2 so long) I would
>> think this would be handled without too much difficulty using signals and
>> slots.
> It's not that easy. You need to start dragging somehow and you need to access
> slot parameter in the script (otherwise you won't be able to know what is
> dropped).

> Another problem is the type of dragged item. Normally it is a pointer to some
> object, but this would be hard to handle. So, probably int or string has to
> be passed, although that still leaves some problems.

The most useful application of drag and drop for me is dropping files from 
Konqueror to a Kommander dialog. For this to work, the dialog only needs 
to catch drops of items that are strings. This string could be made 
available in a global variable ( @KMDR_DROPSTRING or something ). Also, we 
need an additional Kommander Text beside the current 'default' and 
'populate' texts. This Kommander Text should read the @KMDR_DROPSTRING 
string and do something with it.

Cheers,

Dik


More information about the Kommander-devel mailing list