]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoSlightly more efficient wxDataViewCtrl::StartEditor().
Václav Slavík [Sat, 3 Sep 2011 13:14:23 +0000 (13:14 +0000)] 
Slightly more efficient wxDataViewCtrl::StartEditor().

Don't compute item rect until we know for sure that the item actually is
editable.

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

13 years agoFix generic wxDataViewCtrl Enter handling to conform to Windows UI.
Václav Slavík [Sat, 3 Sep 2011 13:14:20 +0000 (13:14 +0000)] 
Fix generic wxDataViewCtrl Enter handling to conform to Windows UI.

Spacebar is used to activate columns (e.g. toggle a checkbox).  Enter
activates the item, i.e. sends wxEVT_COMMAND_ITEM_ACTIVATED. If that
event isn't handled, Enter acts the same as Space.

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

13 years agoFix some broken or add some missing interface declarations for Phoenix
Robin Dunn [Sat, 3 Sep 2011 01:39:02 +0000 (01:39 +0000)] 
Fix some broken or add some missing interface declarations for Phoenix

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

13 years agoDon't warn about wxMetaFile in configure by default.
Vadim Zeitlin [Thu, 1 Sep 2011 18:43:07 +0000 (18:43 +0000)] 
Don't warn about wxMetaFile in configure by default.

Only warn if an explicit --enable-metafile was given, otherwise just turn it
on only for the platforms that do support it, similarly to what was done for
--enable-hotkey in the previous commit.

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

13 years agoAdd wxUSE_HOTKEY support to configure.
Vadim Zeitlin [Thu, 1 Sep 2011 18:43:03 +0000 (18:43 +0000)] 
Add wxUSE_HOTKEY support to configure.

Add --enable-hotkey switch to allow enabling hot keys support and enable it by
default under MSW and OS X that do support them but disable it elsewhere to
avoid unnecessary warnings about them being unsupported.

See #12354.

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

13 years agofixes #13443, thanks :-)
Stefan Csomor [Thu, 1 Sep 2011 16:20:24 +0000 (16:20 +0000)] 
fixes #13443, thanks :-)

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

13 years agoFix deleting and clearing wxTreeListCtrl columns.
Vadim Zeitlin [Wed, 31 Aug 2011 17:22:11 +0000 (17:22 +0000)] 
Fix deleting and clearing wxTreeListCtrl columns.

The model columns were not updated before, resulting in a mismatch between
view and model columns if ClearColumns() followed by AppendColumn() was
called.

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

13 years agoAdd items to correct position in wxDataViewCtrl:ItemAdded.
Václav Slavík [Wed, 31 Aug 2011 09:36:27 +0000 (09:36 +0000)] 
Add items to correct position in wxDataViewCtrl:ItemAdded.

In both the generic and GTK+ versions, ItemAdded() always appended the
new item, regardless of its position among its siblings  in the model.

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

13 years agoGeneric wxDataViewCtrl: resize autosized columns at idle time.
Václav Slavík [Wed, 31 Aug 2011 09:04:41 +0000 (09:04 +0000)] 
Generic wxDataViewCtrl: resize autosized columns at idle time.

This is much more efficient than doing it immediately when adding large
number of items into a control with lots of them.

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

13 years agoFixed dlmsw.cpp compilation with older SDKs and at run-time for systems prior to...
Dimitri Schoolwerth [Tue, 30 Aug 2011 15:20:05 +0000 (15:20 +0000)] 
Fixed dlmsw.cpp compilation with older SDKs and at run-time for systems prior to XP SP1.

Kernel32's SetDllDirectory is only available since XP SP1 and as such also not available in the SDK that comes by default with for example VS6. Attempt to retrieve the function from the DLL at run-time instead. Regression since r68935.

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

13 years agoBetter support for flat lists in wxTreeListCtrl.
Vadim Zeitlin [Tue, 30 Aug 2011 13:40:44 +0000 (13:40 +0000)] 
Better support for flat lists in wxTreeListCtrl.

Override wxDataViewModel::IsListModel() to return true if wxTreeListCtrl
doesn't have any depth. This results in better display when using the generic
implementation of wxDataViewCtrl as no space is reserved for the (unnecessary)
expanders in this case.

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

13 years agoFix computation of the item offset in generic wxDataViewCtrl code.
Vadim Zeitlin [Tue, 30 Aug 2011 13:40:40 +0000 (13:40 +0000)] 
Fix computation of the item offset in generic wxDataViewCtrl code.

We need to account for the expander even for the items that don't have
children when computing their offset as their parent still does have it,
contributing to the total offset.

This corrects the fixes of r68836 to also work for the leaf items.

Also rename expanderOffset variable to more clear itemOffset.

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

13 years agoUpdate makefiles for OpenVMS
Jouk Jansen [Tue, 30 Aug 2011 09:51:21 +0000 (09:51 +0000)] 
Update makefiles for OpenVMS

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

