FileDropTarget.hh

Go to the documentation of this file.
00001 /*
00002  * ffse
00003  * Copyright (C) 2004-2005 emuWorks
00004  * http://games.technoplaza.net/
00005  *
00006  * This file is part of ffse.
00007  *
00008  * ffse is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * ffse is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with ffse; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021  */
00022 
00023 // $Id: FileDropTarget.hh,v 1.3 2007/02/18 22:02:58 technoplaza Exp $
00024 
00025 #ifndef _FILE_DROP_TARGET_HH
00026 #define _FILE_DROP_TARGET_HH
00027 
00028 #include <wx/dnd.h>
00029 
00030 namespace ffse {
00031     class MainFrame;
00032     
00033     /**
00034      * Class implementing a wxFileDropTarget for the MainFrame class.
00035      */
00036     class FileDropTarget : public wxFileDropTarget {
00037     public:
00038         /**
00039          * Constructor for the FileDropTarget.
00040          * 
00041          * @param owner The MainFrame associated with this FileDropTarget.
00042          */
00043         FileDropTarget(MainFrame *owner) { this->owner = owner; }
00044         
00045         /**
00046          * Virtual method called when files are dropped on this target.
00047          *
00048          * @param x The x-coordinate of the drop.
00049          * @param y The y-coordinate of the drop.
00050          * @param files The files dropped on this target.
00051          */
00052         virtual bool OnDropFiles(wxCoord x, wxCoord y, 
00053                                  const wxArrayString &files);
00054     private:
00055         MainFrame *owner;
00056     };
00057 }
00058 
00059 #endif
00060 

Generated on Sun Feb 25 07:02:51 2007 for ffse by  doxygen 1.5.1-p1