]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
15 years agoDon't use possibly uninitialized pen in wxMSWDCImpl.
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

15 years agoDon't use themed border for the generic info bar.
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

15 years agoEnsure that info bar message uses the set font/colours in wxGTK.
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

15 years agoNo real changes, just inline wxSuspendStyleEvents.
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

15 years agoAdded wxInfoBar::Dismiss().
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

15 years agoUse more native appearance in the generic wxInfoBar implementation.
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

15 years agoAdded wxART_CLOSE art id.
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

15 years agoAdded wxArtProvider::GetMessageBoxIconId().
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

15 years agoOnly show the default close button in wxInfoBar if there are no others.
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

15 years agoGenerate the button clicks in GTK version of wxInfoBar.
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

15 years agoUse event tables instead of Connect() in wxInfoBarGeneric.
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

15 years agoAdd wxInfoBar::RemoveButton() method.
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

15 years agoAdded native wxInfoBar implementation for wxGTK.
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

15 years agoAdd wxWindowGTK::GTKConnectWidget() helper.
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

15 years agoSmall code cleanup in wxWindowGTK::PostCreation().
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

15 years agoAdded GTKShouldConnectSizeRequest() to prevent size_request handling.
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

15 years agoNo real changes, just removed unnecessary SetInitialSize() call.
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

15 years agoExtract conversion from wx to GtkMessageType in a separate file.
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

15 years agoAdded wxInfoBar::AddButton().
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

15 years agoMade wxInfoBar::SetFont() change the text message font.
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

15 years agoInitial wxInfoBar implementation.
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

15 years agoAdded wxSHOW_EFFECT_NONE.
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

15 years agoAdded wxICON_NONE to wxICON_MASK.
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

15 years agoStore canvas attributes in the canvas itself in the dialogs sample.
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

15 years agoMinor cleanup and copyright updates in the dialogs sample.
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

15 years agoUse member variable instead of a global in the dialogs sample.
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

15 years agoPartially implement wxTextCtrl::GetStyle() in wxGTK.
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

15 years agoFix the line endings to be CRLF after the property change.
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

15 years agoSetting eol-style property to CRLF for some project files.
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

15 years agoconfigure stc support for OpenVMS
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

15 years agoset up for OpenVMS richtext & regex and add more samples in compile cascade
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

15 years agofixed wxXmlDocument::Save() to interpret the indentstep argument correctly
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

15 years agoChanged the ultimate fall-back popup window classes: wxMSW now uses wxFrame, wxMAC...
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

15 years agoadd missing break
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

15 years agoexclude SWIG generated files from being checked
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

15 years agocommenting never used code
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

15 years agoRemove unused global bitmap, which caused crash on startup with wxUSE_XPM==0.
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

15 years agorevert, checked in the wrong file
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

15 years agoQuickTime is needed by wxBitmap
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

15 years agoRemove unused global bitmap, which caused crash on startup with wxUSE_XPM==0.
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

15 years agoAdded wxDECLARE_ANY_TYPE(CLS, DECL) and documented for what kind of situation it...
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

15 years agoAdded change log entries for major new wxPropertyGrid features in wx2.9.1
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

15 years agofixing typo
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

15 years agoadding construction from native bitmaps
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

15 years agoadding NSImage to CGImageRef conversion
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

15 years agoAdded note about dangers of adding and deleting items in wxEVT_COMMAND_COMBOBOX_CLOSE...
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

15 years agoFix compilation for wxUniversal
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

15 years agoFixed bug: wxEditEnumProperty's initial string value could not be outside the list...
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

15 years agofixing setting initial value under osx_cocoa for single line text controls
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

15 years agoDon't exit on errors in the pre-commit svn hook.
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

15 years agoRemove old and unused file.
Vadim Zeitlin [Thu, 1 Oct 2009 00:32:03 +0000 (00:32 +0000)] 
Remove old and unused file.

We don't use WISE since many years, so remove the source of an utility which
was supposed to help with using it.

