wxWidgets.git
14 years agoFix wxListCtrl::GetSubItemRect(wxLIST_RECT_ICON/LABEL) in wxMSW for column 0.
Vadim Zeitlin [Tue, 24 Nov 2009 00:01:38 +0000 (00:01 +0000)] 
Fix wxListCtrl::GetSubItemRect(wxLIST_RECT_ICON/LABEL) in wxMSW for column 0.

Wrong width was returned for the icon or label rectangle when querying the
first column. Fix this and add a test to the sample allowing to check this.

GetSubItemRect() still returns wrong results for second and subsequent
columns, see #11355.

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

14 years agoDon't change file access time implicitly when setting it explicitly.
Vadim Zeitlin [Tue, 24 Nov 2009 00:01:25 +0000 (00:01 +0000)] 
Don't change file access time implicitly when setting it explicitly.

wxFileHandle helper class used in wxFileName::SetTimes() under MSW modified
the file access time by setting it to the current time because it opened the
file in a wrong mode.

Closes #10567.

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

14 years agoEnable wxGraphicsContext and related classes by default if supported.
Vadim Zeitlin [Tue, 24 Nov 2009 00:01:15 +0000 (00:01 +0000)] 
Enable wxGraphicsContext and related classes by default if supported.

For MSW, check for gdiplus.h availability when using configure but only
support it for MSVC 7+ otherwise. For the other platforms, always support it.

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

14 years agoMade Unicode the default in symbols dialog.
Julian Smart [Mon, 23 Nov 2009 09:34:07 +0000 (09:34 +0000)] 
Made Unicode the default in symbols dialog.
Fixed wrongly sized symbols dialog.

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

14 years agoDefine wxNO_RTTI if RTTI support is disabled for g++ or MSVC.
Vadim Zeitlin [Sun, 22 Nov 2009 11:24:09 +0000 (11:24 +0000)] 
Define wxNO_RTTI if RTTI support is disabled for g++ or MSVC.

For g++ it could have been possible to define wxNO_RTTI in configure itself
but it seems better/simpler/more maintainable to do it in C++ code. As for
MSVC, we already define wxNO_RTTI correctly if build/msw/makefile.vc is used
but not if (modified or rebaked) project files are used and detecting RTTI
support in the code is the only way to fix it.

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

14 years agoDocument that throwing exceptions from wxTimer::Notify() is unsupported.
Vadim Zeitlin [Sun, 22 Nov 2009 11:24:03 +0000 (11:24 +0000)] 
Document that throwing exceptions from wxTimer::Notify() is unsupported.

Currently exceptions thrown from this function are not passed to wxApp::
OnExceptionInMainLoop() (unlike exceptions thrown from timer event handlers).

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

