OSDN Git Service

Lycheeにリネーム。
[tpi/lychee.git] / src / lychee / frm_main.h
1 /*******************************************************************************
2   TPI - flexible but useless plug-in framework.
3   Copyright (C) 2002-2009 Silky
4
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)
8   any later version.
9
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
13   for more details.
14
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
18
19   $Id: frm_main.h,v 1.10 2009/08/30 09:28:27 sirakaba Exp $
20 *******************************************************************************/
21
22 #include <wx/cmdline.h>
23 #include <wx/splitter.h>
24 #include <wx/fileconf.h>
25
26 #ifndef H_LOADED_FRM_MAIN
27 #define H_LOADED_FRM_MAIN
28
29 class MainFrame: public wxFrame {
30 public:
31     wxStatusBar* statusbar;
32     wxTreeCtrl* tree_ctrl;
33     myListCtrl* list_ctrl;
34         ArrayTPI_FILEINFO fileinfo;
35         TPIHandle tpi;
36         wxString szCurrentPath;
37         wxCmdLineParser cmdLine;
38         wxFileName fnArchive;
39
40     // Event handler.
41     void OnInit(    wxInitDialogEvent&);
42
43         void OnExit(       wxCommandEvent&);
44     void OnArcCreate(  wxCommandEvent&);
45     void OnArcOpen(    wxCommandEvent&);
46     void OnArcClose(   wxCommandEvent&);
47     void OnArcAdd(     wxCommandEvent&);
48     void OnArcConvert( wxCommandEvent&);
49
50         void OnArcExtract( wxCommandEvent&);
51     void OnArcDelete(  wxCommandEvent&);
52     void OnArcTest(    wxCommandEvent&);
53     void OnArcRepair(  wxCommandEvent&);
54
55         void OnViewMode(wxCommandEvent&);
56
57         void OnShowToolBar(  wxCommandEvent&);
58         void OnShowStatusBar(wxCommandEvent&);
59
60         void OnSelectAll(wxCommandEvent&);
61
62         void OnTreeChanged(wxTreeEvent&);
63         void OnTreeBeginDrag(wxTreeEvent&);
64
65         void OnListItemDClick(wxListEvent&);
66     void OnListBeginDrag( wxListEvent&);
67
68         void OnFilter(wxCommandEvent&);
69
70         int LoadTPI(wxString);
71         int ErrorCheck(int);
72
73         MainFrame();
74         ~MainFrame();
75
76 protected:
77     wxMenuBar* menubar;
78     wxToolBar* toolbar;
79     wxSplitterWindow* window_splitter;
80     wxTextCtrl * tcFilter;
81         wxFileConfig conf;
82     DECLARE_EVENT_TABLE()
83 };
84
85 #endif