Closes #11270.

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

15 years agooverriding to allocate an outer autorelease pool
Stefan Csomor [Wed, 30 Sep 2009 18:25:33 +0000 (18:25 +0000)] 
overriding to allocate an outer autorelease pool

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

15 years agofixing text matrix (dataview custom renderer showed problems) and reordering SaveGState
Stefan Csomor [Wed, 30 Sep 2009 17:50:49 +0000 (17:50 +0000)] 
fixing text matrix (dataview custom renderer showed problems) and reordering SaveGState

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

15 years agoFix harmless unused parameters warnings.
Vadim Zeitlin [Wed, 30 Sep 2009 16:38:28 +0000 (16:38 +0000)] 
Fix harmless unused parameters warnings.

Also assert in the not implemented wxSound methods instead of silently
returning false.

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

15 years agouse proper signature for callback function
Paul Cornett [Wed, 30 Sep 2009 15:39:21 +0000 (15:39 +0000)] 
use proper signature for callback function

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

15 years agobuild fix for wxUSE_CONSOLE_EVENTLOOP==0
Paul Cornett [Wed, 30 Sep 2009 15:38:53 +0000 (15:38 +0000)] 
build fix for wxUSE_CONSOLE_EVENTLOOP==0

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

15 years agobuild fix for wxUSE_SOCKETS==0
Paul Cornett [Wed, 30 Sep 2009 15:38:23 +0000 (15:38 +0000)] 
build fix for wxUSE_SOCKETS==0

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

15 years agosupport backgroundcolor on osx_cocoa
Stefan Csomor [Wed, 30 Sep 2009 15:20:30 +0000 (15:20 +0000)] 
support backgroundcolor on osx_cocoa

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

15 years agoApplied #11260 (found a regression while checking in src/motif/menu.cpp with static...
Julian Smart [Wed, 30 Sep 2009 06:53:35 +0000 (06:53 +0000)] 
Applied #11260 (found a regression while checking in src/motif/menu.cpp with static code analysis tool cppcheck)
Marin Ettl

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

15 years agoCorrect checks for conversion success in wxUniChar.
Vadim Zeitlin [Wed, 30 Sep 2009 00:15:11 +0000 (00:15 +0000)] 
Correct checks for conversion success in wxUniChar.

Correct the checks in wxUniChar::From/ToHi8bit() to check for conversion
success correctly as it always failed otherwise: wxMBConv::To/FromWChar()
conversion functions should return 2, not 1, when conversion of 2 characters
succeeded, even if one of them is a NUL.

Closes #11243.

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

15 years agofix message box icons sizes in wxWindowsArtProvider: they should respect client ID...
Václav Slavík [Tue, 29 Sep 2009 17:04:08 +0000 (17:04 +0000)] 
fix message box icons sizes in wxWindowsArtProvider: they should respect client ID and not be 32x32 all the time

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

15 years agoRemoved dst buffer delete responsibility from wxAnyValueType::CopyBuffer(), clarified...
Jaakko Salli [Tue, 29 Sep 2009 13:38:20 +0000 (13:38 +0000)] 
Removed dst buffer delete responsibility from wxAnyValueType::CopyBuffer(), clarified documentation regarding it.

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

15 years ago#11259: Correction for bad help button on OSX
Julian Smart [Tue, 29 Sep 2009 07:19:38 +0000 (07:19 +0000)] 
#11259: Correction for bad help button on OSX

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

15 years agoAdded help button
Julian Smart [Tue, 29 Sep 2009 07:15:14 +0000 (07:15 +0000)] 
Added help button

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

15 years agoContext menu now created in constructor; old context menu deleted when new one set.
Julian Smart [Tue, 29 Sep 2009 06:45:36 +0000 (06:45 +0000)] 
Context menu now created in constructor; old context menu deleted when new one set.

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

