]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
15 years agoUse portable comparison syntax in wx-config.
Vadim Zeitlin [Mon, 19 Oct 2009 09:17:39 +0000 (09:17 +0000)] 
Use portable comparison syntax in wx-config.

"==" is not portable in test and while it works in most shells, it fails in
dash. Fix it by using "=".

Closes #11349.

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

15 years agoDefine COMPILER_PREFIX as COMPILER if it's not defined.
Vadim Zeitlin [Mon, 19 Oct 2009 08:59:33 +0000 (08:59 +0000)] 
Define COMPILER_PREFIX as COMPILER if it's not defined.

Temporary fix after the changes of r62323 which broke generation of makefiles
using wx presets unless they explicitly defined COMPILER_PREFIX: define
COMPILER_PREFIX as COMPILER by default.

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

15 years agoDocument wxRendererNative::DrawTitleBarBitmap() and use it properly.
Vadim Zeitlin [Mon, 19 Oct 2009 08:59:25 +0000 (08:59 +0000)] 
Document wxRendererNative::DrawTitleBarBitmap() and use it properly.

Comment and document the (non obvious) requirement for the PNG image handler
to be enabled when using this function under OS X. In fact, document the
entire function itself which was forgotten previously.

Do enable PNG image handler when using DrawTitleBarBitmap() in the sample.

Closes #11345.

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

15 years agoJust doing a rebake of latest trunk.
Kevin Ollivier [Sun, 18 Oct 2009 22:38:22 +0000 (22:38 +0000)] 
Just doing a rebake of latest trunk.

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

15 years agoCopy wxPerl notes from the LaTeX documentation.
Mattia Barbon [Sun, 18 Oct 2009 17:47:01 +0000 (17:47 +0000)] 
Copy wxPerl notes from the LaTeX documentation.

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

15 years agoRestore --debug wx-config option handling for pre-2.9 builds.
Vadim Zeitlin [Sat, 17 Oct 2009 22:56:07 +0000 (22:56 +0000)] 
Restore --debug wx-config option handling for pre-2.9 builds.

Although 2.9 and later doesn't have debug/release distinction, previous
version of wx may be installed on the system and should be usable via 2.9
wx-config so honour this option for them.

Closes #11316.

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

15 years agoderive wxMask from wxMaskBase
Paul Cornett [Sat, 17 Oct 2009 20:06:34 +0000 (20:06 +0000)] 
derive wxMask from wxMaskBase

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

15 years agoUpdate column order in MSW native wxHeaderCtrl after drag.
Vadim Zeitlin [Sat, 17 Oct 2009 16:13:37 +0000 (16:13 +0000)] 
Update column order in MSW native wxHeaderCtrl after drag.

We must update the internally stored columns order even if the end reorder
event was processed (but not vetoed), otherwise we don't reflect the new order
in the our public functions such as GetColumnsOrder() which broke wxDVC
display under MSW.

Closes #11300.

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

15 years agoFix for windres flags used in Win64 mingw build.
Vadim Zeitlin [Sat, 17 Oct 2009 16:13:24 +0000 (16:13 +0000)] 
Fix for windres flags used in Win64 mingw build.

We must explicitly define WX_CPU_AMD64 when compiling using mingw64 and
configure as wx/msw/genrcdefs.h is not used in this case and even if it were,
it wouldn't work because g++ doesn't define _M_AMD64 (unlike MSVC).

So just add the flag directly to windres command line in configure.

Closes #11336.

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

15 years agoExposed wxPGCell to SWIG
Jaakko Salli [Sat, 17 Oct 2009 12:28:34 +0000 (12:28 +0000)] 
Exposed wxPGCell to SWIG

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

15 years agoRewrite handling cell value changes in wxOSX/Cocoa wxDVC.
Vadim Zeitlin [Sat, 17 Oct 2009 01:04:26 +0000 (01:04 +0000)] 
Rewrite handling cell value changes in wxOSX/Cocoa wxDVC.

Instead of using a chain of dynamic_cast<>s to find the right type of the
value, construct a wxVariant corresponding to the type of the object we
receive in NSOutlineView:setObjectValue:forTableColumn:byItem and pass it to a
wxDataViewRenderer virtual function.

This fixes assert and allows to edit icon text items under OS X.

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

15 years agoNo changes, just attempts to make the code more readable.
Vadim Zeitlin [Sat, 17 Oct 2009 01:04:20 +0000 (01:04 +0000)] 
No changes, just attempts to make the code more readable.

Reformat/reindent, use more wx coding style, wrap some extremely long lines.
Use shorter and less Carbon-ish variable names. Clarify some comments.

Also use static_cast<> because there is no need to use reinterpret_cast<> when
a static_cast<> will do.

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

15 years agoFix crash when editing wxDVC items in place in wxOSX/Cocoa.
Vadim Zeitlin [Sat, 17 Oct 2009 01:04:13 +0000 (01:04 +0000)] 
Fix crash when editing wxDVC items in place in wxOSX/Cocoa.

