]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoVC6 compilation fix for the grid sample.
Vadim Zeitlin [Sat, 30 Jun 2012 23:41:30 +0000 (23:41 +0000)] 
VC6 compilation fix for the grid sample.

Use Connect() instead of Bind() which is not available for VC6.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake wxBookCtrlBase::GetPage() virtual to fix it for wxAuiNotebook.
Vadim Zeitlin [Sat, 30 Jun 2012 23:41:27 +0000 (23:41 +0000)] 
Make wxBookCtrlBase::GetPage() virtual to fix it for wxAuiNotebook.

wxAuiNotebook doesn't store its page in the base class m_pages array, so
calling GetPage() on it via a wxBookCtrl pointer resulted in a crash.

Make GetPage() virtual to allow overriding it at wxAuiNotebook level.

Closes #13768.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd skeleton documentation for wxAuiNotebook-related classes.
Vadim Zeitlin [Sat, 30 Jun 2012 23:41:23 +0000 (23:41 +0000)] 
Add skeleton documentation for wxAuiNotebook-related classes.

Closes #14386.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoImplement hatched/stippled pens/brushes in wxGraphicsContext for Cairo.
Vadim Zeitlin [Sat, 30 Jun 2012 23:41:18 +0000 (23:41 +0000)] 
Implement hatched/stippled pens/brushes in wxGraphicsContext for Cairo.

Refactor the pen/brushes classes to introduce a common base class for them
containing their colour and hatch pattern and stipple bitmap, if any.

And actually create the hatched pattern and use it.

Closes #11981.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded internal wxHatchStyle enum.
Vadim Zeitlin [Sat, 30 Jun 2012 23:41:15 +0000 (23:41 +0000)] 
Added internal wxHatchStyle enum.

It's annoying that the same code for hatched pens and brushes can't be reused
without relying on deprecated wxXXX_HATCH constants, so add new,
non-deprecated, wxHatchStyle enum that can be used in such code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoOnly disable generation of dependencies if more than one architecture is being built.
Robin Dunn [Sat, 30 Jun 2012 20:59:51 +0000 (20:59 +0000)] 
Only disable generation of dependencies if more than one architecture is being built.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMove a couple standard virtuals to protected sections so they can be overridden in...
Robin Dunn [Sat, 30 Jun 2012 20:59:46 +0000 (20:59 +0000)] 
Move a couple standard virtuals to protected sections so they can be overridden in derived classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInterface fix for Phoenix
Robin Dunn [Sat, 30 Jun 2012 20:59:39 +0000 (20:59 +0000)] 
Interface fix for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosupport for GTK3
Paul Cornett [Sat, 30 Jun 2012 20:39:06 +0000 (20:39 +0000)] 
support for GTK3

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoForce wide char environment version initialization in wxGetEnvMap().
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:40 +0000 (16:33 +0000)] 
Force wide char environment version initialization in wxGetEnvMap().

When using MSVC CRT, the wide character version of the environment is not
always initialized when using main() (and not _wmain()) as entry point, so
force initializing it before using _tenviron.

Closes #14231.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd a unit test verifying that wxSpinCtrl ctor doesn't generate any events.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:36 +0000 (16:33 +0000)] 
Add a unit test verifying that wxSpinCtrl ctor doesn't generate any events.

This shouldn't happen but did (and apparently still does, sometimes) under MSW
so add a test verifying that no events are generated by the ctor.

See #14428.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse wxString::t_str(), not fn_str(), with Windows API functions.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:32 +0000 (16:33 +0000)] 
Use wxString::t_str(), not fn_str(), with Windows API functions.

fn_str() is supposed to be used with the CRT functions taking file names only,
not Windows API functions that always take LPCTSTR with all compilers/CRT
versions.

Closes #14433.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDefine wxEntry() with WinMain-compatible signature for all Windows ports.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:28 +0000 (16:33 +0000)] 
Define wxEntry() with WinMain-compatible signature for all Windows ports.

