]> git.saurik.com Git - wxWidgets.git/blob - user/wxFile/wxFile.h
mdi private menus
[wxWidgets.git] / user / wxFile / wxFile.h
1 /*
2 * Program: wxFile
3 *
4 * Author: Robert Roebling
5 *
6 * Copyright: (C) 1997, GNU (Robert Roebling)
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #ifndef __WXFILEH__
24 #define __WXFILEH__
25
26 #ifdef __GNUG__
27 #pragma interface
28 #endif
29
30 #include "wx/wx.h"
31 #include "wx/dcscreen.h"
32 #include "wx/splitter.h"
33 #include "wx/toolbar.h"
34 #include "filectrl.h"
35 #include "dirctrl.h"
36
37 //-----------------------------------------------------------------------------
38 // derived classes
39 //-----------------------------------------------------------------------------
40
41 class MyFrame;
42 class MyApp;
43
44 //-----------------------------------------------------------------------------
45 // MyFrame
46 //-----------------------------------------------------------------------------
47
48 class MyFrame: public wxFrame
49 {
50 DECLARE_DYNAMIC_CLASS(MyFrame)
51
52 public:
53
54 MyFrame(void);
55 void OnSize( wxSizeEvent &event );
56 void OnCommand( wxCommandEvent &event );
57 void OnAbout( wxCommandEvent &event );
58 void OnView( wxCommandEvent &event );
59 void OnListKeyDown( wxListEvent &event );
60 void OnListDeleteItem( wxListEvent &event );
61 void OnListEndLabelEdit( wxListEvent &event );
62 void OnListDrag( wxListEvent &event );
63 void OnTreeSelected( wxTreeEvent &event );
64 void OnTreeKeyDown( wxTreeEvent &event );
65
66 wxToolBar *m_tb;
67 wxSplitterWindow *m_splitter;
68 wxFileCtrl *m_rightFile;
69 wxFileCtrl *m_leftFile;
70 wxDirCtrl *m_dir;
71
72 DECLARE_EVENT_TABLE()
73 };
74
75 //-----------------------------------------------------------------------------
76 // MyApp
77 //-----------------------------------------------------------------------------
78
79 class MyApp: public wxApp
80 {
81 public:
82
83 MyApp(void);
84 virtual bool OnInit(void);
85 };
86
87 #endif // __WXFILEH__