Skip to content

Commit ccc4d1f

Browse files
updated master files
1 parent 996e844 commit ccc4d1f

Some content is hidden

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

44 files changed

+739
-482
lines changed

test/e2e/test_master/ObjectArxHeaders/accmd.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ struct AcEdCommandStruc
4545
AcEdCommand* cmd;
4646
};
4747
# pragma pack (pop)
48-
# if defined(__cplusplus)
49-
# include "dbmain.h"
50-
# include "rxobject.h"
48+
# include "dbmain.h"
49+
# include "rxobject.h"
5150
class AcRxDictionary;
5251
class AcEdUIContext;
5352
class AcEdCommandReactor;
54-
# pragma pack (push, 8)
53+
# pragma pack (push, 8)
5554
class AcEdCommand : public AcRxObject
5655
{
5756
public:
@@ -126,7 +125,7 @@ class AcEdCommandIterator : public AcRxObject
126125
virtual const AcEdCommand* command() const = 0;
127126
virtual const ACHAR* commandGroup() const = 0;
128127
};
129-
# define acedRegCmds AcEdCommandStack::cast(acrxSysRegistry()->at(ACRX_COMMAND_DOCK))
128+
# define acedRegCmds AcEdCommandStack::cast(acrxSysRegistry()->at(ACRX_COMMAND_DOCK))
130129
class AcEdCommandStack : public AcRxObject
131130
{
132131
public:
@@ -146,6 +145,5 @@ class AcEdCommandStack : public AcRxObject
146145
void addReactor(AcEdCommandStackReactor* pReactor);
147146
void removeReactor(AcEdCommandStackReactor* pReactor);
148147
};
149-
# pragma pack (pop)
150-
# endif
148+
# pragma pack (pop)
151149
#endif

test/e2e/test_master/ObjectArxHeaders/dbjig.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
//
1717
#ifndef _DBJIG_H_
1818
# define _DBJIG_H_ 1
19-
# if defined(__cplusplus)
20-
# include "AcCoreDefs.h"
21-
# include "dbdimdata.h"
22-
# pragma pack (push, 8)
19+
# include "AcCoreDefs.h"
20+
# include "dbdimdata.h"
21+
# pragma pack (push, 8)
2322
class AcEdImpJig;
2423
class AcDbEntity;
2524
class AcEdImpDragStyle;
@@ -182,6 +181,5 @@ class ACCORE_PORT AcEdDragStyle
182181
AcEdImpDragStyle* mpDraggedDragStyle;
183182
friend class AcEdImpDragStyle;
184183
};
185-
# pragma pack (pop)
186-
# endif
184+
# pragma pack (pop)
187185
#endif

test/e2e/test_master/wxWidgets/include/wx/android/setup.h

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,11 @@
666666
// Default is 1 on MSW
667667
//
668668
// Recommended setting: 1
669-
# define wxUSE_WEBVIEW_IE 0
669+
# ifdef __WXMSW__
670+
# define wxUSE_WEBVIEW_IE 1
671+
# else
672+
# define wxUSE_WEBVIEW_IE 0
673+
# endif
670674
// Use the Edge (Chromium) wxWebView backend (Requires WebView2 SDK)
671675
//
672676
// Default is 0 because WebView2 is not always available, set it to 1 if you do have it.
@@ -1075,7 +1079,11 @@
10751079
// long-running programs can run into problems with ids reuse without this. On
10761080
// the other platforms, where the ids have the full int range, this shouldn't
10771081
// be necessary.
1078-
# define wxUSE_AUTOID_MANAGEMENT 0
1082+
# ifdef __WXMSW__
1083+
# define wxUSE_AUTOID_MANAGEMENT 1
1084+
# else
1085+
# define wxUSE_AUTOID_MANAGEMENT 0
1086+
# endif
10791087
// ----------------------------------------------------------------------------
10801088
// common dialogs
10811089
// ----------------------------------------------------------------------------
@@ -1261,7 +1269,11 @@
12611269
// Default is 1 on MSW, 0 elsewhere.
12621270
//
12631271
// Recommended setting (at present): 1 (MSW-only)
1264-
# define wxUSE_ACCESSIBILITY 0
1272+
# ifdef __WXMSW__
1273+
# define wxUSE_ACCESSIBILITY 1
1274+
# else
1275+
# define wxUSE_ACCESSIBILITY 0
1276+
# endif
12651277
// ----------------------------------------------------------------------------
12661278
// miscellaneous settings
12671279
// ----------------------------------------------------------------------------

