]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoRefactor wxWindow::MSWHandleMessage() out from MSWWindowProc().
Vadim Zeitlin [Fri, 22 Jul 2011 12:49:22 +0000 (12:49 +0000)] 
Refactor wxWindow::MSWHandleMessage() out from MSWWindowProc().

This commit just refactors the code without changing anything in its
behaviour and will be followed by the real changes in the next one.

The new function just handles the message, without calling MSWDefWindowProc()
if it wasn't handled. This allows to call it and determine whether the message
was really handled and only continue processing it if it wasn't.

Notice that while in theory this shouldn't be necessary because the return
value of MSWWindowProc() should indicate whether the message was handled or
not (0 meaning that it was, for most messages), in practice it doesn't work
because many standard controls window procs return 0 even for message they do
nothing with, e.g. "up down" control always returns 0 for WM_CHAR messages
even it it only really handles the arrow keys.

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

13 years agoFix double deletion bug in wxGTK wxDVC dnd code.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:26 +0000 (13:50 +0000)] 
Fix double deletion bug in wxGTK wxDVC dnd code.

The row_draggable callback could blithely delete m_dragDataObject twice as it
didn't reset it to NULL after deleting it the first time. Then, if the object
wasn't changed in the meanwhile, e.g. because dragging was not allowed for
this item, it tried to do it again when called the next time resulting in a
crash.

Closes #12538.

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

13 years agoFix the alignment used by custom wxDVC renderers in wxGTK by default.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:22 +0000 (13:50 +0000)] 
Fix the alignment used by custom wxDVC renderers in wxGTK by default.

Correctly initialize the alignment used by the text renderer used by
wxDataViewCustomRenderer in wxGTK implementation of wxDataViewCtrl.

Closes #12298.

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

13 years agoSend wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED for generic version too.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:17 +0000 (13:50 +0000)] 
Send wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED for generic version too.

Send this event when the column used for sorting changed in the generic
implementation of wxDataViewCtrl too.

Closes #13005.

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

13 years agoFix drawing of expander columns not at 0 position in generic wxDVC.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:14 +0000 (13:50 +0000)] 
Fix drawing of expander columns not at 0 position in generic wxDVC.

The drawing code in the generic version of wxDataViewCtrl incorrectly supposed
that the expander column was always at position 0. This resulted in the
expander column not being drawn at all if it was not really the first one.

Fix the test to use wxDataViewCtrl::GetExpanderColumn() to correct this.

Closes #12870.

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

13 years agoCorrect test for maximal row index in generic wxDataViewCtrl.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:10 +0000 (13:50 +0000)] 
Correct test for maximal row index in generic wxDataViewCtrl.

The comparison in EVT_CHAR handler was incorrect for an empty control without
any rows as it subtracting 1 from 0 resulted in UINT_MAX and not -1 as all the
values were unsigned.

Fix this by checking that the new row is valid instead, this is correct for
both signed and unsigned values.

Closes #13356.

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

13 years agoNever restore focus to hidden child.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:06 +0000 (13:50 +0000)] 
Never restore focus to hidden child.

Don't set focus to a hidden window in our focus management code, this never
makes sense and results in apparent focus loss.

It also fixes, as a side effect, a crash in wxGrid under wxMSW as the focus is
not restored to the hidden grid editor any longer and so the code in its
wxEVT_KILL_FOCUS handler that resulted in the crash is not executed any
longer, see #13349.

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

13 years agoAllow marking wxTreeBook nodes to expand initially in XRC.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:03 +0000 (13:50 +0000)] 
Allow marking wxTreeBook nodes to expand initially in XRC.

Add new "expanded" attribute for XRC nodes of treebookpage class.

Also update the sample and the XRC format documentation.

Closes #13355.

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

13 years agoMake wxEnhMetaFileDC ctor from wxDC explicit.
Vadim Zeitlin [Thu, 21 Jul 2011 13:49:59 +0000 (13:49 +0000)] 
Make wxEnhMetaFileDC ctor from wxDC explicit.

This avoids implicit conversion of any kind of wxDC to wxEnhMetaFileDC which
is totally unexpected.

See #13326.

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

13 years agoFix parsing of negated long options in wxCmdLineParser.
Vadim Zeitlin [Thu, 21 Jul 2011 13:49:55 +0000 (13:49 +0000)] 
Fix parsing of negated long options in wxCmdLineParser.

Negated long options were not recognized in wxCmdLineParser::Parse(), do check
for them now.

