Skip to content

Commit e370d41

Browse files
author
Danny Glover
committed
Updating wxWidgets to 3.1.4
- Changed some default values for the simulator default config.
1 parent bce3336 commit e370d41

File tree

554 files changed

+4339
-2440
lines changed

Some content is hidden

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

554 files changed

+4339
-2440
lines changed

platform/linux/Rtt_LinuxContext.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -880,11 +880,11 @@ void SolarFrame::CreateMenus()
880880
fMenuMain->Append(fileMenu, _T("&File"));
881881

882882
// view menu
883-
fViewMenu = new wxMenu();
884-
fZoomIn = fViewMenu->Append(ID_MENU_ZOOM_IN, _T("&Zoom In \tCtrl-KP_ADD"));
885-
fZoomOut = fViewMenu->Append(ID_MENU_ZOOM_OUT, _T("&Zoom Out \tCtrl-KP_Subtract"));
886-
fViewMenu->AppendSeparator();
887-
fMenuMain->Append(fViewMenu, _T("&View"));
883+
//fViewMenu = new wxMenu();
884+
//fZoomIn = fViewMenu->Append(ID_MENU_ZOOM_IN, _T("&Zoom In \tCtrl-KP_ADD"));
885+
//fZoomOut = fViewMenu->Append(ID_MENU_ZOOM_OUT, _T("&Zoom Out \tCtrl-KP_Subtract"));
886+
//fViewMenu->AppendSeparator();
887+
//fMenuMain->Append(fViewMenu, _T("&View"));
888888

889889
// about menu
890890
wxMenu *helpMenu = new wxMenu();
@@ -1202,7 +1202,6 @@ void SolarFrame::OnFileSystemEvent(wxFileSystemWatcherEvent &event)
12021202
wxCommandEvent ev(eventRelaunchProject);
12031203
wxPostEvent(wxGetApp().GetFrame(), ev);
12041204
}
1205-
12061205
break;
12071206
}
12081207

@@ -1565,10 +1564,7 @@ SolarGLCanvas::~SolarGLCanvas()
15651564
if (fGLContext)
15661565
{
15671566
SetCurrent(*fGLContext);
1568-
}
15691567

1570-
if (fGLContext)
1571-
{
15721568
delete fGLContext;
15731569
fGLContext = NULL;
15741570
}

platform/linux/Rtt_LinuxSimulatorView.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ namespace Rtt
6262
LinuxPreferencesDialog::RelaunchType LinuxSimulatorView::Config::relaunchOnFileChange = LinuxPreferencesDialog::RelaunchType::Always;
6363
int LinuxSimulatorView::Config::windowXPos = 10;
6464
int LinuxSimulatorView::Config::windowYPos = 10;
65-
int LinuxSimulatorView::Config::skinID = 6246;
65+
int LinuxSimulatorView::Config::skinID = 6223;
6666
int LinuxSimulatorView::Config::skinWidth = 320;
6767
int LinuxSimulatorView::Config::skinHeight = 480;
6868
int LinuxSimulatorView::Config::zoomedWidth = LinuxSimulatorView::Config::skinWidth;
6969
int LinuxSimulatorView::Config::zoomedHeight = LinuxSimulatorView::Config::skinHeight;
70-
int LinuxSimulatorView::Config::welcomeScreenZoomedWidth = 640;
71-
int LinuxSimulatorView::Config::welcomeScreenZoomedHeight = 480;
70+
int LinuxSimulatorView::Config::welcomeScreenZoomedWidth = 960;
71+
int LinuxSimulatorView::Config::welcomeScreenZoomedHeight = 720;
7272
wxConfig *LinuxSimulatorView::Config::configFile;
7373
std::map<int, LinuxSimulatorView::SkinProperties> LinuxSimulatorView::fSkins;
7474

platform/linux/wx/include/wx/addremovectrl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class WXDLLIMPEXP_CORE wxAddRemoveCtrl : public wxPanel
6666
const wxPoint& pos = wxDefaultPosition,
6767
const wxSize& size = wxDefaultSize,
6868
long style = 0,
69-
const wxString& name = wxAddRemoveCtrlNameStr)
69+
const wxString& name = wxASCII_STR(wxAddRemoveCtrlNameStr))
7070
{
7171
Init();
7272

@@ -78,7 +78,7 @@ class WXDLLIMPEXP_CORE wxAddRemoveCtrl : public wxPanel
7878
const wxPoint& pos = wxDefaultPosition,
7979
const wxSize& size = wxDefaultSize,
8080
long style = 0,
81-
const wxString& name = wxAddRemoveCtrlNameStr);
81+
const wxString& name = wxASCII_STR(wxAddRemoveCtrlNameStr));
8282