13 years agofixes #13438 (building OSX min >= 10.6), thanks :-)
Stefan Csomor [Tue, 30 Aug 2011 09:02:11 +0000 (09:02 +0000)] 
fixes #13438 (building OSX min >= 10.6), thanks :-)

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

13 years agoadding command - comma as shortcut of stockitem wxID_PRERENCES on OSX - and make...
Stefan Csomor [Tue, 30 Aug 2011 07:01:25 +0000 (07:01 +0000)] 
adding command - comma as shortcut of stockitem wxID_PRERENCES on OSX - and make sure it's working by adapting ToString()

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

13 years agoRegenerated Xcode projects.
Dimitri Schoolwerth [Mon, 29 Aug 2011 19:09:16 +0000 (19:09 +0000)] 
Regenerated Xcode projects.

Updated the Xcode projects to include latest source additions and newer settings from template *_in.xcodeproj project files.

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

13 years agoSend wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED if WXOnActivate() returned false too.
Václav Slavík [Mon, 29 Aug 2011 17:25:38 +0000 (17:25 +0000)] 
Send wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED if WXOnActivate() returned false too.

This is consistent with wxGTK implementation and generally makes sense:
when the renderer cannot handle activation, whole-item activation should
be tried next.

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

13 years agoMake generic wxDataViewToggleRenderer react to activation.
Václav Slavík [Mon, 29 Aug 2011 17:25:33 +0000 (17:25 +0000)] 
Make generic wxDataViewToggleRenderer react to activation.

Previously it only responded to single-clicks, which was to avoid the
need to double-click checkboxes. Fixed to react to activation via
double-click or keyboard too.

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

13 years agoActivate cells from keyboard too in generic wxDataViewCtrl.
Václav Slavík [Mon, 29 Aug 2011 17:25:25 +0000 (17:25 +0000)] 
Activate cells from keyboard too in generic wxDataViewCtrl.

wxDataViewCtrl only called WXOnActivate() in reaction to double-click.
When Enter/Spacebar was pressed, only
wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED was sent, without calling
OnActivate() even if it was possible.

Fixed to handle both kinds of input identically.

Because there's currently no way to change current focus to a particular
column (as GtkTreeView can do), call WXOnActivate() on the first
activatable column.

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

13 years agoFixed drawing a check box in the undetermined state for non-themed MSW apps.
Dimitri Schoolwerth [Mon, 29 Aug 2011 16:06:32 +0000 (16:06 +0000)] 
Fixed drawing a check box in the undetermined state for non-themed MSW apps.

wxRendererMSW::DoDrawFrameControl (used for systems prior to XP or when theming is disabled) didn't check for the wxCONTROL_UNDETERMINED flag yet. Set the appropriate styles when the flag is used to fix drawing check boxes in their third state (as used in for example the treelist sample).

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

13 years agoMake it possible to TAB to wxTreeListCtrl contents.
Vadim Zeitlin [Mon, 29 Aug 2011 14:46:56 +0000 (14:46 +0000)] 
Make it possible to TAB to wxTreeListCtrl contents.

Even though wxTreeListCtrl contains just one child window it still needs to
derive from wxNavigationEnabled<> to allow focus getting to its sole child.

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

13 years agoFix spelling error in an error message in wxObjectXmlReader.
Vadim Zeitlin [Mon, 29 Aug 2011 12:33:40 +0000 (12:33 +0000)] 
Fix spelling error in an error message in wxObjectXmlReader.

No other changes.

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

13 years agoAdded alpha saving support to TIFF image handler.
Dimitri Schoolwerth [Mon, 29 Aug 2011 01:13:06 +0000 (01:13 +0000)] 
Added alpha saving support to TIFF image handler.

Added support for saving alpha with RGB, greyscale, and black and white images.

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

13 years agoFixed loading greyscale with alpha TIFF images.
Dimitri Schoolwerth [Sun, 28 Aug 2011 23:45:17 +0000 (23:45 +0000)] 
Fixed loading greyscale with alpha TIFF images.

The alpha channel was not detected because of wrong hasAlpha determination. Also TIFFReadRGBAImage[Oriented] doesn't appear to decode an alpha channel for images that are greyscale so decode greyscale with alpha images using TIFFReadScanline.

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

13 years agoFixed copying only 1/3 of scanline when saving TIFF image in rare cases.
Dimitri Schoolwerth [Sun, 28 Aug 2011 22:44:04 +0000 (22:44 +0000)] 
Fixed copying only 1/3 of scanline when saving TIFF image in rare cases.

If our calculated image pitch is not equal to what TIFFScanlineSize returns a scanline buffer would be used. In that case the number of bytes being copied was equal to the image's width instead of pitch (width times 3).

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

13 years agoAdded support for loading black and white TIFF images with alpha.
Dimitri Schoolwerth [Sun, 28 Aug 2011 22:17:04 +0000 (22:17 +0000)] 
Added support for loading black and white TIFF images with alpha.