Also extend the unit test to check for negated options.

Closes #13335.

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

13 years agoReset negatable switches correctly in wxCmdLineParser::Reset().
Vadim Zeitlin [Thu, 21 Jul 2011 13:49:51 +0000 (13:49 +0000)] 
Reset negatable switches correctly in wxCmdLineParser::Reset().

The "negated" flag of wxCmdLineOption struct was not reset by Reset() so
parsing a command line with a negatable option once influenced the result of
parsing it the next time because the old value was kept.

Do clear it now to allow calling Parse() several times without side effects.

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

13 years agoNo longer ignores first-line indent if no left indent specified
Julian Smart [Wed, 20 Jul 2011 16:23:37 +0000 (16:23 +0000)] 
No longer ignores first-line indent if no left indent specified

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

13 years agoDon't use template member function in drawing sample to placate VC6.
Vadim Zeitlin [Wed, 20 Jul 2011 11:41:07 +0000 (11:41 +0000)] 
Don't use template member function in drawing sample to placate VC6.

VC6 can't instantiate member template functions so get rid of it and use ugly
dynamic casts in the non-template function to construct wxGCDC correctly.

See #13327.

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

13 years agofixes redraw problems under OSX, see #13345
Stefan Csomor [Wed, 20 Jul 2011 06:36:06 +0000 (06:36 +0000)] 
fixes redraw problems under OSX, see #13345

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

13 years agoFix harmless gcc warning about uninitialized mask in PNG saving code.
Vadim Zeitlin [Tue, 19 Jul 2011 22:36:00 +0000 (22:36 +0000)] 
Fix harmless gcc warning about uninitialized mask in PNG saving code.

The mask was actually only used when it was initialized (or, conversely, the
mask was always initialized when it was used) but gcc doesn't seem to notice
this and still warns that mask components "may be used uninitialized in this
function".

Suppress the warnings by always initializing the mask, even if we don't use
it.

Closes #13333.

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

13 years agoRefresh the old current row when right clicking in wxDataViewCtrl.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:57 +0000 (22:35 +0000)] 
Refresh the old current row when right clicking in wxDataViewCtrl.

the generic implementation of wxDataViewCtrl left the old current still
focused after selecting another row as current when it was right clicked.
Fix this by refreshing the previously current row after unfocusing it.

Closes #13330.

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

13 years agoAdd wxDataViewEvent::IsEditCancelled() and support for vetoing edit events.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:53 +0000 (22:35 +0000)] 
Add wxDataViewEvent::IsEditCancelled() and support for vetoing edit events.

Currently this is only implemented in the generic wxDataViewCtrl, the native
GTK/OSX ports should be modified to support this later.

Closes #13323.

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

13 years agoFix deleting columns in wxGridStringTable with custom column labels.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:48 +0000 (22:35 +0000)] 
Fix deleting columns in wxGridStringTable with custom column labels.

We erroneously removed too many elements from m_colLabels array (basically we
always removed all the elements remaining after this column, irrespectively of
the actual number of columns to delete), fix this by removing at most the
specified number of columns -- or possibly less if the array isn't entirely
filled.

See #13329.

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

13 years agoAllow saving the drawing sample canvas to a file or clipboard.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:45 +0000 (22:35 +0000)] 
Allow saving the drawing sample canvas to a file or clipboard.

This allows to test wxMemoryDC and, under MSW, wxMetafileDC and also can be
used to compare the output of different versions of the sample (possibly from
different ports, too).

Closes #13327.

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

13 years agoAdded wxGCDC(wxEnhMetaFileDC) ctor too.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:41 +0000 (22:35 +0000)] 
Added wxGCDC(wxEnhMetaFileDC) ctor too.

Make it possible to create wxGCDC associated with a metafile DC in wxMSW too.

Closes #13326.

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

13 years agoFix keyboard navigation in wxGrid with hidden columns.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:37 +0000 (22:35 +0000)] 
Fix keyboard navigation in wxGrid with hidden columns.

The hidden columns (i.e. those whose size was set to 0) should be skipped when
find the previous/next column to select when the user presses Left/Right
cursor arrow keys in wxGrid, otherwise the focus could completely disappear as
it was invisible when it was set to a hidden column.

Closes #13281.

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

13 years agodoing WakeUp in osx_carbon differently for the main event as well
Stefan Csomor [Tue, 19 Jul 2011 17:56:57 +0000 (17:56 +0000)] 
doing WakeUp in osx_carbon differently for the main event as well

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