15 years agoForward port of r62191 to SVN trunk fixing regression from r37982 (missing ')')....
Bryan Petty [Mon, 28 Sep 2009 23:44:34 +0000 (23:44 +0000)] 
Forward port of r62191 to SVN trunk fixing regression from r37982 (missing ')'). Fixes #11257.

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

15 years agoMoved WinPrinter from private.h to printdlg.cpp.
Julian Smart [Mon, 28 Sep 2009 16:15:34 +0000 (16:15 +0000)] 
Moved WinPrinter from private.h to printdlg.cpp.

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

15 years agolinking fix for wxUSE_VALIDATORS==0
Paul Cornett [Mon, 28 Sep 2009 15:36:06 +0000 (15:36 +0000)] 
linking fix for wxUSE_VALIDATORS==0

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

15 years agobuild fix for wxUSE_SOCKETS==0
Paul Cornett [Mon, 28 Sep 2009 15:35:48 +0000 (15:35 +0000)] 
build fix for wxUSE_SOCKETS==0

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

15 years agoApplied #9076 (scrolling bars grow box fix)
Julian Smart [Mon, 28 Sep 2009 07:06:14 +0000 (07:06 +0000)] 
Applied #9076 (scrolling bars grow box fix)
By lillo

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

15 years agoDo not use wxS in array of const wxChar*
Jaakko Salli [Mon, 28 Sep 2009 06:40:26 +0000 (06:40 +0000)] 
Do not use wxS in array of const wxChar*

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

15 years agowxUSE_THREAD -> wxUSE_THREADS
Jaakko Salli [Mon, 28 Sep 2009 06:25:44 +0000 (06:25 +0000)] 
wxUSE_THREAD -> wxUSE_THREADS

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

15 years agoAttempt at compile fix
Julian Smart [Mon, 28 Sep 2009 06:07:43 +0000 (06:07 +0000)] 
Attempt at compile fix

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

15 years agoUse long double instead of double in wxAnyValueBuffer, moved alignment-specific value...
Jaakko Salli [Sun, 27 Sep 2009 16:30:26 +0000 (16:30 +0000)] 
Use long double instead of double in wxAnyValueBuffer, moved alignment-specific values into sub-union

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

15 years agoAdded function and member function pointers in wxAnyValueBuffer to make memory alignm...
Jaakko Salli [Sun, 27 Sep 2009 15:28:06 +0000 (15:28 +0000)] 
Added function and member function pointers in wxAnyValueBuffer to make memory alignment problems even less likely.

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

15 years agoMake sure there are no memory alignment issues with wxAnyValueBuffer
Jaakko Salli [Sun, 27 Sep 2009 14:52:34 +0000 (14:52 +0000)] 
Make sure there are no memory alignment issues with wxAnyValueBuffer

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

15 years agoDo not process editor control events when propgrid event is currently being processed...
Jaakko Salli [Sun, 27 Sep 2009 14:39:03 +0000 (14:39 +0000)] 
Do not process editor control events when propgrid event is currently being processed. Doing otherwise could lead to a crash if application is doing something time-consuming (such as displaying a message box) in the event handler.

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

15 years agoStore property name and value in wxPropertyGridEvent, keep track of live event instan...
Jaakko Salli [Sun, 27 Sep 2009 14:35:02 +0000 (14:35 +0000)] 
Store property name and value in wxPropertyGridEvent, keep track of live event instances, and clear property/grid information in them in wxPropertyGrid dtor. This allows application to relay events for later processing without fear of losing most relevant information within.

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

15 years agowxFontProperty: Added support for wxFONTFAMILY_TELETYPE and wxFONTFAMILY_UNKNOWN...
Jaakko Salli [Sun, 27 Sep 2009 11:44:25 +0000 (11:44 +0000)] 
wxFontProperty: Added support for wxFONTFAMILY_TELETYPE and wxFONTFAMILY_UNKNOWN, moved Family child-property to the back.

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

15 years agoApplied modified #10655 (Added Cookie (receive) support to wxHTTP)
Julian Smart [Sat, 26 Sep 2009 19:47:23 +0000 (19:47 +0000)] 
Applied modified #10655 (Added Cookie (receive) support to wxHTTP)

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

