• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/contrib/include/wx/applet/
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:  Header file for the wxApplet class
26*
27****************************************************************************/
28
29#ifndef __WX_APPLET_H
30#define __WX_APPLET_H
31
32#include "wx/panel.h"
33#include "wx/html/htmlwin.h"
34
35// Forward declaration
36class wxHtmlAppletWindow;
37class wxAppletEvent;
38/*--------------------------- Class Definitions ---------------------------*/
39
40/****************************************************************************
41REMARKS:
42Defines the abstract base class for wxApplet objects.
43****************************************************************************/
44class wxApplet : public wxPanel {
45private:
46    DECLARE_ABSTRACT_CLASS(wxApplet);
47    DECLARE_EVENT_TABLE()
48
49protected:
50    //wxHtmlAppletWindow  *m_parent;
51
52            // Special handler for background erase messages
53            void OnEraseBackground(wxEraseEvent&);
54
55public:
56            // Constructor (called during dynamic creation)
57            wxApplet() { m_parent = NULL; };
58
59            // Psuedo virtual constructor
60    virtual bool Create(
61                wxHtmlAppletWindow *parent,
62                const wxHtmlTag& params,
63                const wxSize& size,
64                long style = wxTAB_TRAVERSAL | wxNO_BORDER);
65
66            // Virtual destructor
67    virtual ~wxApplet();
68
69            // Handle HTML navigation to a new URL
70    virtual void OnLinkClicked(const wxHtmlLinkInfo& link) = 0;
71
72            // Handle HTML navigation forward command in applet
73    virtual void OnHistoryForward() = 0;
74
75            // Handle HTML navigation back command in applet
76    virtual void OnHistoryBack() = 0;
77
78            // Handle messages from the wxAppletManager and other applets
79    virtual void OnMessage(wxAppletEvent& msg) = 0;
80    };
81
82
83
84#endif // __WX_APPLET_H
85
86