13 years agomake sure we can issue a WakeUp call that really triggers at the NSRunLoop level...
Stefan Csomor [Tue, 19 Jul 2011 16:17:44 +0000 (16:17 +0000)] 
make sure we can issue a WakeUp call that really triggers at the NSRunLoop level not only only CFRunLoop

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

13 years agofixing width/height (were negative) thanks to Werner Smekal
Stefan Csomor [Tue, 19 Jul 2011 10:56:04 +0000 (10:56 +0000)] 
fixing width/height (were negative) thanks to Werner Smekal

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

13 years agoFix memory leak in wxPanel::SetBackgroundBirmap() in wxMSW.
Vadim Zeitlin [Mon, 18 Jul 2011 19:36:31 +0000 (19:36 +0000)] 
Fix memory leak in wxPanel::SetBackgroundBirmap() in wxMSW.

The brush allocated for the bitmap was never freed, do free it in dtor.

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

13 years agoAdd support for column header images to wxListCtrl XRC handler.
Václav Slavík [Sat, 16 Jul 2011 10:05:02 +0000 (10:05 +0000)] 
Add support for column header images to wxListCtrl XRC handler.

Fixes #13319 (patch).

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

13 years agoFix wxListCtrlXmlHandler so that it accepts icon with wxLC_LIST and wxLC_REPORT style...
Václav Slavík [Sat, 16 Jul 2011 10:04:57 +0000 (10:04 +0000)] 
Fix wxListCtrlXmlHandler so that it accepts icon with wxLC_LIST and wxLC_REPORT styles too.

Fixes #13319 (patch).

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

13 years agoFix wxXmlResourceHandler::GetImageList() to use specified size.
Václav Slavík [Sat, 16 Jul 2011 10:04:54 +0000 (10:04 +0000)] 
Fix wxXmlResourceHandler::GetImageList() to use specified size.

Fixes #13319 (patch).

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

13 years agoAdd check to prevent creation of element wxXmlNodes with content data.
Václav Slavík [Sat, 16 Jul 2011 10:04:48 +0000 (10:04 +0000)] 
Add check to prevent creation of element wxXmlNodes with content data.

Just like in the DOM, only text, ctype etc. nodes have textual content,
elements don't.

See #13297.

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

13 years agoproper guard for bitmap constructors
Stefan Csomor [Sat, 16 Jul 2011 06:57:30 +0000 (06:57 +0000)] 
proper guard for bitmap constructors

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

13 years agofixing typo
Stefan Csomor [Sat, 16 Jul 2011 06:57:07 +0000 (06:57 +0000)] 
fixing typo

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

13 years agoImplement wxRegion::Equal() for wxOSX.
Vadim Zeitlin [Fri, 15 Jul 2011 22:58:36 +0000 (22:58 +0000)] 
Implement wxRegion::Equal() for wxOSX.

As there doesn't seem to be any native functions for comparing HIShapes,
compute their differences to find out if they are equal.

Closes #13339.

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

13 years agoEnsure we don't modify a shared object in wxOSX wxRegion::DoOffset().
Vadim Zeitlin [Fri, 15 Jul 2011 22:58:32 +0000 (22:58 +0000)] 
Ensure we don't modify a shared object in wxOSX wxRegion::DoOffset().

Call AllocExclusive() before modifying the object.

Closes #13338.

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

13 years agoNo real changes, just use AllocExclusive() in wxOSX wxRegion.
Vadim Zeitlin [Fri, 15 Jul 2011 22:58:30 +0000 (22:58 +0000)] 
No real changes, just use AllocExclusive() in wxOSX wxRegion.

Don't fiddle with the reference count manually, just use the base class
function doing it instead.

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

13 years agoBetter sizing in wxDataViewSpinRenderer and wxDataViewChoiceRenderer.
Václav Slavík [Wed, 13 Jul 2011 08:32:17 +0000 (08:32 +0000)] 
Better sizing in wxDataViewSpinRenderer and wxDataViewChoiceRenderer.

Their GetSize() method used hardcoded size of (80,16). Instead, use
GetTextExtent() to compute the size from content, as should be done. Add
some extra room for editor control's extra parts. The space needed isn't
computed exactly, as that would be quite convoluted (and in the end,
most likely not 100% accurate even then), using a simple approximation
instead.

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

13 years agoUse native hint wxTextCtrl support in wxSearchCtrl.
Vadim Zeitlin [Tue, 12 Jul 2011 09:13:43 +0000 (09:13 +0000)] 
Use native hint wxTextCtrl support in wxSearchCtrl.

