]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agofixing SetSubMenu for OSX_Cocoa, fixes #11581
Stefan Csomor [Wed, 30 Dec 2009 08:35:01 +0000 (08:35 +0000)] 
fixing SetSubMenu for OSX_Cocoa, fixes #11581

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

14 years agoChanged wxPropertyCategory to use same cell rendering code as regular properties...
Jaakko Salli [Tue, 29 Dec 2009 16:04:40 +0000 (16:04 +0000)] 
Changed wxPropertyCategory to use same cell rendering code as regular properties. This allows labels for category columns other than the first. Rendering code was heavily modified to allow 'merging' of cells when needed.

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

14 years agoEnsure that frame is re-laid out when its toolbar is deleted.
Vadim Zeitlin [Mon, 28 Dec 2009 16:18:37 +0000 (16:18 +0000)] 
Ensure that frame is re-laid out when its toolbar is deleted.

The code in wxFrameBase::SetToolBar() didn't work correctly when toolbar was
unset using SetToolBar(NULL) because the frame toolbar pointer was reset
before layout was done resulting in the frame not recognizing its (still
existing) toolbar child as one of its bars and so nothing was done at all when
the frame had a single child, as in the toolbar sample.

Correct this by carefully ensuring that the toolbar pointer is still set at
the moment of the layout but hide the toolbar to ensure that no place is
allocated for it.

Also mention that it is not necessary to call SetToolBar(NULL) at all if the
toolbar is being deleted anyhow in the sample as toolbar does this itself in
its destructor.

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

14 years agoCorrect initial value of "Toggle toolbar" check menu item in the sample.
Vadim Zeitlin [Mon, 28 Dec 2009 16:18:30 +0000 (16:18 +0000)] 
Correct initial value of "Toggle toolbar" check menu item in the sample.

This item should initially be checked because the toolbar is initially shown.

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

14 years agoAccount for cells spanning multiple grid cells better when autosizing.
Vadim Zeitlin [Sun, 27 Dec 2009 19:40:46 +0000 (19:40 +0000)] 
Account for cells spanning multiple grid cells better when autosizing.

The total size of a multi-span cell was accounted for each row/column it
covered, resulting in too much space being allocated to them.

Only take into account the average size of each row/column computed by
dividing the total cell size by number of rows/columns it occupies to fix
this.

Closes #11498.

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

14 years agoReturn the kind of cells span from wxGrid::GetCellSize().
Vadim Zeitlin [Sun, 27 Dec 2009 19:40:41 +0000 (19:40 +0000)] 
Return the kind of cells span from wxGrid::GetCellSize().

Behaviour of GetCellSize() may be very surprising for the unwary as it can
return negative or null "size" of the cell.

Add CellSpan return value to allow the caller to check what kind of cell are
we dealing with easier.

Also document the new return value as well as the function (and matching
SetCellSize()) itself carefully as its behaviour is far from obvious.

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

14 years agoDon't call SetMinSize() when creating the window if no initial size was given.
Vadim Zeitlin [Sun, 27 Dec 2009 19:40:28 +0000 (19:40 +0000)] 
Don't call SetMinSize() when creating the window if no initial size was given.