Make wxEntry(HINSTANCE, ...) available in wxGTK under Windows too.

Refactor the headers to allow this and extract Windows-specific wxEntry()
declarations in wx/msw/init.h from wx/msw/app.h for consistency with the
normal wxEntry(int, char**) declared in wx/init.h.

Closes #14423.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse bitmaps from resources by default in wxGTK under Windows.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:23 +0000 (16:33 +0000)] 
Use bitmaps from resources by default in wxGTK under Windows.

Use wxBITMAP_TYPE_{BMP,CUR,ICON}_RESOURCE by default under Windows, even for
non-wxMSW ports.

Also allow loading wxImage from resources in all ports under MSW as a side
effect of this change.

Closes #14425.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxRibbonBar::DeletePage() and ClearPages() methods.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:18 +0000 (16:33 +0000)] 
Add wxRibbonBar::DeletePage() and ClearPages() methods.

Also add a trivial GetPageCount() helper.

Closes #14437.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate debugging macros overview in the docs.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:14 +0000 (16:33 +0000)] 
Update debugging macros overview in the docs.

Describe how the debugging macros really work since 2.9.1, i.e. explain
wxDEBUG_LEVEL and NDEBUG instead of __WXDEBUG__.

Closes #14435.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCreate wxStaticBoxSizer elements as children of wxStaticBox in XRC.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:10 +0000 (16:33 +0000)] 
Create wxStaticBoxSizer elements as children of wxStaticBox in XRC.

As we now recommend creating the controls shown inside wxStaticBox as its
children, and not siblings, follow our own recommendation by doing just this
in XRC handler of wxStaticBoxSizer.

Also add a test of using a tooltip with a wxStaticBoxSizer element to the XRC
demo showing that tooltips do work now for them, unlike before.

Closes #14431.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't hard code horizontal border for wxStaticBox in wxGTK.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:07 +0000 (16:33 +0000)] 
Don't hard code horizontal border for wxStaticBox in wxGTK.

Compute the border width from the average character width instead of hard
coding it to 5 pixels. Probably doesn't make much difference in practice, but
seems to make more sense.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix vertical offset for wxGTK wxStaticBox without label.
Vadim Zeitlin [Sat, 30 Jun 2012 16:33:04 +0000 (16:33 +0000)] 
Fix vertical offset for wxGTK wxStaticBox without label.

Don't use different size for the vertical border in wxStaticBox just because
it doesn't have any label, this just doesn't seem necessary and results in
different appearance for the static box with and without label.

Closes #14430.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix generation of wxEVT_CHAR in wxMSW wxComboBox.
Vadim Zeitlin [Fri, 29 Jun 2012 23:55:54 +0000 (23:55 +0000)] 
Fix generation of wxEVT_CHAR in wxMSW wxComboBox.

wxEVT_CHAR shouldn't be generated at all if wxEVT_KEY_DOWN was handled but it
still was for wxComboBox because the code in its MSW implementation directly
called HandleKeyDown() and HandleChar() methods, bypassing the logic dealing
with m_lastKeyDownProcessed at wxWindow level.

Fix this by calling MSWHandleMessage() instead to ensure that WM_CHAR after a
handled WM_KEYDOWN are ignored as they ought to.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxUSE_COMPILER_TLS to OpenVMS setup file
Jouk Jansen [Fri, 29 Jun 2012 06:44:00 +0000 (06:44 +0000)] 
Add wxUSE_COMPILER_TLS to OpenVMS setup file

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agounconditionally include coretext-replacement function when having a deployment target...
Stefan Csomor [Thu, 28 Jun 2012 12:11:50 +0000 (12:11 +0000)] 
unconditionally include coretext-replacement function when having a deployment target of 10.5

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix off by 1 error in wxHTML font size from points calculation.
Vadim Zeitlin [Thu, 28 Jun 2012 11:58:55 +0000 (11:58 +0000)] 
Fix off by 1 error in wxHTML font size from points calculation.