Instead of using broken emulation of the support for hints available in the
text control, use the real wxTextCtrl::SetHint() for SetDescriptiveText()
implementation in the search control.

This looks better and, more importantly, fixes the bug when searching for the
string equal to the current descriptive text searched for an empty string
instead.

Closes #13324.

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

13 years agoCentre wxSlider value correctly when wxSL_MIN_MAX_LABELS is not used.
Vadim Zeitlin [Tue, 12 Jul 2011 09:13:39 +0000 (09:13 +0000)] 
Centre wxSlider value correctly when wxSL_MIN_MAX_LABELS is not used.

r68230 fixed the width of the value label in this case but not its position:
it was left-aligned instead of being centered as it should be.

See #13291.

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

13 years agoDocument wxEnhMetaFileDC-related wxGraphics functions.
Vadim Zeitlin [Tue, 12 Jul 2011 09:13:36 +0000 (09:13 +0000)] 
Document wxEnhMetaFileDC-related wxGraphics functions.

Closes #13325.

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

13 years agoFix showing slider label in wxMSW when wxSL_MIN_MAX_LABELS was not used.
Vadim Zeitlin [Mon, 11 Jul 2011 22:49:33 +0000 (22:49 +0000)] 
Fix showing slider label in wxMSW when wxSL_MIN_MAX_LABELS was not used.

wxSlider with wxSL_LABELS style but without wxSL_MIN_MAX_LABELS didn't show
the current value because the width of the value label was 0.

Fix this by always computing the widths of min and max labels and using the
longest of them for the value label, even if we don't actually show them.

Closes #13291.

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

13 years agoNo real changes, just make some wxSlider members local variables.
Vadim Zeitlin [Mon, 11 Jul 2011 22:49:30 +0000 (22:49 +0000)] 
No real changes, just make some wxSlider members local variables.

wxMSW wxSlider implementation stored the min and max labels widths as fields
of wxSlider object for some reason even though they were only used in one of
its methods (and can be easily computed anyhow).

Make them simple local variables instead and also rename an existing local
variable which started conflicting with their new names.

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

13 years agoFix and improve documentation of wxT_2() macro.
Vadim Zeitlin [Mon, 11 Jul 2011 22:49:26 +0000 (22:49 +0000)] 
Fix and improve documentation of wxT_2() macro.

Documentation for wxT_2() applied to wxS() instead, fix this. Also correct the
wording and add @since tags.

Closes #13321.

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

13 years agoDon't handle "Return" key as "TAB" even when the default button is disabled.
Vadim Zeitlin [Mon, 11 Jul 2011 22:25:24 +0000 (22:25 +0000)] 
Don't handle "Return" key as "TAB" even when the default button is disabled.

wxMSW used to handle VK_RETURN in the same way as VK_TAB if it wasn't consumed
by the default push button but this didn't correspond to the native platform
behaviour which considers pressing Return when the OK button is disabled an
error and audibly notifies the user about it.

Fix this by passing VK_RETURN to IsDialogMessage() if we don't translate it to
a button click.

Also add a possibility to test what happens when the default (or all)
button(s) in the dialog are disabled to the dialogs sample.

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

13 years agoCopy recently added wxGenericValidator fields in Copy().
Vadim Zeitlin [Mon, 11 Jul 2011 14:51:32 +0000 (14:51 +0000)] 
Copy recently added wxGenericValidator fields in Copy().

The pointers added in r68217 must be also initialized when creating a copy of
the validator.

Closes #13304.

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

13 years agosupport multi-line labels, add different native styles for buttons as we did for...
Stefan Csomor [Sun, 10 Jul 2011 14:20:45 +0000 (14:20 +0000)] 
support multi-line labels, add different native styles for buttons as we did for bitmap buttons

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

13 years agoUse the correct event handler in wxMenuBase::UpdateUI().
Vadim Zeitlin [Sun, 10 Jul 2011 12:55:30 +0000 (12:55 +0000)] 
Use the correct event handler in wxMenuBase::UpdateUI().

Use GetWindow() instead of GetInvokingWindow() to send the event to the
associated window for the menus that are part of the menu bar and not only the
popup ones. This was broken since r64127 because GetInvokingWindow() is now
only used for the popup menus.

Closes #13317.

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

13 years agoSupport float, double and file name values in wxGenericValidator.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:28 +0000 (23:37 +0000)] 
Support float, double and file name values in wxGenericValidator.

