OSDN Git Service

書庫閲覧時のフィルタ機能を追加。
[tpi/lychee.git] / src / frontend / frm_main.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: frm_main.h,v 1.10 2009/08/30 09:28:27 sirakaba Exp $\r
20 *******************************************************************************/\r
21 \r
22 #include <wx/cmdline.h>\r
23 #include <wx/splitter.h>\r
24 \r
25 #ifndef H_LOADED_FRM_MAIN\r
26 #define H_LOADED_FRM_MAIN\r
27 \r
28 class MainFrame: public wxFrame {\r
29 public:\r
30     wxStatusBar* statusbar;\r
31     wxTreeCtrl* tree_ctrl;\r
32     myListCtrl* list_ctrl;\r
33         ArrayTPI_FILEINFO fileinfo;\r
34         TPIHandle tpi;\r
35         wxString szCurrentPath;\r
36         wxFileName fnLastOpenPath;\r
37         wxCmdLineParser cmdLine;\r
38 \r
39     // Event handler.\r
40     void OnInit(    wxInitDialogEvent&);\r
41 \r
42         void OnExit(       wxCommandEvent&);\r
43     void OnArcCreate(  wxCommandEvent&);\r
44     void OnArcOpen(    wxCommandEvent&);\r
45     void OnArcClose(   wxCommandEvent&);\r
46     void OnArcAdd(     wxCommandEvent&);\r
47     void OnArcSFX(     wxCommandEvent&);\r
48     void OnArcUnSFX(   wxCommandEvent&);\r
49 \r
50         void OnArcExtract( wxCommandEvent&);\r
51     void OnArcDelete(  wxCommandEvent&);\r
52     void OnArcTest(    wxCommandEvent&);\r
53     void OnArcRepair(  wxCommandEvent&);\r
54 \r
55         void OnViewMode(wxCommandEvent&);\r
56 \r
57         void OnShowToolBar(  wxCommandEvent&);\r
58         void OnShowStatusBar(wxCommandEvent&);\r
59 \r
60         void OnSelectAll(wxCommandEvent&);\r
61 \r
62         void OnTreeChanged(wxTreeEvent&);\r
63 \r
64         void OnListItemDClick(wxListEvent&);\r
65     void OnListBeginDrag( wxListEvent&);\r
66 \r
67         void OnFilter(wxCommandEvent&);\r
68 \r
69         int LoadTPI(wxString &);\r
70         void ConvertArc(bool);\r
71         int ErrorCheck(int);\r
72 \r
73         MainFrame();\r
74         ~MainFrame();\r
75 \r
76 protected:\r
77     wxMenuBar* menubar;\r
78     wxToolBar* toolbar;\r
79     wxSplitterWindow* window_splitter;\r
80     wxTextCtrl * tcFilter;\r
81     DECLARE_EVENT_TABLE()\r
82 };\r
83 \r
84 #endif\r