sramfiletarget.hh

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

Generated on Fri Feb 2 21:09:25 2007 for dwsrame by  doxygen 1.5.1-p1