Currently these values can only be read from/written to wxTextCtrl but support
for other controls (e.g. wxSpinCtrlDouble for float/double) could be added in
the future.

Closes #13304.

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

13 years agoNo changes, just use NULL instead of 0 for pointers.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:21 +0000 (23:37 +0000)] 
No changes, just use NULL instead of 0 for pointers.

Initialize pointers with NULL in wxGenericValidator.

See #13304.

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

13 years agoGenerate events for two auxiliary mouse buttons in wxGTK.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:15 +0000 (23:37 +0000)] 
Generate events for two auxiliary mouse buttons in wxGTK.

Add code to generate wxEVT_AUXN_XXX events to wxGTK.

Closes #13310.

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

13 years agoMention that wxNotebook page must be removed before reparenting it.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:09 +0000 (23:37 +0000)] 
Mention that wxNotebook page must be removed before reparenting it.

At least in wxGTK it is necessary to remove the page from the notebook first
as reparenting it doesn't work otherwise currently.

This should ideally be fixed but in the meanwhile at least document it.

See #13305.

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

13 years agoCheck for GTK window parent, not wx one, when reparenting.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:03 +0000 (23:37 +0000)] 
Check for GTK window parent, not wx one, when reparenting.

A notebook page removed from its notebook can have a non-NULL wx parent but
not have any parent at GTK level any longer, so test for the window parent at
GTK level before removing the widget from it, otherwise we were getting GTK
asserts when trying to remove a window from its no-more-parent.

See #13305.

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

13 years agoRefresh the generic wxDataViewCtrl header if it was made too small.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:55 +0000 (23:36 +0000)] 
Refresh the generic wxDataViewCtrl header if it was made too small.

Although normally the control header is not supposed to be resized below its
minimal vertical size, sometimes this can still happen and in this case ugly
artefacts were displayed because it wasn't refreshed properly. Do refresh it
to avoid them.

Closes #13313.

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

13 years agoShow extra mouse buttons and wheel state in the text sample output too.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:50 +0000 (23:36 +0000)] 
Show extra mouse buttons and wheel state in the text sample output too.

Do it for consistency, as the state of all the other buttons is already shown,
and also to have some place for testing this functionality.

Closes #13309.

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

13 years agoDon't duplicate wxImage::ConvertToDisabled() in wxAUI code.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:44 +0000 (23:36 +0000)] 
Don't duplicate wxImage::ConvertToDisabled() in wxAUI code.

Just reuse the existing function.

Also add an example of showing a disabled bitmap to the aui sample.

Closes #13303.

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

13 years agoOutput something from the console sample even if it's ran without arguments.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:38 +0000 (23:36 +0000)] 
Output something from the console sample even if it's ran without arguments.

Running console sample without parameters didn't do anything by default and
didn't output anything neither which was presumably rather confusing. Do
output a welcome message at least to indicate that something happened.

Closes #13299.

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

13 years agoImmediately update MSW cursor when ::SetCursor(wxNullCursor) is called.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:32 +0000 (23:36 +0000)] 
Immediately update MSW cursor when ::SetCursor(wxNullCursor) is called.

The cursor was previously reverted to the default one only when a next mouse
event was received. Do it immediately now to e.g. avoid showing the busy
cursor when the program is not busy any more.

Closes #12961.

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

13 years agoFix wxMSW wxSlider best size calculation and label layout.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:26 +0000 (23:36 +0000)] 
Fix wxMSW wxSlider best size calculation and label layout.

The best size calculation was wrong as the min/max labels height was
unnecessarily added to the slier total height even if though these labels are
positioned alongside the slider itself in horizontal layout case.

The slider also managed to position its value label completely outside the
space allocated to it (and the bug in DoGetBestSize() might have been an
attempt to work around this), don't do this any more. This also fixes the
wrongly centered vertical position of the min/max labels.

Closes #13291.

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

13 years agoMake coordinates transformations in wxDC really maximally precise.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:19 +0000 (23:36 +0000)] 
Make coordinates transformations in wxDC really maximally precise.

Use the maximal device space extent supported by Win32 GDI and only decrease
it if the scale is so small that keeping the device space extent maximal would
result in overflowing the int range for the logical space.

This makes coordinate translations exact even for huge coordinates, while they
could be significantly wrong before due to the integer rounding errors.

Closes #13284.

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