m_FontSize is in 1..7 range, not 0..6, so add 1 to it when setting it from the
index into m_FontsSizes array.

Also update the comment explaining the valid range of m_FontsSize.

Closes #14442.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInterface fix for Phoenix
Robin Dunn [Thu, 28 Jun 2012 06:55:54 +0000 (06:55 +0000)] 
Interface fix for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't hide the m_mm_to_pix_x and m_mm_to_pix_y in the base class by redefining them...
Robin Dunn [Tue, 26 Jun 2012 18:25:29 +0000 (18:25 +0000)] 
Don't hide the m_mm_to_pix_x and m_mm_to_pix_y in the base class by redefining them in a derived class.  Fixes #14399.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd missing parent classes
Robin Dunn [Tue, 26 Jun 2012 02:01:09 +0000 (02:01 +0000)] 
Add missing parent classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadding new API needed for screenshots as old method stopped working in 10.7
Stefan Csomor [Mon, 25 Jun 2012 15:23:50 +0000 (15:23 +0000)] 
adding new API needed for screenshots as old method stopped working in 10.7

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix for page break problem: fixes #14429
Julian Smart [Mon, 25 Jun 2012 08:02:32 +0000 (08:02 +0000)] 
Fix for page break problem: fixes #14429

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoupdate size hints when decoration size becomes known, and preserve size hint increments
Paul Cornett [Sun, 24 Jun 2012 16:18:28 +0000 (16:18 +0000)] 
update size hints when decoration size becomes known, and preserve size hint increments

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoimplement wxCairoContext::GetPartialTextExtents for wxGTK
Paul Cornett [Sun, 24 Jun 2012 06:33:07 +0000 (06:33 +0000)] 
implement wxCairoContext::GetPartialTextExtents for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoClarify wxFileOffset description a bit.
Vadim Zeitlin [Sat, 23 Jun 2012 12:27:14 +0000 (12:27 +0000)] 
Clarify wxFileOffset description a bit.

It wasn't clear how wxFileOffset was defined under Windows without
wxHAS_HUGE_FILES.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoproperly handle stupidly small maximum size hints
Paul Cornett [Sat, 23 Jun 2012 03:33:08 +0000 (03:33 +0000)] 
properly handle stupidly small maximum size hints

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd simple document for wxGUIEventLoop
Robin Dunn [Sat, 23 Jun 2012 00:44:14 +0000 (00:44 +0000)] 
Add simple document for wxGUIEventLoop

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofix SetSizeHints when wxDefaultSize is given for min or max size
Paul Cornett [Fri, 22 Jun 2012 06:41:56 +0000 (06:41 +0000)] 
fix SetSizeHints when wxDefaultSize is given for min or max size

GTK does unexpected things if both min and max size are not explicitly set

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFixed #14429: Printing a large table in wxRichTextCtrl fails
Julian Smart [Thu, 21 Jun 2012 20:12:44 +0000 (20:12 +0000)] 
Fixed #14429: Printing a large table in wxRichTextCtrl fails

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoPrevent index access error
Julian Smart [Thu, 21 Jun 2012 19:12:04 +0000 (19:12 +0000)] 
Prevent index access error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCompilation fix
Julian Smart [Thu, 21 Jun 2012 18:39:34 +0000 (18:39 +0000)] 
Compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't call gtk_window_set_geometry_hints() if there are no hints to set.
Vadim Zeitlin [Thu, 21 Jun 2012 13:19:30 +0000 (13:19 +0000)] 
Don't call gtk_window_set_geometry_hints() if there are no hints to set.

Calling gtk_window_set_geometry_hints() with the hints mask of 0 doesn't work
correctly and sets the window size to the smallest possible. Avoid this by
simply not calling this function at all if there is nothing to do.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd MSVS autoexp.dat fragment for some common wxWidgets types.
Vadim Zeitlin [Wed, 20 Jun 2012 18:24:22 +0000 (18:24 +0000)] 
Add MSVS autoexp.dat fragment for some common wxWidgets types.

