]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/applet/applet.h
1 /****************************************************************************
3 * wxWindows HTML Applet Package
5 * Copyright (C) 1991-2001 SciTech Software, Inc.
8 * ========================================================================
10 * The contents of this file are subject to the wxWindows License
11 * Version 3.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.wxwindows.org/licence3.txt
15 * Software distributed under the License is distributed on an
16 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
17 * implied. See the License for the specific language governing
18 * rights and limitations under the License.
20 * ========================================================================
25 * Description: Main wxApplet sample program header file
27 ****************************************************************************/
31 /*------------------------------ Constants --------------------------------*/
40 // Controls start here (the numbers are, of course, arbitrary)
44 /*--------------------------- Class Definitions ---------------------------*/
46 /****************************************************************************
48 Define a new application type, each program should derive a class from wxApp
49 ****************************************************************************/
50 class MyApp
: public wxApp
{
52 // Initialise the application on startup
53 virtual bool OnInit();
56 /****************************************************************************
58 Define a new frame type: this is going to be our main frame
59 ****************************************************************************/
60 class MyFrame
: public wxFrame
{
62 DECLARE_EVENT_TABLE() // Declare event table
63 wxHtmlAppletWindow
*html
; // Pointer to the html applet window
67 MyFrame(const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
);
70 void OnQuit(wxCommandEvent
& event
);
71 void OnAbout(wxCommandEvent
& event
);
72 void OnBack(wxCommandEvent
& event
);
73 void OnForward(wxCommandEvent
& event
);