]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/samples/applet/applet.h
Fixed compile problems under MingW32 compiler
[wxWidgets.git] / contrib / samples / applet / applet.h
... / ...
CommitLineData
1/****************************************************************************
2*
3* wxWindows HTML Applet Package
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
9* obtain a copy of the License at http://www.wxwindows.org/licence.htm
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*
23* Language: ANSI C++
24* Environment: Any
25*
26* Description: Main wxApplet sample program header file
27*
28****************************************************************************/
29
30#ifndef __SAMPLE_H
31
32/*------------------------------ Constants --------------------------------*/
33
34enum {
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 };
44
45/*--------------------------- Class Definitions ---------------------------*/
46
47/****************************************************************************
48REMARKS:
49Define a new application type, each program should derive a class from wxApp
50****************************************************************************/
51class MyApp : public wxApp {
52public:
53 // Initialise the application on startup
54 virtual bool OnInit();
55 };
56
57/****************************************************************************
58REMARKS:
59Define a new frame type: this is going to be our main frame
60****************************************************************************/
61class MyFrame : public wxFrame {
62private:
63 DECLARE_EVENT_TABLE() // Declare event table
64 wxHtmlAppletWindow *html; // Pointer to the html applet window
65
66public:
67 // Constructor
68 MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
69
70 // Event handlers
71 void OnQuit(wxCommandEvent& event);
72 void OnAbout(wxCommandEvent& event);
73 void OnBack(wxCommandEvent& event);
74 void OnForward(wxCommandEvent& event);
75 };
76
77#endif // __SAMPLE_H
78