8383
virtual ~wxAddRemoveCtrl();
8484

platform/linux/wx/include/wx/affinematrix2dbase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class WXDLLIMPEXP_CORE wxAffineMatrix2DBase
4444
// sets the matrix to the respective values
4545
virtual void Set(const wxMatrix2D& mat2D, const wxPoint2DDouble& tr) = 0;
4646

47-
// gets the component valuess of the matrix
47+
// gets the component values of the matrix
4848
virtual void Get(wxMatrix2D* mat2D, wxPoint2DDouble* tr) const = 0;
4949

5050
// concatenates the matrix

platform/linux/wx/include/wx/android/setup.h

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,14 @@
183183
// Unicode support
184184
// ----------------------------------------------------------------------------
185185

186-
// These settings are obsolete: the library is always built in Unicode mode
186+
// This option is deprecated: the library should be always built in Unicode mode
187187
// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
188188
// absolutely necessary -- updating it is strongly recommended as the ANSI mode
189189
// will disappear completely in future wxWidgets releases.
190190
#ifndef wxUSE_UNICODE
191191
#define wxUSE_UNICODE 1
192192
#endif
193193

194-
// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
195-
#define wxUSE_WCHAR_T 1
196-
197194
// ----------------------------------------------------------------------------
198195
// global features
199196
// ----------------------------------------------------------------------------
@@ -762,6 +759,13 @@
762759
#define wxUSE_WEBVIEW_IE 0
763760
#endif
764761

762+
// Use the Edge (Chromium) wxWebView backend (Requires WebView2 SDK)
763+
//
764+
// Default is 0 because WebView2 is not always available, set it to 1 if you do have it.
765+
//
766+
// Recommended setting: 1 when building for Windows with WebView2 SDK
767+
#define wxUSE_WEBVIEW_EDGE 0
768+
765769
// Use the WebKit wxWebView backend
766770
//
767771
// Default is 1 on GTK and OSX
@@ -910,6 +914,14 @@
910914
#define wxUSE_TREECTRL 1 // wxTreeCtrl
911915
#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
912916

917+
// Use generic version of wxDataViewCtrl even if a native one is available?
918+
//
919+
// Default is 1.
920+
//
921+
// Recommended setting: 1, but can be set to 0 if your program is affected by
922+
// the native control limitations.
923+
#define wxUSE_NATIVE_DATAVIEWCTRL 1
924+
913925
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
914926
// below either wxStatusBar95 or a generic wxStatusBar will be used.
915927
//
@@ -1117,13 +1129,20 @@
11171129
// depends on it)
11181130
#define wxUSE_INFOBAR 1
11191131

1120-
// Use wxMenu, wxMenuBar, wxMenuItem.
1132+
// Use wxMenu, wxMenuItem.
11211133
//
11221134
// Default is 1.
11231135
//
11241136
// Recommended setting: 1 (can't be disabled under MSW)
11251137
#define wxUSE_MENUS 1
11261138

1139+
// Use wxMenuBar.
1140+
//
1141+
// Default is 1.
1142+
//
1143+
// Recommended setting: 1 (can't be disabled under MSW)
1144+
#define wxUSE_MENUBAR 1
1145+
11271146
// Use wxNotificationMessage.
11281147
//
11291148
// wxNotificationMessage allows to show non-intrusive messages to the user
@@ -1547,7 +1566,6 @@
15471566
#define wxUSE_THEME_MONO 0
15481567
#define wxUSE_THEME_WIN32 0
15491568

1550-
15511569
/* --- end common options --- */
15521570

15531571
/* --- start MSW options --- */

platform/linux/wx/include/wx/anidecod.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ class WXDLLIMPEXP_CORE wxANIDecoder : public wxAnimationDecoder
5353
wxAnimationType GetType() const wxOVERRIDE
5454
{ return wxANIMATION_TYPE_ANI; }
5555

56-
private:
56+
protected:
5757
// wxAnimationDecoder pure virtual:
5858
virtual bool DoCanRead( wxInputStream& stream ) const wxOVERRIDE;
5959
// modifies current stream position (see wxAnimationDecoder::CanRead)
6060

61+
private:
6162
// frames stored as wxImage(s): ANI files are meant to be used mostly for animated
6263
// cursors and thus they do not use any optimization to encode differences between
6364
// two frames: they are just a list of images to display sequentially.

platform/linux/wx/include/wx/animate.h

Lines changed: 80 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,38 +21,63 @@
2121
#include "wx/bitmap.h"
2222

2323
class WXDLLIMPEXP_FWD_CORE wxAnimation;
24+
class wxAnimationImpl;
2425

