Skip to content

Commit 49a0d7d

Browse files
committed
WebView and wxWidgets update
mac.xcodeproj + static links to WebKit interface_derived + configures and adds wxWebView to new learn tab interface + new learn tab, with mini browser controls wxWidgets/* + upgraded wxWidgets version from 3.12 to 3.13
1 parent 1871c86 commit 49a0d7d

File tree

6,220 files changed

+206945
-45977
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,220 files changed

+206945
-45977
lines changed

mac.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
AA012114224C24D4000F4F82 /* wxmac.icns in Resources */ = {isa = PBXBuildFile; fileRef = AA012113224C24D4000F4F82 /* wxmac.icns */; };
1313
AA012115224C24D4000F4F82 /* wxmac.icns in Resources */ = {isa = PBXBuildFile; fileRef = AA012113224C24D4000F4F82 /* wxmac.icns */; };
1414
AA14A0F3222A1219002C4553 /* libwx_osx_cocoa.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = AA1D0F81222A0A1D00678304 /* libwx_osx_cocoa.dylib */; };
15+
AA256DE12367942600F9EA58 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AA256DC72367942600F9EA58 /* WebKit.framework */; };
1516
AA56E9702321F67C002BB5E1 /* globals.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AA56E96F2321F67C002BB5E1 /* globals.cpp */; };
1617
AA56E98A2321F67E002BB5E1 /* globals.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AA56E96F2321F67C002BB5E1 /* globals.cpp */; };
1718
AA9F4B912321BEE900FF2E24 /* interface_derived.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AA9F4B8F2321BEE900FF2E24 /* interface_derived.cpp */; };
@@ -227,6 +228,7 @@
227228
AA1D0FC9222A0A4A00678304 /* wxrelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = wxrelease.xcconfig; path = wxWidgets/build/osx/wxrelease.xcconfig; sourceTree = SOURCE_ROOT; };
228229
AA1D0FCA222A0A4B00678304 /* wxcocoa.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = wxcocoa.xcconfig; path = wxWidgets/build/osx/wxcocoa.xcconfig; sourceTree = SOURCE_ROOT; };
229230
AA1D0FCB222A0A4B00678304 /* wxdebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = wxdebug.xcconfig; path = wxWidgets/build/osx/wxdebug.xcconfig; sourceTree = SOURCE_ROOT; };
231+
AA256DC72367942600F9EA58 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; };
230232
AA56E96F2321F67C002BB5E1 /* globals.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = globals.cpp; sourceTree = "<group>"; };
231233
AA9F4B8F2321BEE900FF2E24 /* interface_derived.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = interface_derived.cpp; sourceTree = "<group>"; };
232234
AA9F4B902321BEE900FF2E24 /* interface_derived.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = interface_derived.hpp; sourceTree = "<group>"; };
@@ -258,6 +260,7 @@
258260
isa = PBXFrameworksBuildPhase;
259261
buildActionMask = 2147483647;
260262
files = (
263+
AA256DE12367942600F9EA58 /* WebKit.framework in Frameworks */,
261264
AADF6A33222B360C00991DD2 /* Foundation.framework in Frameworks */,
262265
AADF6A31222B360700991DD2 /* AppKit.framework in Frameworks */,
263266
AADF6A2F222B360200991DD2 /* IOKit.framework in Frameworks */,
@@ -276,6 +279,7 @@
276279
AA14A0F2222A1219002C4553 /* Frameworks */ = {
277280
isa = PBXGroup;
278281
children = (
282+
AA256DC72367942600F9EA58 /* WebKit.framework */,
279283
AADF6A32222B360C00991DD2 /* Foundation.framework */,
280284
AADF6A30222B360700991DD2 /* AppKit.framework */,
281285
AADF6A2E222B360200991DD2 /* IOKit.framework */,
Binary file not shown.

source/form.fbp

Lines changed: 379 additions & 7 deletions
Large diffs are not rendered by default.

source/interface.cpp

Lines changed: 49 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,33 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
6060
projects_pane->SetSizer( projectManSizer );
6161
projects_pane->Layout();
6262
projectManSizer->Fit( projects_pane );
63-
notebook->AddPage( projects_pane, wxT("Projects"), false );
63+
notebook->AddPage( projects_pane, wxT("Projects"), true );
6464
wxPanel* installs_pane;
6565
installs_pane = new wxPanel( notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
66-
wxGridBagSizer* iManSizer;
67-
iManSizer = new wxGridBagSizer( 0, 0 );
68-
iManSizer->SetFlexibleDirection( wxBOTH );
69-
iManSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
66+
wxGridBagSizer* MainSizer;
67+
MainSizer = new wxGridBagSizer( 0, 0 );
68+
MainSizer->SetFlexibleDirection( wxBOTH );
69+
MainSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
7070

7171
wxStaticText* m_staticText5;
7272
m_staticText5 = new wxStaticText( installs_pane, wxID_ANY, wxT("Detected Installations"), wxDefaultPosition, wxDefaultSize, 0 );
7373
m_staticText5->Wrap( -1 );
7474
m_staticText5->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
7575

76-
iManSizer->Add( m_staticText5, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 );
76+
MainSizer->Add( m_staticText5, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 );
7777

7878
wxStaticText* m_staticText6;
7979
m_staticText6 = new wxStaticText( installs_pane, wxID_ANY, wxT("Install Search Paths"), wxDefaultPosition, wxDefaultSize, 0 );
8080
m_staticText6->Wrap( -1 );
8181
m_staticText6->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
8282

83-
iManSizer->Add( m_staticText6, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 );
83+
MainSizer->Add( m_staticText6, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 );
8484

8585
installsList = new wxListBox( installs_pane, wxID_FLOPPY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_HSCROLL|wxLB_NEEDED_SB|wxLB_SINGLE );
86-
iManSizer->Add( installsList, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
86+
MainSizer->Add( installsList, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
8787

8888
installsPathsList = new wxListBox( installs_pane, wxID_HOME, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_HSCROLL|wxLB_NEEDED_SB|wxLB_SINGLE );
89-
iManSizer->Add( installsPathsList, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
89+
MainSizer->Add( installsPathsList, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
9090

9191
wxBoxSizer* bSizer4;
9292
bSizer4 = new wxBoxSizer( wxVERTICAL );
@@ -100,7 +100,7 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
100100
bSizer4->Add( m_button6, 0, wxALL|wxEXPAND, 5 );
101101

102102

103-
iManSizer->Add( bSizer4, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
103+
MainSizer->Add( bSizer4, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
104104

105105
wxBoxSizer* bSizer5;
106106
bSizer5 = new wxBoxSizer( wxVERTICAL );
@@ -114,17 +114,49 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
114114
bSizer5->Add( reloadInstalls, 0, wxALL|wxEXPAND, 5 );
115115

116116

117-
iManSizer->Add( bSizer5, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
117+
MainSizer->Add( bSizer5, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
118118

119119

120-
iManSizer->AddGrowableCol( 0 );
121-
iManSizer->AddGrowableRow( 1 );
122-
iManSizer->AddGrowableRow( 3 );
120+
MainSizer->AddGrowableCol( 0 );
121+
MainSizer->AddGrowableRow( 1 );
122+
MainSizer->AddGrowableRow( 3 );
123123

124-
installs_pane->SetSizer( iManSizer );
124+
installs_pane->SetSizer( MainSizer );
125125
installs_pane->Layout();
126-
iManSizer->Fit( installs_pane );
127-
notebook->AddPage( installs_pane, wxT("Editor Versions"), true );
126+
MainSizer->Fit( installs_pane );
127+
notebook->AddPage( installs_pane, wxT("Editor Versions"), false );
128+
learn_pane = new wxPanel( notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
129+
wxGridBagSizer* learnSizer;
130+
learnSizer = new wxGridBagSizer( 0, 0 );
131+
learnSizer->SetFlexibleDirection( wxBOTH );
132+
learnSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
133+
134+
backBtn = new wxButton( learn_pane, wxID_ANY, wxT("<"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
135+
learnSizer->Add( backBtn, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 );
136+
137+
titleLabel = new wxStaticText( learn_pane, wxID_ANY, wxT("Title"), wxDefaultPosition, wxDefaultSize, 0 );
138+
titleLabel->Wrap( -1 );
139+
learnSizer->Add( titleLabel, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALL, 5 );
140+
141+
forwardBtn = new wxButton( learn_pane, wxID_ANY, wxT(">"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
142+
learnSizer->Add( forwardBtn, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALL, 5 );
143+
144+
homeBtn = new wxButton( learn_pane, wxID_ANY, wxT("Home"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
145+
learnSizer->Add( homeBtn, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALL, 5 );
146+
147+
webSizer = new wxBoxSizer( wxVERTICAL );
148+
149+
150+
learnSizer->Add( webSizer, wxGBPosition( 1, 0 ), wxGBSpan( 1, 4 ), wxEXPAND, 5 );
151+
152+
153+
learnSizer->AddGrowableCol( 2 );
154+
learnSizer->AddGrowableRow( 1 );
155+
156+
learn_pane->SetSizer( learnSizer );
157+
learn_pane->Layout();
158+
learnSizer->Fit( learn_pane );
159+
notebook->AddPage( learn_pane, wxT("Learn"), false );
128160

129161
main_sizer->Add( notebook, 1, wxEXPAND | wxALL, 5 );
130162

source/interface.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ class MainFrame : public wxFrame
5252
wxListCtrl* projectsList;
5353
wxListBox* installsList;
5454
wxListBox* installsPathsList;
55+
wxPanel* learn_pane;
56+
wxButton* backBtn;
57+
wxStaticText* titleLabel;
58+
wxButton* forwardBtn;
59+
wxButton* homeBtn;
60+
wxBoxSizer* webSizer;
5561
wxMenuBar* menubar;
5662
wxMenuItem* menuReveal;
5763

source/interface_derived.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ MainFrameDerived::MainFrameDerived() : MainFrame(NULL){
6666
ReloadData();
6767
}
6868
//if no projects to load, the interface will be blank
69-
70-
//force first tab to select
71-
notebook->SetSelection(0);
69+
70+
//setup Learn window
71+
learnView = wxWebView::New(learn_pane,wxID_ANY);
72+
webSizer->Add(learnView,1,wxEXPAND,wxALL);
73+
learnView->LoadURL("https://learn.unity.com");
7274
}
7375

7476
/**

source/interface_derived.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "interface.h"
1212
#include "globals.cpp"
1313
#include <functional>
14+
#include <wx/webview.h>
1415

1516
using namespace std;
1617

@@ -37,6 +38,8 @@ class MainFrameDerived : public MainFrame{
3738
vector<string> installPaths;
3839
vector<editor> editors;
3940

41+
wxWebView* learnView;
42+
4043
//events
4144
void OnAbout(wxCommandEvent& event);
4245
void OnAddProject(wxCommandEvent& event);

wxWidgets/.editorconfig

100755100644
File mode changed.

wxWidgets/.mailmap

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Cătălin Răceanu <maildus@gmail.com>
1111
<maildus@gmail.com> <catalinraceanu2@gmail.com>
1212
Danny Scott <doscott@doscott.ca>
1313
<doscott@doscott.ca> <doscott@gmail.com>
14+
<doscott@doscott.ca> <d.o.scott@unb.ca>
1415
Dimitri Schoolwerth <dimitri.schoolwerth@gmail.com> <dimitri@schoolwerth.com>
1516
Hashir Ahmad <hashirahmadleo@gmail.com>
1617
Frédéric Bron <frederic.bron@m4x.org> <ufospoke@gmail.com>

wxWidgets/3rdparty/catch/.gitattributes

100755100644
File mode changed.

0 commit comments

Comments
 (0)