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
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 wxTreeCtrl * tree_ctrl;
32 myListCtrl * list_ctrl;
33 ArrayTPI_FILEINFO fileinfo;
38 wxString szCurrentPath;
39 wxCmdLineParser cmdLine;
42 void OnInit( wxInitDialogEvent&);
44 void OnExit( wxCommandEvent&);
45 void OnArcCreate( wxCommandEvent&);
46 void OnArcOpen( wxCommandEvent&);
47 void OnArcClose( wxCommandEvent&);
48 void OnArcAdd( wxCommandEvent&);
49 void OnArcConvert( wxCommandEvent&);
51 void OnArcExtract( wxCommandEvent&);
52 void OnArcDelete( wxCommandEvent&);
53 void OnArcTest( wxCommandEvent&);
54 void OnArcRepair( wxCommandEvent&);
56 void OnViewMode(wxCommandEvent&);
58 void OnShowToolBar( wxCommandEvent&);
59 void OnShowStatusBar(wxCommandEvent&);
61 void OnSelectAll(wxCommandEvent&);
63 void OnTreeChanged(wxTreeEvent&);
64 void OnTreeBeginDrag(wxTreeEvent&);
66 void OnListItemDClick(wxListEvent&);
67 void OnListBeginDrag( wxListEvent&);
69 void OnFilter(wxCommandEvent&);
71 int LoadTPI(wxString);
80 wxStatusBar * statusbar;
81 wxSplitterWindow * window_splitter;
82 wxTextCtrl * tcFilter;