1 /*******************************************************************************
\r
2 TPI - flexible but useless plug-in framework.
\r
3 Copyright (C) 2002-2009 Silky
\r
5 This library is free software; you can redistribute it and/or modify it under
\r
6 the terms of the GNU Lesser General Public License as published by the Free
\r
7 Software Foundation; either version 2.1 of the License, or (at your option)
\r
10 This library is distributed in the hope that it will be useful, but WITHOUT
\r
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
\r
15 You should have received a copy of the GNU Lesser General Public License along
\r
16 with this library; if not, write to the Free Software Foundation, Inc.,
\r
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
\r
19 $Id: frontend.h,v 1.9 2009/08/29 08:13:09 sirakaba Exp $
\r
20 *******************************************************************************/
\r
22 #ifndef H_LOADED_FRONTEND
\r
23 #define H_LOADED_FRONTEND
\r
25 #define wxUSE_UNICODE 1
\r
26 #include "../common/header/plugin.h"
\r
27 #include <wx/treectrl.h>
\r
28 #include <wx/listctrl.h>
\r
29 #include <wx/imaglist.h>
\r
30 #include <wx/mimetype.h>
\r
31 #include <wx/xrc/xmlres.h>
\r
32 #include <wx/stdpaths.h>
\r
33 #include <wx/dynarray.h>
\r
35 #include "../common/handle/TPIHandle.h"
\r
37 WX_DECLARE_OBJARRAY(TPI_FILEINFO, ArrayTPI_FILEINFO);
\r
39 #include "cls_listctrl.h"
\r
42 #define TPI_EXT wxT(".dll")
\r
43 #define EXE_EXT wxT(".exe")
\r
45 #define TPI_EXT wxT(".so")
\r
46 #define EXE_EXT (wxString) wxEmptyString
\r
49 #define FE_DIR_BIN wxT("./")
\r
50 #define FE_DIR_SHR wxT("../share/")
\r
51 #define FE_DIR_B_LIB FE_DIR_BIN wxT("lib/")
\r
52 #define FE_DIR_S_XRC FE_DIR_SHR wxT("xrc/")
\r
53 #define FE_DIR_S_ICO FE_DIR_SHR wxT("ico/")
\r
55 #define MsgDlg(msg, parent, flag) wxMessageBox(msg, wxT("Frontend"), wxCENTRE | flag, parent)
\r
56 #define ErrDlg(msg, parent) MsgDlg(wxT("Error: ") msg, parent, wxOK | wxICON_ERROR)
\r
57 #define WrnDlg(msg, parent) MsgDlg(msg, parent, wxOK | wxICON_EXCLAMATION)
\r
58 #define AskDlg(msg, parent) MsgDlg(msg, parent, wxYES_NO | wxICON_QUESTION)
\r