]>
Commit | Line | Data |
---|---|---|
54921697 KB |
1 | /**************************************************************************** |
2 | * | |
d20cf96f | 3 | * wxWindows HTML Applet Package |
54921697 KB |
4 | * |
5 | * ======================================================================== | |
6 | * | |
7 | * The contents of this file are subject to the wxWindows licence; you | |
8 | * may not use this file except in compliance with the License. You may | |
d20cf96f | 9 | * obtain a copy of the License at http://www.wxwindows.org/licence.htm |
54921697 KB |
10 | * |
11 | * Software distributed under the License is distributed on an | |
12 | * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | |
13 | * implied. See the License for the specific language governing | |
14 | * rights and limitations under the License. | |
15 | * | |
16 | * The Original Code is Copyright (C) 2001 SciTech Software, Inc. | |
17 | * | |
18 | * The Initial Developer of the Original Code is SciTech Software, Inc. | |
19 | * All Rights Reserved. | |
20 | * | |
21 | * ======================================================================== | |
22 | * | |
d20cf96f KB |
23 | * Language: ANSI C++ |
24 | * Environment: Any | |
54921697 KB |
25 | * |
26 | * Description: Main wxApplet sample program header file | |
27 | * | |
28 | ****************************************************************************/ | |
29 | ||
30 | #ifndef __SAMPLE_H | |
31 | ||
32 | /*------------------------------ Constants --------------------------------*/ | |
33 | ||
34 | enum { | |
d20cf96f KB |
35 | // Menu items |
36 | Minimal_Quit = 1, | |
37 | Minimal_About, | |
38 | Minimal_Back, | |
39 | Minimal_Forward, | |
40 | ||
41 | // Controls start here (the numbers are, of course, arbitrary) | |
42 | Minimal_Text = 1000, | |
43 | }; | |
54921697 KB |
44 | |
45 | /*--------------------------- Class Definitions ---------------------------*/ | |
46 | ||
47 | /**************************************************************************** | |
48 | REMARKS: | |
49 | Define a new application type, each program should derive a class from wxApp | |
50 | ****************************************************************************/ | |
51 | class MyApp : public wxApp { | |
52 | public: | |
d20cf96f KB |
53 | // Initialise the application on startup |
54 | virtual bool OnInit(); | |
55 | }; | |
54921697 KB |
56 | |
57 | /**************************************************************************** | |
58 | REMARKS: | |
59 | Define a new frame type: this is going to be our main frame | |
60 | ****************************************************************************/ | |
61 | class MyFrame : public wxFrame { | |
62 | private: | |
d20cf96f KB |
63 | DECLARE_EVENT_TABLE() // Declare event table |
64 | wxHtmlAppletWindow *html; // Pointer to the html applet window | |
54921697 KB |
65 | |
66 | public: | |
d20cf96f KB |
67 | // Constructor |
68 | MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size); | |
54921697 | 69 | |
d20cf96f KB |
70 | // Event handlers |
71 | void OnQuit(wxCommandEvent& event); | |
72 | void OnAbout(wxCommandEvent& event); | |
73 | void OnBack(wxCommandEvent& event); | |
74 | void OnForward(wxCommandEvent& event); | |
75 | }; | |
54921697 | 76 | |
d20cf96f | 77 | #endif // __SAMPLE_H |
54921697 | 78 |