test/e2e/test_master/wxWidgets/include/wx/chartype.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ typedef wchar_t wxUChar;
117117
# ifndef wxUSE_UTF8_LOCALE_ONLY
118118
# define wxUSE_UTF8_LOCALE_ONLY 0
119119
# endif
120+
# ifndef wxUSE_UNICODE_UTF8
121+
# define wxUSE_UNICODE_UTF8 0
122+
# endif
120123
# if wxUSE_UNICODE_UTF8
121124
# define wxUSE_UNICODE_WCHAR 0
122125
# define wxUSE_UNICODE_WCHAR 1

test/e2e/test_master/wxWidgets/include/wx/chkconf.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@
241241
# define wxUSE_XML 0
242242
# endif
243243
# endif
244+
# ifndef wxUSE_STD_CONTAINERS_COMPATIBLY
245+
# ifdef wxABORT_ON_CONFIG_ERROR
246+
# else
247+
# define wxUSE_STD_CONTAINERS_COMPATIBLY 0
248+
# endif
249+
# endif
244250
# ifndef wxUSE_STD_STRING_CONV_IN_WXSTRING
245251
# ifdef wxABORT_ON_CONFIG_ERROR
246252
# else
@@ -1434,8 +1440,10 @@
14341440
define it in wx/setup_inc.h so don't complain if it happens to be
14351441
defined under another platform but just silently fix it.
14361442
*/
1437-
# undef wxUSE_MS_HTML_HELP
1438-
# define wxUSE_MS_HTML_HELP 0
1443+
# ifndef __WXMSW__
1444+
# undef wxUSE_MS_HTML_HELP
1445+
# define wxUSE_MS_HTML_HELP 0
1446+
# endif
14391447
# endif
14401448
# if wxUSE_WXHTML_HELP
14411449
# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL

test/e2e/test_master/wxWidgets/include/wx/containr.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,15 @@ class WXDLLIMPEXP_CORE wxControlContainerBase
8181
//
8282
// Returns true if we have any focusable children, false otherwise.
8383
bool UpdateCanFocusChildren();
84+
# ifdef __WXMSW__
8485
// This is not strictly related to navigation, but all windows containing
8586
// more than one children controls need to return from this method if any
8687
// of their parents has an inheritable background, so do this automatically
8788
// for all of them (another alternative could be to do it in wxWindow
8889
// itself but this would be potentially more backwards incompatible and
8990
// could conceivably break some custom windows).
91+
bool HasTransparentBackground() const;
92+
# endif
9093
protected:
9194
// set the focus to the child which had it the last time
9295
virtual bool SetFocusToChild();
@@ -216,6 +219,16 @@ class wxNavigationEnabled : public W
216219
{
217220
BaseWindowClass::SetFocus();
218221
}
222+
# ifdef __WXMSW__
223+
WXDLLIMPEXP_INLINE_CORE bool HasTransparentBackground() override
224+
{
225+
return m_container.HasTransparentBackground();
226+
}
227+
WXDLLIMPEXP_INLINE_CORE void WXSetPendingFocus(wxWindow* win) override
228+
{
229+
return m_container.SetLastFocus(win);
230+
}
231+
# endif
219232
# ifndef wxHAS_NATIVE_TAB_TRAVERSAL
220233
protected:
221234
void OnNavigationKey(wxNavigationKeyEvent& event)

