1 /*******************************************************************************
2 TPI - flexible but useless plug-in framework.
3 Copyright (C) 2002-2009 Silky
5 This library is free software; you can redistribute it and/or modify it under
6 the terms of the GNU Lesser General Public License as published by the Free
7 Software Foundation; either version 2.1 of the License, or (at your option)
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15 You should have received a copy of the GNU Lesser General Public License along
16 with this library; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 $Id: cls_filedroptarget.cpp,v 1.2 2009/08/09 06:08:51 sirakaba Exp $
20 *******************************************************************************/
25 #include "cls_filedroptarget.h"
27 //******************************************************************************
29 //******************************************************************************
31 myFileDropTarget::myFileDropTarget(MainFrame * mainFrame)
33 this->mainFrame = mainFrame;
36 //******************************************************************************
38 //******************************************************************************
40 bool myFileDropTarget::OnDropFiles(wxCoord, wxCoord, const wxArrayString & asFiles)
44 //
\8f\91\8cÉ
\82É
\91Î
\89\9e\82µ
\82Ä
\82¢
\82é
\82©
\82Ç
\82¤
\82©
\8am
\94F
\81B
45 if (asFiles.Count() == 1 && this->mainFrame->LoadTPI(asFiles[0]) != -1)
47 //
\8f\91\8cÉ
\82ð
\8aJ
\82
\81B
48 this->mainFrame->fnArchive = wxFileName(asFiles[0]);
49 this->mainFrame->OnArcOpen(e);
53 //
\91Î
\89\9e\82µ
\82Ä
\82¢
\82È
\82¢
\8fê
\8d\87\82Í
\8ai
\94[(or
\92Ç
\89Á
\88³
\8fk)
\82ð
\8e\8e\82Ý
\82é
\81B
54 wxArrayString as = asFiles;
55 e.SetClientData(& as);
56 this->mainFrame->OnArcCreate(e);