- wxTextDragSource( wxWindow *win ) : wxDragSource(win) {};
- void SetTextData( const wxString &text );
- void RegisterWindow(void);
-
- private:
-
- wxString m_tmp;
+ /* constructor for setting one data object */
+ wxDropSource( wxDataObject& data,
+ wxWindow *win,
+ const wxIcon &go = wxNullIcon,
+ const wxIcon &stop = wxNullIcon );
+
+ ~wxDropSource();
+
+ /* start drag action */
+ virtual wxDragResult DoDragDrop( bool bAllowMove = FALSE );
+
+ /* GTK implementation */
+ void RegisterWindow();
+ void UnregisterWindow();
+
+ GtkWidget *m_widget;
+ wxWindow *m_window;
+ wxDragResult m_retValue;
+
+ wxCursor m_defaultCursor;
+ wxCursor m_goaheadCursor;
+
+ wxIcon m_goIcon;
+ wxIcon m_stopIcon;
+
+ bool m_waiting;