]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/applet/applet.h
2 more files added on wxUniv branch I had forgot to commit
[wxWidgets.git] / contrib / samples / applet / applet.h
CommitLineData
54921697
KB
1/****************************************************************************
2*
d20cf96f 3* wxWindows HTML Applet Package
54921697 4*
716cd410
KB
5* Copyright (C) 1991-2001 SciTech Software, Inc.
6* All rights reserved.
7*
54921697
KB
8* ========================================================================
9*
716cd410
KB
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
54921697
KB
14*
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.
19*
54921697
KB
20* ========================================================================
21*
d20cf96f
KB
22* Language: ANSI C++
23* Environment: Any
54921697
KB
24*
25* Description: Main wxApplet sample program header file
26*
27****************************************************************************/
28
29#ifndef __SAMPLE_H
30
31/*------------------------------ Constants --------------------------------*/
32
33enum {
d20cf96f
KB
34 // Menu items
35 Minimal_Quit = 1,
36 Minimal_About,
37 Minimal_Back,
38 Minimal_Forward,
716cd410 39
d20cf96f
KB
40 // Controls start here (the numbers are, of course, arbitrary)
41 Minimal_Text = 1000,
42 };
54921697
KB
43
44/*--------------------------- Class Definitions ---------------------------*/
45
46/****************************************************************************
47REMARKS:
48Define a new application type, each program should derive a class from wxApp
49****************************************************************************/
50class MyApp : public wxApp {
51public:
d20cf96f
KB
52 // Initialise the application on startup
53 virtual bool OnInit();
54 };
54921697
KB
55
56/****************************************************************************
57REMARKS:
58Define a new frame type: this is going to be our main frame
59****************************************************************************/
60class MyFrame : public wxFrame {
61private:
d20cf96f
KB
62 DECLARE_EVENT_TABLE() // Declare event table
63 wxHtmlAppletWindow *html; // Pointer to the html applet window
54921697
KB
64
65public:
d20cf96f
KB
66 // Constructor
67 MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
54921697 68
d20cf96f
KB
69 // Event handlers
70 void OnQuit(wxCommandEvent& event);
71 void OnAbout(wxCommandEvent& event);
72 void OnBack(wxCommandEvent& event);
73 void OnForward(wxCommandEvent& event);
74 };
54921697 75
d20cf96f 76#endif // __SAMPLE_H
54921697 77