OSDN Git Service

x86_64環境とi686環境を共存させるよう、ディレクトリ構成などを変更。
[tpi/lychee.git] / src / lychee / lychee.h
1 /*******************************************************************************\r
2   TPI - flexible but useless plug-in framework.\r
3   Copyright (C) 2002-2009 Silky\r
4 \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
8   any later version.\r
9 \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
13   for more details.\r
14 \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
18 \r
19   $Id$\r
20 *******************************************************************************/\r
21 \r
22 #ifndef H_LOADED_LYCHEE\r
23 #define H_LOADED_LYCHEE\r
24 \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/dir.h>\r
34 #include <wx/dynarray.h>\r
35 \r
36 #include "../common/handle/TPIHandle.h"\r
37 \r
38 #include "cls_listctrl.h"\r
39 #include "cls_config.h"\r
40 \r
41 #ifdef __WINDOWS__\r
42 #define TPI_EXT wxT(".dll")\r
43 #define EXE_EXT wxT(".exe")\r
44 #define DIR_APP wxT("explorer ")\r
45 #define myRescaleIcon(ico) ico\r
46 #else\r
47 #define TPI_EXT wxT(".so")\r
48 #define EXE_EXT (wxString) wxEmptyString\r
49 #define DIR_APP wxT("dolphin ")\r
50 // wxGTK\82Å16x16\82Ì\83A\83C\83R\83\93\82ª\95\\8e¦\82Å\82«\82é\82æ\82¤\83\8a\83T\83C\83Y\82µ\82Ä\82¨\82­\81B\r
51 #define myRescaleIcon(ico) ico.ConvertToImage().Rescale(16, 16)\r
52 #endif\r
53 \r
54 #define L_DIR_BIN wxT("./")\r
55 #define L_DIR_SHR wxT("../share/")\r
56 #ifdef __x86_64__\r
57 #define L_DIR_B_LIB L_DIR_BIN wxT("lib-x86_64/")\r
58 #else\r
59 #define L_DIR_B_LIB L_DIR_BIN wxT("lib-i686/")\r
60 #endif\r
61 #define L_DIR_S_XRC L_DIR_SHR wxT("xrc/")\r
62 #define L_DIR_S_ICO L_DIR_SHR wxT("ico/")\r
63 #define L_DIR_S_LOC L_DIR_SHR wxT("locale/")\r
64 \r
65 #define AskDlg(msg, parent) wxMessageBox(msg, wxT("Lychee"), wxCENTRE | wxYES_NO | wxICON_QUESTION, parent)\r
66 \r
67 class Lychee: public wxApp\r
68 {\r
69 public:\r
70         bool OnInit();\r
71         Lychee() : lc(wxLANGUAGE_DEFAULT){}\r
72 private:\r
73         wxLocale lc;\r
74 };\r
75 \r
76 #endif\r