Calling SetMinSize() is unnecessary in this case. It also results in GTK+
errors when creating wxFileDialog as it is not created yet when this is called
(but it does take care to pass wxDefaultSize to this function as its size
can't be set yet).

See r62814 and r62817.

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

14 years agoAvoid defining COMPILER_PREFIX for autoconf format.
Vadim Zeitlin [Sun, 27 Dec 2009 19:40:22 +0000 (19:40 +0000)] 
Avoid defining COMPILER_PREFIX for autoconf format.

This fixes a fatal bakefile error due to undefined COMPILER variable when
using wx presets with autoconf backend introduced in r62458.

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

14 years agoCorrect wxUSE_MACOSX_VERSION_MIN setting when running under OS X 10.4.
Vadim Zeitlin [Sun, 27 Dec 2009 19:40:15 +0000 (19:40 +0000)] 
Correct wxUSE_MACOSX_VERSION_MIN setting when running under OS X 10.4.

sw_vers outputs e.g. 10.4.11 under 10.4 so comparing its result with just 10.4
is wrong, match it against "10.4*" using case instead to ensure that 10.4.11
is indeed recognized as 10.4.

Closes #11579.

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

14 years agoDocument wxString::operator<<(wxUniChar).
Vadim Zeitlin [Sun, 27 Dec 2009 19:40:08 +0000 (19:40 +0000)] 
Document wxString::operator<<(wxUniChar).

wxUniChar overload was somehow omitted from the list.

Closes #11568.

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

14 years agoOverride some methods in wxF(F)ileStream to resolve ambiguities.
Vadim Zeitlin [Sun, 27 Dec 2009 19:39:55 +0000 (19:39 +0000)] 
Override some methods in wxF(F)ileStream to resolve ambiguities.

Override virtual methods IsSeekable(), GetLength() and OnSysSeek/Tell() to
forward to wxF(F)InputStream base class as otherwise it's impossible to use
them at all because of ambiguity between the versions inherited from this
class and wxF(F)OutputStream (even though the two versions should do the same
thing as they operate on the same file descriptor/handle).

Also improve documentation of these classes: provide a brief description,
correct the base classes.

Closes #11577.

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

14 years agoTake into account the initial buttons state when creating wxGTK toolbar.
Vadim Zeitlin [Sat, 26 Dec 2009 16:36:39 +0000 (16:36 +0000)] 
Take into account the initial buttons state when creating wxGTK toolbar.

With wxMSW it is possible to call e.g. wxToolBarTool::Enable(false) on a tool
before calling wxToolBar::Realize() to create the tool in an initially
disabled state but this wasn't done in wxGTK version.

Override Realize() now under wxGTK to bring the native toolbar buttons state
in sync with the internal state of the corresponding wxToolBarTools.

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

14 years agoDon't forward declare wxSystemColour enum.
Vadim Zeitlin [Sat, 26 Dec 2009 16:36:32 +0000 (16:36 +0000)] 
Don't forward declare wxSystemColour enum.

Forward declaring enums is illegal in standard C++ and while MSVC allows this
as an extension, it doesn't compile with g++.

Just include wx/settings.h instead.

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

14 years agoNo changes, just fix a typo in and rephrase a comment.
Vadim Zeitlin [Sat, 26 Dec 2009 16:36:26 +0000 (16:36 +0000)] 
No changes, just fix a typo in and rephrase a comment.

Comment in wxToolBarBase::Realize() was probably copied from some
port-specific file but didn't make sense any more in common code.

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

14 years agoReduced unnecessary wxT usage
Jaakko Salli [Sat, 26 Dec 2009 10:51:39 +0000 (10:51 +0000)] 
Reduced unnecessary wxT usage

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

14 years agoReplaced 'InlineHelp' property attribute with 'Hint'; Use SetHint() wxTextCtrl and...
Jaakko Salli [Sat, 26 Dec 2009 10:45:04 +0000 (10:45 +0000)] 
Replaced 'InlineHelp' property attribute with 'Hint'; Use SetHint() wxTextCtrl and wxComboCtrl member function to set it; Added a small section about help string and hint text in propgrid overview

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

14 years agoAdded wxComboCtrl::SetHint(), GetHint()
Jaakko Salli [Sat, 26 Dec 2009 10:33:35 +0000 (10:33 +0000)] 
Added wxComboCtrl::SetHint(), GetHint()

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

14 years agoRemove the native toolbar from the frame in Destroy() rather than the destructor...
Kevin Ollivier [Fri, 25 Dec 2009 20:43:43 +0000 (20:43 +0000)] 
Remove the native toolbar from the frame in Destroy() rather than the destructor, as removing it in the destructor causes resize / repaint events to fire on the native control, which then goes to wx controls being deleted.

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

14 years agoUse NSTrackingArea when available (building for 10.5+) so that we can get mouse moved...
Kevin Ollivier [Fri, 25 Dec 2009 20:40:05 +0000 (20:40 +0000)] 
Use NSTrackingArea when available (building for 10.5+) so that we can get mouse moved events for inactive / non-focused windows too.

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

14 years agoAlways show hint in text entries, even when they have focus.
Vadim Zeitlin [Fri, 25 Dec 2009 11:36:54 +0000 (11:36 +0000)] 
Always show hint in text entries, even when they have focus.

It was impossible to show the hint for the initially focused child of a dialog
before, as the hint was hidden from the very beginning. By showing it always
we avoid this problem.

We may want to add an option/flag for SetHint() to make this configurable
later if somebody really needs to show hints only for as long as the control
doesn't have focus.

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

14 years agoremoving event handlers on non-owned windows when the destroy event is sent
Stefan Csomor [Fri, 25 Dec 2009 09:47:30 +0000 (09:47 +0000)] 
removing event handlers on non-owned windows when the destroy event is sent

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

14 years agoRefactored a very confusing condition in wxPGComboBox item paint code
Jaakko Salli [Fri, 25 Dec 2009 09:18:04 +0000 (09:18 +0000)] 
Refactored a very confusing condition in wxPGComboBox item paint code

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

14 years agoAdded wxComboCtrlBase::SetFore/BackgroundColour()
Jaakko Salli [Fri, 25 Dec 2009 09:04:53 +0000 (09:04 +0000)] 
Added wxComboCtrlBase::SetFore/BackgroundColour()

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

14 years agofixing parameter names
Stefan Csomor [Fri, 25 Dec 2009 08:39:11 +0000 (08:39 +0000)] 
fixing parameter names

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

14 years agoAdded documentation for wxPGEditor::SetControlAppearance()
Jaakko Salli [Fri, 25 Dec 2009 08:33:56 +0000 (08:33 +0000)] 
Added documentation for wxPGEditor::SetControlAppearance()

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

14 years agoErase toolbar background even if it doesn't contain any controls/spaces.
Vadim Zeitlin [Wed, 23 Dec 2009 21:42:06 +0000 (21:42 +0000)] 
Erase toolbar background even if it doesn't contain any controls/spaces.

Minor correction to changes in r62971: we still need to hook WM_ERASEBKGND in
toolbar parent when painting the toolbar itself even when there are no dummy
separators in it (and so we don't need to paint them over). Without this, the
background of simple toolbars without controls was not erased correctly.

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

14 years agoDon't pass 0 timer ids to ::SetTimer().
Vadim Zeitlin [Wed, 23 Dec 2009 13:56:55 +0000 (13:56 +0000)] 
Don't pass 0 timer ids to ::SetTimer().

Creating timers with 0 id failed because Windows SetTimer() function requires
a non-zero id. Fix this by using a (impossible at wx API level) -1 id value in
this case instead.

Closes #11392.

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

14 years agoAdd support for large stdio files for VC 8+. What versions of the other Windows
Michael Wetherell [Tue, 22 Dec 2009 21:22:59 +0000 (21:22 +0000)] 
Add support for large stdio files for VC 8+. What versions of the other Windows
compilers?

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

14 years agoAdded wxPropertyGrid::SetUnspecifiedValueAppearance(); Added wxPGEditor::SetControlAp...
Jaakko Salli [Tue, 22 Dec 2009 16:12:02 +0000 (16:12 +0000)] 
Added wxPropertyGrid::SetUnspecifiedValueAppearance(); Added wxPGEditor::SetControlAppearance() for applying wxPGCell attributes on a property editor.

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

14 years agoRemove the test of erase background events from the toolbar sample.
Vadim Zeitlin [Tue, 22 Dec 2009 15:37:49 +0000 (15:37 +0000)] 
Remove the test of erase background events from the toolbar sample.

Handling erase background events for toolbars never worked for the ports other
than wxMSW and now it doesn't work for MSW neither as we need to skip erasing
the background in WM_ERASEBKGND handler to avoid flicker which would result
from erasing the background twice, from there and from WM_PAINT handler which
must do it. So don't even try to test if it works, it's unlikely to be very
useful anyhow.

This reverts the change to this file in r62805.

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

14 years agoFinally really correct background erasing for wxMSW wxToolBar.
Vadim Zeitlin [Tue, 22 Dec 2009 15:37:43 +0000 (15:37 +0000)] 
Finally really correct background erasing for wxMSW wxToolBar.

Do use TBSTYLE_FLAT and TBSTYLE_TRANSPARENT (the former actually implies the
latter) for MSW toolbar as it is the only way to avoid the flicker of toolbar
buttons. These styles were disabled before because of lack of understanding
about how they worked: with them, the toolbar supposes that its parent takes
care of erasing its background but wx didn't do this (in fact wxFrame did
accidentally erase toolbar background because of the use of Win32 client
rectangle, including tool/status bars, instead of wx client rectangle,
excluding them, in wxWindowMSW::DoEraseBackground(), but it didn't do it
correctly).

Now we allow hooking WM_ERASEBKGND events processing in a parent window by a
child one and use this to handle toolbar background erasing in toolbar itself.
We still prevent the native toolbar from drawing dummy separators and always
erase the area occupied by them ourselves and thus avoid the flicker entirely.

The only remaining flicker in the toolbar sample is that of embedded
wxStaticText control. It does appear with correctly transparent background and
bitmaps with alpha channel also (still) are drawn correctly in wxStaticBitmaps
embedded in the toolbar.

Finally, we still use solid background brush for toolbar but we can easily use
a themed background if really desired, there is just a single function to
change to do it (MSWGetToolbarBgBrush()).

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

14 years agoFix best size computation for buttons without image and with empty label.
Vadim Zeitlin [Tue, 22 Dec 2009 15:37:37 +0000 (15:37 +0000)] 
Fix best size computation for buttons without image and with empty label.

If a button was initially created with an empty label (but without image
neither), its best size was computed and cached as being null. Correct this by
giving the button the default size instead, as expected.

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

14 years agoAdded wxMSW wxChoice::GetClassDefaultAttributes(), initially used in wxComboCtrl
Jaakko Salli [Mon, 21 Dec 2009 15:20:37 +0000 (15:20 +0000)] 
Added wxMSW wxChoice::GetClassDefaultAttributes(), initially used in wxComboCtrl

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

14 years agofix miscellaneous Doxygen 1.6.1 warnings
Francesco Montorsi [Sun, 20 Dec 2009 15:07:08 +0000 (15:07 +0000)] 
fix miscellaneous Doxygen 1.6.1 warnings

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

14 years agofix a few doxygen warnings
Francesco Montorsi [Sun, 20 Dec 2009 14:50:50 +0000 (14:50 +0000)] 
fix a few doxygen warnings

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

14 years agoadd a detailed description to wxMenuItem::SetItemLabel() partially moving docs from...
Francesco Montorsi [Sun, 20 Dec 2009 14:24:42 +0000 (14:24 +0000)] 
add a detailed description to wxMenuItem::SetItemLabel() partially moving docs from wxMenu::Append; add usage examples; organize wxMenuItem functions in 3 sections (getters, setters, checkers) to make it easier to browse the docs; use @onlyfor tag where necessary instead of the (Windows only) text

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

14 years agoAdded wxPropertyGrid::GetUnspecifiedValueText(). Use it instead of assuming that...
Jaakko Salli [Sun, 20 Dec 2009 12:48:41 +0000 (12:48 +0000)] 
Added wxPropertyGrid::GetUnspecifiedValueText(). Use it instead of assuming that the unspecified value text is always an empty string.

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

14 years agoAdded some missing SetupTextCtrlValue() calls
Jaakko Salli [Sun, 20 Dec 2009 12:31:24 +0000 (12:31 +0000)] 
Added some missing SetupTextCtrlValue() calls

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

14 years agoSuppress 'unused argument' warnings
Jaakko Salli [Sat, 19 Dec 2009 15:07:52 +0000 (15:07 +0000)] 
Suppress 'unused argument' warnings

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

14 years agoAdded wxWindowMSW::MSWGetThemeColour(); initially use it in wxComboCtrl::OnThemeChange()
Jaakko Salli [Sat, 19 Dec 2009 14:47:37 +0000 (14:47 +0000)] 
Added wxWindowMSW::MSWGetThemeColour(); initially use it in wxComboCtrl::OnThemeChange()

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

14 years agoProperly notify active editor control when it receives the focus.
Jaakko Salli [Sat, 19 Dec 2009 12:08:00 +0000 (12:08 +0000)] 
Properly notify active editor control when it receives the focus.

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

14 years agoDocument wxSpinCtrlDouble in correct header file.
Vadim Zeitlin [Sat, 19 Dec 2009 12:00:16 +0000 (12:00 +0000)] 
Document wxSpinCtrlDouble in correct header file.

The public header for this class is wx/spinctrl.h, but it was documented in
wx/generic/spinctrg.h which didn't even correspond to an existing real header
file (which is called spinctlg.h). Move the documentation to wx/spinctrl.h and
remove the old file.

Closes #11548.

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

14 years agoDocument wxSizerItem::Assign{Window,Sizer,Spacer}() methods.
Vadim Zeitlin [Sat, 19 Dec 2009 12:00:04 +0000 (12:00 +0000)] 
Document wxSizerItem::Assign{Window,Sizer,Spacer}() methods.

Also explain why SetSpacer() and SetSizer() are deprecated.

Closes #11555.

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

14 years agoDocument wxDV_NO_HEADER style.
Vadim Zeitlin [Sat, 19 Dec 2009 11:59:55 +0000 (11:59 +0000)] 
Document wxDV_NO_HEADER style.

Closes #11559.

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

14 years agoCorrections to expander position calculations and drawing in generic wxDVC.
Vadim Zeitlin [Sat, 19 Dec 2009 11:17:49 +0000 (11:17 +0000)] 
Corrections to expander position calculations and drawing in generic wxDVC.

Correct the calculation of the indent for the columns following the expander
and the calculation of the position of the expander itself.

See #11558.

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

14 years agoCorrect selection/drop highlight rectangles width in generic wxDataViewCtrl.
Vadim Zeitlin [Sat, 19 Dec 2009 11:17:42 +0000 (11:17 +0000)] 
Correct selection/drop highlight rectangles width in generic wxDataViewCtrl.

The third parameter of wxRect ctor is the width, not the right edge.

See #11558.

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

14 years agoAlways draw standard-sized checkboxes in generic wxDataViewToggleRenderer.
Vadim Zeitlin [Sat, 19 Dec 2009 11:17:32 +0000 (11:17 +0000)] 
Always draw standard-sized checkboxes in generic wxDataViewToggleRenderer.

The checkbox should be always shown in its normal size, otherwise it looks
strange. And this also fixes the overflow of the checkbox in the next column
which happened if the size passed to Render() had negative width before.

See #11558.

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

14 years agoUse correct width in wxDataViewCustomRendererBase::RenderText().
Vadim Zeitlin [Sat, 19 Dec 2009 11:17:25 +0000 (11:17 +0000)] 
Use correct width in wxDataViewCustomRendererBase::RenderText().

The text should be ellipsized to fit in the text rectangle, not the total cell
one (which is larger).

See #11558.

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

14 years agoIn wxPropertyGrid::HandleCustomEditorEvent(), also filter out excess wxEVT_COMMAND_TE...
Jaakko Salli [Sat, 19 Dec 2009 11:13:03 +0000 (11:13 +0000)] 
In wxPropertyGrid::HandleCustomEditorEvent(), also filter out excess wxEVT_COMMAND_TEXT_UPDATED events that originated from wxComboCtrl-derived editors.

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

14 years agoDon't create labels with wxST_NO_AUTORESIZE flag with empty size by default.
Vadim Zeitlin [Fri, 18 Dec 2009 22:31:54 +0000 (22:31 +0000)] 
Don't create labels with wxST_NO_AUTORESIZE flag with empty size by default.

Since r57627 wxStaticText objects with wxST_NO_AUTORESIZE flag created with
wxDefaultSize were created with zero width. This accounted for the
disappearance of the labels for the toolbar controls (as could be seen in the
toolbar sample where the combobox label was not shown any more).

Fix this by explicitly setting the correct initial size after the correct
label is set.

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

14 years agoDon't draw over dummy separators in MSW toolbar, just don't draw them at all.
Vadim Zeitlin [Fri, 18 Dec 2009 22:31:48 +0000 (22:31 +0000)] 
Don't draw over dummy separators in MSW toolbar, just don't draw them at all.

Prevent the native toolbar from drawing the separators which we use simply as
placeholders by excluding them from the update region when handling WM_PAINT.

This reduces flicker by not redrawing the areas occupied by these separators
twice and also prevents them from ever being shown (you could see them briefly
appear before being erased before).

The other toolbar tools still flicker though, there doesn't seem to be any
simple way to prevent the control from entirely invalidating itself whenever
it is resized.

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

14 years agoDon't explicitly set the background colour for wxChoice.
Vadim Zeitlin [Fri, 18 Dec 2009 20:49:29 +0000 (20:49 +0000)] 
Don't explicitly set the background colour for wxChoice.

This is unnecessary and results in flicker when the control is resized because
we explicitly erase its background ourselves and then it does it itself.

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

14 years agoNo real changes, just change type of MSWGetBgBrush() argument.
Vadim Zeitlin [Fri, 18 Dec 2009 20:49:23 +0000 (20:49 +0000)] 
No real changes, just change type of MSWGetBgBrush() argument.

Pass wxWindow instead of HWND to it as in most cases we already have wxWindow
for the HWND we have and calling wxFindWinFromHandle() once more is
unnecessary.

This also makes the code of MSWGetBgBrushForChild() slightly simpler.

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

14 years agoDon't force themed background for wxToolBar under MSW, just use the default.
Vadim Zeitlin [Fri, 18 Dec 2009 20:49:15 +0000 (20:49 +0000)] 
Don't force themed background for wxToolBar under MSW, just use the default.

Native toolbars don't have themed background under Vista/7 and don't look good
with rebar background (which is the same one as used for the menus) as
toolbars don't appear on the top of the window.

Erasing background ourselves also results in flicker and display problems and
makes the code much more complicated. Simply don't do this to avoid all the
problems.

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

14 years agoHave wxComboCtrl honour any custom foreground and background colour.
Jaakko Salli [Fri, 18 Dec 2009 17:28:42 +0000 (17:28 +0000)] 
Have wxComboCtrl honour any custom foreground and background colour.

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

14 years agoDon't access the first character of a possible empty USEMAP parameter.
Vadim Zeitlin [Fri, 18 Dec 2009 14:47:25 +0000 (14:47 +0000)] 
Don't access the first character of a possible empty USEMAP parameter.

This fixes an assert when using debug CRT in VC9.

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

14 years agoOnly call GetTextMetrics() in wxDC::GetTextExtent() if necessary.
Vadim Zeitlin [Fri, 18 Dec 2009 14:47:18 +0000 (14:47 +0000)] 
Only call GetTextMetrics() in wxDC::GetTextExtent() if necessary.

A micro-optimization: avoid ::GetTextMetrics() call if we don't use its
results (as is the case if neither descent nor external leading were
requested).

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

14 years agoCall SymCleanup() in wxStackWalker to fix problem with next call to it.
Vadim Zeitlin [Fri, 18 Dec 2009 14:47:08 +0000 (14:47 +0000)] 
Call SymCleanup() in wxStackWalker to fix problem with next call to it.

Calling SymInitialize() second and subsequent times failed (and hence so did
wxStackWalker::WalkFrom() and other methods) as we didn't call SymCleanup()
because of some problems with old versions of debughlp.dll. These problems
don't seem to exist any more so do call SymCleanup() so that we can walk the
stack more than once.

Closes #11544.

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

14 years agoDon't use "-I @" in ctags command line as cmd.exe handles '@' specially.
Vadim Zeitlin [Fri, 18 Dec 2009 14:46:58 +0000 (14:46 +0000)] 
Don't use "-I @" in ctags command line as cmd.exe handles '@' specially.

Just use the file path instead as '@' is used for the "response files" by
cmd.exe, at least under Windows 7.

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

14 years agoNo changes, just minor cleanup.
Vadim Zeitlin [Fri, 18 Dec 2009 14:46:44 +0000 (14:46 +0000)] 
No changes, just minor cleanup.

Don't call wxWindow::PrepareDC() which doesn't do anything anyhow.

Use wxBitmap::IsOk() instead of Ok().

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

14 years agoRestore the use of the correct brush for toolbar background erasing.
Vadim Zeitlin [Fri, 18 Dec 2009 14:46:38 +0000 (14:46 +0000)] 
Restore the use of the correct brush for toolbar background erasing.

The call to SetBrush() was mistakenly removed in r62850 but it is needed
because wxClientDC only inherits background colour but not the brush used by
DrawRectangle() call in wxToolBar::MSWEraseRect(), so the wrong colour was
used under systems < Vista.

Restore this call now.

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

14 years agoCorrect wxDateTime::GetWeekOfMonth() for days in the beginning of January.
Vadim Zeitlin [Thu, 17 Dec 2009 17:51:12 +0000 (17:51 +0000)] 
Correct wxDateTime::GetWeekOfMonth() for days in the beginning of January.

This function was implemented in terms of GetWeekOfYear() which made it tricky
to get it right as GetWeekOfYear() can, correctly, return week number for the
previous year for the first days of January (and also from the next one for
the last days of December).

Replace this implementation with a simple one directly counting the number of
weeks since the first of the month, this seems to be much simpler and does
pass the new unit test case which the old version failed.

Also make the unit test failures more informative by using
WX_ASSERT_EQUAL_MESSAGE() instead of CPPUNIT_ASSERT_EQUAL().

See #11561.

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

14 years agoAdd test of accelerators using both ASCII and non-ASCII keys to the sample.
Vadim Zeitlin [Thu, 17 Dec 2009 16:44:22 +0000 (16:44 +0000)] 
Add test of accelerators using both ASCII and non-ASCII keys to the sample.

Test using 'Ctrl-A', just 'A' and 'Esc' as accelerators as all of them except
the first one were reported not to work in some cases.

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

14 years agoAlways use FVIRTKEY for the accelerators under MSW.
Vadim Zeitlin [Thu, 17 Dec 2009 16:44:09 +0000 (16:44 +0000)] 
Always use FVIRTKEY for the accelerators under MSW.

Not using FVIRTKEY results in problems in non-US keyboard layouts and, in
fact, we were already always using it because wxCharCodeWXToMSW() returned
true in its output IsVirtual argument most of the time.

Just do it always now and also remove IsVirtual parameter with badly (if at
all...) defined meaning from wxCharCodeWXToMSW() as it's not used anywhere any
longer.

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

14 years agoAllow wxPropertyGrid::RecalculateVirtualSize() execute even if pg is not completely...
Jaakko Salli [Thu, 17 Dec 2009 14:41:57 +0000 (14:41 +0000)] 
Allow wxPropertyGrid::RecalculateVirtualSize() execute even if pg is not completely initialized (otherwise virtual size calculations may go wrong)

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

14 years agosupporting sleep mode properly, see #11557
Stefan Csomor [Thu, 17 Dec 2009 12:15:48 +0000 (12:15 +0000)] 
supporting sleep mode properly, see #11557

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

14 years agoInitialize all fields of EXCEPINFO object to avoid crashes later.
Vadim Zeitlin [Thu, 17 Dec 2009 10:52:02 +0000 (10:52 +0000)] 
Initialize all fields of EXCEPINFO object to avoid crashes later.

We could call SysFreeString() on uninitialized pointers if IDispatch::Invoke()
failed.

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

14 years agoCorrect typo in wxEVT_COMMAND_LISTBOX_DOUBLECLICKED.
Vadim Zeitlin [Wed, 16 Dec 2009 19:27:34 +0000 (19:27 +0000)] 
Correct typo in wxEVT_COMMAND_LISTBOX_DOUBLECLICKED.

An underscore was omitted between LISTBOX and DOUBLECLICKED.

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

14 years agoFixed display of 'InlineHelp' attribute
Jaakko Salli [Wed, 16 Dec 2009 18:59:46 +0000 (18:59 +0000)] 
Fixed display of 'InlineHelp' attribute

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

14 years agoSlightly improved check whether or not to execute wxPropertyGrid::RecalculateVirtualS...
Jaakko Salli [Wed, 16 Dec 2009 18:48:42 +0000 (18:48 +0000)] 
Slightly improved check whether or not to execute wxPropertyGrid::RecalculateVirtualSize()

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

14 years agopreserve type when loaded image is rescaled, #11543
Paul Cornett [Wed, 16 Dec 2009 17:10:52 +0000 (17:10 +0000)] 
preserve type when loaded image is rescaled, #11543

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

14 years agoallow setting client size to work properly before window is shown
Paul Cornett [Wed, 16 Dec 2009 06:32:23 +0000 (06:32 +0000)] 
allow setting client size to work properly before window is shown

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

14 years agoAvoid GTK+ errors when using AUI wxPseudoTransparentFrame hack.
Vadim Zeitlin [Tue, 15 Dec 2009 22:44:54 +0000 (22:44 +0000)] 
Avoid GTK+ errors when using AUI wxPseudoTransparentFrame hack.

wxPseudoTransparentFrame is not a top level window at all and the code in
wxGTK wxTopLevelWindow::DoSetSizeHints() fails for it when it is called from
wxWindowBase::CreateBase() because of it and spits GTK+ errors as it calls
gtk_window_set_geometry_hints() with NULL widget.

Fix this by simply skipping wxTopLevelWindow implementation of this method in
wxPseudoTransparentFrame. A better fix would be to get rid of this hack
completely, of course.

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

14 years agoRemove asserts in wxChoicebook::Get/SetPageImage().
Vadim Zeitlin [Tue, 15 Dec 2009 21:12:06 +0000 (21:12 +0000)] 
Remove asserts in wxChoicebook::Get/SetPageImage().

It's better to silently return an error code than assert when these methods
are called as their failure is relatively harmless and the user code may call
them via base class pointer without caring if it works with a control which
supports images or not.

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

14 years agodefine NDEBUG if not using debug CRT
Václav Slavík [Tue, 15 Dec 2009 15:38:05 +0000 (15:38 +0000)] 
define NDEBUG if not using debug CRT

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

14 years agocompilation fix for wxUSE_IMAGE=0 case
Václav Slavík [Tue, 15 Dec 2009 11:25:11 +0000 (11:25 +0000)] 
compilation fix for wxUSE_IMAGE=0 case

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

14 years agocompilation fix for wxUSE_IMAGE=0 caseinclude/wx/iconbndl.h
Václav Slavík [Tue, 15 Dec 2009 11:24:50 +0000 (11:24 +0000)] 
compilation fix for wxUSE_IMAGE=0 caseinclude/wx/iconbndl.h

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

14 years agoPCH compilation fix
Václav Slavík [Tue, 15 Dec 2009 11:24:17 +0000 (11:24 +0000)] 
PCH compilation fix

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

14 years agoAvoid painting generic wxDataViewCtrl if it has no columns.
Vadim Zeitlin [Mon, 14 Dec 2009 19:17:12 +0000 (19:17 +0000)] 
Avoid painting generic wxDataViewCtrl if it has no columns.

The code in wxDataViewMainWindow::OnPaint() relied on having at least the
first column and didn't work for a completely empty control. Just don't paint
it at all in this case as it's unnecessary anyhow.

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

14 years agoMake wxPG_EX_MULTIPLE_SELECTION behave more like a Windows list box (regarding Ctrl...
Jaakko Salli [Mon, 14 Dec 2009 16:13:21 +0000 (16:13 +0000)] 
Make wxPG_EX_MULTIPLE_SELECTION behave more like a Windows list box (regarding Ctrl and Shift keys)

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

14 years agoDetermine better whether the property editor needs to be refreshed in wxPGProperty...
Jaakko Salli [Mon, 14 Dec 2009 15:33:50 +0000 (15:33 +0000)] 
Determine better whether the property editor needs to be refreshed in wxPGProperty::SetValue()

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

14 years ago'Set to Unspecified' -> 'Set Value to Unspecified'
Jaakko Salli [Mon, 14 Dec 2009 15:18:52 +0000 (15:18 +0000)] 
'Set to Unspecified' -> 'Set Value to Unspecified'

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

14 years agoSet correct m_state in wxPGCheckBoxEditor::SetValueToUnspecified()
Jaakko Salli [Mon, 14 Dec 2009 15:17:02 +0000 (15:17 +0000)] 
Set correct m_state in wxPGCheckBoxEditor::SetValueToUnspecified()

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

14 years agoAlways refresh the editor when setting property value to unspecified.
Jaakko Salli [Mon, 14 Dec 2009 15:15:35 +0000 (15:15 +0000)] 
Always refresh the editor when setting property value to unspecified.

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

14 years agoFixed unspecified property value rendering for various editor types (including check...
Jaakko Salli [Mon, 14 Dec 2009 15:12:29 +0000 (15:12 +0000)] 
Fixed unspecified property value rendering for various editor types (including check box)

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

14 years agoRestore correct access to wxGenericStaticText::Set{Font,Label}.
Vadim Zeitlin [Mon, 14 Dec 2009 12:41:55 +0000 (12:41 +0000)] 
Restore correct access to wxGenericStaticText::Set{Font,Label}.

Accessibility of these methods was accidentally changed to protected in r62821
and this broke wxUniv compilation, make them public again.

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

14 years agoRemove unnecessary Mac-specific TOOLKIT_LOWERCASE setting.
Vadim Zeitlin [Sun, 13 Dec 2009 12:52:59 +0000 (12:52 +0000)] 
Remove unnecessary Mac-specific TOOLKIT_LOWERCASE setting.

TOOLKIT is never set to "MAC" at all (it is one of OSX_{CARBON,COCOA,IPHONE})
so it is not necessary to test for it. And for the other cases the special
logic for OS X ports was the same as the general case so it seems to be
unnecessary as well.

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

14 years agoAdd --with-[osx_]iphone switch to configure.
Vadim Zeitlin [Sun, 13 Dec 2009 12:52:53 +0000 (12:52 +0000)] 
Add --with-[osx_]iphone switch to configure.

This is another Mac (wxUSE_MAC is defined) port with TOOLKIT=OSX_IPHONE.

Also use this port by default for arm-apple-darwin platforms.

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

14 years agoTest for sw_vers availability before calling it in configure.
Vadim Zeitlin [Sun, 13 Dec 2009 12:52:47 +0000 (12:52 +0000)] 
Test for sw_vers availability before calling it in configure.

There is no sw_vers when cross-compiling, just assume 10.4 system in this
case and point the user to --with-macosx-version-min which can be used to
override this.

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

14 years agoRename --with-cocoa configure switch to --with-old_cocoa to avoid confusion.
Vadim Zeitlin [Sun, 13 Dec 2009 12:52:42 +0000 (12:52 +0000)] 
Rename --with-cocoa configure switch to --with-old_cocoa to avoid confusion.

Change --with-cocoa to be synonym for --with-osx_cocoa, add --with-carbon as a
synonym for --with-osx_carbon for consistency and --with-osx as a synonym for
--with-mac.

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

14 years agoAdded wxPropertyGridManager header support; Refactored wxPropertyGrid DoSetSplitterPo...
Jaakko Salli [Sun, 13 Dec 2009 12:00:04 +0000 (12:00 +0000)] 
Added wxPropertyGridManager header support; Refactored wxPropertyGrid DoSetSplitterPosition() code

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

14 years agorearranging contentview, adding toolbar
Stefan Csomor [Sat, 12 Dec 2009 14:01:28 +0000 (14:01 +0000)] 
rearranging contentview, adding toolbar

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

14 years agorearranging contentview, adding toolbar
Stefan Csomor [Sat, 12 Dec 2009 13:40:24 +0000 (13:40 +0000)] 
rearranging contentview, adding toolbar

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

14 years agowxHeaderColumnBase -> wxHeaderColumn; Fixed UpdateColumnWidthToFit() sample code
Jaakko Salli [Sat, 12 Dec 2009 12:24:28 +0000 (12:24 +0000)] 
wxHeaderColumnBase -> wxHeaderColumn; Fixed UpdateColumnWidthToFit() sample code

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

14 years agoOn Windows, force read-only property editor wxTextCtrl to have 'white' background...
Jaakko Salli [Sat, 12 Dec 2009 10:10:15 +0000 (10:10 +0000)] 
On Windows, force read-only property editor wxTextCtrl to have 'white' background (for now...)

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

14 years agoAdded a proper log frame to the propgrid sample
Jaakko Salli [Sat, 12 Dec 2009 09:59:20 +0000 (09:59 +0000)] 
Added a proper log frame to the propgrid sample

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

14 years agoGenerate wxPropertyGrid splitter (column divider) events: wxEVT_PG_COL_BEGIN_DRAG...
Jaakko Salli [Sat, 12 Dec 2009 09:38:10 +0000 (09:38 +0000)] 
Generate wxPropertyGrid splitter (column divider) events: wxEVT_PG_COL_BEGIN_DRAG, wxEVT_PG_COL_DRAGGING, wxEVT_PG_COL_END_DRAG

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

14 years agoFixed incorrect use of RemoveAt() in wxPropertyGridPageState::SetColumnCount() (fixes...
Jaakko Salli [Fri, 11 Dec 2009 15:50:04 +0000 (15:50 +0000)] 
Fixed incorrect use of RemoveAt() in wxPropertyGridPageState::SetColumnCount() (fixes #11539)

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

14 years agoAdd support for stretchable spaces to wxToolBar.
Vadim Zeitlin [Thu, 10 Dec 2009 03:04:19 +0000 (03:04 +0000)] 
Add support for stretchable spaces to wxToolBar.

Stretchable spaces consume all extra toolbar space not allocated to the fixed
size items. They can in particular be used to right-align (some) toolbar tools.

Add and document the new API, change the sample to show it and implement it
for MSW, GTK and OS X/Cocoa.

Also refactor MSW background erasing/repainting code to avoid duplicated calls
to DrawThemeBackground(), call it from a new helper MSWEraseRect() function.

Note that we may want to add support for "invisible" separators, IOW
non-stretchable spaces. This could be easily done for MSW after the changes in
this commit and is supported natively by GTK+ and Cocoa so implementing this
would be trivial if there is any interest.

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

14 years agoRename gtk{,1}/tbargtk.{h,cpp} to toolbar.{h,cpp}.
Vadim Zeitlin [Thu, 10 Dec 2009 03:04:07 +0000 (03:04 +0000)] 
Rename gtk{,1}/tbargtk.{h,cpp} to toolbar.{h,cpp}.

We don't use crptknm$port.cpp naming convention even for MSW any more and
there is really no reason to continue to do it for just this one file in
wxGTK.

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