Qt 4.8
|
#include "qapplication.h"
#include "qbitmap.h"
#include "qcursor.h"
#include "qevent.h"
#include "qpainter.h"
#include "qurl.h"
#include "qwidget.h"
#include "qfile.h"
#include "qfileinfo.h"
#include <stdlib.h>
#include <string.h>
#include "qaccessible.h"
#include <private/qapplication_p.h>
#include <private/qwidget_p.h>
#include <private/qdnd_p.h>
#include <private/qt_mac_p.h>
Go to the source code of this file.
Classes | |
struct | mac_enum_mapper |
Macros | |
#define | MAP_MAC_ENUM(x) x |
Functions | |
uint | qGlobalPostedEventsCount () |
void | qt_mac_copy_answer_rect (const QDragMoveEvent &event) |
void | qt_mac_dispose_rgn (RgnHandle) |
static Qt::DropActions | qt_mac_dnd_map_mac_actions (DragActions macActions) |
static Qt::DropAction | qt_mac_dnd_map_mac_default_action (DragActions macActions) |
static DragActions | qt_mac_dnd_map_qt_actions (Qt::DropActions qActions) |
static void | qt_mac_dnd_update_action (DragReference dragRef) |
RgnHandle | qt_mac_get_rgn () |
bool | qt_mac_mouse_inside_answer_rect (QPoint mouse) |
void | qt_mac_send_modifiers_changed (quint32, QObject *) |
static bool | qt_mac_set_existing_drop_action (const DragRef &dragRef, QDropEvent &event) |
Variables | |
static const char *const | default_pm [] |
static const int | default_pm_hotx = -2 |
static const int | default_pm_hoty = -16 |
static mac_enum_mapper | dnd_action_symbols [] |
static DragReference | qt_mac_current_dragRef = 0 |
QMacDndAnswerRecord | qt_mac_dnd_answer_rec |
bool | qt_mac_in_drag = false |
#define MAP_MAC_ENUM | ( | x | ) | x |
Definition at line 119 of file qdnd_mac.mm.
uint qGlobalPostedEventsCount | ( | ) |
Definition at line 348 of file qcoreapplication.cpp.
Referenced by qt_mac_mouse_inside_answer_rect().
void qt_mac_copy_answer_rect | ( | const QDragMoveEvent & | event | ) |
If an answer rect has been set on the event (after being sent to the global event processor), we store that rect so we can check if the mouse is in the same area upon next drag move event.
Definition at line 318 of file qdnd_mac.mm.
Referenced by QMacDndAnswerRecord::clear(), and qt_mac_mouse_inside_answer_rect().
void qt_mac_dispose_rgn | ( | RgnHandle | ) |
|
static |
Definition at line 146 of file qdnd_mac.mm.
Referenced by qt_mac_dnd_map_mac_default_action(), qt_mac_dnd_update_action(), qt_mac_mouse_inside_answer_rect(), and qt_mac_set_existing_drop_action().
|
static |
Definition at line 162 of file qdnd_mac.mm.
Referenced by QDragManager::drag(), qt_mac_dnd_update_action(), and qt_mac_mouse_inside_answer_rect().
|
static |
Definition at line 137 of file qdnd_mac.mm.
Referenced by QDragManager::drag(), qt_mac_dnd_update_action(), and qt_mac_mouse_inside_answer_rect().
|
static |
Definition at line 184 of file qdnd_mac.mm.
Referenced by QDragManager::drag(), and qt_mac_mouse_inside_answer_rect().
RgnHandle qt_mac_get_rgn | ( | ) |
bool qt_mac_mouse_inside_answer_rect | ( | QPoint | mouse | ) |
Definition at line 328 of file qdnd_mac.mm.
Referenced by QMacDndAnswerRecord::clear(), and qt_mac_mouse_inside_answer_rect().
Definition at line 199 of file qkeymapper_mac.cpp.
Referenced by QApplicationPrivate::globalEventProcessor(), qt_dispatchModifiersChanged(), qt_mac_dnd_update_action(), and QKeyMapperPrivate::translateKeyEvent().
|
inlinestatic |
If a drop action is already set on the carbon event (from e.g. an earlier enter event), we insert the same action on the new Qt event that has yet to be sendt.
Definition at line 296 of file qdnd_mac.mm.
Referenced by qt_mac_mouse_inside_answer_rect().
|
static |
Definition at line 98 of file qdnd_mac.mm.
Referenced by QDragManager::drag().
|
static |
Definition at line 95 of file qdnd_mac.mm.
Referenced by QDragManager::drag().
|
static |
Definition at line 96 of file qdnd_mac.mm.
Referenced by QDragManager::drag().
|
static |
Definition at line 130 of file qdnd_mac.mm.
|
static |
Definition at line 80 of file qdnd_mac.mm.
Referenced by QDropData::formats_sys(), QDropData::hasFormat_sys(), qt_mac_mouse_inside_answer_rect(), and QDropData::retrieveData_sys().
QMacDndAnswerRecord qt_mac_dnd_answer_rec |
Definition at line 67 of file qdnd_mac.mm.
Referenced by QMacDndAnswerRecord::clear().
bool qt_mac_in_drag = false |
Definition at line 78 of file qdnd_mac.mm.
Referenced by QDragManager::drag().