13 years agoAdded Robin Dunn's explanation on the relationship of wxBitmap and wxImage into inter...
John Chain [Sat, 9 Jul 2011 18:40:11 +0000 (18:40 +0000)] 
Added Robin Dunn's explanation on the relationship of wxBitmap and wxImage into interface doxygen section

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

13 years agoavoid scrolling to cleared-non existing- data, reload before, fixes #13318
Stefan Csomor [Sat, 9 Jul 2011 06:37:14 +0000 (06:37 +0000)] 
avoid scrolling to cleared-non existing- data, reload before, fixes #13318

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

13 years agoAdd wxDCImpl::MSWApplyGDIPlusTransform() to formalize wxRendererMSW hack.
Vadim Zeitlin [Thu, 7 Jul 2011 13:05:22 +0000 (13:05 +0000)] 
Add wxDCImpl::MSWApplyGDIPlusTransform() to formalize wxRendererMSW hack.

Replace the dynamic_cast<> used in wxMSW wxRenderer implementation code with a
virtual function call.

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

13 years agoMake wxGCDC::GetGraphicsContext() const.
Vadim Zeitlin [Thu, 7 Jul 2011 13:05:16 +0000 (13:05 +0000)] 
Make wxGCDC::GetGraphicsContext() const.

There is no reason for this accessor to not be const and it prevents other
methods using it from being const too, so change this.

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

13 years agoallow NULL parent menu
Stefan Csomor [Wed, 6 Jul 2011 11:02:38 +0000 (11:02 +0000)] 
allow NULL parent menu

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

13 years agofor 2.9.2
Chris Elliott [Tue, 5 Jul 2011 09:22:58 +0000 (09:22 +0000)] 
for 2.9.2

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

13 years agoImprove the description of the available files in readme.
Vadim Zeitlin [Mon, 4 Jul 2011 21:26:11 +0000 (21:26 +0000)] 
Improve the description of the available files in readme.

Be more clear about what is provided. Add more URLs, everybody likes to click
them.

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

13 years agoRemove the note about wxUSE_STD_CONTAINERS.
Vadim Zeitlin [Mon, 4 Jul 2011 21:13:26 +0000 (21:13 +0000)] 
Remove the note about wxUSE_STD_CONTAINERS.

We finally didn't switch to using the standard containers by default so don't
leave misleading information in the change log (this should have been part of
r67735).

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

13 years agoFix crash when getting or setting wxComboBox value in wxUniv.
Vadim Zeitlin [Mon, 4 Jul 2011 21:09:24 +0000 (21:09 +0000)] 
Fix crash when getting or setting wxComboBox value in wxUniv.

Forward DoGetValue() and SetValue() to the associated wxTextCtrl.

Closes #13298.

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

13 years agoFix event types in wxMouseEvent::Aux1DClick() and Aux1DClick().
Vadim Zeitlin [Mon, 4 Jul 2011 17:22:49 +0000 (17:22 +0000)] 
Fix event types in wxMouseEvent::Aux1DClick() and Aux1DClick().

wxEVT_AUX[12]_UP were wrongly used instead of the correct wxEVT_AUX[12]_DCLICK.

Closes #13308.

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

13 years agoFix warnings about implicit double to int conversions in propgrid.
Vadim Zeitlin [Mon, 4 Jul 2011 16:43:40 +0000 (16:43 +0000)] 
Fix warnings about implicit double to int conversions in propgrid.

Use wxRound() instead of implicit casts to convert double to int. This not
only avoids warnings (e.g. when using g++ with -Wconversion) but also should
be (marginally) more precise.

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

13 years agoFix harmless warning about double to long long conversion.
Vadim Zeitlin [Mon, 4 Jul 2011 16:43:37 +0000 (16:43 +0000)] 
Fix harmless warning about double to long long conversion.

Work around g++ -Wconversion warning by writing out the casts explicitly.

A better solution would be to have wxLongLong::FromDouble() static function
but it would have to be done after 2.9.2.

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

13 years agoSuppress some harmless warnings about unused parameters in wxOSX.
Vadim Zeitlin [Mon, 4 Jul 2011 14:05:14 +0000 (14:05 +0000)] 
Suppress some harmless warnings about unused parameters in wxOSX.

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

13 years agoAlso accept VT_R4 (float) VARIANTs in wxMSW OLE code.
Vadim Zeitlin [Mon, 4 Jul 2011 14:05:11 +0000 (14:05 +0000)] 
Also accept VT_R4 (float) VARIANTs in wxMSW OLE code.

We don't support creating VT_R4 VARIANTs as wxVariant can only contain double,
not float, but we can still at least accept them on input.

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

