Qt 4.8
|
#include "qplatformdefs.h"
#include "qapplication.h"
#include "qdebug.h"
#include "qtextcodec.h"
#include "qwidget.h"
#include "qevent.h"
#include "qt_x11_p.h"
#include "qx11info_x11.h"
#include "qiodevice.h"
#include "qdnd_p.h"
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | _DndMessage |
struct | _DndPot |
struct | _DndReceiverProp |
struct | _DndSrcProp |
struct | _DndTop |
struct | DndData |
struct | DndTargets |
struct | DndTargetsTableEntryRec |
struct | DndTargetsTableRec |
Typedefs | |
typedef struct _DndMessage | DndMessage |
typedef struct _DndPot | DndPot |
typedef struct _DndReceiverProp | DndReceiverProp |
typedef struct _DndSrcProp | DndSrcProp |
typedef struct DndTargetsTableRec * | DndTargetsTable |
typedef struct DndTargetsTableEntryRec * | DndTargetsTableEntry |
typedef struct _DndTop | DndTop |
Functions | |
static ushort | _DndIndexToTargets (Display *display, int index, Atom **targets) |
static unsigned char | DndByteOrder () |
static void | DndFillClientMessage (Display *dpy, Window window, XClientMessageEvent *cm, DndData *dnd_data, char receiver) |
static Qt::DropActions | DndOperationsToQtDropActions (uchar op) |
static Bool | DndParseClientMessage (XClientMessageEvent *cm, DndData *dnd_data, char *receiver) |
static void | DndReadSourceProperty (Display *dpy, Window window, Atom dnd_selection, Atom **targets, unsigned short *num_targets) |
static void | DndWriteReceiverProperty (Display *dpy, Window window, unsigned char protocol_style) |
static Window | MotifWindow (Display *display) |
void | qt_x11_intern_atom (const char *, Atom *) |
static uchar | QtDropActionToDndOperation (Qt::DropAction action) |
static DndTargetsTable | TargetsTable (Display *display) |
Variables | |
static Atom | Dnd_selection = 0 |
static Time | Dnd_selection_time |
static QWidget * | dropWidget = 0 |
static Qt::DropAction | lastAcceptedAction = Qt::IgnoreAction |
static ushort | num_src_targets |
static Window | sourceWindow = XNone |
static Atom * | src_targets |
#define BYTE unsigned char |
Definition at line 162 of file qmotifdnd_x11.cpp.
Referenced by QAxClientSite::activateObject(), QVistaHelper::basicWindowFrameColor(), QRasterWindowSurface::flush(), QFontEngineDirectWrite::imageForGlyph(), QKeyMapperPrivate::isADeadKey(), qt_grab_cursor(), QWin32PrintEngine::setProperty(), and QWin32PrintEnginePrivate::updateCustomPaperSize().
#define CARD16 unsigned short |
Definition at line 164 of file qmotifdnd_x11.cpp.
Referenced by TargetsTable().
#define CARD32 unsigned int |
Definition at line 163 of file qmotifdnd_x11.cpp.
Referenced by TargetsTable().
#define DND_CLEAR_EVENT_TYPE ((BYTE)0x7F) |
Definition at line 240 of file qmotifdnd_x11.cpp.
Referenced by DndParseClientMessage().
#define DND_COMPLETION_MASK ((CARD16) 0xF000) |
Definition at line 258 of file qmotifdnd_x11.cpp.
#define DND_COMPLETION_SHIFT 12 |
Definition at line 259 of file qmotifdnd_x11.cpp.
#define DND_COPY (1L << 1) |
Definition at line 123 of file qmotifdnd_x11.cpp.
Referenced by DndOperationsToQtDropActions(), and QtDropActionToDndOperation().
#define DND_DRAG_DROP_ONLY 1 |
Definition at line 108 of file qmotifdnd_x11.cpp.
#define DND_DRAG_DROP_ONLY_EQUIV 3 |
Definition at line 409 of file qmotifdnd_x11.cpp.
#define DND_DRAG_DYNAMIC 5 |
Definition at line 109 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndEnable().
#define DND_DRAG_DYNAMIC_EQUIV1 2 |
Definition at line 410 of file qmotifdnd_x11.cpp.
#define DND_DRAG_DYNAMIC_EQUIV2 4 |
Definition at line 411 of file qmotifdnd_x11.cpp.
#define DND_DRAG_MOTION 2 |
Definition at line 114 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage(), DndParseClientMessage(), and QX11Data::motifdndHandle().
#define DND_DRAG_NONE 0 |
Definition at line 107 of file qmotifdnd_x11.cpp.
#define DND_DROP 0 |
Definition at line 158 of file qmotifdnd_x11.cpp.
#define DND_DROP_CANCEL 2 |
Definition at line 160 of file qmotifdnd_x11.cpp.
#define DND_DROP_HELP 1 |
Definition at line 159 of file qmotifdnd_x11.cpp.
#define DND_DROP_SITE_ENTER 3 |
Definition at line 115 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage(), DndParseClientMessage(), and QX11Data::motifdndHandle().
#define DND_DROP_SITE_LEAVE 4 |
Definition at line 116 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage(), DndParseClientMessage(), and QX11Data::motifdndHandle().
#define DND_DROP_START 5 |
Definition at line 117 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage(), DndParseClientMessage(), and QX11Data::motifdndHandle().
#define DND_EVENT_TYPE_MASK ((BYTE)0x80) |
Definition at line 238 of file qmotifdnd_x11.cpp.
#define DND_EVENT_TYPE_SHIFT 7 |
Definition at line 239 of file qmotifdnd_x11.cpp.
#define DND_GET_COMPLETION | ( | flags | ) |
Definition at line 285 of file qmotifdnd_x11.cpp.
Referenced by DndParseClientMessage().
#define DND_GET_EVENT_TYPE | ( | message_type | ) | ((char) (((message_type) & DND_EVENT_TYPE_MASK) >> DND_EVENT_TYPE_SHIFT)) |
Definition at line 244 of file qmotifdnd_x11.cpp.
Referenced by DndParseClientMessage().
#define DND_GET_OPERATION | ( | flags | ) |
Definition at line 261 of file qmotifdnd_x11.cpp.
Referenced by DndParseClientMessage().
#define DND_GET_OPERATIONS | ( | flags | ) |
Definition at line 277 of file qmotifdnd_x11.cpp.
Referenced by DndParseClientMessage().
#define DND_GET_STATUS | ( | flags | ) |
Definition at line 269 of file qmotifdnd_x11.cpp.
Referenced by DndParseClientMessage().
#define DND_INVALID_DROP_SITE 2 |
Definition at line 154 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
#define DND_LINK (1L << 2) |
Definition at line 124 of file qmotifdnd_x11.cpp.
Referenced by DndOperationsToQtDropActions(), and QtDropActionToDndOperation().
#define DND_MOVE (1L << 0) |
Definition at line 122 of file qmotifdnd_x11.cpp.
Referenced by DndOperationsToQtDropActions(), and QtDropActionToDndOperation().
#define DND_NO_DROP_SITE 1 |
Definition at line 153 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
#define DND_NOOP 0L |
Definition at line 121 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
#define DND_OPERATION_CHANGED 8 |
Definition at line 118 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage(), DndParseClientMessage(), and QX11Data::motifdndHandle().
#define DND_OPERATION_MASK ((CARD16) 0x000F) |
Definition at line 252 of file qmotifdnd_x11.cpp.
#define DND_OPERATION_SHIFT 0 |
Definition at line 253 of file qmotifdnd_x11.cpp.
#define DND_OPERATIONS_MASK ((CARD16) 0x0F00) |
Definition at line 256 of file qmotifdnd_x11.cpp.
#define DND_OPERATIONS_SHIFT 8 |
Definition at line 257 of file qmotifdnd_x11.cpp.
#define DND_PROTOCOL_VERSION 0 |
Definition at line 235 of file qmotifdnd_x11.cpp.
Referenced by DndWriteReceiverProperty(), and TargetsTable().
#define DND_SET_COMPLETION | ( | completion | ) |
Definition at line 289 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage().
#define DND_SET_EVENT_TYPE | ( | event_type | ) | (((BYTE)(event_type) << DND_EVENT_TYPE_SHIFT) & DND_EVENT_TYPE_MASK) |
Definition at line 248 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage().
#define DND_SET_OPERATION | ( | operation | ) |
Definition at line 265 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage().
#define DND_SET_OPERATIONS | ( | operation | ) |
Definition at line 281 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage().
#define DND_SET_STATUS | ( | status | ) |
#define DND_STATUS_MASK ((CARD16) 0x00F0) |
Definition at line 254 of file qmotifdnd_x11.cpp.
#define DND_STATUS_SHIFT 4 |
Definition at line 255 of file qmotifdnd_x11.cpp.
#define DND_TOP_LEVEL_ENTER 0 |
Definition at line 112 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage(), DndParseClientMessage(), and QX11Data::motifdndHandle().
#define DND_TOP_LEVEL_LEAVE 1 |
Definition at line 113 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage(), DndParseClientMessage(), and QX11Data::motifdndHandle().
#define DND_VALID_DROP_SITE 3 |
Definition at line 155 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
#define DndIncludeVersion (DndVersion * 10 + DndRevision) |
Definition at line 102 of file qmotifdnd_x11.cpp.
#define DndRevision 0 |
Definition at line 101 of file qmotifdnd_x11.cpp.
#define DndVersion 1 |
Definition at line 100 of file qmotifdnd_x11.cpp.
#define INT16 signed short |
Definition at line 165 of file qmotifdnd_x11.cpp.
#define SWAP2BYTES | ( | s | ) |
Definition at line 303 of file qmotifdnd_x11.cpp.
Referenced by DndParseClientMessage(), DndReadSourceProperty(), and TargetsTable().
#define SWAP4BYTES | ( | l | ) |
Definition at line 294 of file qmotifdnd_x11.cpp.
Referenced by DndParseClientMessage(), DndReadSourceProperty(), and TargetsTable().
typedef struct _DndMessage DndMessage |
typedef struct _DndReceiverProp DndReceiverProp |
typedef struct _DndSrcProp DndSrcProp |
typedef struct DndTargetsTableRec * DndTargetsTable |
typedef struct DndTargetsTableEntryRec * DndTargetsTableEntry |
Definition at line 662 of file qmotifdnd_x11.cpp.
Referenced by DndReadSourceProperty().
|
static |
Private extern functions
Definition at line 338 of file qmotifdnd_x11.cpp.
Referenced by DndFillClientMessage(), DndParseClientMessage(), DndReadSourceProperty(), DndWriteReceiverProperty(), and TargetsTable().
|
static |
Definition at line 415 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
|
static |
Definition at line 126 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
|
static |
Definition at line 468 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
|
static |
Definition at line 351 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
|
static |
Definition at line 385 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndEnable().
|
static |
Definition at line 534 of file qmotifdnd_x11.cpp.
Referenced by TargetsTable().
void qt_x11_intern_atom | ( | const char * | , |
Atom * | |||
) |
|
static |
Definition at line 138 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
|
static |
Definition at line 579 of file qmotifdnd_x11.cpp.
Referenced by _DndIndexToTargets().
|
static |
Definition at line 93 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle(), and QX11Data::motifdndObtainData().
|
static |
Definition at line 94 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle(), and QX11Data::motifdndObtainData().
|
static |
Definition at line 90 of file qmotifdnd_x11.cpp.
Referenced by QOleDropTarget::Drop(), make_widget_eventUPP(), and QX11Data::motifdndObtainData().
|
static |
Definition at line 91 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndHandle().
|
static |
Definition at line 97 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndFormat(), and QX11Data::motifdndHandle().
|
static |
Definition at line 89 of file qmotifdnd_x11.cpp.
Referenced by QWidgetPrivate::frameStrut(), and QX11Data::motifdndHandle().
|
static |
Definition at line 96 of file qmotifdnd_x11.cpp.
Referenced by QX11Data::motifdndFormat(), and QX11Data::motifdndHandle().