1 /*******************************************************************************
2 TPI - flexible but useless plug-in framework.
3 Copyright (C) 2002-2009 Silky
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)
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
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
19 $Id: frm_main.h,v 1.10 2009/08/30 09:28:27 sirakaba Exp $
20 *******************************************************************************/
22 #include <wx/cmdline.h>
23 #include <wx/splitter.h>
24 #include <wx/fileconf.h>
26 #ifndef H_LOADED_FRM_MAIN
27 #define H_LOADED_FRM_MAIN
29 class MainFrame: public wxFrame {
31 wxStatusBar* statusbar;
32 wxTreeCtrl* tree_ctrl;
33 myListCtrl* list_ctrl;
34 ArrayTPI_FILEINFO fileinfo;
36 wxString szCurrentPath;
37 wxCmdLineParser cmdLine;
41 void OnInit( wxInitDialogEvent&);
43 void OnExit( wxCommandEvent&);
44 void OnArcCreate( wxCommandEvent&);
45 void OnArcOpen( wxCommandEvent&);
46 void OnArcClose( wxCommandEvent&);
47 void OnArcAdd( wxCommandEvent&);
48 void OnArcConvert( wxCommandEvent&);
50 void OnArcExtract( wxCommandEvent&);
51 void OnArcDelete( wxCommandEvent&);
52 void OnArcTest( wxCommandEvent&);
53 void OnArcRepair( wxCommandEvent&);
55 void OnViewMode(wxCommandEvent&);
57 void OnShowToolBar( wxCommandEvent&);
58 void OnShowStatusBar(wxCommandEvent&);
60 void OnSelectAll(wxCommandEvent&);
62 void OnTreeChanged(wxTreeEvent&);
63 void OnTreeBeginDrag(wxTreeEvent&);
65 void OnListItemDClick(wxListEvent&);
66 void OnListBeginDrag( wxListEvent&);
68 void OnFilter(wxCommandEvent&);
70 int LoadTPI(wxString);
79 wxSplitterWindow* window_splitter;
80 wxTextCtrl * tcFilter;