15 years agoadding ProcessPendingEvents as ProcessIdle doesn't call it anymore, closes #11132
Stefan Csomor [Sat, 26 Sep 2009 18:50:33 +0000 (18:50 +0000)] 
adding ProcessPendingEvents as ProcessIdle doesn't call it anymore, closes #11132

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

15 years agoNo real changes, just small cleanup in wxMac wxDVC.
Vadim Zeitlin [Sat, 26 Sep 2009 16:43:44 +0000 (16:43 +0000)] 
No real changes, just small cleanup in wxMac wxDVC.

Use wxDC{Pen,Brush}Changer classes instead of setting/restoring pen and brush
manually.

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

15 years agoUse FWD version of DLL export macro in forward declaration.
Vadim Zeitlin [Sat, 26 Sep 2009 16:43:37 +0000 (16:43 +0000)] 
Use FWD version of DLL export macro in forward declaration.

Forward declarations must use WXDLLIMPEXP_FWD_XXX and not WXDLLIMPEXP_XXX to
avoid g++ warnings about "type attributes are honored only at type definition".

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

15 years agoFixed wxDataViewCtrl::Set{Foreground,Background}Colour() to work under GTK too.
Vadim Zeitlin [Sat, 26 Sep 2009 16:43:30 +0000 (16:43 +0000)] 
Fixed wxDataViewCtrl::Set{Foreground,Background}Colour() to work under GTK too.

Implement DoApplyWidgetStyle() in wxGTK version of wxDataViewCtrl to propagate
the main window style to the GtkTreeView which is what the user mostly sees.

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

15 years agoDon't hard code white background colour in generic wxDataViewCtrl.
Vadim Zeitlin [Sat, 26 Sep 2009 16:43:19 +0000 (16:43 +0000)] 
Don't hard code white background colour in generic wxDataViewCtrl.

wxDataViewMainWindow::OnPaint() always used the white brush to erase the
control background which was wrong, change it to use the background colour of
the control.

Also add tests for setting wxDataViewCtrl foreground and background colours to
the dataview sample.

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

15 years agoUse default composite controls attributes for wxDataViewCtrl.
Vadim Zeitlin [Sat, 26 Sep 2009 16:43:12 +0000 (16:43 +0000)] 
Use default composite controls attributes for wxDataViewCtrl.

wxDataViewCtrl should use the same colours/fonts as the native list and tree
controls.

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

15 years agoMove wxControl::GetCompositeControlsDefaultAttributes() from MSW to common.
Vadim Zeitlin [Sat, 26 Sep 2009 16:43:06 +0000 (16:43 +0000)] 
Move wxControl::GetCompositeControlsDefaultAttributes() from MSW to common.

This function is not MSW-specific and should be used in generic implementation
of controls such as wxListCtrl, wxTreeCtrl and wxDataViewCtrl. Even if it is
needed by MSW only now, move it to the common code to avoid #ifdefs in these
controls code.

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

15 years agoFix harmless warning about -1 to WPARAM conversion.
Vadim Zeitlin [Sat, 26 Sep 2009 16:42:56 +0000 (16:42 +0000)] 
Fix harmless warning about -1 to WPARAM conversion.

This was introduced by the last change to this file in r62058.

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

15 years agoreducing key event handling complexity
Stefan Csomor [Sat, 26 Sep 2009 16:39:33 +0000 (16:39 +0000)] 
reducing key event handling complexity

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

15 years agoDon't use invalid pen in wxDCImpl::DoGradientFillConcentric().
Vadim Zeitlin [Sat, 26 Sep 2009 13:31:41 +0000 (13:31 +0000)] 
Don't use invalid pen in wxDCImpl::DoGradientFillConcentric().

The old code stored the original colour of m_pen before changing it and
restored it on exit but this didn't work if the pen was invalid to start with.

Just store the pen itself instead, this works in any case.

Closes #11235.

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

