Vadim Zeitlin
f2b504977d
Always define SIZEOF_WCHAR_T if it's not defined under Windows.
...
The assumption that SIZEOF_EVERYTHING_ELSE is defined when SIZEOF_INT is is
wrong. While wxWidgets configure does define all SIZEOF_XXX at once,
SIZEOF_INT could also be defined in some third party headers (e.g. Python.h)
and we still need to define the other ones.
In particular, doing this fixes the problem with SIZEOF_WCHAR_T not being
defined during wxPython build.
Closes #12013 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 12:52:12 +00:00
Vadim Zeitlin
f16fad90b2
No changes, just added comments summarizing the use of style bits.
...
Add comments allowing to see more clearly the styles allocation.
Please make sure to amend them if you change any style values in the future.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-10 21:09:50 +00:00
Václav Slavík
142ae7b388
Don't include wx/msw/private.h from dynlib.h.
...
Because it's private header and introduces dependency on window.h.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-25 12:07:37 +00:00
Václav Slavík
fe42ab1d7b
Declare various WXH* handles compatibly with SDK.
...
It is no longer necessary to cast between e.g. HINSTANCE and
WXHINSTANCE, they are now declared as the same type (without including
Windows SDK header).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-25 12:07:30 +00:00
Vadim Zeitlin
d15946384a
Don't define wxADJUST_MINSIZE if it had been already defined.
...
Defining wxADJUST_MINSIZE as 0 may be a simple way to make the old code to
compile and while it works without WXWIN_COMPATIBILITY_2_8 it paradoxically
doesn't work with it because this results in errors when wxADJUST_MINSIZE is
defined as 0 by wx itself.
Avoid this problem by only defining wxADJUST_MINSIZE ourselves if it hadn't
been defined yet.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 20:52:59 +00:00
Václav Slavík
8d94819c43
Remove wxUSE_WCHAR_T checks.
...
wxWidgets requires wchar_t for some time now; wx/chartype.h has a check
to fail complation without it. Simplify code by removing now-dead code
for the !wxUSE_WCHAR_T case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-16 10:43:18 +00:00
Vadim Zeitlin
af7e24c33e
Make wxPORTRAIT and wxLANDSCAPE elements of wxPrintOrientation enum.
...
Change wxPrintData::SetOrientation() to take wxPrintOrientation instead of
int.
Closes #11393 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-08 16:35:47 +00:00
Vadim Zeitlin
ba0185b557
Add symbolic constant wxALIGN_INVALID and use it instead of -1 in wxGrid.
...
wxGridCellAttr was using literal -1 to indicate "no alignment" which wasn't
immediately obvious, use a new wxALIGN_INVALID (which has the same value)
instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-27 01:47:30 +00:00
Vadim Zeitlin
651548666a
Change wxLongLongFmtSpec to be a non-wide string.
...
As with other ANSI/Unicode unification changes, we choose to preserve
compatibility with the existing code using wxLongLongFmtSpec in ANSI build
and require people using it in Unicode build to change their code.
Closes #11372 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-05 14:59:55 +00:00
Vadim Zeitlin
2e61f76aac
Added wxICON_NONE to wxICON_MASK.
...
Absence of icon is also an icon flag.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-05 22:53:48 +00:00
Stefan Csomor
0fd61b1609
adding types for OpenGL on iPhone
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 17:45:21 +00:00
Vadim Zeitlin
d55906de77
Add A0 and A1 formats to wxPaperSize enumeration.
...
Closes #11083 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-24 21:42:11 +00:00
Vadim Zeitlin
fef6a2f1a0
No changes, just clarify a comment for WXK_XXX values.
...
Part of patch in #10268 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-23 21:39:42 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
58dcd1ae52
added wxLB_NO_SB style and implementation for wxMSW ( closes #10991 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 14:36:30 +00:00
Stefan Csomor
7af25c3a80
more iPhone types
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:31:57 +00:00
Vadim Zeitlin
ceceef4c05
don't include wx/msw/winundef.h when including wx/defs.h from C code ( closes #10910 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-28 17:32:20 +00:00
Vadim Zeitlin
7e3204b45c
added wxICON_NONE and implement support for it in wxGTK ( closes #2897 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-28 16:25:37 +00:00
Vadim Zeitlin
9c61c5b04b
introduce wxBG_STYLE_{ERASE,PAINT} and implement their documented semantics in wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-16 23:04:42 +00:00
Vadim Zeitlin
2352862a7e
preparation work for implementing images support in wxButton: move wxBitmapButton methods to the base class (enhancing/completing them in the process); there are no functionality changes yet (hopefully)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-14 22:55:24 +00:00
Vadim Zeitlin
7faab5c528
define _SCL_SECURE_NO_WARNINGS to avoid warnings about unsafe standard library functions (such as xsgetn() used in wx/stdstream.h) from VC8+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-06 23:10:19 +00:00
Vadim Zeitlin
febd3dcaf8
added wxUINTn_MAX constants; document them together with the existing wxINTn_MIN/MAX ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-02 13:43:32 +00:00
Vadim Zeitlin
3cd9070c78
Cygwin doesn't have std::wstring nor std::wostream
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-12 17:08:45 +00:00
Francesco Montorsi
c94bdf2a19
implement tooltips for wxStatusBar panes whose contents were ellipsized; introduce wxST_SHOW_TIPS and wxST_DEFAULT_STYLE styles
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-21 11:10:44 +00:00
Vadim Zeitlin
24a5629aed
define HAVE_SSIZE_T if we define ssize_t ourselves to prevent redefinitions in other libraries headers ( closes #10674 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-05 12:16:58 +00:00
Václav Slavík
6df09f32fd
added length to wx(Scoped)CharBuffer to improve handling of embedded NULs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 20:58:39 +00:00
Stefan Csomor
43c5b6e808
better native types for carbon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 10:20:11 +00:00
Vadim Zeitlin
657a8a3598
first round of debug/release merge: introduce wxDEBUG_LEVEL, for now defined as 1 if __WXDEBUG__ is defined, i.e. no real changes; don't use __WXDEBUG__ in the headers to keep debug and release builds ABI-compatible; add functions to customize or disable asserts handling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 23:36:37 +00:00
Vadim Zeitlin
993df0402c
made wx/debug.h C++ header again (reverting changes of r24896); simply don't include it from wx/defs.h when compiling C files which have no need for the stuff defined in it anyhow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 16:34:46 +00:00
Stefan Csomor
5f3c0120ed
adding more native definitions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-20 07:32:01 +00:00
Václav Slavík
862bb5c73a
renamed ATTRIBUTE_PRINTF to WX_ATTRIBUTE_PRINTF to avoid naming conflicts (e.g. with latest libxml2)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-11 07:51:38 +00:00
Vadim Zeitlin
021f9dee07
added wxDECLARE_NO_COPY_TEMPLATE_CLASS_2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 11:36:10 +00:00
Vadim Zeitlin
531cfed2d1
added wxDEPRECATED_BUT_USED_INTERNALLY_INLINE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 16:10:50 +00:00
Kevin Ollivier
a05e6efe61
Fix for deprecated constructor issues, setting a function without a body as inline doesn't work for Mac whether debug is set or not. Since it's a workaround for old versions of gcc, limit its use to those cases to avoid future problems.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-24 22:19:10 +00:00
Vadim Zeitlin
c0c133e13b
add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 11:45:59 +00:00
Robert Roebling
e47e063af2
Add wxSIZE_FORCE_EVENT and use is from wxSizerItem::SetDimension
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 20:10:44 +00:00
Francesco Montorsi
d29505ac70
fix typo (missing closing brackets); add some comments to wxKeyCode; no real change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 16:07:19 +00:00
Francesco Montorsi
99d8272073
document various enumerations defined in defs.h; give a name to the anonymous enum for the standard IDs; move wxKeyCode and wxKeyModifier enums in defs.h removing their dedicated pages of the manual
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-28 00:44:06 +00:00
Vadim Zeitlin
1483e5db8d
refactor WM_COMMAND messages handling in MDI frames to avoid duplicating code unnecessarily and generally streamline it; added possibility to use custom menu commands in the "Window" menu and specifying accelerators for them now works too (show this in the sample); finally added standard ids for the MDI window menu commands
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-27 16:47:41 +00:00
Stefan Csomor
9330ded5dd
adding NSPrintInfo support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-17 08:46:31 +00:00
Francesco Montorsi
89efaf2b65
change generic ints to enums in wxDC ( closes #9959 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 14:21:53 +00:00
Vadim Zeitlin
5c69ef61f3
fix some of icc 11.0 warnings and disable a few others
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-16 14:24:13 +00:00
Francesco Montorsi
0c14b6c324
fix the incoherence pointed out by ifacecheck between wx docs, that documents usage of the wxFontFamily, wxFontStyle and wxFontWeight enums in wxFont setters and getters, and the actual sources, which use 'int' instead; provided the same backward-compatibility pattern already used for wxBrush,wxPen both against 'int' overloads and against the wxDeprecatedGUIConstants enum values
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 17:02:25 +00:00
Vadim Zeitlin
4c1d5d5ae2
remove tests for bool and {const,static,reinterpret}_cast in configure and wx/defs.h, all supported compilers have them
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:16:09 +00:00
Vadim Zeitlin
a8db7a5fc1
disable VC6 warning C4284; put all warning disable pragmas together
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 09:13:16 +00:00
Vadim Zeitlin
75eec3adfb
still define wxADJUST_MINSIZE when WXWIN_COMPATIBILITY_2_8 is 1 because it was defined (even if as just 0) in 2.8
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 20:51:08 +00:00
Robert Roebling
4f47a8d0c6
Move definition of wxListIteratorFunction and ..SortFuntion to defs.h so it can be used from elsewhere
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 19:05:21 +00:00
Stefan Csomor
70bf329592
fixing deprecated constructors for osx
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 09:12:32 +00:00
Vadim Zeitlin
6ebd2716cf
document wxDELETE() and wxDELETEA()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 16:06:36 +00:00
Vadim Zeitlin
72513c369e
added wxCANCEL_DEFAULT style to wxMessageDialog (only implemented for MSW for now); also tightened up the style checks in wxMessageDialog::SetMessageDialogStyle() (argh, another forgotten file, should have been part of r55561)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 23:41:49 +00:00