]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
15 years agoDo trunk builds on ravnsgaard.
Michael Wetherell [Mon, 2 Nov 2009 06:27:26 +0000 (06:27 +0000)] 
Do trunk builds on ravnsgaard.

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

15 years agoStart on Get/SetStyle support for OS X Cocoa wxTextCtrl.
Kevin Ollivier [Sun, 1 Nov 2009 00:58:04 +0000 (00:58 +0000)] 
Start on Get/SetStyle support for OS X Cocoa wxTextCtrl.

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

15 years agowxColour -> NSColor conversion.
Kevin Ollivier [Sun, 1 Nov 2009 00:56:23 +0000 (00:56 +0000)] 
wxColour -> NSColor conversion.

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

15 years agoNSFont -> wxFont conversion.
Kevin Ollivier [Sat, 31 Oct 2009 23:00:04 +0000 (23:00 +0000)] 
NSFont -> wxFont conversion.

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

15 years agoAdding NSColor -> wxColour conversion.
Kevin Ollivier [Sat, 31 Oct 2009 22:20:27 +0000 (22:20 +0000)] 
Adding NSColor -> wxColour conversion.

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

15 years agoBakefile 0.2.8 rebake.
Kevin Ollivier [Sat, 31 Oct 2009 20:56:47 +0000 (20:56 +0000)] 
Bakefile 0.2.8 rebake.

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

15 years agoUpdate to Bakefile 0.2.8.
Kevin Ollivier [Sat, 31 Oct 2009 20:52:55 +0000 (20:52 +0000)] 
Update to Bakefile 0.2.8.

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

15 years agomake sure ShowWithoutActivating only takes effect once
Paul Cornett [Sat, 31 Oct 2009 16:29:19 +0000 (16:29 +0000)] 
make sure ShowWithoutActivating only takes effect once

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

15 years agoMake public and document wxDataView{Index,Virtual}ListModel::GetCount().
Vadim Zeitlin [Sat, 31 Oct 2009 15:58:19 +0000 (15:58 +0000)] 
Make public and document wxDataView{Index,Virtual}ListModel::GetCount().

This method is useful for getting the number of items in the control and
should be part of the public API instead of being marked as internal.

Closes #11380.

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

15 years agoFix wx headers compilation in mingw32 strict ANSI mode.
Vadim Zeitlin [Sat, 31 Oct 2009 15:58:05 +0000 (15:58 +0000)] 
Fix wx headers compilation in mingw32 strict ANSI mode.

Add checks for !defined(__STRICT_ANSI__) when checking for various common but
non-standard CRT extensions.