As we have gdb pretty printers under the version control, it makes sense to
also put MSVS visualizers there as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse wx/msw/winundef.h for wxGTK under Windows too.
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:53 +0000 (17:54 +0000)] 
Use wx/msw/winundef.h for wxGTK under Windows too.

Avoid clashes due to <windows.h> definitions in wxGTK too.

Closes #14427.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo real changes, just simplify wxGDIPlusContext::GetTextExtent() a bit.
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:49 +0000 (17:54 +0000)] 
No real changes, just simplify wxGDIPlusContext::GetTextExtent() a bit.

Don't call Font::GetSize() and FontFamily::GetEmHeight() thrice, just do it
once and store the results. This makes the code both simpler and shorter and
marginally more efficient.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix text extent computation in wxMSW wxGraphicsContext.
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:46 +0000 (17:54 +0000)] 
Fix text extent computation in wxMSW wxGraphicsContext.

The results were incorrect for italic or bold fonts as we hardcoded
FontStyleRegular instead of using the real font style.

Closes #14421.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd missing c_str() and similar calls to samples in STL build.
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:42 +0000 (17:54 +0000)] 
Add missing c_str() and similar calls to samples in STL build.

Don't rely on implicit conversion of wxString to char*/wxChar*, it doesn't
exist in STL build. Add explicit c_str(), wc_str() or t_str() calls.

Closes #14420.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse C, not C++, comments in wx/gtk/chkconf.h.
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:38 +0000 (17:54 +0000)] 
Use C, not C++, comments in wx/gtk/chkconf.h.

Remove C++ comments added in r71796.

See #14412.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInterface tweaks for Phoenix
Robin Dunn [Wed, 20 Jun 2012 17:10:23 +0000 (17:10 +0000)] 
Interface tweaks for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agomake sure native font exists, before asking about fixed width
Stefan Csomor [Wed, 20 Jun 2012 10:34:30 +0000 (10:34 +0000)] 
make sure native font exists, before asking about fixed width

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agousing UTType constants wherever possible to avoid typos, checking for failed conversi...
Stefan Csomor [Wed, 20 Jun 2012 07:16:03 +0000 (07:16 +0000)] 
using UTType constants wherever possible to avoid typos, checking for failed conversions, leveraging native conversion of types, fixes #13442

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosupporting promised file urls for transfer, see #14281
Stefan Csomor [Mon, 18 Jun 2012 20:27:35 +0000 (20:27 +0000)] 
supporting promised file urls for transfer, see #14281

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFixed #14417: wxRichTextCtrl crashes on LoadFile
Julian Smart [Mon, 18 Jun 2012 18:45:30 +0000 (18:45 +0000)] 
Fixed #14417: wxRichTextCtrl crashes on LoadFile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agobuild fix for wxUSE_STL==1
Paul Cornett [Mon, 18 Jun 2012 16:11:36 +0000 (16:11 +0000)] 
build fix for wxUSE_STL==1

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosupporting promised file urls for transfer, see #14281
Stefan Csomor [Mon, 18 Jun 2012 15:13:53 +0000 (15:13 +0000)] 
supporting promised file urls for transfer, see #14281

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInterface fixes for Phoenix
Robin Dunn [Mon, 18 Jun 2012 02:14:07 +0000 (02:14 +0000)] 
Interface fixes for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFixes for building wxGTK under Cygwin.
Vadim Zeitlin [Sun, 17 Jun 2012 21:35:14 +0000 (21:35 +0000)] 
Fixes for building wxGTK under Cygwin.

Test for __WXMSW__ instead of __CYGWIN__ to not affect building non-MSW ports
such as wxGTK under Cygwin.

