OSDN Git Service

展開ダイアログで書庫のコメントを閲覧できる機能を追加。
[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$
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     wxTreeCtrl * tree_ctrl;
32     myListCtrl * list_ctrl;
33         ArrayTPI_FILEINFO fileinfo;
34         TPIHandle tpi;
35         wxFileName fnArchive;
36         wxString szComment;
37         wxFileConfig conf;
38         wxString szCurrentPath;
39         wxCmdLineParser cmdLine;
40
41     // Event handler.
42     void OnInit(    wxInitDialogEvent&);
43
44         void OnExit(       wxCommandEvent&);
45     void OnArcCreate(  wxCommandEvent&);
46     void OnArcOpen(    wxCommandEvent&);
47     void OnArcClose(   wxCommandEvent&);
48     void OnArcAdd(     wxCommandEvent&);
49     void OnArcConvert( wxCommandEvent&);
50
51         void OnArcExtract( wxCommandEvent&);
52     void OnArcDelete(  wxCommandEvent&);
53     void OnArcTest(    wxCommandEvent&);
54     void OnArcRepair(  wxCommandEvent&);
55
56         void OnViewMode(wxCommandEvent&);
57
58         void OnShowToolBar(  wxCommandEvent&);
59         void OnShowStatusBar(wxCommandEvent&);
60
61         void OnSelectAll(wxCommandEvent&);
62
63         void OnTreeChanged(wxTreeEvent&);
64         void OnTreeBeginDrag(wxTreeEvent&);
65
66         void OnListItemDClick(wxListEvent&);
67     void OnListBeginDrag( wxListEvent&);
68
69         void OnFilter(wxCommandEvent&);
70
71         int LoadTPI(wxString);
72         int ErrorCheck(int);
73
74         MainFrame();
75         ~MainFrame();
76
77 protected:
78     wxMenuBar * menubar;
79     wxToolBar * toolbar;
80     wxStatusBar * statusbar;
81     wxSplitterWindow * window_splitter;
82     wxTextCtrl * tcFilter;
83     DECLARE_EVENT_TABLE()
84 };
85
86 #endif