As TIFFReadRGBAImage[Oriented] can't deal with all images make use of TIFFReadScanline to decode per scanline. Currently only the case of a black and white image with alpha (for a total of 2 bits per pixel) is handled.

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

13 years agoUpdated manual regarding image alpha support for TGA handler.
Dimitri Schoolwerth [Sun, 28 Aug 2011 22:06:46 +0000 (22:06 +0000)] 
Updated manual regarding image alpha support for TGA handler.

TGA was not mentioned in the list of formats supporting loading of alpha, but alpha loading support has been available since r42644.

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

13 years agoRead TIFF images from top to bottom instead of bottom to top.
Dimitri Schoolwerth [Sun, 28 Aug 2011 21:59:36 +0000 (21:59 +0000)] 
Read TIFF images from top to bottom instead of bottom to top.

Use TIFFReadRGBAImageOriented with a parameter of ORIENTATION_TOPLEFT instead of using TIFFReadRGBAImage (which uses ORIENTATION_BOTTOMLEFT) to read images in a more logical order and simplify code.

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

13 years agoFixed accessing out-of-bounds image coordinates while writing a black and white TIFF...
Dimitri Schoolwerth [Sun, 28 Aug 2011 21:49:28 +0000 (21:49 +0000)] 
Fixed accessing out-of-bounds image coordinates while writing a black and white TIFF image.

The code assumed that the image's width is a multiple of 8, and attempted to always write per 8 pixels instead of sometimes having to write fewer pixels for the last column.

Also fixed compilo from previous commit due to not removing old code.

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

13 years agoFixed calculated image pitch being off-by-one in some cases.
Dimitri Schoolwerth [Sun, 28 Aug 2011 21:38:22 +0000 (21:38 +0000)] 
Fixed calculated image pitch being off-by-one in some cases.

The variable linebytes sometimes counted one extra byte, which is OK for allocating but not when accessing the image later on. Calculate the value in a slightly different way and made the variable const.

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

13 years agoRemoved double TIFFSetField call for setting TIFFTAG_ORIENTATION.
Dimitri Schoolwerth [Sun, 28 Aug 2011 21:31:59 +0000 (21:31 +0000)] 
Removed double TIFFSetField call for setting TIFFTAG_ORIENTATION.

Setting the same TIFF tag with the same value once is enough.

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

13 years agoCall GetAlpha() to get a pointer instead of checking for alpha first.
Dimitri Schoolwerth [Sun, 28 Aug 2011 21:27:34 +0000 (21:27 +0000)] 
Call GetAlpha() to get a pointer instead of checking for alpha first.

It's safe to call GetAlpha() even if there's no alpha because in that case NULL will be returned.

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

13 years agomake sure svn info for an already existing .xcodeproj folder is not deleted, replace...
Stefan Csomor [Sun, 28 Aug 2011 13:00:38 +0000 (13:00 +0000)] 
make sure svn info for an already existing .xcodeproj folder is not deleted, replace project file itself in place

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

13 years agoadding missing doc string for BACKSPACE
Stefan Csomor [Sun, 28 Aug 2011 07:11:44 +0000 (07:11 +0000)] 
adding missing doc string for BACKSPACE

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

13 years agorouting keys like ESC etc, fixes #13429
Stefan Csomor [Sun, 28 Aug 2011 06:54:18 +0000 (06:54 +0000)] 
routing keys like ESC etc, fixes #13429

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

13 years ago* Implement dynamic loading of the Cairo DLL on Windows similar to how it was
Robin Dunn [Sat, 27 Aug 2011 23:26:53 +0000 (23:26 +0000)] 
* Implement dynamic loading of the Cairo DLL on Windows similar to how it was
  done for GDI+.

* Enable the use of the wxCairoContext on MSW.

* Enable creating a wxGCDC from an exisiting wxGraphicsContext.

* Since it's possible for a DLL that is using wx to not be on the PATH nor in
  the same location as the .exe, change the wxDynamicLibrary::RawLoad method to
  explicitly look first in the same place as the main wx-using binary.  This way
  it will find DLLs that are in the same folder as the wx-using binary even if
  that would not be in the normal DLL search path.

* Change wxDCImpl and wxDC::GetLogicalScale to be const methods.

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

13 years agoMore understandable symbolic constants in generic wxDVC's DoJob class.
Václav Slavík [Sat, 27 Aug 2011 16:44:47 +0000 (16:44 +0000)] 
More understandable symbolic constants in generic wxDVC's DoJob class.

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

13 years agoUse spacebar to activate items in generic wxDataViewCtrl too.
Václav Slavík [Sat, 27 Aug 2011 16:44:45 +0000 (16:44 +0000)] 
Use spacebar to activate items in generic wxDataViewCtrl too.

Pressing Spacebar now behaves the same as Enter in the generic control,
for consistency with the GTK+ control and native Windows list controls.

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