See #14382.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDisable creation of wxDIB from wxBitmap in non-wxMSW ports.
Vadim Zeitlin [Sun, 17 Jun 2012 21:35:10 +0000 (21:35 +0000)] 
Disable creation of wxDIB from wxBitmap in non-wxMSW ports.

wxDIB can now be used with wxGTK under Windows, i.e. when not using wxMSW
version of wxBitmap but it can't be created from wxBitmap then as it doesn't
have a corresponding HBITMAP.

Simply disable this functionality when not using wxMSW.

Closes #14414.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMove wxBell() from base to core library.
Vadim Zeitlin [Sun, 17 Jun 2012 21:35:06 +0000 (21:35 +0000)] 
Move wxBell() from base to core library.

This allows to get rid of ugly preprocessor checks due to the fact that this
function could be defined in one or the other library depending on the port
used and also fix a problem with it being defined differently in the base
library depending on which GUI port (Carbon or Cocoa) was used under OS X.
It also fixes the problem with wxBell() in wxGTK under Windows.

Closes #14406.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDisable options that don't work with wxGTK in wx/chkconf.h.
Vadim Zeitlin [Sun, 17 Jun 2012 21:35:01 +0000 (21:35 +0000)] 
Disable options that don't work with wxGTK in wx/chkconf.h.

When building wxGTK under Windows, some MSW-specific options can be defined
but can't be implemented when using GTK, forcefully disable them.

Also a few others that could be implemented but that don't work currently.

Finally, forcefully enable Cairo support as wxGTK always needs it.

Closes #14412.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDefine wxGTK GTK version symbols in GTK-specific setup.h.
Vadim Zeitlin [Sun, 17 Jun 2012 21:34:57 +0000 (21:34 +0000)] 
Define wxGTK GTK version symbols in GTK-specific setup.h.

When not using configure __WXGTKxxx__ symbols should still be defined, assume
we use a recent GTK 2.x version and define all of them.

Closes #14411.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't use Unix-specific wxGTK utility functions under non-Unix.
Vadim Zeitlin [Sun, 17 Jun 2012 21:34:54 +0000 (21:34 +0000)] 
Don't use Unix-specific wxGTK utility functions under non-Unix.

Unix-specific functions shouldn't be used under Windows, add "#ifdef __UNIX__"
guards around them.

Closes #14410.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoProvide wxGetKeyState() studfor wxGTK under Windows.
Vadim Zeitlin [Sun, 17 Jun 2012 21:34:50 +0000 (21:34 +0000)] 
Provide wxGetKeyState() studfor wxGTK under Windows.

Under Unix this function is implemented in X11-specific code, so provide a
stub under Windows to at least avoid link errors.

Closes #14409.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxUSE_COMPILER_TLS to allow disabling compiler TLS support.
Vadim Zeitlin [Sun, 17 Jun 2012 21:34:47 +0000 (21:34 +0000)] 
Add wxUSE_COMPILER_TLS to allow disabling compiler TLS support.

Compiler TLS support is broken under Win32/MSVC when used for a code which is
part of a dynamically loaded DLL, so allow disabling it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoupdate version check for glib 2.32
Paul Cornett [Sun, 17 Jun 2012 17:08:35 +0000 (17:08 +0000)] 
update version check for glib 2.32

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo real changes, just use wxSize::Get{Width,Height} and not Get{X,Y}.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:27 +0000 (23:23 +0000)] 
No real changes, just use wxSize::Get{Width,Height} and not Get{X,Y}.

Use more readable accessors in wxGrid code to avoid confusion between wxGrid
(x, y) coordinates and wxSize (x, y) fields.

Closes #14347.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove unnecessary base class OnPaint() call from wxGenericColourDialog.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:23 +0000 (23:23 +0000)] 
Remove unnecessary base class OnPaint() call from wxGenericColourDialog.

Events should be skipped instead of calling the base class event handler
directly, but in this case even this is not needed as wxGenericColourDialog
takes care of processing the event completely.

