]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/applet/applet.h
1 /****************************************************************************
3 * wxWindows HTML Applet Package
5 * ========================================================================
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
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.
16 * The Original Code is Copyright (C) 2001 SciTech Software, Inc.
18 * The Initial Developer of the Original Code is SciTech Software, Inc.
19 * All Rights Reserved.
21 * ========================================================================
26 * Description: Main wxApplet sample program header file
28 ****************************************************************************/
32 /*------------------------------ Constants --------------------------------*/
41 // Controls start here (the numbers are, of course, arbitrary)
45 /*--------------------------- Class Definitions ---------------------------*/
47 /****************************************************************************
49 Define a new application type, each program should derive a class from wxApp
50 ****************************************************************************/
51 class MyApp
: public wxApp
{
53 // Initialise the application on startup
54 virtual bool OnInit();
57 /****************************************************************************
59 Define a new frame type: this is going to be our main frame
60 ****************************************************************************/
61 class MyFrame
: public wxFrame
{
63 DECLARE_EVENT_TABLE() // Declare event table
64 wxHtmlAppletWindow
*html
; // Pointer to the html applet window
68 MyFrame(const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
);
71 void OnQuit(wxCommandEvent
& event
);
72 void OnAbout(wxCommandEvent
& event
);
73 void OnBack(wxCommandEvent
& event
);
74 void OnForward(wxCommandEvent
& event
);