13 years agoRemove DestroyTreeHelper(), make GetChildNodes() const, add RemoveChild().
Václav Slavík [Sat, 27 Aug 2011 16:44:42 +0000 (16:44 +0000)] 
Remove DestroyTreeHelper(), make GetChildNodes() const, add RemoveChild().

There's no reason for DestroyTreeHelper() code, that's what destructors
are for.  On a related note, make removal of children from a node more
explicit too.

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

13 years agoAdd wxDataViewMainWindow::GetModel() helper.
Václav Slavík [Sat, 27 Aug 2011 16:44:39 +0000 (16:44 +0000)] 
Add wxDataViewMainWindow::GetModel() helper.

It's slightly less verbose than GetOwner()->GetModel() used all
over the place.

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

13 years agoBetter names in wxDataViewTreeNode.
Václav Slavík [Sat, 27 Aug 2011 16:44:36 +0000 (16:44 +0000)] 
Better names in wxDataViewTreeNode.

GetChildNodes() instead of GetNodes(), AddChild() instead of AddNode().

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

13 years agoUse wxTE_PROCESS_ENTER with wxDataViewCtrl text controls.
Václav Slavík [Sat, 27 Aug 2011 15:23:43 +0000 (15:23 +0000)] 
Use wxTE_PROCESS_ENTER with wxDataViewCtrl text controls.

wxDVC code depends on wxEVT_COMMAND_TEXT_ENTER to hide the
inline editing controls.

Fixes #13412.

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

13 years agoNo real changes, minor corrections to the docs.
Vadim Zeitlin [Sat, 27 Aug 2011 14:58:43 +0000 (14:58 +0000)] 
No real changes, minor corrections to the docs.

Don't leave a line break inside a @code block as it's preserved in the HTML
output, making it appear ugly.

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

13 years agoCopy generic images when building the documentation too.
Vadim Zeitlin [Sat, 27 Aug 2011 14:56:33 +0000 (14:56 +0000)] 
Copy generic images when building the documentation too.

The images used by @genericAppearance Doxygen macro were not copied to the
output directory.

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

13 years agoCompilation fix for wxTreeListCtrl when not using PCH.
Vadim Zeitlin [Sat, 27 Aug 2011 14:50:01 +0000 (14:50 +0000)] 
Compilation fix for wxTreeListCtrl when not using PCH.

Include wx/dc.h normally included from wx/wxprec.h.

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

13 years agoNo changes, just fix the file name in the header comment of wxDVC test.
Vadim Zeitlin [Sat, 27 Aug 2011 14:11:31 +0000 (14:11 +0000)] 
No changes, just fix the file name in the header comment of wxDVC test.

s/tree/dataview/

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

13 years agoMake wxBU_EXACTFIT fir the button text more exactly.
Vadim Zeitlin [Sat, 27 Aug 2011 14:11:28 +0000 (14:11 +0000)] 
Make wxBU_EXACTFIT fir the button text more exactly.

Too big margins were added for the buttons with wxBU_EXACTFIT style making
them larger than strictly necessary. Reduce the margins to make them really
as small as possible.

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

13 years agoAdded wxFLP_SMALL and wxDIRP_SMALL styles for wx{File,Dir}PickerCtrl.
Vadim Zeitlin [Sat, 27 Aug 2011 14:11:25 +0000 (14:11 +0000)] 
Added wxFLP_SMALL and wxDIRP_SMALL styles for wx{File,Dir}PickerCtrl.

These styles allow to use a smaller browse button as the standard one takes
too much space, often leaving too little of it for the more important text
control part.

Notice that both styles are, in fact, equal to wxPB_SMALL but only file and
directory pickers currently use it as it doesn't make sense for the colour and
font pickers.

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

13 years agoAuto complete file names in the text controls of wx{File,Dir}PickerCtrl.
Vadim Zeitlin [Sat, 27 Aug 2011 14:11:20 +0000 (14:11 +0000)] 
Auto complete file names in the text controls of wx{File,Dir}PickerCtrl.

There doesn't seem to be any reason not to do this in the controls which we
know are meant for entering file or directory names into them.

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

13 years agoMake the file and dir picket controls expand in widgets sample.
Vadim Zeitlin [Sat, 27 Aug 2011 14:11:17 +0000 (14:11 +0000)] 
Make the file and dir picket controls expand in widgets sample.

The controls were too small to see long paths in them comfortably while there
was plenty of space in the page, use wxEXPAND flag for them.

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

13 years agoAdd wxTextEntry::AutoCompleteDirectories().
Vadim Zeitlin [Sat, 27 Aug 2011 14:11:13 +0000 (14:11 +0000)] 
Add wxTextEntry::AutoCompleteDirectories().

As we already had MSW-specific AutoCompleteFileNames(), we can just as well
also add the also useful AutoCompleteDirectories() to be used with the text
controls used for path entry.

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

13 years agoNo changes, just fix a typo in wxBannerWindow documentation.
Vadim Zeitlin [Sat, 27 Aug 2011 14:11:09 +0000 (14:11 +0000)] 
No changes, just fix a typo in wxBannerWindow documentation.

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

