forked from jonmmorgan/wxwebconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebframe.cpp
89 lines (62 loc) · 2.33 KB
/
webframe.cpp
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
///////////////////////////////////////////////////////////////////////////////
// Name: webframe.cpp
// 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
///////////////////////////////////////////////////////////////////////////////
#include <wx/wx.h>
#include "webframe.h"
#include "webcontrol.h"
///////////////////////////////////////////////////////////////////////////////
// wxWebFrame class implementation
///////////////////////////////////////////////////////////////////////////////
BEGIN_EVENT_TABLE(wxWebFrame, wxFrame)
END_EVENT_TABLE()
wxWebFrame::wxWebFrame(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style) : wxFrame(parent, id, title, pos, size, style)
{
m_should_prevent_app_exit = true;
m_ctrl = new wxWebControl(this, -1, wxPoint(0,0), wxSize(200,200));
wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
sizer->Add(m_ctrl, 1, wxEXPAND);
SetSizer(sizer);
}
wxWebFrame::~wxWebFrame()
{
}
wxWebControl* wxWebFrame::GetWebControl()
{
return m_ctrl;
}
///////////////////////////////////////////////////////////////////////////////
// wxWebDialog class implementation
///////////////////////////////////////////////////////////////////////////////
BEGIN_EVENT_TABLE(wxWebDialog, wxDialog)
END_EVENT_TABLE()
wxWebDialog::wxWebDialog(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style) : wxDialog(parent, id, title, pos, size, style)
{
m_ctrl = new wxWebControl(this, -1, wxPoint(0,0), wxSize(200,200));
wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
sizer->Add(m_ctrl, 1, wxEXPAND);
SetSizer(sizer);
}
wxWebDialog::~wxWebDialog()
{
}
wxWebControl* wxWebDialog::GetWebControl()
{
return m_ctrl;
}