282
|
1 * Sun May 3 1998 Oliver Graf <ograf@fga.de>
|
|
2
|
|
3 This path contains test code for the new XEmacs
|
|
4 Drag'n'Drop code.
|
|
5
|
284
|
6 Currently only drops are of interest. The internal
|
|
7 functions only work for OffiX and MSWindows. CDE
|
|
8 is broken with this.
|
282
|
9
|
|
10 The OffiX functions in mouse.el also work no longer,
|
284
|
11 because drops are now misc-user-events.
|
282
|
12
|
|
13 The misc-user-event now also responds as a button-x-event
|
|
14 to the event-* query functions.
|
|
15
|
|
16 The function of a drag is called dragdrop-drop-dispatch
|
|
17 as you can see in droptest.el. From within the function
|
|
18 you can access the actual misc-user-event through the
|
|
19 current-mouse-event variable.
|
|
20
|
|
21 dragtest.el works theoretically, but it needs to be
|
284
|
22 adapted to some new scheme fitting the drop code (droptest.el
|
|
23 has it's own dragsources).
|
282
|
24
|
|
25 Short description of the object part of a drop misc-user-event:
|
|
26 ( TYPE . DATA )
|
|
27 TYPE is either the symbol dragdrop_MIME
|
|
28 or the symbol dragdrop_URL
|
|
29
|
|
30 DATA is a list of URL strings if TYPE is dragdrop_URL
|
|
31 if TYPE is dragdrop_MIME DATA is either a string
|
|
32 which contains the MIME data, or it is a list of
|
|
33 ( CONTENT-TYPE CONTENT-ENCODING MIME-DATA )
|
284
|
34 CONTENT-TYPE is encoded for tm-view (list, first element type,
|
|
35 rest key.value conses)
|
|
36 CONTENT-ENCODING is a string
|
|
37 MIME-DATA is a string
|
282
|
38
|
284
|
39 CONTENT-TYPE and -ENCODING can be directly supplied to mime/viewer-mode.
|
|
40
|