Closes #14405.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove left over conflict markers from documentation.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:20 +0000 (23:23 +0000)] 
Remove left over conflict markers from documentation.

Closes #14404.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix compilation of MSW wxFSVolume with non-wxMSW ports.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:16 +0000 (23:23 +0000)] 
Fix compilation of MSW wxFSVolume with non-wxMSW ports.

There is no way to construct wxIcon from HICON when not using wxMSW, just
leave it unimplemented for non-wxMSW ports.

Closes #14402.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix harmless MSVC warning about converting pointer to bool.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:14 +0000 (23:23 +0000)] 
Fix harmless MSVC warning about converting pointer to bool.

Compare the pointer with NULL explicitly to avoid "forcing value to bool"
warning C4800 from MSVC in richtext code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoOnly use Unix sockets API under Unix in wxGTK.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:11 +0000 (23:23 +0000)] 
Only use Unix sockets API under Unix in wxGTK.

wxGTK can now be used under Windows where Unix sockets are not available, add
a __UNIX__ preprocessor check.

Closes #14407.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agotrying to improve appearance of gridcelltexteditor under OSX, see #14042
Stefan Csomor [Fri, 15 Jun 2012 17:48:29 +0000 (17:48 +0000)] 
trying to improve appearance of gridcelltexteditor under OSX, see #14042

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoavoid idling in native file dialogs
Stefan Csomor [Fri, 15 Jun 2012 16:57:27 +0000 (16:57 +0000)] 
avoid idling in native file dialogs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agobetter naming wxCFEventLoopPauseIdleEvents
Stefan Csomor [Fri, 15 Jun 2012 16:24:09 +0000 (16:24 +0000)] 
better naming wxCFEventLoopPauseIdleEvents

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agousing suppression of idle processing (delayed destruction happened too early eg when...
Stefan Csomor [Fri, 15 Jun 2012 00:04:50 +0000 (00:04 +0000)] 
using suppression of idle processing (delayed destruction happened too early eg when showing native message boxes)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agooffer suppression of idle processing (delayed destruction happened too early eg when...
Stefan Csomor [Fri, 15 Jun 2012 00:03:51 +0000 (00:03 +0000)] 
offer suppression of idle processing (delayed destruction happened too early eg when showing native message boxes)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosetting debug level explicitly
Stefan Csomor [Thu, 14 Jun 2012 23:21:57 +0000 (23:21 +0000)] 
setting debug level explicitly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agocleanup for 10.5 minimum
Stefan Csomor [Thu, 14 Jun 2012 22:29:07 +0000 (22:29 +0000)] 
cleanup for 10.5 minimum

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoclang analyzer support specific for OSX
Stefan Csomor [Thu, 14 Jun 2012 22:02:06 +0000 (22:02 +0000)] 
clang analyzer support specific for OSX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFixedWith support through CoreText
Stefan Csomor [Thu, 14 Jun 2012 21:55:28 +0000 (21:55 +0000)] 
FixedWith support through CoreText

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agousing CoreText under iOS
Stefan Csomor [Thu, 14 Jun 2012 21:53:06 +0000 (21:53 +0000)] 
using CoreText under iOS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoguarding agains NULL
Stefan Csomor [Thu, 14 Jun 2012 21:51:19 +0000 (21:51 +0000)] 
guarding agains NULL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoguard XTI
Stefan Csomor [Thu, 14 Jun 2012 21:47:52 +0000 (21:47 +0000)] 
guard XTI

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCoreText font enumeration support for iOS
Stefan Csomor [Thu, 14 Jun 2012 21:46:34 +0000 (21:46 +0000)] 
CoreText font enumeration support for iOS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCoreText support for iOS
Stefan Csomor [Thu, 14 Jun 2012 21:43:42 +0000 (21:43 +0000)] 
CoreText support for iOS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofixing analyzer warning
Stefan Csomor [Thu, 14 Jun 2012 21:40:12 +0000 (21:40 +0000)] 
fixing analyzer warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremoving superfluous 10.5 checks
Stefan Csomor [Thu, 14 Jun 2012 21:37:08 +0000 (21:37 +0000)] 
removing superfluous 10.5 checks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoas we always have CoreText available under 10.5+, we can properly determine fixed...
Stefan Csomor [Thu, 14 Jun 2012 19:11:52 +0000 (19:11 +0000)] 
as we always have CoreText available under 10.5+, we can properly determine fixed widths fonts, also use latest CoreText API if available

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremoving attribute, as assert is not guaranteed not to return, but may just go on
Stefan Csomor [Thu, 14 Jun 2012 15:07:14 +0000 (15:07 +0000)] 
removing attribute, as assert is not guaranteed not to return, but may just go on

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agousing WX_ATTRIBUTE_NORETURN for asserts
Stefan Csomor [Wed, 13 Jun 2012 23:33:52 +0000 (23:33 +0000)] 
using WX_ATTRIBUTE_NORETURN for asserts

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadding WX_ATTRIBUTE_NORETURN support (for functions like assert, exit etc. that may...
Stefan Csomor [Wed, 13 Jun 2012 23:33:00 +0000 (23:33 +0000)] 
adding WX_ATTRIBUTE_NORETURN support (for functions like assert, exit etc. that may not return)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agominor doc tweak
Robin Dunn [Wed, 13 Jun 2012 23:20:20 +0000 (23:20 +0000)] 
minor doc tweak

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix for compilo on non-PCH builds
Robin Dunn [Wed, 13 Jun 2012 23:20:14 +0000 (23:20 +0000)] 
Fix for compilo on non-PCH builds

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAllow the doxygen command to be used to be specified in the environment
Robin Dunn [Wed, 13 Jun 2012 23:20:08 +0000 (23:20 +0000)] 
Allow the doxygen command to be used to be specified in the environment

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoupdate comment about SDKs
Robin Dunn [Wed, 13 Jun 2012 23:20:02 +0000 (23:20 +0000)] 
update comment about SDKs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agousing native cocoa method for determining main window, fixes #14287
Stefan Csomor [Wed, 13 Jun 2012 22:53:27 +0000 (22:53 +0000)] 
using native cocoa method for determining main window, fixes #14287

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoexposing mainWindow for C++
Stefan Csomor [Wed, 13 Jun 2012 22:32:07 +0000 (22:32 +0000)] 
exposing mainWindow for C++

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoindicating the memory ownership of our c-method for the clang analyzer
Stefan Csomor [Wed, 13 Jun 2012 18:43:37 +0000 (18:43 +0000)] 
indicating the memory ownership of our c-method for the clang analyzer

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosupporting clang memory management annotations
Stefan Csomor [Wed, 13 Jun 2012 18:42:51 +0000 (18:42 +0000)] 
supporting clang memory management annotations

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadding explanation for osx and fixing typo
Stefan Csomor [Wed, 13 Jun 2012 17:55:19 +0000 (17:55 +0000)] 
adding explanation for osx and fixing typo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoproper init
Stefan Csomor [Wed, 13 Jun 2012 17:38:28 +0000 (17:38 +0000)] 
proper init

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agohaving ONE set of raster-ops starting from 10.5
Stefan Csomor [Wed, 13 Jun 2012 17:13:05 +0000 (17:13 +0000)] 
having ONE set of raster-ops starting from 10.5

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofixing mem leak
Stefan Csomor [Wed, 13 Jun 2012 16:43:07 +0000 (16:43 +0000)] 
fixing mem leak

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoproper braces avoiding potential dangling else resulting from expansion
Stefan Csomor [Wed, 13 Jun 2012 16:42:08 +0000 (16:42 +0000)] 
proper braces avoiding potential dangling else resulting from expansion

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775