]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/fl/fl_demo1/fl_demo1.h
Fixed project files for regex.lib, taking the regex C files out of the main wxvc.dsp
[wxWidgets.git] / contrib / samples / fl / fl_demo1 / fl_demo1.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: No names yet.
3 // Purpose: Contrib. demo
4 // Author: Aleksandras Gluchovas
5 // Modified by: Sebastian Haase (June 21, 2001)
6 // Created: 04/11/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __NEW_TEST_G__
13 #define __NEW_TEST_G__
14
15 #ifdef __GNUG__
16 #pragma interface "fl_demo1.h"
17 #endif
18
19 #define NEW_TEST_SAVE 1101
20 #define NEW_TEST_LOAD 1102
21 #define NEW_TEST_EXIT 1103
22
23 #include "wx/panel.h"
24
25 // Define a new application type
26 class MyApp: public wxApp
27 {
28 public:
29 bool OnInit(void);
30 };
31
32 // Define a new frame type
33 class MyFrame: public wxFrame
34 {
35 public:
36 wxFrameLayout* mpLayout;
37 wxTextCtrl* mpClientWnd;
38
39 wxTextCtrl* CreateTextCtrl( const wxString& value );
40
41 public:
42 MyFrame(wxFrame *frame);
43 virtual ~MyFrame();
44
45 bool OnClose(void) { Show(FALSE); return TRUE; }
46
47 void OnLoad( wxCommandEvent& event );
48 void OnSave( wxCommandEvent& event );
49 void OnExit( wxCommandEvent& event );
50
51 DECLARE_EVENT_TABLE()
52 };
53
54 #endif
55