1
0
forked from 0ad/0ad
0ad/source/tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h
Ykkrosh f2b662d12d Build: generate Atlas project files (with "update-workspaces --atlas") (for VS2003 only).
Premake: allow slight separation of files' locations on disk vs in the
project tree.
Atlas: require fewer include directories.

This was SVN commit r2956.
2005-10-17 01:11:12 +00:00

38 lines
895 B
C++

/*
DraggableListCtrl
Based on wxListCtrl, but items can be reordered by dragging them around.
Use just like a normal listctrl.
*/
#include "EditableListCtrl/EditableListCtrl.h"
class DragCommand;
class DraggableListCtrl : public EditableListCtrl
{
friend class DragCommand;
public:
DraggableListCtrl(wxWindow *parent,
wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxLC_ICON,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListCtrlNameStr);
void OnBeginDrag(wxListEvent& event);
void OnEndDrag();
void OnItemSelected(wxListEvent& event);
void OnMouseEvent(wxMouseEvent& event);
void OnChar(wxKeyEvent& event);
void OnMouseCaptureChanged(wxMouseCaptureChangedEvent& event);
private:
long m_DragSource;
DECLARE_EVENT_TABLE();
};