Vadim Zeitlin [Fri, 9 Oct 2009 13:05:10 +0000 (13:05 +0000)]
Don't add default extension in wxDocument::SaveAs().
wxFileSelector() takes care of the default extension itself and if it returned
a file name without one, it means that the user really wants to create a file
without an extension. Adding the default extension here is at best useless and
at worst actively dangerous because it may silently overwrite an existing file
(although this bug is due to a different problem, see #11256 for a scenario in
which this can happen).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62350
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 9 Oct 2009 13:04:59 +0000 (13:04 +0000)]
Removed wxFont::Set/GetNoAntiAliasing() implementations.
Most of them were dummy and didn't do anything and this API was never meant to
be used anyhow.
Keep just the declarations in wxFontBase but mark them as deprecated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62349
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 9 Oct 2009 13:04:44 +0000 (13:04 +0000)]
Mention log components in wxLogTrace() documentation.
Using different log components for different logging statements provides a
better (because more general and efficient) way to do the same thing that
wxLogTrace() does, so mention them when describing wxLogTrace().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62348
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 9 Oct 2009 12:24:35 +0000 (12:24 +0000)]
moving bitmapbutton functionality up to button for OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62347
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 9 Oct 2009 07:26:54 +0000 (07:26 +0000)]
Revert a workaround for Windows native border side-effect since latter is now fixed
and former causes a positioning problem when the scrollbar is not at the home position and
the grid is resized.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62345
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 9 Oct 2009 06:43:01 +0000 (06:43 +0000)]
removing unneeded file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62344
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 8 Oct 2009 22:38:29 +0000 (22:38 +0000)]
No real changes, just fix a syntax error in unused file.
Closes #11289.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62340
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 8 Oct 2009 22:38:18 +0000 (22:38 +0000)]
Fix mismatched new/free in generic Region code.
Closes #11287.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62339
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 8 Oct 2009 22:38:10 +0000 (22:38 +0000)]
Also support fonts in wxTextCtrl::GetStyle() in wxGTK.
This extends the change of r62262 with support for the fonts.
Closes #11281.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62338
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 8 Oct 2009 22:38:03 +0000 (22:38 +0000)]
Add a WX_APPNAME_DATA_DIR hack for wxStandardPaths::GetDataDir().
Applications using wxStandardPaths::GetDataDir() to find their files under
Unix can't be ran without being installed as they look for their data files
under $prefix/share/appname. Make it possible to override this location by
setting WX_APPNAME_DATA_DIR environment variable to allow running them without
installation.
Notice that this shouldn't present any security risk unless the application is
SUID (which would be a very bad idea anyhow).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62337
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 8 Oct 2009 22:37:53 +0000 (22:37 +0000)]
Improvements to application info documentation in wxStandardPaths.
Use "appinfo" instead of "appname" in the examples to make it clear that it
may be different from just the application name.
Also make UseAppInfo() documentation more clear.
See #11275.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62336
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 8 Oct 2009 18:38:43 +0000 (18:38 +0000)]
implementing rollover and pressed image for bitmapbutton on osx_cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62335
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Thu, 8 Oct 2009 15:33:30 +0000 (15:33 +0000)]
Fixed regression: in wxPropertyGrid::PerformValidation(), wxPGProperty::ValidateValue() was only called when value was variant list, which was exactly the opposite condition under which the function was supposed to be called (fixes #11299).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62334
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Thu, 8 Oct 2009 10:59:33 +0000 (10:59 +0000)]
OpenVMS : add compile support for debugrpt sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62330
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 8 Oct 2009 06:54:20 +0000 (06:54 +0000)]
fixing typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62329
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 8 Oct 2009 05:03:42 +0000 (05:03 +0000)]
remove requested button rather than last one, return true from successful Create(), and a non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62328
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Thu, 8 Oct 2009 04:07:02 +0000 (04:07 +0000)]
Make sure all Bakefile formats that use CRLF line feeds are set to use CRLF in SVN.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62327
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 7 Oct 2009 15:12:57 +0000 (15:12 +0000)]
Compilation fix for PCH-less in wxInfoBar.
wx/dcmemory.h include is needed at least for OS X build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62325
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 7 Oct 2009 13:54:44 +0000 (13:54 +0000)]
Updated for bakefile 0.2.7.
Copied bakefile.m4 from bakefile svn and regenerated configure using it.
This should have been done in r62308 but was forgotten. Notice that we can't
use bakefile 0.2.6 any more without reverting this change!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62324
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 7 Oct 2009 10:50:45 +0000 (10:50 +0000)]
Honour COMPILER_PREFIX in wx presets too.
If a non-default COMPILER_PREFIX was specified when building wxWidgets, we
should also be able to use the same prefix when building applications using
this build, so use COMPILER_PREFIX instead of just COMPILER in the project/
makefiles generated using wx presets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62323
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 7 Oct 2009 05:53:19 +0000 (05:53 +0000)]
fixing gdiplus implementation, see #11282
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62321
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 6 Oct 2009 22:03:21 +0000 (22:03 +0000)]
adding dataview sample to OpenVMS make cascade
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62318
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 6 Oct 2009 14:47:53 +0000 (14:47 +0000)]
OpenVMS compile support : adding more samples for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62316
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Oct 2009 14:18:48 +0000 (14:18 +0000)]
Compilation fix for VC6 in wxInfoBarGeneric code.
VC6 apparently can't compare const pointer to derived class with a non-const
pointer to the base class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62315
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 6 Oct 2009 08:53:17 +0000 (08:53 +0000)]
Update setup for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62314
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 6 Oct 2009 06:58:45 +0000 (06:58 +0000)]
Adding regex support for wxMOTIF for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62313
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 6 Oct 2009 05:18:47 +0000 (05:18 +0000)]
use better background color
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62312
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 6 Oct 2009 03:42:55 +0000 (03:42 +0000)]
non-PCH build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62311
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Oct 2009 00:08:15 +0000 (00:08 +0000)]
Create an NSAutoreleasePool in wxMacWakeUp().
An auto-release pool is needed in this function because it can be called from
another thread which has no reason to have a pre-existing pool, but it does
allocate NSEvent object which is auto-released, resulting in warnings if no
pool available.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62310
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Oct 2009 00:08:10 +0000 (00:08 +0000)]
Ensure that an event loop exists in ShowViewOrWindowWithEffect().
We may not have an event loop yet if wxWindow::ShowWithEffect() is called
during the application startup, create a temporary event loop instead of
crashing in this case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62309
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:58:26 +0000 (22:58 +0000)]
Rebake using pre-release version of bakefile 0.2.7.
They should fix the problem with monolithic build of wx (see #11231).
Notice that trivial changes to VC9 project files are not being committed so
the makefiles are currently not quite consistent but it shouldn't matter as
they will be all regenerated soon when bakefile 0.2.7 is really released.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62308
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:58:15 +0000 (22:58 +0000)]
Refactor initialization code in wxTopLevelWindowMSW::Create().
No real changes as the old code was, in fact, correct (although Create()
didn't initialize m_parent explicitly, it was still done in AddChild() if the
parent was not NUL) but just make it more explicit and clear.
Add a new helper wxWindowBase::CreateBase() overload for top level windows,
not taking the validator parameter which doesn't apply to them.
Also make CreateBase() protected as it is only meant to be called from derived
classes Create().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62307
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:58:10 +0000 (22:58 +0000)]
Don't use the current size in DoGetBestSize() by default.
Doing this means that a window which was made initially large because no other
windows were present or shown will refuse to shrink to make space for them
later even if it doesn't need to be that large. The issue was masked under MSW
and GTK because the first size event under these ports is sent so early that
the top level parent window is not realized yet and has default size of 20*20
pixels meaning that its children will cache their initial (very small) size as
their best size, but it was very visible under OS X where the initial layout
is done using the real top level window size and broke wxInfoBar showing in
the dialogs sample, for example.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62306
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:58:05 +0000 (22:58 +0000)]
Make wxWindow::ShowWithEffect() synchronous under wxOSX/Cocoa.
As explained in the previous commit, while Cocoa support asynchronous
animation, wx API doesn't really, so block in Cocoa implementation of
ShowWithEffect() until the animation terminates for compatibility with
wxMSW and hence expectations of the existing code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62305
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:59 +0000 (22:57 +0000)]
Implement wxWindow::ShowWithEffect() for wxOSX/Cocoa.
This version animates the window asynchronously and is being checked in just
to preserve it in svn if we later decide to return to this semantics. It will
be replaced by synchronous animation in the next commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62304
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:50 +0000 (22:57 +0000)]
Added a virtual wxWindow::OSXGetViewOrWindow() method.
This can be used to retrieve either an NSView for child windows or NSWindow
for non-owned ones without resorting to dynamic casts.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62303
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:45 +0000 (22:57 +0000)]
Determine the appropriate show effect automatically in wxInfoBar.
Slide the info bar from top or bottom of the parent window depending on its
location.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62302
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:39 +0000 (22:57 +0000)]
Remove the hack with changing the parent background colour in wxInfoBar.
Finding the closest info bar to copy the background colour from only worked
for very simple layouts and failed for more complicated ones with nested
sizers so don't try to change the colour automatically, it's easy enough to do
it manually as shown in the updated dialogs sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62301
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:32 +0000 (22:57 +0000)]
Implement DrawTitleBarBitmap() for OS X using hard coded PNG images.
Use a simple implementation working under all OS X versions, including 10.4
which doesn't have standard system images for the close button.
Added the images themselves under art/osx and png2c.py helper script to
convert them to a form used in C++ code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62300
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:24 +0000 (22:57 +0000)]
Return smaller images for wxART_MENU/BUTTON under OS X.
Requesting images with client id of wxART_MENU/BUTTON used to return the large
32*32 icons because GetNativeSizeHint() wasn't implemented for these client
ids.
Moreover, under Mac some icons (notably message box ones) are created from the
corresponding icon bundle and the code in wxArtProvider::GetBitmap() didn't
resize them correctly in this case, fix this.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62299
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:20 +0000 (22:57 +0000)]
Use wxART_BUTTON instead of wxART_MENU for info bar icons.
wxART_BUTTON seems to be more appropriate, although in practice this doesn't
make any difference.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62298
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:15 +0000 (22:57 +0000)]
Make info bar buttons smaller.
This looks better under Mac OS X (and currently has no effect under the other
platforms).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62297
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:09 +0000 (22:57 +0000)]
Use wxRendererNative::DrawTitleBarBitmap() for info bar close button.
If supported by the current platform, draw natively-looking close button using
multiple bitmaps for normal, pressed and current stats. Otherwise fall back on
the old wxArtProvider-based bitmap.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62296
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:57:04 +0000 (22:57 +0000)]
Added wxRendererNative::DrawTitleBarBitmap().
This is currently only implemented for wxMSW as there is no advantage to use a
generic implementation compared to using wxArtProvider directly under the
other ports. But for MSW this allows to have perfectly natively looking
titlebar-like buttons.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62295
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:58 +0000 (22:56 +0000)]
Replaced GraphicsHDC from src/msw/renderer.cpp with wxDC::GetTempHDC().
wxDC::GetTempHDC() method provides a convenient and safe way to retrieve HDC
from a wxDC object, whether it is using GDI or GDI+. It is implemented using
(MSW-specific) virtual functions in wxDC and so doesn't need ugly hacks like
wxDynamicCast which were used in src/msw/renderer.cpp to achieve the same
effect.
Also, we now use GetTempHDC() consistently in all wxMSW rendering methods as
the old GraphicsHDC was only used in some of them meaning that many methods
didn't work at all with wxGCDC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62294
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:52 +0000 (22:56 +0000)]
Refactor wxRendererXP button drawing methods.
Avoid code duplication in wxRendererXP as well and fix a bug in
DrawRadioBitmap() which incorrectly drew it in hot state when it was disabled
but wxCONTROL_CURRENT was specified.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62293
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:48 +0000 (22:56 +0000)]
Implement wxRenderer::DrawRadioBitmap() for classic MSW renderer.
Clean up the functions added in r57313:
- Versions using wxUxThemeEngine should be in wxRendererXP
- Provide implementation using DrawFrameControl() in wxRendererMSW too
- Refactor the code to avoid triplication in wxRendererMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62292
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:43 +0000 (22:56 +0000)]
Add demonstration of flags to the render sample.
Allow to select the flags to pass to DrawXXX() functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62291
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:36 +0000 (22:56 +0000)]
Add demonstration of a few more wxRenderer methods.
Also show the effect of calling several more DrawXXX() methods in the sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62290
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:31 +0000 (22:56 +0000)]
Correct custom renderer method override example in the sample.
The implementation of DrawHeaderButton() in MyRenderer should restore the
text foreground colour and brush to avoid messing up drawing done after it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62289
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:27 +0000 (22:56 +0000)]
Don't use possibly uninitialized pen in wxMSWDCImpl.
Check that m_pen is valid before checking if it is transparent in
DoDrawRoundedRectangle() too (this was already done in DoDrawRectangle() in
r53150).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62288
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:22 +0000 (22:56 +0000)]
Don't use themed border for the generic info bar.
Since the switch to deriving from wxControl instead of wxWindow, the info bar
gained a themed border which doesn't look nice for it, especially when it is
shown progressively, as happens under Windows.
Restore the old behaviour by overriding GetDefaultBorder() to return
wxBORDER_NONE for it. This doesn't look perfect neither however, we may want
to draw a separator line between it and the parent window ourselves as even
wxBORDER_SIMPLE looks too heavy for it (and there should be definitely no
border on its sides as it always touches the parent window edges).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62287
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:17 +0000 (22:56 +0000)]
Ensure that info bar message uses the set font/colours in wxGTK.
Propagate the font and colours set on wxInfoBar window itself to its label in
the native GTK implementation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62286
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:12 +0000 (22:56 +0000)]
No real changes, just inline wxSuspendStyleEvents.
wxSuspendStyleEvents helper class was used in one place only and the code is
more clear if its ctor and dtor are inlined directly into DoApplyWidgetStyle()
itself instead of being located far away from it.
Also, we only need to suppress the events for top level windows so don't
bother doing anything at all when changing styles for m_widget and not m_wxwindow.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62285
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:56:07 +0000 (22:56 +0000)]
Added wxInfoBar::Dismiss().
Add a method to conveniently hide the info bar and update the parent layout.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62284
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:57 +0000 (22:55 +0000)]
Use more native appearance in the generic wxInfoBar implementation.
Use default font for the text and left align it instead of centering.
Also use smaller bitmaps for the icon and the button.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62283
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:53 +0000 (22:55 +0000)]
Added wxART_CLOSE art id.
This id corresponds to the close button bitmap. Currently only wxGTK returns a
natively-looking button from here, MSW and OS X versions will be added later.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62282
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:46 +0000 (22:55 +0000)]
Added wxArtProvider::GetMessageBoxIconId().
This function translates between wxICON_XXX constants and wxART_YYY values. It
was extracted from the existing GetMessageBoxIcon().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62281
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:40 +0000 (22:55 +0000)]
Only show the default close button in wxInfoBar if there are no others.
Assume that user-added buttons can be already used to close the message so
don't show the default close button if any were added.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62280
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:32 +0000 (22:55 +0000)]
Generate the button clicks in GTK version of wxInfoBar.
Also add an example of handling info bar buttons events to the sample and
mention that this must be done using Connect() or by deriving from wxInfoBar
in the documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62279
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:22 +0000 (22:55 +0000)]
Use event tables instead of Connect() in wxInfoBarGeneric.
This allows to handle events from the info bar buttons in the derived classes
using the event tables while if the base class used Connect(), the derived
classes static event handlers would be never executed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62278
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:17 +0000 (22:55 +0000)]
Add wxInfoBar::RemoveButton() method.
Also change the GTK implementation to use a separate wxInfoBarGTKImpl to store
its data, this object won't be even allocated if a generic implementation is
used under GTK.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62277
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:10 +0000 (22:55 +0000)]
Added native wxInfoBar implementation for wxGTK.
Straightforward implementation of wxInfoBar using GtkInfoBar widget available
in GTK+ 2.18.
Some side effects of this change:
- Rename wxInfoBar version in wx/generic/infobar.h to wxInfoBarGeneric and
define wxInfoBar in wx/infobar.h.
- Also change default value of flags argument to ShowMessage() to
wxICON_INFORMATION from wxICON_NONE as the default colour for wxICON_NONE
messages is surprisingly ugly in GTK native version.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62276
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:55:01 +0000 (22:55 +0000)]
Add wxWindowGTK::GTKConnectWidget() helper.
This trivial wrapper function allows to omit "m_widget" and "this" arguments
when calling g_signal_connect().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62275
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:54:55 +0000 (22:54 +0000)]
Small code cleanup in wxWindowGTK::PostCreation().
No real changes, just check for 2.8.0 GTK+ version once instead of doing it
twice in a row.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62274
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:54:46 +0000 (22:54 +0000)]
Added GTKShouldConnectSizeRequest() to prevent size_request handling.
Don't hard code the exception for GtkFileChooserButton in
wxWindow::PostCreation() in wxGTK, handling size_request signal also breaks
other controls (e.g. upcoming wxInfoBar native implementation). Instead,
define a virtual function which may be overridden to return false if
size_request shouldn't be connected.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62273
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:54:41 +0000 (22:54 +0000)]
No real changes, just removed unnecessary SetInitialSize() call.
wxControl::PostCreation() already calls SetInitialSize() so there is no need
to call it explicitly in wxHyperlinkCtrl::Create().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62272
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:54:36 +0000 (22:54 +0000)]
Extract conversion from wx to GtkMessageType in a separate file.
Add wxGTKImpl::ConvertMessageTypeFromWX() function to convert from wxICON_XXX
styles to GTK_MESSAGE_XXX values.
This will be reused by wxInfoBar in the next commits.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62271
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:54:31 +0000 (22:54 +0000)]
Added wxInfoBar::AddButton().
Allow adding custom buttons to wxInfoBar and show this in the sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62270
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:54:24 +0000 (22:54 +0000)]
Made wxInfoBar::SetFont() change the text message font.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62269
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:54:13 +0000 (22:54 +0000)]
Initial wxInfoBar implementation.
Add generic implementation, documentation and examples showing the use of the
new class in the samples.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62268
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:53:57 +0000 (22:53 +0000)]
Added wxSHOW_EFFECT_NONE.
Calling Show/HideWithEffect() with this effect is the same as calling just the normal Show/Hide().
This is convenient as it allows to use the same API, whether with effects or without them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62267
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:53:48 +0000 (22:53 +0000)]
Added wxICON_NONE to wxICON_MASK.
Absence of icon is also an icon flag.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62266
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:53:44 +0000 (22:53 +0000)]
Store canvas attributes in the canvas itself in the dialogs sample.
Simplify the code by not transferring font and colours between canvas and
wxTheApp but use canvas font and colours directly instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62265
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:53:37 +0000 (22:53 +0000)]
Minor cleanup and copyright updates in the dialogs sample.
No real changes otherwise.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62264
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:53:32 +0000 (22:53 +0000)]
Use member variable instead of a global in the dialogs sample.
Made MyCanvas member of MyFrame instead of using a global variable which was
put inside the frame by wxApp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62263
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Oct 2009 22:53:26 +0000 (22:53 +0000)]
Partially implement wxTextCtrl::GetStyle() in wxGTK.
Support retrieving the (both foreground and background) colours for the given
position.
Closes #11281.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62262
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Mon, 5 Oct 2009 16:11:02 +0000 (16:11 +0000)]
Fix the line endings to be CRLF after the property change.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62261
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Kevin Ollivier [Mon, 5 Oct 2009 15:12:40 +0000 (15:12 +0000)]
Setting eol-style property to CRLF for some project files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62260
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 5 Oct 2009 14:50:45 +0000 (14:50 +0000)]
configure stc support for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62259
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 5 Oct 2009 09:13:42 +0000 (09:13 +0000)]
set up for OpenVMS richtext & regex and add more samples in compile cascade
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62258
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sun, 4 Oct 2009 21:19:40 +0000 (21:19 +0000)]
fixed wxXmlDocument::Save() to interpret the indentstep argument correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62255
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 4 Oct 2009 19:05:28 +0000 (19:05 +0000)]
Changed the ultimate fall-back popup window classes: wxMSW now uses wxFrame, wxMAC uses wxNonOwnedWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62254
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sun, 4 Oct 2009 00:21:29 +0000 (00:21 +0000)]
add missing break
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62252
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sun, 4 Oct 2009 00:00:12 +0000 (00:00 +0000)]
exclude SWIG generated files from being checked
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62251
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sat, 3 Oct 2009 19:58:15 +0000 (19:58 +0000)]
commenting never used code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62237
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 3 Oct 2009 16:39:24 +0000 (16:39 +0000)]
Remove unused global bitmap, which caused crash on startup with wxUSE_XPM==0.
Use new pen style enums
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62234
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 3 Oct 2009 16:37:54 +0000 (16:37 +0000)]
revert, checked in the wrong file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62233
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 3 Oct 2009 16:32:21 +0000 (16:32 +0000)]
QuickTime is needed by wxBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62232
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 3 Oct 2009 16:23:18 +0000 (16:23 +0000)]
Remove unused global bitmap, which caused crash on startup with wxUSE_XPM==0.
Use new pen style enums
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62231
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 3 Oct 2009 10:43:21 +0000 (10:43 +0000)]
Added wxDECLARE_ANY_TYPE(CLS, DECL) and documented for what kind of situation it is intended: wxAny used across DLL and EXE boundaries.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62230
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 3 Oct 2009 08:27:58 +0000 (08:27 +0000)]
Added change log entries for major new wxPropertyGrid features in wx2.9.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62229
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 2 Oct 2009 19:56:35 +0000 (19:56 +0000)]
fixing typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62227
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 2 Oct 2009 19:45:03 +0000 (19:45 +0000)]
adding construction from native bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62226
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 2 Oct 2009 17:51:16 +0000 (17:51 +0000)]
adding NSImage to CGImageRef conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62225
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Fri, 2 Oct 2009 14:15:35 +0000 (14:15 +0000)]
Added note about dangers of adding and deleting items in wxEVT_COMMAND_COMBOBOX_CLOSEUP (works only on wxMSW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62224
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Fri, 2 Oct 2009 09:31:49 +0000 (09:31 +0000)]
Fix compilation for wxUniversal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62223
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Thu, 1 Oct 2009 16:06:58 +0000 (16:06 +0000)]
Fixed bug: wxEditEnumProperty's initial string value could not be outside the list of choices.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62222
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 1 Oct 2009 08:59:01 +0000 (08:59 +0000)]
fixing setting initial value under osx_cocoa for single line text controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62221
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 1 Oct 2009 00:33:54 +0000 (00:33 +0000)]
Don't exit on errors in the pre-commit svn hook.
Errors in grep, when it fails to find any changed or updated files, also count
so the "set -e" line was causing the hook to reject any commits only deleting
files (without any error message).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62218
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775