Files
GDevelop/IDE/DndTextObjectsEditor.h
T
Florian 9203fab207 Initial import
git-svn-id: svn://localhost@6 8062f311-0dae-4547-b526-b8ab9ac864a5
2010-01-24 19:15:15 +00:00

23 lines
527 B
C++

#ifndef DNDTEXTOBJECTSEDITOR_H
#define DNDTEXTOBJECTSEDITOR_H
#include <wx/dnd.h>
class EditorObjectList;
/**
* Class for drag'n'dropping a text to a EditorObjectList, and automatically
* create a new object
*/
class DndTextObjectsEditor : public wxTextDropTarget
{
public:
DndTextObjectsEditor(EditorObjectList & editor_) : editor(editor_) {}
virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& text);
private:
EditorObjectList & editor;
};
#endif // DNDTEXTOBJECTSEDITOR_H