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