NSOutlineView::editedColumn: and editedRow: return -1 when they are called
from textDidEndEditing so we need to store their values in textDidBeginEditing
and reuse them later.

This fixes the crash in the sample with out-of-range array index exception
which happened whenever a cell was edited.

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

15 years agoAdd ellipsization support to wxDataViewCtrl.
Vadim Zeitlin [Fri, 16 Oct 2009 21:35:26 +0000 (21:35 +0000)] 
Add ellipsization support to wxDataViewCtrl.

Implemented ellipsization in the generic, GTK and both OS X Carbon and Cocoa
versions but it currently doesn't work well in GTK as it changes the item
alignment unconditionally, this will need to be fixed later.

The behaviour for the columns is currently inconsistent between ports too:
under MSW they (natively) use wxELLIPSIZE_END, under GTK -- wxELLIPSIZE_NONE
and under OS X the same ellipsization mode as the column contents, i.e.
wxELLIPSIZE_MIDDLE by default.

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

15 years agoRename wxEllipsizeFlags elements to avoid confusion with wxEllipsizeMode.
Vadim Zeitlin [Fri, 16 Oct 2009 21:32:51 +0000 (21:32 +0000)] 
Rename wxEllipsizeFlags elements to avoid confusion with wxEllipsizeMode.

We shouldn't use the same "wxELLIPSIZE_" prefix for two different enums, so
use wxELLIPSIZE_FLAGS one for wxEllipsizeFlags (they should be used less often
than wxEllipsizeMode so it's better to keep the short prefix for the latter).

Also add wxELLIPSIZE_FLAGS_NONE flag.

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

15 years agoImprove wxCollapsiblePane appearance under OS X.
Vadim Zeitlin [Fri, 16 Oct 2009 16:25:43 +0000 (16:25 +0000)] 
Improve wxCollapsiblePane appearance under OS X.

By default, don't use border in wxDisclosureTriangle because the native
applications do not. However do honour wxBORDER_XXX style if specified in case
this becomes useful in the future (this required no effort as the code was
already there for bitmap buttons and just had to be extracted into a reusable
function).

Don't expand the disclosure triangle in wxCollapsiblePane sizer, as this
resulted in the text being centered instead of remaining left-aligned.

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

15 years agoDon't use sunken border for the list control in log dialog.
Vadim Zeitlin [Fri, 16 Oct 2009 16:25:37 +0000 (16:25 +0000)] 
Don't use sunken border for the list control in log dialog.

There doesn't seem to be any reason to use a heavy border here as there is
nothing much to separate the list control from. In particular this looks
rather horrible under OS X.

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

15 years agoMake assert in wxMSW wxListCtrl::InsertItem() more informative.
Vadim Zeitlin [Fri, 16 Oct 2009 14:35:21 +0000 (14:35 +0000)] 
Make assert in wxMSW wxListCtrl::InsertItem() more informative.

Assert if inserting an item failed (this is really unexpected and must be a
programmer error) instead of asserting about items number mismatch -- which
might be true but only indirectly helpful.

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

15 years agoFix incorrect wxComboBox dropdown and closeup event macro names in doxygen docs ...
Jaakko Salli [Fri, 16 Oct 2009 13:54:56 +0000 (13:54 +0000)] 
Fix incorrect wxComboBox dropdown and closeup event macro names in doxygen docs (closes #11340)

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

15 years agoImplement icon text column using native GTK renderers in wxDVC.
Vadim Zeitlin [Fri, 16 Oct 2009 01:29:06 +0000 (01:29 +0000)] 
Implement icon text column using native GTK renderers in wxDVC.

This has a possible advantage of a more native look and feel (although it's
hard to tell the difference between drawing the icon ourselves and how the
default GTK+ renderer does it to be honest) and a very real advantage of
allowing to edit in place cells with icons. It also reduces code duplication
in GTK implementation.

Modify the sample to make the icon-text column in the list model editable to
show that it works. This required storing the values of the second column as
well, so do it in its own array and to avoid calling it "m_array2", rename the
existing m_array to m_textColValues (which accounts for most of the diff in
the sample) and call the new one m_iconColValues.

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

15 years agoCorrect cell alignment computation for too small column sizes.
Vadim Zeitlin [Thu, 15 Oct 2009 16:53:52 +0000 (16:53 +0000)] 
Correct cell alignment computation for too small column sizes.

Actually the column size might not even be too small but the size returned by
renderers GetSize() could be too large -- as is the case for spin renderer
currently. And trusting it results in drawing outside of the cell boundary
even when there is enough space inside it, so don't do this and fall back to
left alignment if there is not enough space.

This fixes display of the year column in the dataview sample broken by the
recent changes.

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

15 years agoUse correct colour for selected items in generic wxDVC.
Vadim Zeitlin [Thu, 15 Oct 2009 16:53:45 +0000 (16:53 +0000)] 
Use correct colour for selected items in generic wxDVC.

wxDataViewCustomRenderer::RenderText() taking attributes must use correct
colour for the selected items if no attribute is specified as it can be (and
is) called directly and not only via the compatibility overload.

This fixes the display of the selected items in the dataview sample broken by
recent changes.

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

15 years agoChanged 'bool recursively' to 'int flags' argument (with default value of wxPG_RECURS...
Jaakko Salli [Thu, 15 Oct 2009 16:39:19 +0000 (16:39 +0000)] 
Changed 'bool recursively' to 'int flags' argument (with default value of wxPG_RECURSE) in wxPropertyGrid Set(Property)BackgroundColour() and Set(Property)TextColour() member functions.

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

15 years agoFixed regression: wxPropertyGrid caption selection rectangle was drawn at incorrect...
Jaakko Salli [Thu, 15 Oct 2009 14:49:08 +0000 (14:49 +0000)] 
Fixed regression: wxPropertyGrid caption selection rectangle was drawn at incorrect horizontal offset.

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

15 years agoReplace wxValidator::SetBellOnError() with SuppressBellOnError().
Vadim Zeitlin [Thu, 15 Oct 2009 14:44:22 +0000 (14:44 +0000)] 
Replace wxValidator::SetBellOnError() with SuppressBellOnError().

SetBellOnError() erroneously inversed the value of its parameter. Fixing it to
behave correctly could silently break the existing code which might work
around this bug already because it always behaved like this (ever since it was
added 10.5 years ago). So instead simply deprecate this function and add a new
SuppressBellOnError() one which behaves as expected.

Closes #11318.

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

15 years agoCorrect typo in wxDocument::OnSaveModified() description.
Vadim Zeitlin [Thu, 15 Oct 2009 14:44:13 +0000 (14:44 +0000)] 
Correct typo in wxDocument::OnSaveModified() description.

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

15 years agoAdded wxPGCell::SetFont() and GetFont(); Documented wxPGCell class.
Jaakko Salli [Thu, 15 Oct 2009 14:41:00 +0000 (14:41 +0000)] 
Added wxPGCell::SetFont() and GetFont(); Documented wxPGCell class.

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

15 years agoTest whether GTK+ is 2.18 or newer in configure.
Vadim Zeitlin [Wed, 14 Oct 2009 22:49:38 +0000 (22:49 +0000)] 
Test whether GTK+ is 2.18 or newer in configure.

We need to define __WXGTK218__ symbol in configure instead of simply checking
if we are compiled with 2.18 in wx/infobar.h because GTK_CHECK_VERSION() can't
be used when compiling user code which can't even include gtk/gtkversion.h
defining it because it doesn't necessarily use `pkg-config --cflags gtk+-2.0`
at all in its CFLAGS.

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

15 years agoSuppress harmless warning about unhandled wxSHOW_EFFECT_NONE.
Vadim Zeitlin [Wed, 14 Oct 2009 21:48:27 +0000 (21:48 +0000)] 
Suppress harmless warning about unhandled wxSHOW_EFFECT_NONE.

wxNonOwnedWindowImpl::ShowWithEffect() is not supposed to be called with
wxSHOW_EFFECT_NONE effect so assert if it is.

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

15 years agoAdd a detailed explanation of possible error reasons to wx/chkconf.h.
Vadim Zeitlin [Wed, 14 Oct 2009 20:59:41 +0000 (20:59 +0000)] 
Add a detailed explanation of possible error reasons to wx/chkconf.h.

Also modify the #error directives to point to the comment near the top of this
file.

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

15 years agoFixed bug: wxPropertyGrid::Thaw() should no longer move the scroll bar when reselecti...
Jaakko Salli [Wed, 14 Oct 2009 17:30:47 +0000 (17:30 +0000)] 
Fixed bug: wxPropertyGrid::Thaw() should no longer move the scroll bar when reselecting property that was selected prior to Freeze() call.

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

15 years agoFixes to comparison operators for wxDVC classes.
Vadim Zeitlin [Wed, 14 Oct 2009 17:00:28 +0000 (17:00 +0000)] 
Fixes to comparison operators for wxDVC classes.

Comparison operators for wxDataViewItem and wxDataViewIconText were not inline
and not exported, resulting in linking errors for any code using them in
shared wx build. Fix this by making them inline.

Also correct wxDataViewIconText operator==() implementation to compare icons
as well and to return true when comparing the object with itself.

Finally add operator!=() matching existing operator==() as a class having one
of these operators is supposed to have the other one as well and it costs
nothing to define it.

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

15 years agoFix harmless unused variable warning in wxPropertyGrid code.
Vadim Zeitlin [Wed, 14 Oct 2009 17:00:20 +0000 (17:00 +0000)] 
Fix harmless unused variable warning in wxPropertyGrid code.

Declare variable only used #if wxPG_DOUBLE_BUFFER inside the #if.

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

15 years agoMake m_idleMutex an object instead of a pointer. Use bool for hook-installed flag...
Paul Cornett [Tue, 13 Oct 2009 15:40:35 +0000 (15:40 +0000)] 
Make m_idleMutex an object instead of a pointer. Use bool for hook-installed flag, the actual hook id is not needed.

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

15 years agoRemoved wxTE_READONLY style from multi-line wxTextCtrls in combo and propgrid samples...
Jaakko Salli [Tue, 13 Oct 2009 14:34:47 +0000 (14:34 +0000)] 
Removed wxTE_READONLY style from multi-line wxTextCtrls in combo and propgrid samples (looks a bit better that way on wxMSW)

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

15 years agoFix conversion from wxColour to NSColor in wxOSX/Cocoa wxDVC.
Vadim Zeitlin [Mon, 12 Oct 2009 22:44:23 +0000 (22:44 +0000)] 
Fix conversion from wxColour to NSColor in wxOSX/Cocoa wxDVC.

wxColour components are in 0.255 range while NSColor ones are in 0..1 one. The
old code compiled just fine but didn't work correctly for any colours which
had any channel with value different from 0 and 255 (unsurprisingly, my tests
only used wxRED, wxGREEN and wxBLUE which all passed...).

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

15 years agoImplement attributes support in generic wxDataViewIconTextRenderer.
Vadim Zeitlin [Mon, 12 Oct 2009 22:44:15 +0000 (22:44 +0000)] 
Implement attributes support in generic wxDataViewIconTextRenderer.

Simply override RenderWithAttr() instead of Render().

Update the sample to show that this works now.

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

15 years agoMake generic wxDataViewProgressRenderer fill the entire cell.
Vadim Zeitlin [Mon, 12 Oct 2009 22:44:09 +0000 (22:44 +0000)] 
Make generic wxDataViewProgressRenderer fill the entire cell.

After the fixes in the previous commit it is finally possibly to make the
progress renderer expand to the entire cell area instead of taking a
fixed width, it is enough to simply override RenderWithAttr() instead of
Render() and ignore the alignment as this avoids the use of (arbitrary and
hardcoded) wxDataViewProgressRenderer::GetSize().

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

15 years agoHandle cell alignment in the renderer itself in generic wxDVC.
Vadim Zeitlin [Mon, 12 Oct 2009 22:44:03 +0000 (22:44 +0000)] 
Handle cell alignment in the renderer itself in generic wxDVC.

Instead of using wxDataViewRenderer::GetSize() and rendering the cell into the
appropriate part of the rectangle, pass the full rectangle and the alignment
of the cell contents in it to the renderer itself.

This fixes the bug with bold text being truncated in the "attributes" column
of the dataview sample and is also generally more flexible as the renderer may
decide itself what to do with the extra space.

It also somewhat reduces the code duplication between CreateItemBitmap() and
OnPaint().

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

15 years agoCorrect bug with items without attributes in wxGTK wxDVC.
Vadim Zeitlin [Mon, 12 Oct 2009 22:43:57 +0000 (22:43 +0000)] 
Correct bug with items without attributes in wxGTK wxDVC.

After the change to the sample in r62390 it turned out that wxGTK version
didn't handle items without attributes in a column where other items did have
attributes neither -- they inherited the last used attribute.

Fix this by remembering whether we are using any non-default attributes or not
and resetting them if we do.

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

15 years agoNo real changes, just minor cleanup in wxGTK wxDVC.
Vadim Zeitlin [Mon, 12 Oct 2009 22:43:51 +0000 (22:43 +0000)] 
No real changes, just minor cleanup in wxGTK wxDVC.

Don't duplicate wxGtkTreeCellDataFunc declaration.

Don't triplicate "visible" property setting inside the function itself.

Indent the inside of if statement properly.

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

15 years agoFix display of items without attributes in Cocoa wxDVC.
Vadim Zeitlin [Mon, 12 Oct 2009 17:30:48 +0000 (17:30 +0000)] 
Fix display of items without attributes in Cocoa wxDVC.

The attribute used for the last item was reused for the next item in the same
column unless it was overridden in the attribute of this item, fix this by
remembering the original attribute and using it if no attributes are
explicitly specified.

Also change the sample to show the items without attributes in a column with
attributes and make the label correspond to the attribute of the item.

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

15 years agoNo real changes, just clean up wxCustomRendererObject in Cocoa wxDVC.
Vadim Zeitlin [Mon, 12 Oct 2009 17:30:41 +0000 (17:30 +0000)] 
No real changes, just clean up wxCustomRendererObject in Cocoa wxDVC.

The variables tableColumn and item are unneeded in this class so remove them.

Use static_cast<>s instead of C casts.

Avoid repeating oneVeryLongVariableName->anotherEvenLongerVariableName->
somethingElse->andSoOn multiple times, temporary variables are allowed in C++.

Also don't call wxDataViewCustomRenderer::GetSize() twice unnecessarily.

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

15 years agoUse Cocoa methods instead of wx ones in wxDVC font setting code.
Vadim Zeitlin [Mon, 12 Oct 2009 17:30:35 +0000 (17:30 +0000)] 
Use Cocoa methods instead of wx ones in wxDVC font setting code.

Use NSFontManager to create bold or italic version of the font instead of
using wxFont. This works better for the bold attribute, but setting the italic
one still doesn't do anything.

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

15 years agoUpdate German translation.
Vadim Zeitlin [Mon, 12 Oct 2009 15:50:46 +0000 (15:50 +0000)] 
Update German translation.

German translation update from Max Christian Pohle.

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

15 years agoAdd support for cell attributes to wxDVC in wxOSX/Cocoa.
Vadim Zeitlin [Mon, 12 Oct 2009 13:59:44 +0000 (13:59 +0000)] 
Add support for cell attributes to wxDVC in wxOSX/Cocoa.

Set the colour and font for the cell before rendering it if we have an
attribute for it.

The colours in dataview sample now work as expected, but making the font bold
or italic still doesn't work for some reason.

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

15 years agoMake the colours in the demo a bit more logical.
Vadim Zeitlin [Mon, 12 Oct 2009 13:59:39 +0000 (13:59 +0000)] 
Make the colours in the demo a bit more logical.

Make the colours of the items in the "attributes" column blue/green/red in
order instead of making all odd items blue and all even and divisible by 3
ones green while making the rest of them red -- it was a bit difficult to
figure out how it worked before.

Also correct wxDataViewItemAttr::SetItalic() check: comparing the remainder of
the division by 2 with 5 didn't risk to work.

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

15 years agoNo real changes, just minor cleanup in Cocoa wxDataViewCtrl.
Vadim Zeitlin [Mon, 12 Oct 2009 13:59:32 +0000 (13:59 +0000)] 
No real changes, just minor cleanup in Cocoa wxDataViewCtrl.

Start cleaning up Cocoa wxDataViewCtrl implementation:
 - Don't use "this->" which is not used anywhere else in wx code.
 - Use "()" instead of "(void)" as per wx coding standards.
 - Don't use end of function comments, this is inconsistent and
   unmaintainable.

No real changes otherwise.

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

15 years agoRemove wxDataViewTextRendererAttr by merging it with wxDataViewTextRenderer.
Vadim Zeitlin [Mon, 12 Oct 2009 13:59:25 +0000 (13:59 +0000)] 
Remove wxDataViewTextRendererAttr by merging it with wxDataViewTextRenderer.

There is no reason to have a separate class for rendering the text honouring
the attributes defined for it, wxDataViewTextRenderer itself already does this
perfectly well.

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

15 years agoAdded wxDCFontChanger ctor not changing font.
Vadim Zeitlin [Mon, 12 Oct 2009 13:59:13 +0000 (13:59 +0000)] 
Added wxDCFontChanger ctor not changing font.

This is similar to the existing wxDCTextColourChanger ctor not changing colour
and is useful in the same kind of situations: when the font may or not be
changed.

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

15 years agoDocument wxDCTextColourChanger "do nothing" constructor.
Vadim Zeitlin [Mon, 12 Oct 2009 13:59:06 +0000 (13:59 +0000)] 
Document wxDCTextColourChanger "do nothing" constructor.

Only wxDCTextColourChanger(wxDC, wxColour) one was documented, also document
wxDCTextColourChanger(wxDC) and its Set() method now.

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

15 years agoExclude message catalogs from UTF-8 check.
Vadim Zeitlin [Mon, 12 Oct 2009 10:38:43 +0000 (10:38 +0000)] 
Exclude message catalogs from UTF-8 check.

Many existing message catalogs don't use UTF-8 so don't check them in svn
pre-commit hook.

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

15 years agoadd more samples to the compile cascade for OpenVMS
Jouk Jansen [Mon, 12 Oct 2009 06:50:59 +0000 (06:50 +0000)] 
add more samples to the compile cascade for OpenVMS

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

15 years agoHave page-specific splitter setup flags in order to fix bug that caused splitter...
Jaakko Salli [Sun, 11 Oct 2009 15:30:03 +0000 (15:30 +0000)] 
Have page-specific splitter setup flags in order to fix bug that caused splitter change in one page to affect others. Also fixed a regression in splitter auto-centering.

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

15 years agoCode cleanup and clarification
Jaakko Salli [Sun, 11 Oct 2009 08:45:34 +0000 (08:45 +0000)] 
Code cleanup and clarification

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

15 years agoFixed post-expand/collapse rendering
Jaakko Salli [Sun, 11 Oct 2009 08:35:48 +0000 (08:35 +0000)] 
Fixed post-expand/collapse rendering

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

15 years agoFixed wxPropertyGrid empty space rendering
Jaakko Salli [Sun, 11 Oct 2009 08:32:25 +0000 (08:32 +0000)] 
Fixed wxPropertyGrid empty space rendering

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

15 years agoDon't document WarpPointer() as not implemented under Mac because it is.
Vadim Zeitlin [Sat, 10 Oct 2009 19:07:59 +0000 (19:07 +0000)] 
Don't document WarpPointer() as not implemented under Mac because it is.

Still recommend to avoid using it though.

Closes #11307.

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

15 years agoCompilation fix for STL build.
Vadim Zeitlin [Sat, 10 Oct 2009 18:28:34 +0000 (18:28 +0000)] 
Compilation fix for STL build.

Don't rely on implicit conversion of wxString to char* in
wxStandardPaths::GetDataDir() added in r62337.

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

15 years agoDon't use vendor name by default in wxStandardPaths.
Vadim Zeitlin [Sat, 10 Oct 2009 18:28:28 +0000 (18:28 +0000)] 
Don't use vendor name by default in wxStandardPaths.

The changes in r50025 made the behaviour of wxStandardPaths silently
incompatible with the previous versions under MSW and OS X as it now used the
vendor name in the paths it returned, unlike before. The benefits of doing
this don't justify silently breaking the existing programs so revert this
change and continue to use the application name only by default.

It is, of course, still possible to explicitly ask for the vendor name to be
used with wxStandardPaths::UseAppInfo().

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

15 years agoSet the initial size
Julian Smart [Sat, 10 Oct 2009 11:02:01 +0000 (11:02 +0000)] 
Set the initial size

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

15 years agoRemoved intermediate wxPanel from wxPropertyGrid.
Jaakko Salli [Sat, 10 Oct 2009 09:52:44 +0000 (09:52 +0000)] 
Removed intermediate wxPanel from wxPropertyGrid.

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

15 years agoreplace TRUE/FALSE with true/false
Paul Cornett [Fri, 9 Oct 2009 17:39:19 +0000 (17:39 +0000)] 
replace TRUE/FALSE with true/false

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

15 years agoadding defaults as wxDC did
Stefan Csomor [Fri, 9 Oct 2009 17:34:39 +0000 (17:34 +0000)] 
adding defaults as wxDC did

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

15 years agoavoiding deprecated methods in wx code, avoiding for iphone builds
Stefan Csomor [Fri, 9 Oct 2009 17:02:48 +0000 (17:02 +0000)] 
avoiding deprecated methods in wx code, avoiding for iphone builds

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

15 years agoDefine __WXOSX__ and __WXMAC__ on compiler command line.
Vadim Zeitlin [Fri, 9 Oct 2009 13:05:38 +0000 (13:05 +0000)] 
Define __WXOSX__ and __WXMAC__ on compiler command line.

Although __WXMAC__ and __WXMAC__ were already defined in wx/platform.h if
__WXOSX_XXX__ was defined, they couldn't be used for checks done before
including this header, which was surprising and, in case of __WXMAC__,
backwards incompatible. Define them now on the compiler command line to ensure
that they are always defined.

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

15 years agoCompilation fix for PCH-less compilation.
Vadim Zeitlin [Fri, 9 Oct 2009 13:05:32 +0000 (13:05 +0000)] 
Compilation fix for PCH-less compilation.

To use wxTheApp (added in r62337) we need to include wx/app.h.

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

15 years agoAppend default extension before showing file save dialog, not after.
Vadim Zeitlin [Fri, 9 Oct 2009 13:05:20 +0000 (13:05 +0000)] 
Append default extension before showing file save dialog, not after.

Appending the extension after the dialog was hidden is a bad idea as it
misleads the user by using a different file name from the one shown in the
dialog. It is also dangerous as it bypassed wxFD_OVERWRITE_PROMPT check.

So just append the default extension to the initial file name if it doesn't
have any but don't modify the file name once it was accepted by user.

Closes #11256.

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

15 years agoDon't add default extension in wxDocument::SaveAs().
Vadim Zeitlin [Fri, 9 Oct 2009 13:05:10 +0000 (13:05 +0000)] 
Don't add default extension in wxDocument::SaveAs().

wxFileSelector() takes care of the default extension itself and if it returned
a file name without one, it means that the user really wants to create a file
without an extension. Adding the default extension here is at best useless and
at worst actively dangerous because it may silently overwrite an existing file
(although this bug is due to a different problem, see #11256 for a scenario in
which this can happen).

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

15 years agoRemoved wxFont::Set/GetNoAntiAliasing() implementations.
Vadim Zeitlin [Fri, 9 Oct 2009 13:04:59 +0000 (13:04 +0000)] 
Removed wxFont::Set/GetNoAntiAliasing() implementations.

Most of them were dummy and didn't do anything and this API was never meant to
be used anyhow.

Keep just the declarations in wxFontBase but mark them as deprecated.

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

15 years agoMention log components in wxLogTrace() documentation.
Vadim Zeitlin [Fri, 9 Oct 2009 13:04:44 +0000 (13:04 +0000)] 
Mention log components in wxLogTrace() documentation.

Using different log components for different logging statements provides a
better (because more general and efficient) way to do the same thing that
wxLogTrace() does, so mention them when describing wxLogTrace().

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

15 years agomoving bitmapbutton functionality up to button for OSX
Stefan Csomor [Fri, 9 Oct 2009 12:24:35 +0000 (12:24 +0000)] 
moving bitmapbutton functionality up to button for OSX

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

15 years agoRevert a workaround for Windows native border side-effect since latter is now fixed
Julian Smart [Fri, 9 Oct 2009 07:26:54 +0000 (07:26 +0000)] 
Revert a workaround for Windows native border side-effect since latter is now fixed
and former causes a positioning problem when the scrollbar is not at the home position and
the grid is resized.

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

15 years agoremoving unneeded file
Stefan Csomor [Fri, 9 Oct 2009 06:43:01 +0000 (06:43 +0000)] 
removing unneeded file

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

15 years agoNo real changes, just fix a syntax error in unused file.
Vadim Zeitlin [Thu, 8 Oct 2009 22:38:29 +0000 (22:38 +0000)] 
No real changes, just fix a syntax error in unused file.

Closes #11289.

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

15 years agoFix mismatched new/free in generic Region code.
Vadim Zeitlin [Thu, 8 Oct 2009 22:38:18 +0000 (22:38 +0000)] 
Fix mismatched new/free in generic Region code.

Closes #11287.

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

15 years agoAlso support fonts in wxTextCtrl::GetStyle() in wxGTK.
Vadim Zeitlin [Thu, 8 Oct 2009 22:38:10 +0000 (22:38 +0000)] 
Also support fonts in wxTextCtrl::GetStyle() in wxGTK.

This extends the change of r62262 with support for the fonts.

Closes #11281.

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

15 years agoAdd a WX_APPNAME_DATA_DIR hack for wxStandardPaths::GetDataDir().
Vadim Zeitlin [Thu, 8 Oct 2009 22:38:03 +0000 (22:38 +0000)] 
Add a WX_APPNAME_DATA_DIR hack for wxStandardPaths::GetDataDir().

Applications using wxStandardPaths::GetDataDir() to find their files under
Unix can't be ran without being installed as they look for their data files
under $prefix/share/appname. Make it possible to override this location by
setting WX_APPNAME_DATA_DIR environment variable to allow running them without
installation.

Notice that this shouldn't present any security risk unless the application is
SUID (which would be a very bad idea anyhow).

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

15 years agoImprovements to application info documentation in wxStandardPaths.
Vadim Zeitlin [Thu, 8 Oct 2009 22:37:53 +0000 (22:37 +0000)] 
Improvements to application info documentation in wxStandardPaths.

Use "appinfo" instead of "appname" in the examples to make it clear that it
may be different from just the application name.

Also make UseAppInfo() documentation more clear.

See #11275.

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

15 years agoimplementing rollover and pressed image for bitmapbutton on osx_cocoa
Stefan Csomor [Thu, 8 Oct 2009 18:38:43 +0000 (18:38 +0000)] 
implementing rollover and pressed image for bitmapbutton on osx_cocoa

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

15 years agoFixed regression: in wxPropertyGrid::PerformValidation(), wxPGProperty::ValidateValue...
Jaakko Salli [Thu, 8 Oct 2009 15:33:30 +0000 (15:33 +0000)] 
Fixed regression: in wxPropertyGrid::PerformValidation(), wxPGProperty::ValidateValue() was only called when value was variant list, which was exactly the opposite condition under which the function was supposed to be called (fixes #11299).

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

15 years agoOpenVMS : add compile support for debugrpt sample
Jouk Jansen [Thu, 8 Oct 2009 10:59:33 +0000 (10:59 +0000)] 
OpenVMS : add compile support for debugrpt sample

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

15 years agofixing typo
Stefan Csomor [Thu, 8 Oct 2009 06:54:20 +0000 (06:54 +0000)] 
fixing typo

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

15 years agoremove requested button rather than last one, return true from successful Create...
Paul Cornett [Thu, 8 Oct 2009 05:03:42 +0000 (05:03 +0000)] 
remove requested button rather than last one, return true from successful Create(), and a non-pch build fix

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

15 years agoMake sure all Bakefile formats that use CRLF line feeds are set to use CRLF in SVN.
Kevin Ollivier [Thu, 8 Oct 2009 04:07:02 +0000 (04:07 +0000)] 
Make sure all Bakefile formats that use CRLF line feeds are set to use CRLF in SVN.

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

15 years agoCompilation fix for PCH-less in wxInfoBar.
Vadim Zeitlin [Wed, 7 Oct 2009 15:12:57 +0000 (15:12 +0000)] 
Compilation fix for PCH-less in wxInfoBar.

wx/dcmemory.h include is needed at least for OS X build.

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

15 years agoUpdated for bakefile 0.2.7.
Vadim Zeitlin [Wed, 7 Oct 2009 13:54:44 +0000 (13:54 +0000)] 
Updated for bakefile 0.2.7.

Copied bakefile.m4 from bakefile svn and regenerated configure using it.

This should have been done in r62308 but was forgotten. Notice that we can't
use bakefile 0.2.6 any more without reverting this change!

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

15 years agoHonour COMPILER_PREFIX in wx presets too.
Vadim Zeitlin [Wed, 7 Oct 2009 10:50:45 +0000 (10:50 +0000)] 
Honour COMPILER_PREFIX in wx presets too.

If a non-default COMPILER_PREFIX was specified when building wxWidgets, we
should also be able to use the same prefix when building applications using
this build, so use COMPILER_PREFIX instead of just COMPILER in the project/
makefiles generated using wx presets.

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

15 years agofixing gdiplus implementation, see #11282
Stefan Csomor [Wed, 7 Oct 2009 05:53:19 +0000 (05:53 +0000)] 
fixing gdiplus implementation, see #11282

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

15 years agoadding dataview sample to OpenVMS make cascade
Jouk Jansen [Tue, 6 Oct 2009 22:03:21 +0000 (22:03 +0000)] 
adding dataview sample to OpenVMS make cascade

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

15 years agoOpenVMS compile support : adding more samples for wxGTK
Jouk Jansen [Tue, 6 Oct 2009 14:47:53 +0000 (14:47 +0000)] 
OpenVMS compile support : adding more samples for wxGTK

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

15 years agoCompilation fix for VC6 in wxInfoBarGeneric code.
Vadim Zeitlin [Tue, 6 Oct 2009 14:18:48 +0000 (14:18 +0000)] 
Compilation fix for VC6 in wxInfoBarGeneric code.

VC6 apparently can't compare const pointer to derived class with a non-const
pointer to the base class.

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

15 years agoUpdate setup for OpenVMS
Jouk Jansen [Tue, 6 Oct 2009 08:53:17 +0000 (08:53 +0000)] 
Update setup for OpenVMS

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

15 years agoAdding regex support for wxMOTIF for OpenVMS
Jouk Jansen [Tue, 6 Oct 2009 06:58:45 +0000 (06:58 +0000)] 
Adding regex support for wxMOTIF for OpenVMS

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

15 years agouse better background color
Stefan Csomor [Tue, 6 Oct 2009 05:18:47 +0000 (05:18 +0000)] 
use better background color

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

15 years agonon-PCH build fix
Paul Cornett [Tue, 6 Oct 2009 03:42:55 +0000 (03:42 +0000)] 
non-PCH build fix

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

15 years agoCreate an NSAutoreleasePool in wxMacWakeUp().
Vadim Zeitlin [Tue, 6 Oct 2009 00:08:15 +0000 (00:08 +0000)] 
Create an NSAutoreleasePool in wxMacWakeUp().

An auto-release pool is needed in this function because it can be called from
another thread which has no reason to have a pre-existing pool, but it does
allocate NSEvent object which is auto-released, resulting in warnings if no
pool available.

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

15 years agoEnsure that an event loop exists in ShowViewOrWindowWithEffect().
Vadim Zeitlin [Tue, 6 Oct 2009 00:08:10 +0000 (00:08 +0000)] 
Ensure that an event loop exists in ShowViewOrWindowWithEffect().

We may not have an event loop yet if wxWindow::ShowWithEffect() is called
during the application startup, create a temporary event loop instead of
crashing in this case.

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

15 years agoRebake using pre-release version of bakefile 0.2.7.
Vadim Zeitlin [Mon, 5 Oct 2009 22:58:26 +0000 (22:58 +0000)] 
Rebake using pre-release version of bakefile 0.2.7.

They should fix the problem with monolithic build of wx (see #11231).

Notice that trivial changes to VC9 project files are not being committed so
the makefiles are currently not quite consistent but it shouldn't matter as
they will be all regenerated soon when bakefile 0.2.7 is really released.

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

15 years agoRefactor initialization code in wxTopLevelWindowMSW::Create().
Vadim Zeitlin [Mon, 5 Oct 2009 22:58:15 +0000 (22:58 +0000)] 
Refactor initialization code in wxTopLevelWindowMSW::Create().

No real changes as the old code was, in fact, correct (although Create()
didn't initialize m_parent explicitly, it was still done in AddChild() if the
parent was not NUL) but just make it more explicit and clear.

Add a new helper wxWindowBase::CreateBase() overload for top level windows,
not taking the validator parameter which doesn't apply to them.

Also make CreateBase() protected as it is only meant to be called from derived
classes Create().

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