summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowcallbacks.h
diff options
context:
space:
mode:
authorMonroe Linden <monroe@lindenlab.com>2009-12-03 17:40:58 -0800
committerMonroe Linden <monroe@lindenlab.com>2009-12-03 17:40:58 -0800
commitfe0b027d4d7381a532bb0f14f64ecffdeb7190b6 (patch)
tree0200aa43507c988e90f4138b62c47f6ea0b804dd /indra/llwindow/llwindowcallbacks.h
parentbfe66526c83d260d3e69971d30786d1e061c2c47 (diff)
Added the LLWindowCallbacks::DragNDropAction enum, and made the mac implementation and the cross-platform window callbacks use it (instead of 'bool drop').
This will break the windows impl until someone fixes it to match.
Diffstat (limited to 'indra/llwindow/llwindowcallbacks.h')
-rw-r--r--indra/llwindow/llwindowcallbacks.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowcallbacks.h b/indra/llwindow/llwindowcallbacks.h
index a109879da7..42add8dde0 100644
--- a/indra/llwindow/llwindowcallbacks.h
+++ b/indra/llwindow/llwindowcallbacks.h
@@ -70,6 +70,13 @@ public:
virtual void handleDataCopy(LLWindow *window, S32 data_type, void *data);
virtual BOOL handleTimerEvent(LLWindow *window);
virtual BOOL handleDeviceChange(LLWindow *window);
+
+ enum DragNDropAction {
+ DNDA_START_TRACKING = 0,// Start tracking an incoming drag
+ DNDA_TRACK, // User is dragging an incoming drag around the window
+ DNDA_STOP_TRACKING, // User is no longer dragging an incoming drag around the window (may have either cancelled or dropped on the window)
+ DNDA_DROPPED // User dropped an incoming drag on the window (this is the "commit" event)
+ };
enum DragNDropResult {
DND_NONE = 0, // No drop allowed
@@ -77,7 +84,7 @@ public:
DND_COPY, // Drop accepted would result in a "copy" operation
DND_LINK // Drop accepted would result in a "link" operation
};
- virtual DragNDropResult handleDragNDrop(LLWindow *window, LLCoordGL pos, MASK mask, BOOL drop, std::string data);
+ virtual DragNDropResult handleDragNDrop(LLWindow *window, LLCoordGL pos, MASK mask, DragNDropAction action, std::string data);
virtual void handlePingWatchdog(LLWindow *window, const char * msg);
virtual void handlePauseWatchdog(LLWindow *window);