-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwebframe.h
125 lines (89 loc) · 3.81 KB
/
webframe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
///////////////////////////////////////////////////////////////////////////////
// Name: webframe.h
// Purpose: wxwebconnect: embedded web browser control library
// Author: Benjamin I. Williams
// Modified by:
// Created: 2007-04-23
// RCS-ID:
// Copyright: (C) Copyright 2006-2010, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1
///////////////////////////////////////////////////////////////////////////////
#ifndef __WXWEBCONNECT_WEBFRAME_H
#define __WXWEBCONNECT_WEBFRAME_H
///////////////////////////////////////////////////////////////////////////////
// wxWebFrame class
///////////////////////////////////////////////////////////////////////////////
// (CLASS) wxWebFrame
// Category: Control
// Description: Used for displaying a web browser control in a popup.
// Remarks: The wxWebFrame class is used for displaying a web browser control in a popup.
// (CONSTRUCTOR) wxWebFrame::wxWebFrame
// Description: Creates a new wxWebFrame object.
//
// Syntax: wxWebFrame::wxWebFrame(wxWindow* parent,
// wxWindowID id,
// const wxString& title,
// const wxPoint& pos = wxDefaultPosition,
// const wxSize& size = wxDefaultSize,
// long style = wxDEFAULT_FRAME_STYLE);
//
// Remarks: Creates a new wxWebFrame object.
// (METHOD) wxWebFrame::ShouldPreventAppExit
// Syntax: bool wxWebFrame::ShouldPreventAppExit()
// (METHOD) wxWebFrame::SetShouldPreventAppExit
// Syntax: void wxWebFrame::SetShouldPreventAppExit(bool b)
class wxWebControl;
class wxWebFrame : public wxFrame
{
public:
wxWebFrame(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE);
~wxWebFrame();
wxWebControl* GetWebControl();
bool ShouldPreventAppExit() const { return m_should_prevent_app_exit; }
void SetShouldPreventAppExit(bool b) { m_should_prevent_app_exit = b; }
private:
wxWebControl* m_ctrl;
bool m_should_prevent_app_exit;
DECLARE_EVENT_TABLE();
};
///////////////////////////////////////////////////////////////////////////////
// wxWebDialog class
///////////////////////////////////////////////////////////////////////////////
// (CLASS) wxWebDialog
// Category: Control
// Description: Used for displaying a web browser control in a popup.
// Remarks: The wxWebDialog class is used for displaying a web browser control in a popup.
// (CONSTRUCTOR) wxWebDialog::wxWebDialog
// Description: Creates a new wxWebDialog object.
//
// Syntax: wxWebDialog::wxWebDialog(wxWindow* parent,
// wxWindowID id,
// const wxString& title,
// const wxPoint& pos = wxDefaultPosition,
// const wxSize& size = wxDefaultSize,
// long style = wxDEFAULT_DIALOG_STYLE);
//
// Remarks: Creates a new wxWebDialog object.
// (METHOD) wxWebDialog::GetWebControl
// Syntax: wxWebControl* wxWebDialog::GetWebControl()
class wxWebDialog : public wxDialog
{
public:
wxWebDialog(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE);
~wxWebDialog();
wxWebControl* GetWebControl();
private:
wxWebControl* m_ctrl;
DECLARE_EVENT_TABLE();
};
#endif