1
0
forked from 0ad/0ad
0ad/source/tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrlCommands.h
Ykkrosh d0146135c4 Initial Actor Editor code
This was SVN commit r2025.
2005-03-19 22:29:32 +00:00

42 lines
769 B
C++

#include "AtlasWindowCommand.h"
#include "wx/arrstr.h"
#include "AtlasObject/AtlasObject.h"
//#include "RefcntPtr.h"
class DraggableListCtrl;
class DragCommand : public AtlasWindowCommand
{
DECLARE_CLASS(DragCommand)
public:
DragCommand(DraggableListCtrl* ctrl, long src, long tgt);
bool Do();
bool Undo();
private:
bool Merge(AtlasWindowCommand* command);
DraggableListCtrl* m_Ctrl;
long m_Src, m_Tgt;
std::vector<AtObj> m_OldData;
};
class DeleteCommand : public wxCommand
{
public:
DeleteCommand(DraggableListCtrl* ctrl, long itemID);
bool Do();
bool Undo();
private:
DraggableListCtrl* m_Ctrl;
//wxArrayString m_Texts;
long m_ItemID;
//RefcntPtr<AtObj> m_ItemData;
std::vector<AtObj> m_OldData;
};