13 years agoAdd new wxTreeListCtrl class.
Vadim Zeitlin [Sat, 27 Aug 2011 14:11:03 +0000 (14:11 +0000)] 
Add new wxTreeListCtrl class.

This is a facade for wxDataViewCtrl allowing to easily work with multi-column
trees, possibly with an optional checkbox in the first column. Its API is very
similar to wxTreeListCtrl and it provides a simple migration path from the
latter.

Add the class itself, documentation for it and minimal unit tests.

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

13 years agoNotify GtkTreeView if a node stops being a parent.
Václav Slavík [Sat, 27 Aug 2011 13:24:25 +0000 (13:24 +0000)] 
Notify GtkTreeView if a node stops being a parent.

GtkTreeView requires the row-has-child-toggled signal to be emitted in
this situation, so do it from ItemDeleted handler.

Curiously, it handles adding the first child automatically. That's good,
because detecting this situation when adding the first child wouldn't be
trivial and so not having to do it is a plus. (Emitting it on every node
addition doesn't sound like a terribly bright idea.)

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

13 years agoSave memory in wxDataViewTreeNode.
Václav Slavík [Sat, 27 Aug 2011 13:24:22 +0000 (13:24 +0000)] 
Save memory in wxDataViewTreeNode.

Put data that are meaningful only for non-leaf nodes into a separate
struct that is only allocated for branch nodes. This makes branch
nodes larger by sizeof(void*), but leaf nodes save >50% of memory.

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

13 years agoSimplified generic wxDataViewCtrl's tree structure.
Václav Slavík [Sat, 27 Aug 2011 13:24:19 +0000 (13:24 +0000)] 
Simplified generic wxDataViewCtrl's tree structure.

Use just one type, wxDataViewTreeNode, to represent any kind of node.
Previously a complicated structure that represented leaves and non-leaf
nodes differently was used. This make the code way too complicated and
caused some smaller bugs (see e.g. #13256).

As a side effect, this change makes the control react correctly to
changes in IsContainer() return values.

Also fixes #13256.

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

13 years agoNo real change, use more descriptive variable names in wxDataViewMainWindow::ItemDele...
Václav Slavík [Sat, 27 Aug 2011 13:24:07 +0000 (13:24 +0000)] 
No real change, use more descriptive variable names in wxDataViewMainWindow::ItemDeleted().

Call the node object corresponding to 'parent' 'parentNode' instead
of just the more vague 'node'. Also, 'nodes' instead of 'nds'.

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

13 years agoSet colours and fonts for all elements of the generic wxSearchCtrl.
Vadim Zeitlin [Sat, 27 Aug 2011 12:13:23 +0000 (12:13 +0000)] 
Set colours and fonts for all elements of the generic wxSearchCtrl.

Derive generic wxSearchCtrl from wxCompositeWindow<> to ensure that calls to
its Set{Fore,Back}groundColour() are propagated to all its children, otherwise
they applied only to the composite control itself but not e.g. its text part.

Also update the bitmaps when the background colour changes to ensure that it
appears as transparent.

Closes #13428.

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

13 years agoAllow returning NULL windows from GetCompositeWindowParts().
Vadim Zeitlin [Sat, 27 Aug 2011 12:13:18 +0000 (12:13 +0000)] 
Allow returning NULL windows from GetCompositeWindowParts().

wxCompositeWindow::GetCompositeWindowParts() becomes simpler to implement in
the derived classes with optionally shown elements if NULL windows are allowed
(and ignored) in the list returned by it.

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

13 years agoFixes to OpenGL samples to avoid asserts/crashes.
Vadim Zeitlin [Sat, 27 Aug 2011 12:13:13 +0000 (12:13 +0000)] 
Fixes to OpenGL samples to avoid asserts/crashes.

Don't call wxGLCanvas::SetCurrent() when the window is not shown.

Closes #13424.

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

13 years agoUpdate setup for OpenVMS
Jouk Jansen [Fri, 26 Aug 2011 13:01:40 +0000 (13:01 +0000)] 
Update setup for OpenVMS

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

13 years agoFixed best size of wxUniv's wxNotebook.
Dimitri Schoolwerth [Thu, 25 Aug 2011 23:32:05 +0000 (23:32 +0000)] 
Fixed best size of wxUniv's wxNotebook.

Removed wxNotebook::DoGetBestClientSize to let wxBookCtrlBase::DoGetBestSize do its job and fix the best size of a wxNotebook (formerly when running the notebook sample the notebook was not wide enough).

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

13 years agoFixed best sizes for wxUniv controls.
Dimitri Schoolwerth [Thu, 25 Aug 2011 23:16:44 +0000 (23:16 +0000)] 
Fixed best sizes for wxUniv controls.

Many wxUniv controls had a way too small best size which was noticeable when running e.g. the widgets sample. Regression started in r61169 where wxWindowBase::DoGetClientBestSize() was introduced but that virtual function already existed in wxUniv's wxWindow. Removing wxUniv's wxWindow::DoGetBestSize and wxWindow::DoGetBestClientSize fixes sizing issues.

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

13 years agoFixed width of scrollbars in wxUniv.
Dimitri Schoolwerth [Thu, 25 Aug 2011 23:13:00 +0000 (23:13 +0000)] 
Fixed width of scrollbars in wxUniv.

The AdjustSize renderer function for wxUniv's GTK and MSW theme adjusted the size of a scrollbar while it already had the correct size, resulting in scrollbars being twice as wide. Fixed by not adjusting the size of a scrollbar anymore in AdjustSize.

Closes #11660.

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

13 years agoFixed buttons having no border in wxUniv by default.
Dimitri Schoolwerth [Thu, 25 Aug 2011 23:09:00 +0000 (23:09 +0000)] 
Fixed buttons having no border in wxUniv by default.

Buttons had a border of wxBORDER_NONE resulting in wxButton::DoDraw not drawing the button's border. Fixed by adding wxAnyButton::GetDefaultBorder() for wxUniv which returns wxBORDER_STATIC. Regression since r67931.

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

13 years agoFixed MSW/Univ compilation of toplevel.cpp.
Dimitri Schoolwerth [Thu, 25 Aug 2011 21:52:55 +0000 (21:52 +0000)] 
Fixed MSW/Univ compilation of toplevel.cpp.

MSW-only functions were compiled in, disabled their usage by adding #ifndef __WXUNIVERSAL__ blocks.

Closes #13399 (again, after r68723 already should have closed it but its commit message contained a typo).

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

13 years agomb:54153a12-b2c7-417e-b607-c4faa9c436ab
Stefan Csomor [Thu, 25 Aug 2011 16:37:05 +0000 (16:37 +0000)] 
mb:54153a12-b2c7-417e-b607-c4faa9c436ab

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

13 years agoNo real changes, just update copyright year in wxInfoMessageBox().
Vadim Zeitlin [Wed, 24 Aug 2011 11:52:57 +0000 (11:52 +0000)] 
No real changes, just update copyright year in wxInfoMessageBox().

s/2010/2011/

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

13 years agoTry harder to set the requester splitter position in wxSplitterWindow.
Vadim Zeitlin [Wed, 24 Aug 2011 11:48:18 +0000 (11:48 +0000)] 
Try harder to set the requester splitter position in wxSplitterWindow.

The code in wxSplitterWindow tried to remember the requested position and set
the real sash position to it later, even if the initial window size was too
small to allow for it, but it didn't work because the requested position was
forgotten after the first size event, even though it was quite possible that
this event didn't really change the window size from the initial, small, one.

Try to make this more robust by ignoring the size events which don't really
change the window size. Also set m_lastSize correctly initially.

Now setting the sash position does work even if the splitter itself is inside
nested sizers (which results in many size events).

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

13 years agoadding raw_control for osx
Stefan Csomor [Wed, 24 Aug 2011 11:19:43 +0000 (11:19 +0000)] 
adding raw_control for osx

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

13 years agomissing commit for RAW_CONTROL changes
Stefan Csomor [Wed, 24 Aug 2011 06:14:10 +0000 (06:14 +0000)] 
missing commit for RAW_CONTROL changes

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

13 years agomissing commit for RAW_CONTROL changes
Stefan Csomor [Wed, 24 Aug 2011 04:15:58 +0000 (04:15 +0000)] 
missing commit for RAW_CONTROL changes

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

13 years agoCompilation fix for non-OSX: don't use m_rawControlDown there.
Vadim Zeitlin [Tue, 23 Aug 2011 15:44:04 +0000 (15:44 +0000)] 
Compilation fix for non-OSX: don't use m_rawControlDown there.

m_rawControlDown is supposed to be only used under OS X so put an #ifdef
__WXOSX__ around it in wxKeyboardState::GetModifiers() to fix compilation
under the other platforms.

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

13 years agofixing type for key event, using WXK_RAW_CONTROL constant for controlkey, see #13415
Stefan Csomor [Tue, 23 Aug 2011 15:30:44 +0000 (15:30 +0000)] 
fixing type for key event, using WXK_RAW_CONTROL constant for controlkey, see #13415

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

13 years agoexposing control key combinations as before, fixing unicodekey casing
Stefan Csomor [Tue, 23 Aug 2011 15:18:27 +0000 (15:18 +0000)] 
exposing control key combinations as before, fixing unicodekey casing

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

13 years agoSimplify checks for event vetoing in generic wxDataViewCtrl code.
Vadim Zeitlin [Tue, 23 Aug 2011 15:11:25 +0000 (15:11 +0000)] 
Simplify checks for event vetoing in generic wxDataViewCtrl code.

Don't return the whole event object from SendExpanderEvent() just to check if
it wasn't vetoed, simply return a boolean value indicating if this was the
case from this function itself.

This makes it both more efficient and easier to use.

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

13 years agoFix completely wrong logic for veto checking in generic wxDVC.
Vadim Zeitlin [Tue, 23 Aug 2011 15:11:22 +0000 (15:11 +0000)] 
Fix completely wrong logic for veto checking in generic wxDVC.

The code sending the event must check whether the event was vetoed or not, not
whether it was skipped or not. This is the minimal change resulting in correct
behaviour even if an event handler does skip the event.

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

13 years agoadjusting keyboardstate to new ctrl / raw_ctrl handling on osx
Stefan Csomor [Tue, 23 Aug 2011 13:19:19 +0000 (13:19 +0000)] 
adjusting keyboardstate to new ctrl / raw_ctrl handling on osx

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

13 years agoadjusting keyboardstate to new ctrl / raw_ctrl handling on osx
Stefan Csomor [Tue, 23 Aug 2011 13:03:52 +0000 (13:03 +0000)] 
adjusting keyboardstate to new ctrl / raw_ctrl handling on osx

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

13 years agoMention wxLocale in wxNumValidator documentation.
Vadim Zeitlin [Tue, 23 Aug 2011 11:04:44 +0000 (11:04 +0000)] 
Mention wxLocale in wxNumValidator documentation.

Using setlocale() can thoroughly confuse wxNumValidator because it results in
a mismatch between the decimal and/or thousands separators it uses, returned
by wxLocale, and the actual separators in the strings, formatted by the CRT.

So mention in the documentation that using setlocale() is a bad idea.

Closes #12970.

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

13 years agoNo changes, just add a missing comma in wxNumValidator documentation.
Vadim Zeitlin [Tue, 23 Aug 2011 11:04:41 +0000 (11:04 +0000)] 
No changes, just add a missing comma in wxNumValidator documentation.

SetRange() declaration wasn't properly terminated.

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

13 years agoCheck for decimal separator inconsistency in wxLocale::GetInfo().
Vadim Zeitlin [Tue, 23 Aug 2011 11:04:37 +0000 (11:04 +0000)] 
Check for decimal separator inconsistency in wxLocale::GetInfo().

Under wxMSW it's possible to have mismatch between the CRT locale (used by
various printf-related functions) and the system locale (queried by
wxLocale::GetInfo()).

Warn if such a mismatch occurs and tell people to use wxLocale instead of just
setlocale() to change the locale.

See #12970.

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

13 years agoFix wxBannerWindowNameStr definition in DLL builds.
Vadim Zeitlin [Tue, 23 Aug 2011 10:50:43 +0000 (10:50 +0000)] 
Fix wxBannerWindowNameStr definition in DLL builds.

Don't use WXDLLEXPORT_DATA when defining the variable, it can be only used
when declaring it.

This fixes wxMSW DLL build with MSVC.

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

13 years agoAdded wxBITMAP_TYPE_TIFF and wxBITMAP_TYPE_TIFF_RESOURCE.
Dimitri Schoolwerth [Tue, 23 Aug 2011 04:55:46 +0000 (04:55 +0000)] 
Added wxBITMAP_TYPE_TIFF and wxBITMAP_TYPE_TIFF_RESOURCE.

Having wxBITMAP_TYPE_TIFF and wxBITMAP_TYPE_TIFF_RESOURCE is more consistent with already using the complete short name of an image format elsewhere (e.g. wxBITMAP_TYPE_JPEG, not wxBTMAP_TYPE_JPG, and wxTIFFHandler as opposed to wxTIFHandler). Renamed all existing occurrences and kept the old enum values for backwards compatibility.

Also renamed occurrences of wxBITMAP_TYPE_RESOURCE to the already existing wxBITMAP_TYPE_BMP_RESOURCE.

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

13 years agoFixed linking errors related to wxAnyButton in wxUniv.
Dimitri Schoolwerth [Tue, 23 Aug 2011 04:41:00 +0000 (04:41 +0000)] 
Fixed linking errors related to wxAnyButton in wxUniv.

Native wxAnyButton headers were being included but the sources aren't used in wxUniv. Fixed this by not including any native header in wxUniv and instead made wxAnyButton a typedef of wxAnyButtonBase.

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

13 years agoFixed compilation of various notebook.cpp's.
Dimitri Schoolwerth [Tue, 23 Aug 2011 03:08:01 +0000 (03:08 +0000)] 
Fixed compilation of various notebook.cpp's.

Make use of HasImageList() and GetImageList() instead of accessing the now private m_imageList directly. Fixed for wxUniv, wxGTK1, and wxOS2 (the latter 2 blindly). Changes are similar to r68856 and should have been a part of that.

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

13 years agoFixed compilation of sources that make use of wx/univ/notebook.h.
Dimitri Schoolwerth [Tue, 23 Aug 2011 02:18:41 +0000 (02:18 +0000)] 
Fixed compilation of sources that make use of wx/univ/notebook.h.

wxUniv's wxNotebook was accessing m_imageList which now is a private in wxWithImages since r68809. Fixed by using wxWithImages::HasImageList.

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

13 years agoExclude another auto-generated file when cleaning the patches.
Vadim Zeitlin [Mon, 22 Aug 2011 15:35:47 +0000 (15:35 +0000)] 
Exclude another auto-generated file when cleaning the patches.

Changes to autoconf_inc.m4 are not interesting neither, exclude them.

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

13 years agoDon't refresh not yet realized widget in wxGTK wxDataViewCtrl.
Vadim Zeitlin [Mon, 22 Aug 2011 15:31:38 +0000 (15:31 +0000)] 
Don't refresh not yet realized widget in wxGTK wxDataViewCtrl.

If the text of any of wxDataViewCtrl cells was set before the control was
realized (e.g. during its creation), the code tried to refresh the not yet
shown widget resulting in GTK+ errors.

Avoid this by only refreshing the tree if it's realized.

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

13 years agoReturn non-const pointer from wxDataViewRendererBase::GetView().
Vadim Zeitlin [Mon, 22 Aug 2011 15:31:36 +0000 (15:31 +0000)] 
Return non-const pointer from wxDataViewRendererBase::GetView().

Non-const wxWindow pointers are unfortunately needed quite often in wx API so
return a non-const pointer here to allow using it with e.g. wxRendererNative
(whose methods all take non-const wxWindow pointers) in the derived classes.

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

13 years agoAdd wxDataViewIconText::IsSameAs() and make comparison operators members.
Vadim Zeitlin [Mon, 22 Aug 2011 15:31:33 +0000 (15:31 +0000)] 
Add wxDataViewIconText::IsSameAs() and make comparison operators members.

Add IsSameAs() to make it simpler to call from the derived class operator==()
implementation.

Also make comparison operators themselves members instead of global functions
to avoid considering them as matches for all operator==() uses in the program,
there is really no need for this as we do _not_ want to allow implicitly
converting something to wxDataViewIconText when comparing.

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

13 years agoReturn (16,16) as the default list icons size in wxMSW.
Vadim Zeitlin [Mon, 22 Aug 2011 15:31:30 +0000 (15:31 +0000)] 
Return (16,16) as the default list icons size in wxMSW.

The standard size of the small icons in list controls under MSW is
traditionally 16*16 so return this from wxMSW wxArtProvider.

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

13 years agoremoving trailing comma
Stefan Csomor [Mon, 22 Aug 2011 15:11:37 +0000 (15:11 +0000)] 
removing trailing comma

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

13 years agoexposing wxGraphicsContext through an ordinary wxDC
Stefan Csomor [Mon, 22 Aug 2011 15:10:07 +0000 (15:10 +0000)] 
exposing wxGraphicsContext through an ordinary wxDC

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

13 years agoFix typo.
Václav Slavík [Mon, 22 Aug 2011 14:14:55 +0000 (14:14 +0000)] 
Fix typo.

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

13 years agoDon't iterate over selection twice needlessly in wxDataViewMainWindow::ItemDeleted().
Václav Slavík [Mon, 22 Aug 2011 14:14:53 +0000 (14:14 +0000)] 
Don't iterate over selection twice needlessly in wxDataViewMainWindow::ItemDeleted().

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

13 years agoNo change, improve wxDataViewMainWindow::ItemDeleted() readability.
Václav Slavík [Mon, 22 Aug 2011 14:14:50 +0000 (14:14 +0000)] 
No change, improve wxDataViewMainWindow::ItemDeleted() readability.

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

13 years agoHarmonize wxDataViewCtrl::GetSelection() behaviour in all ports.
Vadim Zeitlin [Mon, 22 Aug 2011 12:41:19 +0000 (12:41 +0000)] 
Harmonize wxDataViewCtrl::GetSelection() behaviour in all ports.

wxDataViewCtrl::GetSelection() now always returns invalid item if more than
a single item is selected in a multi-selection control.

Also add HasSelection() and GetSelectedItemsCount() to allow checking if any
items are selected.

Updated the documentation, all ports and added a test for all these functions.

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

13 years agoNo changes, just use CPPUNIT_ASSERT_EQUAL() instead of CPPUNIT_ASSERT().
Vadim Zeitlin [Mon, 22 Aug 2011 12:41:12 +0000 (12:41 +0000)] 
No changes, just use CPPUNIT_ASSERT_EQUAL() instead of CPPUNIT_ASSERT().

CPPUNIT_ASSERT_EQUAL() gives more informative error messages in case of
failure which is important when running tests unattended on build slaves.

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

13 years agoNo changes, just add wxGtkList to ensure g_list_free() is always called.
Vadim Zeitlin [Mon, 22 Aug 2011 12:41:00 +0000 (12:41 +0000)] 
No changes, just add wxGtkList to ensure g_list_free() is always called.

Add an extremely simple RAII wrapper around GList and use it.

Also add wxGtkTreePathList which also automatically frees its contents to
simplify working with the lists of GtkTreePaths.

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