2526
extern WXDLLIMPEXP_DATA_CORE(wxAnimation) wxNullAnimation;
2627
extern WXDLLIMPEXP_DATA_CORE(const char) wxAnimationCtrlNameStr[];
2728

29+
WX_DECLARE_LIST_WITH_DECL(wxAnimationDecoder, wxAnimationDecoderList, class WXDLLIMPEXP_CORE);
2830

2931
// ----------------------------------------------------------------------------
30-
// wxAnimationBase
32+
// wxAnimation
3133
// ----------------------------------------------------------------------------
3234

33-
class WXDLLIMPEXP_CORE wxAnimationBase : public wxObject
35+
class WXDLLIMPEXP_CORE wxAnimation : public wxObject
3436
{
3537
public:
36-
wxAnimationBase() {}
38+
wxAnimation();
39+
explicit wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY);
3740

38-
virtual bool IsOk() const = 0;
41+
#ifdef wxHAS_MEMBER_DEFAULT
42+
wxAnimation(const wxAnimation&) = default;
43+
wxAnimation& operator=(const wxAnimation&) = default;
44+
#endif
3945

40-
// can be -1
41-
virtual int GetDelay(unsigned int frame) const = 0;
46+
bool IsOk() const;
47+
bool IsCompatibleWith(wxClassInfo* ci) const;
4248

43-
virtual unsigned int GetFrameCount() const = 0;
44-
virtual wxImage GetFrame(unsigned int frame) const = 0;
45-
virtual wxSize GetSize() const = 0;
49+
int GetDelay(unsigned int frame) const;
50+
unsigned int GetFrameCount() const;
51+
wxImage GetFrame(unsigned int frame) const;
52+
wxSize GetSize() const;
4653

47-
virtual bool LoadFile(const wxString& name,
48-
wxAnimationType type = wxANIMATION_TYPE_ANY) = 0;
49-
virtual bool Load(wxInputStream& stream,
50-
wxAnimationType type = wxANIMATION_TYPE_ANY) = 0;
54+
bool LoadFile(const wxString& name, wxAnimationType type = wxANIMATION_TYPE_ANY);
55+
bool Load(wxInputStream& stream, wxAnimationType type = wxANIMATION_TYPE_ANY);
56+
57+
// Methods for managing the list of decoders
58+
static inline wxAnimationDecoderList& GetHandlers() { return sm_handlers; }
59+
static void AddHandler(wxAnimationDecoder *handler);
60+
static void InsertHandler(wxAnimationDecoder *handler);
61+
static const wxAnimationDecoder *FindHandler( wxAnimationType animType );
62+
63+
static void CleanUpHandlers();
64+
static void InitStandardHandlers();
5165

5266
protected:
53-
wxDECLARE_ABSTRACT_CLASS(wxAnimationBase);
54-
};
67+
wxAnimationImpl* GetImpl() const;
68+
69+
private:
70+
static wxAnimationDecoderList sm_handlers;
71+
72+
// Ctor used by wxAnimationCtrl::CreateAnimation() only.
73+
explicit wxAnimation(wxAnimationImpl* impl);
74+
75+
// Give it permission to create objects of this class using specific impl
76+
// and access our GetImpl().
77+
friend class wxAnimationCtrlBase;
5578

79+
wxDECLARE_DYNAMIC_CLASS(wxAnimation);
80+
};
5681

5782

5883
// ----------------------------------------------------------------------------
@@ -78,7 +103,7 @@ class WXDLLIMPEXP_CORE wxAnimationCtrlBase : public wxControl
78103
wxAnimationType type = wxANIMATION_TYPE_ANY) = 0;
79104

80105
virtual void SetAnimation(const wxAnimation &anim) = 0;
81-
virtual wxAnimation GetAnimation() const = 0;
106+
wxAnimation GetAnimation() const { return m_animation; }
82107

83108
virtual bool Play() = 0;
84109
virtual void Stop() = 0;
@@ -91,7 +116,23 @@ class WXDLLIMPEXP_CORE wxAnimationCtrlBase : public wxControl
91116
wxBitmap GetInactiveBitmap() const
92117
{ return m_bmpStatic; }
93118

119+
wxAnimation CreateAnimation() const
120+
{ return MakeAnimFromImpl(DoCreateAnimationImpl()); }
121+
94122
protected:
123+
virtual wxAnimationImpl* DoCreateAnimationImpl() const = 0;
124+
125+
// These methods allow derived classes access to private wxAnimation ctor
126+
// and wxAnimation::GetImpl(), respectively.
127+
static wxAnimation MakeAnimFromImpl(wxAnimationImpl* impl)
128+
{ return wxAnimation(impl); }
129+
130+
wxAnimationImpl* GetAnimImpl() const
131+
{ return m_animation.GetImpl(); }
132+
133+
// The associated animation, possibly invalid/empty.
134+
wxAnimation m_animation;
135+
95136
// the inactive bitmap as it was set by the user
96137
wxBitmap m_bmpStatic;
97138