13 years agoFix crash in wxDataViewProgressRenderer in non-Unicode build.
Vadim Zeitlin [Mon, 4 Jul 2011 09:03:00 +0000 (09:03 +0000)] 
Fix crash in wxDataViewProgressRenderer in non-Unicode build.

We can't use the column pointer in wxDataViewProgressRenderer ctor as it's not
set yet, so postpone setting the renderer label until later in non-Unicode
build which needs the font used by this column to do the conversion to UTF-8.

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

13 years agoAdd wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample.
Vadim Zeitlin [Mon, 4 Jul 2011 09:02:57 +0000 (09:02 +0000)] 
Add wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample.

Unicode text is not supported in non-Unicode builds.

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

13 years agoNo real changes, just remove trailing commas from enum.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:14 +0000 (10:29 +0000)] 
No real changes, just remove trailing commas from enum.

wxCompositionMode enum had a trailing comma not allowed by C++ 98 (and which
would result in warnings or errors with g++ pedantic switch).

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

13 years agoAdd wxCOMPOSITION_INVALID mode and use it to simplify the code.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:11 +0000 (10:29 +0000)] 
Add wxCOMPOSITION_INVALID mode and use it to simplify the code.

Having an invalid element in wxCompositionMode enum allows to directly return
it from TranslateRasterOp() function instead of needing a separate bool
parameter to indicate that a ROP couldn't be translated.

This also incidentally fixes warnings about possibly uninitialized variables
in optimized g++ builds.

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

13 years agoAvoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:07 +0000 (10:29 +0000)] 
Avoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.

The standard TreeView_GetItemRect() macro resulted in warnings about breaking
strict aliasing rules as it passed a variable of one type via a pointer to
another one. Fix this by using a union and our own custom macro instead.

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

13 years agoDon't cause scroll events for position changes from SetScrollbars, broken in r67326.
Paul Cornett [Fri, 1 Jul 2011 17:44:49 +0000 (17:44 +0000)] 
Don't cause scroll events for position changes from SetScrollbars, broken in r67326.
Fixes #13301

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

13 years agoMention the EOL issue in readme.txt.
Vadim Zeitlin [Thu, 30 Jun 2011 21:31:39 +0000 (21:31 +0000)] 
Mention the EOL issue in readme.txt.

Emphasize that building Windows archives under Unix *or vice versa) is not
supported.

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

13 years agoupdate docs for windows checkout process 2/2
Chris Elliott [Thu, 30 Jun 2011 13:20:55 +0000 (13:20 +0000)] 
update docs for windows checkout process 2/2

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

13 years agoupdate docs for windows checkout process 1/2
Chris Elliott [Thu, 30 Jun 2011 13:17:51 +0000 (13:17 +0000)] 
update docs for windows checkout process 1/2

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

13 years agoInitialize variable in UTF{16,32} conversion code to avoid warnings.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:54 +0000 (12:20 +0000)] 
Initialize variable in UTF{16,32} conversion code to avoid warnings.

In optimized build g++ warned about the second element of two-element array
passed to encode_utf16() being possibly uninitialized. This wasn't really the
case but change the code just to avoid the warnings.

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

13 years agoWork around bogus g++ warnings about possibly missing return.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:47 +0000 (12:20 +0000)] 
Work around bogus g++ warnings about possibly missing return.

OS X g++ warned that "control may reach end of non-void function" in
wxRichTextHelpInfo::ShowHelp(). This wasn't really the case but change the
function logic slightly to (hopefully) suppress the warning.

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

13 years agoFix harmless warning about unused variable in isosurf sample.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:38 +0000 (12:20 +0000)] 
Fix harmless warning about unused variable in isosurf sample.

Don't declare and initialize a variable that we never use.

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

13 years agoFix warning about hiding a virtual function in propgrid sample.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:29 +0000 (12:20 +0000)] 
Fix warning about hiding a virtual function in propgrid sample.

The virtual ColourToString() method was hidden and not overridden in the
sample because it didn't use the last argument of the base class method.

Fix this in the most straightforward (albeit not necessarily the most correct)
way to at least ensure that the function is really overridden.

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

13 years agoChange the loop condition to avoid comparing unsigned value with 0.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:32 +0000 (17:50 +0000)] 
Change the loop condition to avoid comparing unsigned value with 0.

This resulted in (useful) g++ warning and didn't make any sense in any case.

Check for the loop variable value being 0 at the end of the loop instead now.
If the old code was correct it shouldn't change its behaviour and if not, this
might fix a bug.

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

