Qt 4.8
|
#include "qplatformdefs.h"
#include "qclipboard.h"
#include "qclipboard_p.h"
#include "qabstracteventdispatcher.h"
#include "qapplication.h"
#include "qdesktopwidget.h"
#include "qbitmap.h"
#include "qiodevice.h"
#include "qbuffer.h"
#include "qtextcodec.h"
#include "qlist.h"
#include "qmap.h"
#include "qapplication_p.h"
#include "qevent.h"
#include "qt_x11_p.h"
#include "qx11info_x11.h"
#include "qimagewriter.h"
#include "qelapsedtimer.h"
#include "qvariant.h"
#include "qdnd_p.h"
#include <private/qwidget_p.h>
#include <X11/extensions/Xfixes.h>
Go to the source code of this file.
Classes | |
class | QClipboardData |
class | QClipboardINCRTransaction |
class | QClipboardWatcher |
struct | qt_init_timestamp_data |
Macros | |
#define | DEBUG if (false) qDebug |
#define | VDEBUG if (false) qDebug |
Typedefs | |
typedef QMap< Window, QClipboardINCRTransaction * > | TransactionMap |
Functions | |
static Bool | checkForClipboardEvents (Display *, XEvent *e, XPointer) |
static void | cleanup () |
static void | cleanupClipboardData () |
static void | cleanupSelectionData () |
static QClipboardData * | clipboardData () |
static int | maxSelectionIncr (Display *dpy) |
bool | qt_check_clipboard_sentinel () |
bool | qt_check_selection_sentinel () |
static Bool | qt_init_timestamp_scanner (Display *, XEvent *event, XPointer arg) |
static bool | qt_x11_clipboard_event_filter (void *message, long *) |
static bool | qt_x11_incr_event_filter (void *message, long *result) |
static void | qt_xclb_incr_timeout (void) |
bool | qt_xfixes_clipboard_changed (Window clipboardOwner, Time timestamp) |
bool | qt_xfixes_selection_changed (Window selectionOwner, Time timestamp) |
static QClipboardData * | selectionData () |
static Atom | send_selection (QClipboardData *d, Atom target, Window window, Atom property) |
static Atom | send_targets_selection (QClipboardData *d, Window window, Atom property) |
static void | setupOwner () |
Variables | |
static int | capture_event_type = -1 |
static Window | capture_event_win = XNone |
static XEvent | captured_event |
static int | clipboard_timeout = 5000 |
static QClipboardWatcher * | clipboard_watcher = 0 |
static bool | has_captured_event = false |
static int | incr_timer_id = 0 |
static QClipboardData * | internalCbData = 0 |
static QClipboardData * | internalSelData = 0 |
static QWidget * | owner = 0 |
static bool | pending_clipboard_changed = false |
static bool | pending_selection_changed = false |
static int | pending_timer_id = 0 |
static QApplication::EventFilter | prev_event_filter = 0 |
static QWidget * | requestor = 0 |
static QClipboardWatcher * | selection_watcher = 0 |
static bool | timer_event_clear = false |
static int | timer_id = 0 |
static TransactionMap * | transactions = 0 |
static bool | waiting_for_data = false |
Definition at line 48 of file qclipboard_x11.cpp.
Referenced by QClipboardWatcher::empty(), QClipboardWatcher::getDataInFormat(), QClipboardINCRTransaction::QClipboardINCRTransaction(), qt_xfixes_clipboard_changed(), qt_xfixes_selection_changed(), and send_selection().
Definition at line 54 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardReadProperty(), QClipboardWatcher::empty(), QClipboardWatcher::getDataInFormat(), QClipboardINCRTransaction::QClipboardINCRTransaction(), qt_x11_clipboard_event_filter(), send_selection(), QClipboardINCRTransaction::x11Event(), and QClipboardINCRTransaction::~QClipboardINCRTransaction().
typedef QMap<Window,QClipboardINCRTransaction*> TransactionMap |
Definition at line 273 of file qclipboard_x11.cpp.
Definition at line 510 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardWaitForEvent().
|
static |
|
static |
|
static |
|
static |
Definition at line 233 of file qclipboard_x11.cpp.
Referenced by QClipboardData::clear(), QClipboardWatcher::getDataInFormat(), QClipboardData::mimeDataRef(), qt_check_clipboard_sentinel(), qt_xfixes_clipboard_changed(), and QClipboardData::setSource().
|
inlinestatic |
Definition at line 603 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardReadProperty().
bool qt_check_clipboard_sentinel | ( | ) |
Definition at line 1485 of file qclipboard_x11.cpp.
Referenced by qt_xfixes_clipboard_changed(), and QApplication::x11ProcessEvent().
bool qt_check_selection_sentinel | ( | ) |
Definition at line 1433 of file qclipboard_x11.cpp.
Referenced by qt_xfixes_selection_changed(), and QApplication::x11ProcessEvent().
Definition at line 386 of file qclipboard_x11.cpp.
|
static |
|
static |
Definition at line 278 of file qclipboard_x11.cpp.
Referenced by QClipboardINCRTransaction::QClipboardINCRTransaction().
|
static |
Definition at line 296 of file qclipboard_x11.cpp.
bool qt_xfixes_clipboard_changed | ( | Window | clipboardOwner, |
Time | timestamp | ||
) |
Definition at line 1538 of file qclipboard_x11.cpp.
Referenced by QApplication::x11ProcessEvent().
bool qt_xfixes_selection_changed | ( | Window | selectionOwner, |
Time | timestamp | ||
) |
Definition at line 1524 of file qclipboard_x11.cpp.
Referenced by QApplication::x11ProcessEvent().
|
static |
Definition at line 248 of file qclipboard_x11.cpp.
Referenced by QClipboardData::clear(), QClipboardWatcher::getDataInFormat(), QClipboardData::mimeDataRef(), qt_check_selection_sentinel(), qt_xfixes_selection_changed(), and QClipboardData::setSource().
|
static |
Definition at line 809 of file qclipboard_x11.cpp.
|
static |
Definition at line 788 of file qclipboard_x11.cpp.
|
static |
Definition at line 125 of file qclipboard_x11.cpp.
Referenced by QClipboardWatcher::getDataInFormat(), and QClipboardWatcher::QClipboardWatcher().
|
static |
Definition at line 109 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardWaitForEvent(), and qt_x11_clipboard_event_filter().
|
static |
Definition at line 108 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardWaitForEvent(), and qt_x11_clipboard_event_filter().
|
static |
Definition at line 110 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardWaitForEvent(), and qt_x11_clipboard_event_filter().
|
static |
Definition at line 93 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardReadIncrementalProperty(), QClipboardWatcher::getDataInFormat(), QClipboardINCRTransaction::QClipboardINCRTransaction(), and QClipboardINCRTransaction::x11Event().
|
static |
Definition at line 114 of file qclipboard_x11.cpp.
|
static |
Definition at line 107 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardWaitForEvent(), and qt_x11_clipboard_event_filter().
|
static |
Definition at line 276 of file qclipboard_x11.cpp.
Referenced by QClipboardINCRTransaction::QClipboardINCRTransaction(), and QClipboardINCRTransaction::x11Event().
|
static |
Definition at line 224 of file qclipboard_x11.cpp.
Referenced by cleanupClipboardData(), and clipboardData().
|
static |
Definition at line 225 of file qclipboard_x11.cpp.
Referenced by cleanupSelectionData(), and selectionData().
|
static |
Definition at line 95 of file qclipboard_x11.cpp.
Referenced by cleanup(), QDBusConnectionPrivate::handleSignal(), QFileSystemEngine::owner(), QFileSystemMetaData::ownerId(), QFileSystemMetaData::permissions(), QOCIDriver::primaryIndex(), QtCeGetClipboard(), QtCeSetClipboard(), QOCIDriver::record(), and QFileInfo::symLinkTarget().
|
static |
Definition at line 101 of file qclipboard_x11.cpp.
Referenced by qt_check_clipboard_sentinel().
|
static |
Definition at line 102 of file qclipboard_x11.cpp.
Referenced by qt_check_selection_sentinel().
|
static |
Definition at line 100 of file qclipboard_x11.cpp.
Referenced by qt_check_clipboard_sentinel(), and qt_check_selection_sentinel().
|
static |
Definition at line 275 of file qclipboard_x11.cpp.
Referenced by QClipboardINCRTransaction::QClipboardINCRTransaction(), and qt_x11_incr_event_filter().
|
static |
Definition at line 96 of file qclipboard_x11.cpp.
Referenced by cleanup(), and QX11Data::clipboardReadIncrementalProperty().
|
static |
Definition at line 113 of file qclipboard_x11.cpp.
|
static |
Definition at line 97 of file qclipboard_x11.cpp.
Referenced by QClipboardWatcher::getDataInFormat().
|
static |
Definition at line 98 of file qclipboard_x11.cpp.
Referenced by QClipboardWatcher::getDataInFormat().
|
static |
Definition at line 274 of file qclipboard_x11.cpp.
Referenced by QClipboardINCRTransaction::~QClipboardINCRTransaction().
|
static |
Definition at line 106 of file qclipboard_x11.cpp.
Referenced by QX11Data::clipboardWaitForEvent(), qt_check_clipboard_sentinel(), and qt_check_selection_sentinel().