This allows compiling programs using wx with g++ -std=c++[0x] option (notice
that compiling wx itself using it still doesn't work).

Closes #11374.

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

15 years agoNo real changes, just fix a typo in wxDataViewModel::Compare().
Vadim Zeitlin [Sat, 31 Oct 2009 15:57:58 +0000 (15:57 +0000)] 
No real changes, just fix a typo in wxDataViewModel::Compare().

Return -1 from the comparison function instead of -11 when comparing
wxDateTime values. It shouldn't matter which value is returned as long as it's
negative but it is definitely tidier.

Closes #11381.

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

15 years agoReturn the real column width from wxOSX wxDataViewColumn::GetWidth().
Vadim Zeitlin [Sat, 31 Oct 2009 15:57:51 +0000 (15:57 +0000)] 
Return the real column width from wxOSX wxDataViewColumn::GetWidth().

Code used to return the last programmatically set width value instead of the
real column width which could have been changed by user if the column was
resizeable, fix this by returning the current NSTableColumn:width value.

Closes #11397.

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

15 years agoimplement ShowWithoutActivating for GTK+
Paul Cornett [Fri, 30 Oct 2009 07:39:58 +0000 (07:39 +0000)] 
implement ShowWithoutActivating for GTK+

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

15 years agoCompilation fix for last commit.
Kevin Ollivier [Fri, 30 Oct 2009 06:01:16 +0000 (06:01 +0000)] 
Compilation fix for last commit.

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

15 years agoInitial ShowWithoutActivating implementations for Mac and Windows, and attempt to...
Kevin Ollivier [Fri, 30 Oct 2009 05:04:47 +0000 (05:04 +0000)] 
Initial ShowWithoutActivating implementations for Mac and Windows, and attempt to improve IsActive behavior on Mac. Also adding ShowWithoutActivating() and Show/Hide tests,  but until the mainloop issues are resolved, not adding them to tests.bkl.

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

15 years agofixing wx/evtloop.h for gtk1
Jouk Jansen [Thu, 29 Oct 2009 07:30:42 +0000 (07:30 +0000)] 
fixing wx/evtloop.h for gtk1

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

15 years agoFixed backslash escaping in wxArrayStringProperty::StringToValue()
Jaakko Salli [Wed, 28 Oct 2009 15:57:58 +0000 (15:57 +0000)] 
Fixed backslash escaping in wxArrayStringProperty::StringToValue()

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

15 years agoomitting assert that makes no sense for OpenVMS
Jouk Jansen [Wed, 28 Oct 2009 12:05:18 +0000 (12:05 +0000)] 
omitting assert that makes no sense for OpenVMS

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

15 years agoNo changes, just add a comment to the button focus handling code.
Vadim Zeitlin [Tue, 27 Oct 2009 16:44:16 +0000 (16:44 +0000)] 
No changes, just add a comment to the button focus handling code.

The workarounds for the button focus issues should become unnecessary if we
switch to setting the focus correctly as explained in the linked post.

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

15 years agoUndo commit of test code accidentally checked in in r62478.
Vadim Zeitlin [Tue, 27 Oct 2009 16:44:12 +0000 (16:44 +0000)] 
Undo commit of test code accidentally checked in in r62478.

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

15 years agofeature name must match description
Paul Cornett [Sun, 25 Oct 2009 17:48:32 +0000 (17:48 +0000)] 
feature name must match description
fixes --disable-sysoptions

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

15 years agoMake wxDataViewModel::GetAttr() and GetAttrByRow() const.
Vadim Zeitlin [Sat, 24 Oct 2009 21:42:04 +0000 (21:42 +0000)] 
Make wxDataViewModel::GetAttr() and GetAttrByRow() const.

This is an incompatible change but having to use a non-const model pointer to
call a clearly logically const version was simply too ugly so change it while
we still can.

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

15 years agoAdd wxDataViewListModel base class for list models.
Vadim Zeitlin [Sat, 24 Oct 2009 21:41:54 +0000 (21:41 +0000)] 
Add wxDataViewListModel base class for list models.

Introduce a base class for wxDataViewIndexListModel and
wxDataViewVirtualListModel instead of duplicating the same code in both of
them making the code difficult to maintain and change.

For now this class is not documented as it is used just to avoid duplication
in the implementation but maybe we should make it public to allow defining
other flat list data models (if this can be made to work in Carbon version).

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

15 years agoCreate model and column in wxDataViewTreeCtrl::Create(), not ctor.
Vadim Zeitlin [Sat, 24 Oct 2009 21:41:44 +0000 (21:41 +0000)] 
Create model and column in wxDataViewTreeCtrl::Create(), not ctor.

Old code created the tree model and its unique built-in column only in
wxDataViewTreeCtrl ctor but not in Create(), meaning that the behaviour was
very different depending on whether you used base class ctor call or Create()
in a derived class. This was confusing and completely inconsistent with wx API
in which using the default ctor and Create() is supposed to always have
exactly the same effect as using non-default ctor so change this to create the
model in Create() so that it's always done.

Slightly update the documentation and also add wxDataViewTreeCtrl::Init() for
consistency.

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

15 years agoNo real changes, just make wxDataViewCtrl::Init() private in wxGTK.
Vadim Zeitlin [Sat, 24 Oct 2009 21:41:30 +0000 (21:41 +0000)] 
No real changes, just make wxDataViewCtrl::Init() private in wxGTK.

The usual convention is for Init() method to be private and to call it from
constructor, follow it in GTK implementation of wxDataViewCtrl too instead of
making it public and calling it from Create().

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

15 years agosupport for auto-rotate on iphone
Stefan Csomor [Sat, 24 Oct 2009 19:28:50 +0000 (19:28 +0000)] 
support for auto-rotate on iphone

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

15 years agoswitching to explicit flush mode, otherwise clientdc destruction lead to contention...
Stefan Csomor [Sat, 24 Oct 2009 19:22:40 +0000 (19:22 +0000)] 
switching to explicit flush mode, otherwise clientdc destruction lead to contention in customrenderers in osx

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

15 years agoDon't show anything in the cells which should be empty in Cocoa wxDVC.
Vadim Zeitlin [Sat, 24 Oct 2009 01:03:36 +0000 (01:03 +0000)] 
Don't show anything in the cells which should be empty in Cocoa wxDVC.

Implement a custom NSTableColumn-derived class to return nil for the cells
which shouldn't show anything at all because they are part of a container row.

This finally fixes the totally wrong display of the first page of the dataview
sample under OS X.

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

15 years agoAdd wxDataViewModel::HasValue().
Vadim Zeitlin [Sat, 24 Oct 2009 01:03:24 +0000 (01:03 +0000)] 
Add wxDataViewModel::HasValue().

This method allows to simply test whether we have a value at the given row and
column or not (as it happens for container items unless they too have columns).

Currently this method is not virtual and is not used by the implementations
yet but it might make sense to make it virtual and allow overriding it in the
future.

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

15 years agoUse virtual items in wxDVC sample under Mac too.
Vadim Zeitlin [Sat, 24 Oct 2009 01:02:31 +0000 (01:02 +0000)] 
Use virtual items in wxDVC sample under Mac too.

There doesn't seem to be any reason to not use them and having different
appearance under OS X and elsewhere is just confusing and looks like a bug.

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

15 years agoUse virtual functions to convert NSObject to the correct type in wxDVC.
Vadim Zeitlin [Fri, 23 Oct 2009 23:49:26 +0000 (23:49 +0000)] 
Use virtual functions to convert NSObject to the correct type in wxDVC.

Instead of trying to determine the type of the value which should be extracted
from the NSObject we receive from NSOutlineView, just pass it to a virtual
method in the renderer which knows which type does it need.

This fixes the problem with editing boolean/checkbox columns and makes the
code more elegant.

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

15 years agoAdd wxDataViewModel::ChangeValue() and use it in wxDVC implementation.
Vadim Zeitlin [Fri, 23 Oct 2009 23:49:16 +0000 (23:49 +0000)] 
Add wxDataViewModel::ChangeValue() and use it in wxDVC implementation.

ChangeValue() is a trivial wrapper calling both SetValue() and ValueChanged().
It allows to replace many calls to SetValue() immediately followed by
ValueChanged() with a single function call which is significantly shorter and
less error-prone (e.g. most of the existing code didn't test SetValue() return
code at all).

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

15 years agoRebaked using post-0.2.7 svn version of bakefile.
Vadim Zeitlin [Fri, 23 Oct 2009 17:48:21 +0000 (17:48 +0000)] 
Rebaked using post-0.2.7 svn version of bakefile.

Unfortunately 0.2.7 release contained a bug in msvc backend which resulted in
warnings generated for each file compiled. Apply the fix from bakefile svn to
fix this (and test if no other problems are found).

Also update all makefile.unx after changes of r62477.

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

15 years agoUse an even more informative error message in wxFSW unit test.
Vadim Zeitlin [Fri, 23 Oct 2009 11:44:57 +0000 (11:44 +0000)] 
Use an even more informative error message in wxFSW unit test.

Dump information about both events when we received two of them instead of the
(single) expected one.

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

15 years agoCompilation fix for wxFileSystemWatcher in MSW STL build.
Vadim Zeitlin [Fri, 23 Oct 2009 11:44:41 +0000 (11:44 +0000)] 
Compilation fix for wxFileSystemWatcher in MSW STL build.

Don't rely on implicit wxString to TCHAR* conversion, use t_str() explicitly.

Closes #11368.

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

15 years agoUpdating configuration for OpenVMS
Jouk Jansen [Fri, 23 Oct 2009 10:52:41 +0000 (10:52 +0000)] 
Updating configuration for OpenVMS

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

15 years agoGive more informative error in wxFSW test.
Vadim Zeitlin [Thu, 22 Oct 2009 23:54:55 +0000 (23:54 +0000)] 
Give more informative error in wxFSW test.

Output more details when more than one event is unexpectedly received.
Hopefully this will allow to debug the test failure at build bot slaves which
doesn't seem to be happening locally.

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

15 years agoFix g++ compilation of wxFileSystemWatcher test after VC6 fix.
Vadim Zeitlin [Thu, 22 Oct 2009 23:54:47 +0000 (23:54 +0000)] 
Fix g++ compilation of wxFileSystemWatcher test after VC6 fix.

Enums can't be used to deduce template parameters so cast WAIT_DURATION to int
explicitly before passing it to wxString::Format().

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

15 years agoFix wxFSW test compilation with VC6.
Vadim Zeitlin [Thu, 22 Oct 2009 16:57:41 +0000 (16:57 +0000)] 
Fix wxFSW test compilation with VC6.

Work around an internal compiler error and don't initialize static variable
when declaring it as VC6 doesn't support this.

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

15 years agoCompilation fix for PCH-less OS X build after wxFSW merge.
Vadim Zeitlin [Thu, 22 Oct 2009 16:53:57 +0000 (16:53 +0000)] 
Compilation fix for PCH-less OS X build after wxFSW merge.

Include wx/log.h explicitly as we use wxLogTrace().

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

15 years agoRebake everything using bakefile 0.2.7.
Vadim Zeitlin [Thu, 22 Oct 2009 16:53:10 +0000 (16:53 +0000)] 
Rebake everything using bakefile 0.2.7.

Also updated aclocal inputs and regenerated configure.

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

15 years agoupdate wxpresets for new osx_carbon and osx_cocoa names provided by the wx-config...
Francesco Montorsi [Thu, 22 Oct 2009 15:44:30 +0000 (15:44 +0000)] 
update wxpresets for new osx_carbon and osx_cocoa names provided by the wx-config --selected_config command

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

15 years agoCompilation fix for old SDK in wxFileSystemWatcher MSW code.
Vadim Zeitlin [Thu, 22 Oct 2009 12:53:18 +0000 (12:53 +0000)] 
Compilation fix for old SDK in wxFileSystemWatcher MSW code.

PULONG_PTR is older SDK so use "LONG_PTR *" which we already define in our
wx/msw/wrapwin.h in any case.

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

15 years agoRefactor wxEventLoopSource-related code.
Vadim Zeitlin [Thu, 22 Oct 2009 11:36:35 +0000 (11:36 +0000)] 
Refactor wxEventLoopSource-related code.

Currently wxEventLoopSource can't be created directly and can only be used to
monitor file descriptors so reduce the API to just wxEventLoop::AddSourceForFD()
and remove AddSource(), RemoveSource() and RemoveAllSources() which couldn't
be implemented for all ports. This makes the code much simpler without any
loss of functionality.

Make wxEventLoopSource responsible for removing itself from the event loop
when it is deleted. This allows to remove IsOk() and Invalidate() methods
making the code simpler and gets rid of various sets/maps which were used
before.

This also allows to support event loop sources in Carbon as well: wxOSX/Carbon
now compiles and works with wxUSE_FSWATCHER==1.

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

15 years agoMerge SOC2009_FSWATCHER branch into trunk.
Vadim Zeitlin [Thu, 22 Oct 2009 11:35:43 +0000 (11:35 +0000)] 
Merge SOC2009_FSWATCHER branch into trunk.

Merges everything from the branch with only some minor changes, mostly renamed
wxUSE_FSWATCHER_{INOTIFY,KQUEUE} to wxHAS_{INOTIFY,KQUEUE}.

Add wxFileSystemWatcher and related classes.

Also introduces wxEventLoopSource.

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

15 years agoExtract operator<<(ostream, wxFileName) from filename test.
Vadim Zeitlin [Thu, 22 Oct 2009 11:34:43 +0000 (11:34 +0000)] 
Extract operator<<(ostream, wxFileName) from filename test.

Putting this function in a header allows to reuse it in other tests, e.g. the
upcoming wxFileSystemWatcher one.

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

15 years agoSuppress VC6 warnings about non-DLL-exported class for wxScrolled.
Vadim Zeitlin [Thu, 22 Oct 2009 11:18:11 +0000 (11:18 +0000)] 
Suppress VC6 warnings about non-DLL-exported class for wxScrolled.

It's harmless to derive wxScrolledWindow from wxScrolled<> so suppress the
warnings about it.

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

15 years agoFix UseUintMax definition used by wxAny for VC6.
Vadim Zeitlin [Thu, 22 Oct 2009 11:18:02 +0000 (11:18 +0000)] 
Fix UseUintMax definition used by wxAny for VC6.

The old code tried to work around the lack of unsigned __int64 to double
conversion in VC6 by casting from UseUintMax to wxAnyBaseIntType but this was
wrong as this value was -1 when cast to wxAnyBaseIntType (__int64) and so
UseUintMaxF was defined as -1.0.

Use a slightly uglier but simpler work around now: just define the constants
as macros instead of (typed) variables and let the compiler deal with literal
values on its own (which it does correctly).

This fixes the unit test failure: conversion from double to unsigned always
failed when using VC6.

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

15 years agoSuppress a warning in cppunit/extensions/ExceptionTestCaseDecorator.h.
Vadim Zeitlin [Thu, 22 Oct 2009 11:17:56 +0000 (11:17 +0000)] 
Suppress a warning in cppunit/extensions/ExceptionTestCaseDecorator.h.

This was the last warning given during the tests phase in build bot builds.

Also use #pragma warning(pop) for MSVC instead of incorrect warning(default).

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

15 years agoRemove unwanted solution files from the repository.
Vadim Zeitlin [Thu, 22 Oct 2009 09:40:42 +0000 (09:40 +0000)] 
Remove unwanted solution files from the repository.

Remove VC9-only solution files from a couple of tests/utils/demos (there is
no reason at all to have only VC9 solutions: either we have all of [789] or
none of them) and also remove all solutions files for the ribbon sample which
were probably added mistakenly in the first place (as no other sample has
them).

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

15 years agoPost-0.2.6 version of Bakefile is required.
Václav Slavík [Thu, 22 Oct 2009 06:43:52 +0000 (06:43 +0000)] 
Post-0.2.6 version of Bakefile is required.

This is because of two recent changes: addition of the 'ribbon'
library (with filenames shared with other libs) and unconditional
enabling of debug info with VC++. Both of these uncovered bugs
in Bakefile's VC++ support that weren't fixed until after 0.2.6.

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

15 years agoMove in-cell property expander buttons slightly to the right (looks better that way)
Jaakko Salli [Wed, 21 Oct 2009 16:56:38 +0000 (16:56 +0000)] 
Move in-cell property expander buttons slightly to the right (looks better that way)

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

15 years agoAdd or fix descriptions of return values from SetFont/XXXColour().
Vadim Zeitlin [Wed, 21 Oct 2009 09:44:07 +0000 (09:44 +0000)] 
Add or fix descriptions of return values from SetFont/XXXColour().

Add the same kind of description to SetBackground/ForegroundColour() as in
SetFont() and fix typo in the latter.

Closes #11352.

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

15 years agoDon't include LDFLAGS in `wx-config --libs` output.
Vadim Zeitlin [Mon, 19 Oct 2009 13:57:41 +0000 (13:57 +0000)] 
Don't include LDFLAGS in `wx-config --libs` output.

Use a separate WXCONFIG_LDFLAGS variable for the flags which should be used
when linking applications using wxWidgets and not wxWidgets itself.

The only intentional effect this change is supposed to have right now is that
-arch options added to LDFLAGS when building wx for multiple architectures
under OS X are not used for building the applications any more.

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

15 years agoadded COMPILER_PREFIX support to wxpresets
Václav Slavík [Mon, 19 Oct 2009 13:57:25 +0000 (13:57 +0000)] 
added COMPILER_PREFIX support to wxpresets

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

15 years agoUse portable comparison syntax in wx-config.
Vadim Zeitlin [Mon, 19 Oct 2009 09:17:39 +0000 (09:17 +0000)] 
Use portable comparison syntax in wx-config.

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

Closes #11349.

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

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

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

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

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

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

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

Closes #11345.

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

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

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

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

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

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

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

Closes #11316.

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

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

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

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

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

Closes #11300.

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

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

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

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

Closes #11336.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Also add wxELLIPSIZE_FLAGS_NONE flag.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Closes #11318.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Simply override RenderWithAttr() instead of Render().

Update the sample to show that this works now.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Don't duplicate wxGtkTreeCellDataFunc declaration.

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

Indent the inside of if statement properly.

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

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

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

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

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

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

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

Use static_cast<>s instead of C casts.

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

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

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

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

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

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

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

German translation update from Max Christian Pohle.

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