Simplified event based Drag API for wxDataViewCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-01-20 11:58:52 +00:00
parent 8c33ee2549
commit 591cc82deb
5 changed files with 68 additions and 86 deletions

View File

@@ -554,6 +554,8 @@ public:
Process a wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED event.
@event{EVT_DATAVIEW_COLUMN_REORDERED(id, func)}
Process a wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED event.
@event{EVT_DATAVIEW_ITEM_BEGIN_DRAG(id, func)}
Process a wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG event.
@endEventTable
@library{wxadv}
@@ -2197,14 +2199,11 @@ public:
class wxDataViewEvent : public wxNotifyEvent
{
public:
//@{
/**
Constructor. Typically used by wxWidgets internals only.
*/
wxDataViewEvent(wxEventType commandType = wxEVT_NULL,
int winid = 0);
wxDataViewEvent(const wxDataViewEvent& event);
//@}
/**
Returns the position of the column in the control or -1
@@ -2252,5 +2251,15 @@ public:
Sets the value associated with this event.
*/
void SetValue(const wxVariant& value);
/**
Set wxDataObject for Drag'n'drop data transfer.
*/
void SetDataObject( wxDataObject *obj );
/**
Gets associated wxDataObject for Drag'n'drop data transfer.
*/
wxDataObject *GetDataObject();
};