14 years agoFixed Cut&Paste error in wxTextCtrl::ChangeValue documentation (fixes #11469).
Stefan Neis [Sun, 22 Nov 2009 11:00:42 +0000 (11:00 +0000)] 
Fixed Cut&Paste error in wxTextCtrl::ChangeValue documentation (fixes #11469).

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

14 years agomaking sure creation is setup correctly for wx-frame coordinates into cocoa-content...
Stefan Csomor [Sat, 21 Nov 2009 17:02:06 +0000 (17:02 +0000)] 
making sure creation is setup correctly for wx-frame coordinates into cocoa-content coordinates, fixes #11463

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

14 years agoAdded a new documentation overview section 'Caveats When Not Using C++ RTTI', describ...
Jaakko Salli [Sat, 21 Nov 2009 11:39:32 +0000 (11:39 +0000)] 
Added a new documentation overview section 'Caveats When Not Using C++ RTTI', describing possible problems with Bind() and wxAny when C++ RTTI is disabled.

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

14 years agoUnified meaning of wxTypeIdentifier in RTTI and RTTI-less type info systems; Fixed...
Jaakko Salli [Sat, 21 Nov 2009 09:28:00 +0000 (09:28 +0000)] 
Unified meaning of wxTypeIdentifier in RTTI and RTTI-less type info systems; Fixed and added some comments

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

14 years agoFix compilation for some wxMSW configurations.
Vadim Zeitlin [Thu, 19 Nov 2009 22:34:33 +0000 (22:34 +0000)] 
Fix compilation for some wxMSW configurations.

wx/scopeguard.h was not always included when using PCH, so include it in any
case, not just #ifndef WX_PRECOMP.

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

14 years agoFixed builds without wxHAS_EVENT_BIND (typeinfo.h include was misplaced)
Jaakko Salli [Thu, 19 Nov 2009 21:16:10 +0000 (21:16 +0000)] 
Fixed builds without wxHAS_EVENT_BIND (typeinfo.h include was misplaced)

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

14 years agoAdded typeinfo.h which implements wxTypeId, using C++ RTTI if available. wxAny and...
Jaakko Salli [Thu, 19 Nov 2009 19:27:24 +0000 (19:27 +0000)] 
Added typeinfo.h which implements wxTypeId, using C++ RTTI if available. wxAny and Unbind<>() code are updated to use it. Added and updated related unit tests.

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

14 years agoCompilation fix for wxUSE_STL build: another missing _str().
Vadim Zeitlin [Thu, 19 Nov 2009 01:36:54 +0000 (01:36 +0000)] 
Compilation fix for wxUSE_STL build: another missing _str().

Use utf8_str() to convert wxString to GTK+ string instead of relying on
implicit conversion which doesn't exist when wxUSE_STL==1 (and also when using
wchar_t-based Unicode build).

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

14 years agoFix accidental commit of 2.8 ABI compat. code.
Kevin Ollivier [Wed, 18 Nov 2009 21:01:52 +0000 (21:01 +0000)] 
Fix accidental commit of 2.8 ABI compat. code.

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

14 years agoRebake after last commit.
Kevin Ollivier [Wed, 18 Nov 2009 19:22:58 +0000 (19:22 +0000)] 
Rebake after last commit.

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

14 years agoForward port of r60190 (wxMSW Cairo support) to trunk.
Kevin Ollivier [Wed, 18 Nov 2009 19:05:42 +0000 (19:05 +0000)] 
Forward port of r60190 (wxMSW Cairo support) to trunk.

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

14 years agoFixed #11212 [RichText sample] Assert/Crash when Styles combo box opened
Julian Smart [Wed, 18 Nov 2009 14:01:21 +0000 (14:01 +0000)] 
Fixed #11212 [RichText sample] Assert/Crash when Styles combo box opened
Patch by Catalin

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

14 years agoSuppress harmless g++ warnings about converting float/double to int.
Vadim Zeitlin [Wed, 18 Nov 2009 09:56:59 +0000 (09:56 +0000)] 
Suppress harmless g++ warnings about converting float/double to int.

The conversion is done on purpose on these places so just suppress the warning
by using explicit casts.

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

14 years agoFix harmless g++ warning about using NULL for non-pointer.
Vadim Zeitlin [Wed, 18 Nov 2009 09:56:52 +0000 (09:56 +0000)] 
Fix harmless g++ warning about using NULL for non-pointer.

PostQueuedCompletionStatus() may be either an int or a pointer, pass 0 instead
of NULL when we don't care about its value anyhow.

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

14 years agoFix handling of invalid paths with multiple columns in wxFileName.
Vadim Zeitlin [Wed, 18 Nov 2009 03:45:32 +0000 (03:45 +0000)] 
Fix handling of invalid paths with multiple columns in wxFileName.

SplitVolume() didn't handle colons in the initial position correctly which
surprised SetPath() and led to accessing an out-of-range string element. Fix
SplitVolume() and also add a check to SetPath() itself as it seems like it
could be called with a path containing the volume only.

Closes #11453.

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

14 years agoRemove unnecessary manual face name selection code.
Vadim Zeitlin [Wed, 18 Nov 2009 03:18:24 +0000 (03:18 +0000)] 
Remove unnecessary manual face name selection code.

The change of r60391 made specifying the face name explicitly unnecessary but
left the code which filled "facename" array in wxNativeFontInfo::SetFamily()
with face names even though it was never used -- simply remove this code.

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

14 years agoImplement wxFont::GetFaceName() to return the face name being really used.
Vadim Zeitlin [Wed, 18 Nov 2009 03:18:16 +0000 (03:18 +0000)] 
Implement wxFont::GetFaceName() to return the face name being really used.

Since the change of r60391 empty face name was returned for all fonts created
using the standard wxFont constructor (so basically all fonts except for those
created from native font info and the default/normal font which we retrieve
from the system). Use Windows GetOutlineTextMetrics() function to get the real
face name being used independently of the way the font was created.

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

14 years agoImproved handling of anchors in wxHTML: scroll to better position (patch #11406).
Václav Slavík [Tue, 17 Nov 2009 20:20:48 +0000 (20:20 +0000)] 
Improved handling of anchors in wxHTML: scroll to better position (patch #11406).

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

14 years agoFix typo in Bind() documentation: s/binded/bound/
Vadim Zeitlin [Tue, 17 Nov 2009 14:47:56 +0000 (14:47 +0000)] 
Fix typo in Bind() documentation: s/binded/bound/

Closes #11450.

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

14 years agoExplicitly document event types for EVT_CLOSE().
Vadim Zeitlin [Tue, 17 Nov 2009 14:47:44 +0000 (14:47 +0000)] 
Explicitly document event types for EVT_CLOSE().

Closes #11445.

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

14 years agoFix crash when dragging toolbars in wxAuiManager::OnFloatingPaneMoveStart(). (fixes...
Bryan Petty [Mon, 16 Nov 2009 21:55:57 +0000 (21:55 +0000)] 
Fix crash when dragging toolbars in wxAuiManager::OnFloatingPaneMoveStart(). (fixes #10170)

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

14 years agoAdd some missing commas. Fixes #11443
Robin Dunn [Mon, 16 Nov 2009 21:28:55 +0000 (21:28 +0000)] 
Add some missing commas.  Fixes #11443

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

14 years agoAlways set focus to the item selected using Select()
Robert Roebling [Mon, 16 Nov 2009 18:39:32 +0000 (18:39 +0000)] 
Always set focus to the item selected using Select()

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

14 years agoFix wxDataViewRenderer::GetEllipsizeMode() for kDataBrowserTruncateTextMiddle.
Vadim Zeitlin [Mon, 16 Nov 2009 15:03:39 +0000 (15:03 +0000)] 
Fix wxDataViewRenderer::GetEllipsizeMode() for kDataBrowserTruncateTextMiddle.

The value of this constant is 0 so don't test for it using operator "&", it's
just the default if no others are specified.

Fixes assert on startup of the dataview sample.

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

14 years agoMaybe fixed assertion when using built-in searching non-string columns
Robert Roebling [Sun, 15 Nov 2009 15:07:56 +0000 (15:07 +0000)] 
Maybe fixed assertion when using built-in searching non-string columns

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

14 years agoDon't use Ctrl-F as it hides a bug
Robert Roebling [Sun, 15 Nov 2009 14:54:12 +0000 (14:54 +0000)] 
Don't use Ctrl-F as it hides a bug

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

14 years agoDo earlier and better checking for matching actions and data format, hopefully fixes...
Robert Roebling [Sun, 15 Nov 2009 13:39:05 +0000 (13:39 +0000)] 
Do earlier and better checking for matching actions and data format, hopefully fixes #11201

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

14 years agofixing typo for builds < 10.6
Stefan Csomor [Sun, 15 Nov 2009 12:05:50 +0000 (12:05 +0000)] 
fixing typo for builds < 10.6

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

14 years agoDisable GTK cast checks in wx code
Robert Roebling [Sun, 15 Nov 2009 10:29:07 +0000 (10:29 +0000)] 
Disable GTK cast checks in wx code

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

14 years agoRevert wxFlexGridSizer constr. change
Robert Roebling [Sun, 15 Nov 2009 09:40:30 +0000 (09:40 +0000)] 
Revert wxFlexGridSizer constr. change

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

14 years agolook for backtrace() in -lexecinfo, fixes #9783
Paul Cornett [Sun, 15 Nov 2009 04:02:27 +0000 (04:02 +0000)] 
look for backtrace() in -lexecinfo, fixes #9783

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

14 years agoShowWithoutActivating fix for OS X Cocoa, and also add support for shaped windows...
Kevin Ollivier [Sun, 15 Nov 2009 01:36:30 +0000 (01:36 +0000)] 
ShowWithoutActivating fix for OS X Cocoa, and also add support for shaped windows at least when the image being drawn has proper alpha/mask set. I'm not sure if we can support it by setting a region on the TLW, as the way to do this in Cocoa is just to make the TLW's background transparent and use alpha in whatever you draw.

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

14 years agoImplement support for wxSL_<DIR> in wxGTK, show them better in the sample.
Vadim Zeitlin [Sat, 14 Nov 2009 23:15:27 +0000 (23:15 +0000)] 
Implement support for wxSL_<DIR> in wxGTK, show them better in the sample.

Support wxSL_{LEFT,TOP,RIGHT,BOTTOM} in wxGTL version of wxSlider.

Make the display of the orientations in the slider page of the widgets sample
more clear.

Also document wxSL_<DIR> meaning better.

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

14 years agoNo changes, just removed trailing spaces.
Vadim Zeitlin [Sat, 14 Nov 2009 23:15:14 +0000 (23:15 +0000)] 
No changes, just removed trailing spaces.

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

14 years agoCorrect wxSL_VERTICAL addition in r62618.
Vadim Zeitlin [Sat, 14 Nov 2009 23:15:07 +0000 (23:15 +0000)] 
Correct wxSL_VERTICAL addition in r62618.

It was incorrectly added to the case label value instead of flags.

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

14 years agoMinor corrections to wxSL_LABELS definition and documentation.
Vadim Zeitlin [Sat, 14 Nov 2009 23:14:27 +0000 (23:14 +0000)] 
Minor corrections to wxSL_LABELS definition and documentation.

Use parentheses around the macro expansion to ensure that code like "whatever
& ~wxSL_LABELS" still works as expected.

Be more explicit in wxSL_LABELS description and mark wxSL_MIN_MAX_LABELS and
wxSL_VALUE_LABEL as being new in 2.9.1.

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

14 years agoRestore ability to create wxFlexGridSizer with 2 params (number of columns and vertic...
Robert Roebling [Sat, 14 Nov 2009 21:50:50 +0000 (21:50 +0000)] 
Restore ability to create wxFlexGridSizer with 2 params (number of columns and vertical gap)

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

14 years agoDon't assert when we get wxBG_STYLE_TRANSPARENT.
Kevin Ollivier [Sat, 14 Nov 2009 19:52:26 +0000 (19:52 +0000)] 
Don't assert when we get wxBG_STYLE_TRANSPARENT.

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

14 years agoFix typo that broke compilation and adjust the defines to avoid an empty #if.
Kevin Ollivier [Sat, 14 Nov 2009 19:51:27 +0000 (19:51 +0000)] 
Fix typo that broke compilation and adjust the defines to avoid an empty #if.

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

14 years agoHide value label explicitly
Robert Roebling [Sat, 14 Nov 2009 18:56:07 +0000 (18:56 +0000)] 
Hide value label explicitly

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

14 years agoUndo test code accidentally committed as part of r62643.
Vadim Zeitlin [Sat, 14 Nov 2009 17:34:47 +0000 (17:34 +0000)] 
Undo test code accidentally committed as part of r62643.

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

14 years agoAlways position value lable left of a vertical slider
Robert Roebling [Sat, 14 Nov 2009 16:34:56 +0000 (16:34 +0000)] 
Always position value lable left of a vertical slider

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

14 years agoAdd tests for wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL
Robert Roebling [Sat, 14 Nov 2009 16:31:06 +0000 (16:31 +0000)] 
Add tests for wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL

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

14 years agoNo real changes, just remove the ugly CONST_CAST macro.
Vadim Zeitlin [Sat, 14 Nov 2009 16:11:09 +0000 (16:11 +0000)] 
No real changes, just remove the ugly CONST_CAST macro.

Use const_cast<> directly, we don't support compilers which don't have it any
more. And CONST_CAST macro conflicts with a macro with the same name (and
similar purpose) defined in Symbian headers.

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

14 years agoRestore the use of correct alignment in wxDVC renderers.
Vadim Zeitlin [Sat, 14 Nov 2009 15:51:50 +0000 (15:51 +0000)] 
Restore the use of correct alignment in wxDVC renderers.

The code from old CalculateAlignment() was somehow lost during the
refactoring, restore it in wxDataViewCustomRendererBase::RenderText().

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

14 years agoSimple implementation of wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL for MSW
Robert Roebling [Sat, 14 Nov 2009 14:26:54 +0000 (14:26 +0000)] 
Simple implementation of wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL for MSW

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

14 years agoDocument wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL
Robert Roebling [Sat, 14 Nov 2009 14:25:54 +0000 (14:25 +0000)] 
Document wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL

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

14 years agoTypo
Robert Roebling [Sat, 14 Nov 2009 11:03:17 +0000 (11:03 +0000)] 
Typo

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

14 years agoImplement wxSL_VALUE_LABEL and wxSL_MIN_MAX_LABELS for GTK+
Robert Roebling [Sat, 14 Nov 2009 10:58:31 +0000 (10:58 +0000)] 
Implement wxSL_VALUE_LABEL and wxSL_MIN_MAX_LABELS for GTK+

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

14 years agoRenamed wxSL_LABELS_MIN_MAX -> wxSL_MIN_MAX_LABELS
Robert Roebling [Fri, 13 Nov 2009 18:56:30 +0000 (18:56 +0000)] 
Renamed wxSL_LABELS_MIN_MAX -> wxSL_MIN_MAX_LABELS

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

14 years agoadding toolbar implementation for iphone
Stefan Csomor [Fri, 13 Nov 2009 18:39:38 +0000 (18:39 +0000)] 
adding toolbar implementation for iphone

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

14 years agoAdd constants wxSL_LABELS_MIN_MAX and wxSL_VALUE_LABEL
Robert Roebling [Fri, 13 Nov 2009 18:36:14 +0000 (18:36 +0000)] 
Add constants wxSL_LABELS_MIN_MAX and wxSL_VALUE_LABEL

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

14 years agoupdating implementations of wxGetMouseState for osx_cocoa and dummy impls for iphone
Stefan Csomor [Fri, 13 Nov 2009 18:30:00 +0000 (18:30 +0000)] 
updating implementations of wxGetMouseState for osx_cocoa and dummy impls for iphone

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

14 years agoImplement and document wxDataViewTreeCtrl::IsContainer(), use it in the sample to...
Robert Roebling [Fri, 13 Nov 2009 14:14:44 +0000 (14:14 +0000)] 
Implement and document wxDataViewTreeCtrl::IsContainer(), use it in the sample to not add items to non-containers

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

14 years agoMinor formating
Robert Roebling [Fri, 13 Nov 2009 13:56:55 +0000 (13:56 +0000)] 
Minor formating

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

14 years agoCorrect sorting in wxDataViewTreeStore, fixes #11436, part II
Robert Roebling [Fri, 13 Nov 2009 13:56:32 +0000 (13:56 +0000)] 
Correct sorting in wxDataViewTreeStore, fixes #11436, part II

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

14 years agoDon't use gtk_tree_model_get_path of the item is already the delete in the model...
Robert Roebling [Fri, 13 Nov 2009 10:30:07 +0000 (10:30 +0000)] 
Don't use gtk_tree_model_get_path of the item is already the delete in the model, fixes #11436

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

14 years agoAdd tests to wxDataViewTreeCtrl
Robert Roebling [Fri, 13 Nov 2009 08:32:35 +0000 (08:32 +0000)] 
Add tests to wxDataViewTreeCtrl

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

14 years agoAlso update focus rect when changing selection in single selection mode, fixes #11332
Robert Roebling [Fri, 13 Nov 2009 08:24:00 +0000 (08:24 +0000)] 
Also update focus rect when changing selection in single selection mode, fixes #11332

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

14 years agoReset m_underMouse anytime the display is changed programmatically, fixes #11322
Robert Roebling [Fri, 13 Nov 2009 08:05:00 +0000 (08:05 +0000)] 
Reset m_underMouse anytime the display is changed programmatically, fixes #11322

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

14 years agoOverride default handling so that we can position windows off-screen like on other...
Kevin Ollivier [Fri, 13 Nov 2009 02:28:16 +0000 (02:28 +0000)] 
Override default handling so that we can position windows off-screen like on other ports.

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

14 years agoMake wxSizeEvent::GetSize() description more precise.
Vadim Zeitlin [Thu, 12 Nov 2009 13:13:09 +0000 (13:13 +0000)] 
Make wxSizeEvent::GetSize() description more precise.

Mention that it returns the new total (and not client) size of the window.

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

14 years agoUpdate gdb pretty printing support for latest gdb version.
Vadim Zeitlin [Wed, 11 Nov 2009 23:08:41 +0000 (23:08 +0000)] 
Update gdb pretty printing support for latest gdb version.

gdb.pretty_printers is not a map any more but a list containing lookup
functions for pretty printers.

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

14 years agoSet wxSL_VERTICAL style in wxSlider demo page.
Vadim Zeitlin [Wed, 11 Nov 2009 22:30:07 +0000 (22:30 +0000)] 
Set wxSL_VERTICAL style in wxSlider demo page.

wxGTK doesn't currently take wxSL_{LEFT,RIGHT,TOP,BOTTOM} styles into account
but at least make it change the slider orientation correctly depending on them.

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

14 years agoFix wxPropertyGrid rendering problems when used with wxAUI. It seems we cannot rely...
Jaakko Salli [Wed, 11 Nov 2009 19:49:58 +0000 (19:49 +0000)] 
Fix wxPropertyGrid rendering problems when used with wxAUI. It seems we cannot rely on wxWindow::GetRect() to return wxRect with x=0 here. (fixes #11433)

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

14 years agoCheck that event's IDs range is valid, i.e. that lower bound
Václav Slavík [Wed, 11 Nov 2009 17:18:49 +0000 (17:18 +0000)] 
Check that event's IDs range is valid, i.e. that lower bound
is not higher than upper bound.

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

14 years agoAdd wxBase64Decode(void*,size_t,wxString) overload.
Vadim Zeitlin [Wed, 11 Nov 2009 14:38:40 +0000 (14:38 +0000)] 
Add wxBase64Decode(void*,size_t,wxString) overload.

We had wxBase64Decode(void*,size_t,const char*,size_t) as well as
wxBase64Decode(const char*,size_t) and wxBase64Decode(wxString) already but
not a version taking the buffer and wxString, complete the set of overloads
now.

This allows the unit test to compile in STL build (where there is no implicit
conversion from wxString to const char *).

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

14 years agoFixed tab removal bug, and empty text element
Julian Smart [Wed, 11 Nov 2009 10:59:14 +0000 (10:59 +0000)] 
Fixed tab removal bug, and empty text element

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

14 years agoadded a note about XRCID() and EVT_*_RANGE macros (see bug #11431)
Václav Slavík [Wed, 11 Nov 2009 10:22:57 +0000 (10:22 +0000)] 
added a note about XRCID() and EVT_*_RANGE macros (see bug #11431)

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

14 years agoUse wxWebKitCtrlNameStr to adhere to the convention used by other wx classes.
Kevin Ollivier [Wed, 11 Nov 2009 02:12:56 +0000 (02:12 +0000)] 
Use wxWebKitCtrlNameStr to adhere to the convention used by other wx classes.

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

14 years agoRun sanity checks on the position values.
Kevin Ollivier [Wed, 11 Nov 2009 02:11:13 +0000 (02:11 +0000)] 
Run sanity checks on the position values.

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

14 years agoImplement text ellipsizing for wxDataViewCustomRenderer in wxGTK.
Vadim Zeitlin [Wed, 11 Nov 2009 01:50:06 +0000 (01:50 +0000)] 
Implement text ellipsizing for wxDataViewCustomRenderer in wxGTK.

Add another virtual function (GtkGetTextRenderer()) to the base class which
allows us to reuse the same code setting the "ellipsize" property that we
already used for wxDataViewTextRenderer for wxDataViewCustomRenderer as well.

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

14 years agoAdd wxOSX_USE_COCOA around Cocoa-only OSXApplyAttr() method.
Vadim Zeitlin [Wed, 11 Nov 2009 01:36:36 +0000 (01:36 +0000)] 
Add wxOSX_USE_COCOA around Cocoa-only OSXApplyAttr() method.

This method is used in wxOSX/Cocoa only.

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

14 years agoRevert r62598 which removed "unnecessary wxOSX_USE_COCOA checks."
Vadim Zeitlin [Wed, 11 Nov 2009 01:32:58 +0000 (01:32 +0000)] 
Revert r62598 which removed "unnecessary wxOSX_USE_COCOA checks."

These checks were not unnecessary at all, this file is used for both Cocoa and
Carbon, fix this momentary lapse of reason.

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

14 years agoSend the selected item in wxDVC SELECTION_CHANGED event in OSX/Cocoa.
Vadim Zeitlin [Tue, 10 Nov 2009 18:17:38 +0000 (18:17 +0000)] 
Send the selected item in wxDVC SELECTION_CHANGED event in OSX/Cocoa.

This event was perfectly useless as it didn't indicate which item was
selected. Do set the selected item now, just as the generic and GTK versions
do.

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

14 years agoNo changes, just reformat comments in osx/dataview.mm.
Vadim Zeitlin [Tue, 10 Nov 2009 18:17:31 +0000 (18:17 +0000)] 
No changes, just reformat comments in osx/dataview.mm.

Wrap long lines to be able to read the comments and remove the perfectly
useless "// variable definition" and "// constant definition for
abbreviational purposes" noise.

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

14 years agoFix width of the wxDataViewTreeCtrl column under OSX/Cocoa.
Vadim Zeitlin [Tue, 10 Nov 2009 17:42:58 +0000 (17:42 +0000)] 
Fix width of the wxDataViewTreeCtrl column under OSX/Cocoa.

Set the column resizing mode to "automatic" instead of "none" if the control
doesn't show the header. This allows the native control to properly resize the
only tree control column to always take up the entire window size (provided we
don't explicitly create it resizeable, so don't do this).

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

14 years agoAdd support for wxDV_NO_HEADER to OS X/Cocoa wxDataViewCtrl.
Vadim Zeitlin [Tue, 10 Nov 2009 17:42:46 +0000 (17:42 +0000)] 
Add support for wxDV_NO_HEADER to OS X/Cocoa wxDataViewCtrl.

Also use this flag with the tree control in the sample to test it and also
because it doesn't make much sense to have a single column without title
anyhow.

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

14 years agoMore cleanup of OS X Cocoa wxDataViewCtrl code.
Vadim Zeitlin [Tue, 10 Nov 2009 17:42:38 +0000 (17:42 +0000)] 
More cleanup of OS X Cocoa wxDataViewCtrl code.

Add wxDataViewItemFromItem() and wxDataViewItemFromMaybeNilItem() functions
instead of repeating the same ugly casts several dozens of times.

Also wrap some more long lines.

No real changes.

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

14 years agoAdd support for custom attributes to wxOSX/Cocoa wxDataViewCustomRenderer.
Vadim Zeitlin [Tue, 10 Nov 2009 17:42:24 +0000 (17:42 +0000)] 
Add support for custom attributes to wxOSX/Cocoa wxDataViewCustomRenderer.

Virtualize applying the attributes in a new OSXApplyAttr() function and simply
store the attribute in its wxDataViewCustomRenderer version so that it could
be reused later in Render().

The attributes now work correctly in wxOSX/Cocoa dataview sample too.

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

14 years agoNo changes, just remove unnecessary wxOSX_USE_COCOA checks.
Vadim Zeitlin [Tue, 10 Nov 2009 17:42:13 +0000 (17:42 +0000)] 
No changes, just remove unnecessary wxOSX_USE_COCOA checks.

This file is only compiled in wxOSX/Cocoa build so there is no need to check
that we're using Cocoa here.

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

14 years agoDon't overwrite background in custom renderer in OSX/Cocoa.
Vadim Zeitlin [Tue, 10 Nov 2009 17:42:04 +0000 (17:42 +0000)] 
Don't overwrite background in custom renderer in OSX/Cocoa.

Erasing background seems to be unnecessary and was actively harmful for the
selected items which didn't appear with the correct background colour. Just
don't do it at all.

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

14 years agoAdd support for custom attributes to wxGTK wxDataViewCustomRenderer.
Vadim Zeitlin [Tue, 10 Nov 2009 17:41:58 +0000 (17:41 +0000)] 
Add support for custom attributes to wxGTK wxDataViewCustomRenderer.

Call SetAttr() to store them in wxDataViewCustomRenderer before rendering it
and also honour the attributes in RenderText() (by reusing the same code we
already use for wxDataViewTextRenderer).

The attributes now work correctly in dataview sample under wxGTK as well.

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

14 years agoCorrect text position in wxDataViewCustomRenderer::RenderText() in wxGTK.
Vadim Zeitlin [Tue, 10 Nov 2009 17:41:50 +0000 (17:41 +0000)] 
Correct text position in wxDataViewCustomRenderer::RenderText() in wxGTK.

It simply ignored the passed in rectangle meaning that the text was always
drawn at the top left corner of the cell rectangle.

Also more code cleanup: collect all render call parameters in a single struct
and provide a public function to set them all at once instead of making them
public.

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

14 years agoPass full cell rectangle to WXCallRender().
Vadim Zeitlin [Tue, 10 Nov 2009 17:41:42 +0000 (17:41 +0000)] 
Pass full cell rectangle to WXCallRender().

There is no need to ask the item for its size in gtk_wx_cell_renderer_render()
as WXCallRender() will already do it (correctly, accounting for badly
implemented GetSize() unlike this version) internally on its own.

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

14 years agoAdd helper wxRectFromGDKRect() function and use it.
Vadim Zeitlin [Tue, 10 Nov 2009 17:41:35 +0000 (17:41 +0000)] 
Add helper wxRectFromGDKRect() function and use it.

No real changes, just another small refactoring.

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

14 years agoNo real changes, just remove some unnecessary casts.
Vadim Zeitlin [Tue, 10 Nov 2009 17:41:28 +0000 (17:41 +0000)] 
No real changes, just remove some unnecessary casts.

Use correct GdkRectangle* type for wxDataViewCustomRenderer::xxx_area members
instead of casting them to and from void*.

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

14 years agoAvoid setting attributes in GTK wxDataViewRenderer if not supported.
Vadim Zeitlin [Tue, 10 Nov 2009 17:41:22 +0000 (17:41 +0000)] 
Avoid setting attributes in GTK wxDataViewRenderer if not supported.

If the native renderer doesn't support the properties which we map our
attributes to, trying to set them is useless and results in GTK+ warnings so
don't do it.

Add wxDataViewRenderer::GtkSupportsAttrs() which can be overridden to indicate
whether the renderer supports attributes or not. We probably could use
g_object_class_find_property() instead to detect it automatically but for now
these properties are all supported only by GtkCellRendererText and not
supported anywhere else so using a single virtual function seems tidier.

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

14 years agoAllow custom wxDataViewCtrl renderers to easily use attributes.
Vadim Zeitlin [Tue, 10 Nov 2009 17:41:11 +0000 (17:41 +0000)] 
Allow custom wxDataViewCtrl renderers to easily use attributes.

Set up the DC passed to wxDataViewCustomRenderer::Render() to use the font and
colour defined by the item attribute by default so that any calls to
RenderText() from it will use them automatically.

Also added public wxDataViewCustomRenderer::GetAttr() to allow retrieving the
attribute explicitly in Render().

The column using custom renderer in the dataview sample now works as expected
in the generic version; the native ones will be corrected in the upcoming
commits.

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

14 years agoBig wxDataViewCtrl renderer classes refactoring.
Vadim Zeitlin [Tue, 10 Nov 2009 17:40:58 +0000 (17:40 +0000)] 
Big wxDataViewCtrl renderer classes refactoring.

This commit adds no changes in functionality but paves way for the upcoming
improvements of wxDataViewCustomRenderer.

First, introduce wxDataViewCustomRendererBase class in order to allow
implementing behaviour common to custom renderers in all ports in this class
instead of triplicating it.

This required splitting monolithic dataview.h in more parts, now we have
wx/dvrenderer.h which defines wxDataViewRendererBase and the new
wxDataViewCustomRendererBase and includes wx/port/dvrenderer.h which define
wxDataViewRenderer and wx/port/dvrenderers.h which defines all the other
renderer classes.

Also bring renderers hierarchy in the generic version closer to other ports:
all standard renderer classes now inherit from wxDataViewRenderer and not
wxDataViewCustomRenderer in for consistency with the other ports.
wxDataViewRenderer itself still does derive from wxDataViewCustomRendererBase,
unlike elsewhere, but this is unavoidable considering that all generic
renderers are custom ones.

Finally do some cleanup in OS X part of the code: correct indentation,
spacing, comment style.

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

14 years agoAdd custom renderer column to the list model example in dataview sample.
Vadim Zeitlin [Tue, 10 Nov 2009 17:40:37 +0000 (17:40 +0000)] 
Add custom renderer column to the list model example in dataview sample.

Add a column using custom renderer to the example using a list model with
attributes to test attributes support -- currently they are ignored, but this
will be fixed soon.

Also make the custom renderer display somewhat more clear as previously it
didn't depend at all on its value.

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

14 years agoUse symbolic constants for list model columns in dataview sample.
Vadim Zeitlin [Tue, 10 Nov 2009 17:40:25 +0000 (17:40 +0000)] 
Use symbolic constants for list model columns in dataview sample.

Using Col_EditableText, Col_IconText and Col_TextWithAttr instead of 0, 1 and
2 makes the sample code a bit easier to read.

Also use switch on the column value instead of nested ifs everywhere to give
compiler a chance to warn us if we forget to update some function when a new
column is added.

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

14 years agowxSpinCtrl values are always integral, they don't need to be rounded
Paul Cornett [Tue, 10 Nov 2009 17:36:53 +0000 (17:36 +0000)] 
wxSpinCtrl values are always integral, they don't need to be rounded

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

14 years agowxSpinCtrl::SetIncrement is supposed to take an int, not a double
Paul Cornett [Tue, 10 Nov 2009 17:12:36 +0000 (17:12 +0000)] 
wxSpinCtrl::SetIncrement is supposed to take an int, not a double

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