13 years agoAlways initialize SelectInHDC::m_hgdiobj in wxMSW.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:30 +0000 (17:50 +0000)] 
Always initialize SelectInHDC::m_hgdiobj in wxMSW.

Leaving m_hgdiobj uninitialized probably didn't result in any problems
considering how this class is currently used but it did result in g++ warnings
about uninitialized member with aggressive warning flags and also could easily
become a problem in the future so just ensure that we always initialize it.

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

13 years agoFix two harmless gcc warnings about missing initializers.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:27 +0000 (17:50 +0000)] 
Fix two harmless gcc warnings about missing initializers.

Add values to make g++ -Wmissing-field-initializers warnings (implicitly
enabled by -Wextra) go away.

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

13 years agoMention that readme.txt needs to be updated before a release.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:08 +0000 (17:50 +0000)] 
Mention that readme.txt needs to be updated before a release.

Hopefully this means it won't be forgotten the next time.

Also mentioned that the new docs.wxwidgets.org link should be now already
created when the release is being done.

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

13 years agoAdd a tiny script for producing HTML documentation archives.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:05 +0000 (17:50 +0000)] 
Add a tiny script for producing HTML documentation archives.

Also update the release making document to point to it.

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

13 years agoFix typo in error message about incorrect syntax.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:02 +0000 (17:50 +0000)] 
Fix typo in error message about incorrect syntax.

Output the error to stderr, not a file called "2".

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

13 years agoUpdate the readme file for 2.9.2.
Vadim Zeitlin [Wed, 29 Jun 2011 17:49:59 +0000 (17:49 +0000)] 
Update the readme file for 2.9.2.

Just increment version number and year in a couple of places.

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

13 years agofix misisng html format files
Chris Elliott [Wed, 29 Jun 2011 11:33:13 +0000 (11:33 +0000)] 
fix misisng html format files

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

13 years agoUpdated copyright year before 2.9.2 release.
Vadim Zeitlin [Wed, 29 Jun 2011 09:22:35 +0000 (09:22 +0000)] 
Updated copyright year before 2.9.2 release.

Use 2011 instead of 2010 in the manual and in several .plist files.

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

13 years ago2.9.2-rc1 in file
Chris Elliott [Wed, 29 Jun 2011 08:46:13 +0000 (08:46 +0000)] 
2.9.2-rc1 in file

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

13 years agoReplace stc.{h,cpp} with the generated versions with all their typos.
Vadim Zeitlin [Wed, 29 Jun 2011 08:37:49 +0000 (08:37 +0000)] 
Replace stc.{h,cpp} with the generated versions with all their typos.

Revert the changes of r67280 which fixed several typos in these files as they
were getting modified each time gen_iface.py was rerun and we don't want to
touch the original Scintilla files to fix these typos.

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

13 years agoGenerate code using IsOk() instead of Ok() in stc.cpp.
Vadim Zeitlin [Wed, 29 Jun 2011 08:37:46 +0000 (08:37 +0000)] 
Generate code using IsOk() instead of Ok() in stc.cpp.

Modify the script generating this file itself to produce IsOk() instead of
Ok(). This replaces the changes of r67681 which only modified the generated
file.

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

13 years agoMove wxThreadEvent into wxBase.
Václav Slavík [Tue, 28 Jun 2011 17:24:37 +0000 (17:24 +0000)] 
Move wxThreadEvent into wxBase.

For this, it cannot derive from wxCommandEvent. Extracted the bits
from wxCommandEvent useful for passing data between threads into
wxEventBasicPayloadMixin helper class shared by both.

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

13 years agoAdd support for child documents to docview framework.
Vadim Zeitlin [Mon, 27 Jun 2011 00:09:37 +0000 (00:09 +0000)] 
Add support for child documents to docview framework.

Child documents are virtual documents corresponding to parts of their parent
document which can't be saved nor loaded independently of their parent and are
closed when the parent is closed.

This finally makes some use of wxDocument::m_documentParent field which was
always present in the docview code but never used before.

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

13 years agobringing target naming in line with other projects
Stefan Csomor [Sat, 25 Jun 2011 07:16:55 +0000 (07:16 +0000)] 
bringing target naming in line with other projects

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

13 years agoPaper size fix for wxOSX-cocoa
Robin Dunn [Sat, 25 Jun 2011 00:15:00 +0000 (00:15 +0000)] 
Paper size fix for wxOSX-cocoa

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