OSDN Git Service

994c29707106463d6cb060261ad25f328b8d52e3
[tpi/lychee.git] / src / lychee / 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$\r
20 *******************************************************************************/\r
21 \r
22 #include <wx/splitter.h>\r
23 \r
24 #ifndef H_LOADED_FRM_MAIN\r
25 #define H_LOADED_FRM_MAIN\r
26 \r
27 class MainFrame: public wxFrame {\r
28 public:\r
29     wxTreeCtrl * tree_ctrl;\r
30     myListCtrl * list_ctrl;\r
31         ArrayTPI_FILEINFO fileinfo;\r
32         TPIHandle tpi;\r
33         wxFileName fnArchive;\r
34         TPI_ARCHIVEINFO aiArchive;\r
35         myConfig conf;\r
36 \r
37     // Event handler.\r
38     void OnInit(    wxInitDialogEvent&);\r
39 \r
40         void OnExit(       wxCommandEvent&);\r
41     void OnArcCreate(  wxCommandEvent&);\r
42     void OnArcOpen(    wxCommandEvent&);\r
43     void OnArcClose(   wxCommandEvent&);\r
44     void OnArcAdd(     wxCommandEvent&);\r
45     void OnArcConvert( wxCommandEvent&);\r
46 \r
47         void OnArcExtract( wxCommandEvent&);\r
48     void OnArcDelete(  wxCommandEvent&);\r
49     void OnArcTest(    wxCommandEvent&);\r
50     void OnArcRepair(  wxCommandEvent&);\r
51 \r
52         void OnViewMode(wxCommandEvent&);\r
53 \r
54         void OnShowToolBar(  wxCommandEvent&);\r
55         void OnShowStatusBar(wxCommandEvent&);\r
56 \r
57         void OnSelectAll(wxCommandEvent&);\r
58 \r
59         void OnTreeChanged(wxTreeEvent&);\r
60         void OnTreeBeginDrag(wxTreeEvent&);\r
61 \r
62         void OnListItemDClick(wxListEvent&);\r
63     void OnListBeginDrag( wxListEvent&);\r
64 \r
65         void OnFilter(wxCommandEvent&);\r
66 \r
67         wxULongLong_t LoadTPI(wxString);\r
68         int ErrorCheck(int, wxString szAPIName = wxT("Command"));\r
69 \r
70         MainFrame();\r
71         ~MainFrame();\r
72 \r
73 protected:\r
74     wxMenuBar * menubar;\r
75     wxToolBar * toolbar;\r
76     wxStatusBar * statusbar;\r
77     wxSplitterWindow * window_splitter;\r
78     wxTextCtrl * tcFilter;\r
79     DECLARE_EVENT_TABLE()\r
80 };\r
81 \r
82 #endif\r