@@ -104,9 +145,6 @@ class WXDLLIMPEXP_CORE wxAnimationCtrlBase : public wxControl
104145

105146
// called by SetInactiveBitmap
106147
virtual void DisplayStaticImage() = 0;
107-
108-
private:
109-
wxDECLARE_ABSTRACT_CLASS(wxAnimationCtrlBase);
110148
};
111149

112150

@@ -116,9 +154,31 @@ class WXDLLIMPEXP_CORE wxAnimationCtrlBase : public wxControl
116154

117155
#if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
118156
#include "wx/gtk/animate.h"
157+
158+
#define wxHAS_NATIVE_ANIMATIONCTRL
119159
#else
120160
#include "wx/generic/animate.h"
121-
#endif
161+
162+
class WXDLLIMPEXP_ADV wxAnimationCtrl : public wxGenericAnimationCtrl
163+
{
164+
public:
165+
wxAnimationCtrl()
166+
: wxGenericAnimationCtrl()
167+
{}
168+
wxAnimationCtrl(wxWindow *parent,
169+
wxWindowID id,
170+
const wxAnimation& anim = wxNullAnimation,
171+
const wxPoint& pos = wxDefaultPosition,
172+
const wxSize& size = wxDefaultSize,
173+
long style = wxAC_DEFAULT_STYLE,
174+
const wxString& name = wxASCII_STR(wxAnimationCtrlNameStr))
175+
: wxGenericAnimationCtrl(parent, id, anim, pos, size, style, name)
176+
{}
177+
178+
private:
179+
wxDECLARE_DYNAMIC_CLASS(wxAnimationCtrl);
180+
};
181+
#endif // defined(__WXGTK20__)
122182

123183
#endif // wxUSE_ANIMATIONCTRL
124184

platform/linux/wx/include/wx/any.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,10 @@ extern WXDLLIMPEXP_BASE bool wxAnyConvertString(const wxString& value,
504504
wxAnyValueBuffer& dst);
505505

506506
WX_ANY_DEFINE_CONVERTIBLE_TYPE_BASE(wxString, wxString, wxAnyConvertString)
507+
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
507508
WX_ANY_DEFINE_CONVERTIBLE_TYPE(const char*, ConstCharPtr,
508509
wxAnyConvertString, wxString)
510+
#endif
509511
WX_ANY_DEFINE_CONVERTIBLE_TYPE(const wchar_t*, ConstWchar_tPtr,
510512
wxAnyConvertString, wxString)
511513

@@ -757,11 +759,13 @@ class wxAny
757759
}
758760

759761
// These two constructors are needed to deal with string literals
762+
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
760763
wxAny(const char* value)
761764
{
762765
m_type = wxAnyValueTypeImpl<const char*>::sm_instance.get();
763766
wxAnyValueTypeImpl<const char*>::SetValue(value, m_buffer);
764767
}
768+
#endif
765769
wxAny(const wchar_t* value)
766770
{
767771
m_type = wxAnyValueTypeImpl<const wchar_t*>::sm_instance.get();
@@ -865,11 +869,13 @@ class wxAny
865869
#endif
866870

867871
// These two operators are needed to deal with string literals
872+
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
868873
wxAny& operator=(const char* value)
869874
{
870875
Assign(value);
871876
return *this;
872877
}
878+
#endif
873879
wxAny& operator=(const wchar_t* value)
874880
{
875881
Assign(value);
@@ -888,8 +894,10 @@ class wxAny
888894
return value == value2;
889895
}
890896

897+
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
891898
bool operator==(const char* value) const
892899
{ return (*this) == wxString(value); }
900+
#endif // wxNO_IMPLICIT_WXSTRING_ENCODING
893901
bool operator==(const wchar_t* value) const
894902
{ return (*this) == wxString(value); }
895903

@@ -1017,6 +1025,13 @@ class wxAny
10171025
#endif
10181026

10191027
private:
1028+
#ifdef wxNO_IMPLICIT_WXSTRING_ENCODING
1029+
wxAny(const char*); // Disabled
1030+
wxAny& operator=(const char *&value); // Disabled
1031+
wxAny& operator=(const char value[]); // Disabled
1032+
wxAny& operator==(const char *value); // Disabled
1033+
#endif
1034+
10201035
// Assignment functions
10211036
void AssignAny(const wxAny& any)
10221037
{

0 commit comments

Comments
 (0)