15 years agoUse checked bitmap for menu items under Vista.
Vadim Zeitlin [Sat, 26 Sep 2009 13:31:32 +0000 (13:31 +0000)] 
Use checked bitmap for menu items under Vista.

The normal (unchecked) bitmap was always used for the menu items under Vista,
fix this and do use the checked bitmap if needed.

Closes #11244.

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

15 years agoFix another off-by-1 bug in wxMBConv::ToWChar().
Vadim Zeitlin [Sat, 26 Sep 2009 13:31:27 +0000 (13:31 +0000)] 
Fix another off-by-1 bug in wxMBConv::ToWChar().

When converting a fixed number of characters we need to take any NULs inside
the buffer being converted into account for our return value -- but this
wasn't done and converting 2 characters 'x' and '\0' returned only 1, even if
the length 2 was explicitly specified.

Fix this bug and add a unit test checking for it.

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

15 years agoNo changes, just convert file to UTF-8.
Vadim Zeitlin [Sat, 26 Sep 2009 13:31:20 +0000 (13:31 +0000)] 
No changes, just convert file to UTF-8.

All files in svn are supposed to use UTF-8 now so convert this one to UTF-8
too before committing more changes to it (which would be otherwise rejected by
pre-commit hook).

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

15 years agoRefactor wxStyledTextCtrl to share common file save/load code.
Vadim Zeitlin [Sat, 26 Sep 2009 13:26:16 +0000 (13:26 +0000)] 
Refactor wxStyledTextCtrl to share common file save/load code.

Keep the code for saving and loading text contents from files in a single
place instead of doing it differently in wxTextCtrl and wxStyledTextCtrl.

This required adding Set/GetValue() methods to wxTextAreaBase just so that its
DoLoad/SaveFile() could use them, even if they are the same as wxTextEntryBase
methods and are overridden in wxTextCtrlBase to be implemented in terms of the
latter.

Notice that wxRichTextCtrl might need to be refactored to use this code too in
the future.

Also notice that this reverts the change of r62081 which replaced SetValue()
with ChangeValue() in DoLoadFile() as wxTextAreaBase only has SetValue() and
it's not worth adding ChangeValue() to it too just to preserve this recent
change in behaviour.

Closes #10715.

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

15 years agoCompilation fix for non-MSW: don't use ProcessCommand().
Vadim Zeitlin [Sat, 26 Sep 2009 13:26:03 +0000 (13:26 +0000)] 
Compilation fix for non-MSW: don't use ProcessCommand().

wxControl::ProcessCommand() is MSW-only, use HandleWindowEvent() to fix
compilation under Unix.

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

15 years agocleaning up key handling, closes #10406
Stefan Csomor [Sat, 26 Sep 2009 10:39:26 +0000 (10:39 +0000)] 
cleaning up key handling, closes #10406

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

15 years agoHave wxComboCtrl generate wxEVT_COMMAND_COMBOBOX_DROPDOWN and wxEVT_COMMAND_COMBOBOX_...
Jaakko Salli [Sat, 26 Sep 2009 09:15:29 +0000 (09:15 +0000)] 
Have wxComboCtrl generate wxEVT_COMMAND_COMBOBOX_DROPDOWN and wxEVT_COMMAND_COMBOBOX_CLOSEUP events

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

15 years agousing native key handling, closes #10406
Stefan Csomor [Fri, 25 Sep 2009 18:53:38 +0000 (18:53 +0000)] 
using native key handling, closes #10406

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

15 years agousing common notification mechanism for selection changes (key or mouse), see #10406
Stefan Csomor [Fri, 25 Sep 2009 16:57:08 +0000 (16:57 +0000)] 
using common notification mechanism for selection changes (key or mouse), see #10406

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

15 years agoRaise the scrollbars on reparenting (part of patch #9076)
Julian Smart [Fri, 25 Sep 2009 16:15:04 +0000 (16:15 +0000)] 
Raise the scrollbars on reparenting (part of patch #9076)

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