test/e2e/test_master/wxWidgets/include/wx/cursor.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
# include "wx/gdicmn.h"
1414
// Under most ports, wxCursor derives directly from wxGDIObject, but in wxMSW
1515
// there is an intermediate wxGDIImage class.
16+
# ifdef __WXMSW__
17+
# include "wx/msw/gdiimage.h"
18+
# else
1619
typedef wxGDIObject wxGDIImage;
20+
# endif
1721
class WXDLLIMPEXP_CORE wxCursorBase : public wxGDIImage
1822
{
1923
public:

test/e2e/test_master/wxWidgets/include/wx/dc.h

Lines changed: 49 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -544,18 +544,17 @@ class WXDLLIMPEXP_CORE wxDCImpl : public wxObject
544544
{
545545
return m_contentScaleFactor;
546546
}
547+
# ifdef __WXMSW__
547548
// Native Windows functions using the underlying HDC don't honour GDI+
548549
// transformations which may be applied to it. Using this function we can
549550
// transform the coordinates manually before passing them to such functions
550551
// (as in e.g. wxRendererMSW code). It doesn't do anything if this is not a
551552
// wxGCDC.
552-
virtual wxRect MSWApplyGDIPlusTransform(const wxRect& r) const
553-
{
554-
return r;
555-
}
556-
#endif // __WXMSW__
557-
558-
553+
virtual wxRect MSWApplyGDIPlusTransform(const wxRect& r) const
554+
{
555+
return r;
556+
}
557+
# endif
559558
// ---------------------------------------------------------
560559
// the actual drawing API
561560
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col, wxFloodFillStyle style = wxFLOOD_SURFACE) = 0;
@@ -1363,62 +1362,57 @@ class WXDLLIMPEXP_CORE wxDC : public wxObject
13631362
}
13641363
# endif
13651364
// for compatibility with the old code when wxCoord was long everywhere
1366-
wxDEPRECATED( void GetTextExtent(const wxString& string,
1367-
long *x, long *y,
1368-
long *descent = NULL,
1369-
long *externalLeading = NULL,
1370-
const wxFont *theFont = NULL) const );
1371-
wxDEPRECATED( void GetLogicalOrigin(long *x, long *y) const );
1372-
wxDEPRECATED( void GetDeviceOrigin(long *x, long *y) const );
1373-
wxDEPRECATED( void GetClippingBox(long *x, long *y, long *w, long *h) const );
1374-
1375-
wxDEPRECATED( void DrawObject(wxDrawObject* drawobject) );
1376-
#endif // WXWIN_COMPATIBILITY_2_8
1377-
1378-
#ifdef __WXMSW__
1365+
# ifdef __WXMSW__
13791366
// GetHDC() is the simplest way to retrieve an HDC From a wxDC but only
13801367
// works if this wxDC is GDI-based and fails for GDI+ contexts (and
13811368
// anything else without HDC, e.g. wxPostScriptDC)
1382-
WXHDC GetHDC() const;
1383-
1369+
WXHDC GetHDC() const;
13841370
// don't use these methods manually, use GetTempHDC() instead
1385-
virtual WXHDC AcquireHDC() { return GetHDC(); }
1386-
virtual void ReleaseHDC(WXHDC WXUNUSED(hdc)) { }
1387-
1371+
virtual WXHDC AcquireHDC()
1372+
{
1373+
return GetHDC();
1374+
}
1375+
virtual void ReleaseHDC(WXHDC)
1376+
{
1377+
}
13881378
// helper class holding the result of GetTempHDC() with std::auto_ptr<>-like
13891379
// semantics, i.e. it is moved when copied
1390-
class TempHDC
1380+
class TempHDC
1381+
{
1382+
public:
1383+
TempHDC(wxDC& dc)
1384+
: m_dc(dc)
1385+
, m_hdc(dc.AcquireHDC())
13911386
{
1392-
public:
1393-
TempHDC(wxDC& dc)
1394-
: m_dc(dc),
1395-
m_hdc(dc.AcquireHDC())
1396-
{
1397-
}
1398-
1399-
TempHDC(const TempHDC& thdc)
1400-
: m_dc(thdc.m_dc),
1401-
m_hdc(thdc.m_hdc)
1402-
{
1403-
const_cast<TempHDC&>(thdc).m_hdc = NULL;
1404-
}
1405-
1406-
~TempHDC()
1407-
{
1408-
if ( m_hdc )
1409-
m_dc.ReleaseHDC(m_hdc);
1410-
}
1411-
1412-
WXHDC GetHDC() const { return m_hdc; }
1413-
1414-
private:
1415-
wxDC& m_dc;
1416-
WXHDC m_hdc;
1417-
1418-
wxDECLARE_NO_ASSIGN_CLASS(TempHDC);
1419-
};
1420-
1387+
}
1388+
TempHDC(const TempHDC& thdc)
1389+
: m_dc(thdc.m_dc)
1390+
, m_hdc(thdc.m_hdc)
1391+
{
1392+
const_cast<TempHDC&>(thdc).m_hdc = NULL;
1393+
}
1394+
~TempHDC()
1395+
{
1396+
if (m_hdc)
1397+
{
1398+
m_dc.ReleaseHDC(m_hdc);
1399+
}
1400+
}
1401+
WXHDC GetHDC() const
1402+
{
1403+
return m_hdc;
1404+
}
1405+
private:
1406+
wxDC& m_dc;
1407+
WXHDC m_hdc;
1408+
wxDECLARE_NO_ASSIGN_CLASS(TempHDC);
1409+
};
14211410
// GetTempHDC() also works for wxGCDC (but still not for wxPostScriptDC &c)
1411+
TempHDC GetTempHDC()
1412+
{
1413+
return TempHDC(*this);
1414+
}
1415+
# endif
14221416
# if wxUSE_GRAPHICS_CONTEXT
14231417
virtual wxGraphicsContext* GetGraphicsContext() const
14241418
{

test/e2e/test_master/wxWidgets/include/wx/dcgraph.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ class WXDLLIMPEXP_CORE wxGCDC : public wxDC
2828
wxGCDC(wxGraphicsContext* context);
2929
wxGCDC();
3030
virtual ~wxGCDC();
31+
# ifdef __WXMSW__
3132
// override wxDC virtual functions to provide access to HDC associated with
3233
// this Graphics object (implemented in src/msw/graphics.cpp)
34+
WXHDC AcquireHDC() override;
35+
void ReleaseHDC(WXHDC hdc) override;
36+
# endif
3337
private:
3438
wxDECLARE_DYNAMIC_CLASS(wxGCDC);
3539
wxDECLARE_NO_COPY_CLASS(wxGCDC);
@@ -127,6 +131,9 @@ class WXDLLIMPEXP_CORE wxGCDCImpl : public wxDCImpl
127131
bool DoGetClippingRect(wxRect& rect) const override;
128132
void DoGetTextExtent(const wxString& string, wxCoord* x, wxCoord* y, wxCoord* descent = NULL, wxCoord* externalLeading = NULL, const wxFont* theFont = NULL) const override;
129133
bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const override;
134+
# ifdef __WXMSW__
135+
wxRect MSWApplyGDIPlusTransform(const wxRect& r) const override;
136+
# endif
130137
// update the internal clip box variables
131138
void UpdateClipBox();
132139
protected:

test/e2e/test_master/wxWidgets/include/wx/defs.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,14 +2378,8 @@ old C struct with the same name. Unfortunately, because the compiler
23782378
does not see a struct as an Objective-C class we cannot declare it
23792379
as a struct in Objective-C(++) mode.
23802380
*/
2381-
# if defined(__OBJC__)
2382-
# define DECLARE_WXCOCOA_OBJC_CLASS(klass) \
2383-
@class klass; \
2384-
typedef klass *WX_##klass
2385-
# else
2386-
# define DECLARE_WXCOCOA_OBJC_CLASS(klass) \
2381+
# define DECLARE_WXCOCOA_OBJC_CLASS(klass) \
23872382
typedef struct klass *WX_##klass
2388-
# endif
23892383
# else
23902384
/* NOTE: typedef struct objc_object *id; */
23912385
/* IOW, we're declaring these using the id type without using that name, */
@@ -2516,6 +2510,9 @@ typedef void* WXHTREEITEM;
25162510
typedef void* WXDRAWITEMSTRUCT;
25172511
typedef void* WXMEASUREITEMSTRUCT;
25182512
typedef void* WXLPCREATESTRUCT;
2513+
# ifdef __WXMSW__
2514+
typedef WXHWND WXWidget;
2515+
# endif
25192516
# ifdef __WIN64__
25202517
typedef wxUint64 WXWPARAM;
25212518
typedef wxInt64 WXLPARAM;

0 commit comments

Comments
 (0)