wxWidgets.git
14 years agoDon't change the current pen and brush in DrawHeaderButtonContents().
Vadim Zeitlin [Sat, 15 May 2010 11:15:05 +0000 (11:15 +0000)] 
Don't change the current pen and brush in DrawHeaderButtonContents().

Renderer methods shouldn't affect the functions drawing on the DC after it but
the wxRendererGeneric implementation did.

Use wxDC{Pen,Brush}Changer classes instead of calling wxDC::Set{Pen,Brush}()
directly.

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

14 years agoAdd more tests for wxRendererNative::DrawHeaderButton().
Vadim Zeitlin [Sat, 15 May 2010 10:47:33 +0000 (10:47 +0000)] 
Add more tests for wxRendererNative::DrawHeaderButton().

Test using icons and bitmaps in it. Also show the native/default
implementation of this method and not only our overridden version.

See #12047.

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

14 years agoRemove wxGTK-specific text shift in wxRenderer::DrawHeaderButtonContents().
Vadim Zeitlin [Sat, 15 May 2010 10:47:28 +0000 (10:47 +0000)] 
Remove wxGTK-specific text shift in wxRenderer::DrawHeaderButtonContents().

This was probably related to the code removed by r63947 and doesn't seem to be
needed here neither (and could presumably result in the same problems as in
the ticket #11780).

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

14 years agoNever enable wxSpinCtrlGenericBase window itself at underlying toolkit level.
Vadim Zeitlin [Thu, 13 May 2010 15:31:35 +0000 (15:31 +0000)] 
Never enable wxSpinCtrlGenericBase window itself at underlying toolkit level.

We create wxSpinCtrlGenericBase window disabled at underlying toolkit level
(but enabled at the level of wxWidgets API, of course), but calling Disable()
and Enable() on it re-enabled it resulting in loss of mouse events under
Windows.

Don't re-enable it (again, at the low-level toolkit level only) in its
Enable() any more but keep this window itself always disabled.

Closes #12045.

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

14 years agoUse GetWidgets() in the widgets samples instead of GetWidget2().
Vadim Zeitlin [Thu, 13 May 2010 15:31:30 +0000 (15:31 +0000)] 
Use GetWidgets() in the widgets samples instead of GetWidget2().

Add a function which can be overridden to return an arbitrary number of
widgets instead of having just GetWidget() and GetWidget2(): spin control page
already uses 3 widgets (and defines GetWidget3() which is never called) and we
could have even more in the future. Just use a generic solution which will
always work.

The practical consequence of this is that the "Enable/Disable" menu item now
also enables and disables the wxSpinCtrlDouble in the spin page, see #12045.

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

14 years agoNo changes, just cleanup the image part of the docview sample.
Vadim Zeitlin [Thu, 13 May 2010 14:37:06 +0000 (14:37 +0000)] 
No changes, just cleanup the image part of the docview sample.

Remove unnecessary, never used methods.

Don't use pointers when objects or references can be used more safely.

Don't name classes which are not part of wx with "wx" prefix to avoid
confusing people.

Don't define empty unnecessary event tables.

Prefer wxScrolledWindow::SetVirtualSize() to SetScrollbars().

Stop using "protected" when "private" should be used.

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

14 years agoDocument wxDocument::DeleteContents().
Vadim Zeitlin [Thu, 13 May 2010 14:37:00 +0000 (14:37 +0000)] 
Document wxDocument::DeleteContents().

This method purpose was not quite clear as it was only mentioned in passing in
documentation of OnCloseDocument() but not really documented itself.

Also don't call it from wxDocument dtor as this is useless: the user-defined
overridden version will never be called from here and the base class version
does nothing.

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

14 years agoMake text drawn by wxGraphicsContext slightly less intrusive
Jaakko Salli [Thu, 13 May 2010 08:36:37 +0000 (08:36 +0000)] 
Make text drawn by wxGraphicsContext slightly less intrusive

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

14 years agoAdded wxGraphicsContext::Create(const wxEnhMetaFileDC& dc) so that wxPrintPreview...
Jaakko Salli [Thu, 13 May 2010 08:22:36 +0000 (08:22 +0000)] 
Added wxGraphicsContext::Create(const wxEnhMetaFileDC& dc) so that wxPrintPreview can work with wxMSW's wxGraphicsContext (closes #12028)

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

14 years agoAdd missing check for wxUSE_FILE_HISTORY existence.
Václav Slavík [Thu, 13 May 2010 06:25:33 +0000 (06:25 +0000)] 
Add missing check for wxUSE_FILE_HISTORY existence.

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

14 years agoRefactor wxDocParentFrame and wxDocMDIParentFrame to share common base class.
Vadim Zeitlin [Wed, 12 May 2010 14:34:18 +0000 (14:34 +0000)] 
Refactor wxDocParentFrame and wxDocMDIParentFrame to share common base class.

Use the same approach as for the child frames: add a base template class which
allows wxDocParentFrame to inherit from wxFrame and wxDocMDIParentFrame from
wxMDIParentFrame while still allowing to reuse the common code.

This reduces code duplication and should make implementing parent AUI document
frame easier as well, see #8945.

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

14 years agoRestore wxString::Printf() example showing position parameters in the docs.
Vadim Zeitlin [Wed, 12 May 2010 08:18:17 +0000 (08:18 +0000)] 
Restore wxString::Printf() example showing position parameters in the docs.

The example was lost during the translation of the manual to Doxygen.

Closes #12038.

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

14 years agoupdate the main page of the manual to be more consistent; update its date
Francesco Montorsi [Tue, 11 May 2010 21:25:17 +0000 (21:25 +0000)] 
update the main page of the manual to be more consistent; update its date

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

14 years agofix errors/inconsistencies pointed out by ifacecheck
Francesco Montorsi [Tue, 11 May 2010 21:12:10 +0000 (21:12 +0000)] 
fix errors/inconsistencies pointed out by ifacecheck

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

14 years agobetter error message when an inconsistency has been found
Francesco Montorsi [Tue, 11 May 2010 21:10:18 +0000 (21:10 +0000)] 
better error message when an inconsistency has been found

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

14 years agominor fixes to reduce number of Doxygen warnings
Francesco Montorsi [Tue, 11 May 2010 19:44:16 +0000 (19:44 +0000)] 
minor fixes to reduce number of Doxygen warnings

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

14 years agoimg tags need a final slash as they are empty tags; change <img> => <img/>
Francesco Montorsi [Tue, 11 May 2010 19:39:06 +0000 (19:39 +0000)] 
img tags need a final slash as they are empty tags; change <img> => <img/>

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

14 years agomake H3 titles center-aligned (fixes the display of the manual version for HTML docs...
Francesco Montorsi [Tue, 11 May 2010 19:37:29 +0000 (19:37 +0000)] 
make H3 titles center-aligned (fixes the display of the manual version for HTML docs which currently appears left-aligned)

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

14 years agoUpdate OpenVMS comiles support
Jouk Jansen [Tue, 11 May 2010 10:40:47 +0000 (10:40 +0000)] 
Update OpenVMS comiles support

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

14 years agoFix position for wxKeyEvents in wxMSW.
Vadim Zeitlin [Tue, 11 May 2010 10:39:42 +0000 (10:39 +0000)] 
Fix position for wxKeyEvents in wxMSW.

Use ScreenToClient() instead of painstakingly (and incorrectly) transforming
the position in this function itself.

Closes #12024.

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

14 years agofix for non-PCH builds; also use wxMilliSleep instead of wxThread::Sleep since the...
Francesco Montorsi [Tue, 11 May 2010 07:16:58 +0000 (07:16 +0000)] 
fix for non-PCH builds; also use wxMilliSleep instead of wxThread::Sleep since the former is more readable (it's clear that it takes milliseconds).

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

14 years agomove code testing wxThread classes from the console sample to a new CppUnit test
Francesco Montorsi [Mon, 10 May 2010 21:48:24 +0000 (21:48 +0000)] 
move code testing wxThread classes from the console sample to a new CppUnit test

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

14 years agoBuild fix: forgotten part of the previous commit.
Vadim Zeitlin [Mon, 10 May 2010 21:28:17 +0000 (21:28 +0000)] 
Build fix: forgotten part of the previous commit.

This commit should have been part of r64281.

Also notice that the previous commit message mentioned a wrong ticket number,
see #10572.

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

14 years agoAdd column parameter to wxListCtrl::GetItemText().
Vadim Zeitlin [Mon, 10 May 2010 21:22:16 +0000 (21:22 +0000)] 
Add column parameter to wxListCtrl::GetItemText().

Allow retrieving the text from columns other than the first one directly.

Add implementations for MSW and generic versions, documentation and a unit
test.

Closes #11597.

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

14 years agoChange wxDIALOG_NO_PARENT value to avoid clashing with wxCENTRE.
Vadim Zeitlin [Mon, 10 May 2010 21:10:03 +0000 (21:10 +0000)] 
Change wxDIALOG_NO_PARENT value to avoid clashing with wxCENTRE.

Use a bit freed by removing wxTINY_CAPTION_HORIZ for wxDIALOG_NO_PARENT. This
allows to move it out from the lower byte of the style word to avoid conflicts
with the button selection flags which can be commonly combined with the dialog
styles.

More precisely, wxDIALOG_NO_PARENT used to clash with wxCENTRE, meaning that
wxSingleChoiceDialog, for example, was always created without parent because
its default style included wxCENTRE. This commit fixes this particular bug and
probably more similar ones.

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

14 years agoReplace wxTINY_CAPTION_{HORIZ,VERT} with a single wxTINY_CAPTION.
Vadim Zeitlin [Mon, 10 May 2010 21:09:57 +0000 (21:09 +0000)] 
Replace wxTINY_CAPTION_{HORIZ,VERT} with a single wxTINY_CAPTION.

These two styles were always equivalent so we can just as well replace them
with a single one and stop wasting an extra bit.

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

14 years agoNo changes, just added comments summarizing the use of style bits.
Vadim Zeitlin [Mon, 10 May 2010 21:09:50 +0000 (21:09 +0000)] 
No changes, just added comments summarizing the use of style bits.

Add comments allowing to see more clearly the styles allocation.

Please make sure to amend them if you change any style values in the future.

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

14 years agoDon't use wxWindow::ClearBackground() in the image sample and explain why.
Vadim Zeitlin [Mon, 10 May 2010 21:02:30 +0000 (21:02 +0000)] 
Don't use wxWindow::ClearBackground() in the image sample and explain why.

Painting on both wxPaintDC and wxClientDC simultaneously doesn't work well,
e.g. under Windows the client DC can be actually erased after we finished
painting the window contents, overwriting it.

Simply use wxDC::Clear() instead of wxWindow::ClearBackground() to avoid this
and document the danger of using ClearBackground() from EVT_PAINT handler.

Closes #10700.

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

14 years agoMake text printed by wxGraphicsContext shorter
Jaakko Salli [Mon, 10 May 2010 14:16:07 +0000 (14:16 +0000)] 
Make text printed by wxGraphicsContext shorter

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

14 years agoUse wxGraphicsContext to draw some text and a rectangle around it (so that GetTextExt...
Jaakko Salli [Mon, 10 May 2010 14:14:35 +0000 (14:14 +0000)] 
Use wxGraphicsContext to draw some text and a rectangle around it (so that GetTextExtent() can be verified to work correctly)

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

14 years agoIn wxGDIPlusContext::GetTextExtent(), return more accurate text height if possible
Jaakko Salli [Mon, 10 May 2010 13:54:20 +0000 (13:54 +0000)] 
In wxGDIPlusContext::GetTextExtent(), return more accurate text height if possible

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

14 years agoSet wxGraphicsContext page scale, which is required for printing to work properly
Jaakko Salli [Mon, 10 May 2010 13:52:12 +0000 (13:52 +0000)] 
Set wxGraphicsContext page scale, which is required for printing to work properly

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

14 years agoReplace public wxEvtHandler::ProcessEventHere() with private TryHere().
Vadim Zeitlin [Sun, 9 May 2010 14:55:46 +0000 (14:55 +0000)] 
Replace public wxEvtHandler::ProcessEventHere() with private TryHere().

ProcessEventHere() doesn't have to be public any more now that we have
ProcessEventLocally() which is safe to call from the outside (i.e. doesn't
forget about the chained event handlers and validators).

Still keep this function because it makes the code more modular and also
because we might want to make it virtual for consistency with TryBefore() and
TryAfter() later. Also rename it to TryHere() to make the symmetry with these
functions more manifest.

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

14 years agoUse ProcessEventLocally() instead of ProcessEventHere() in docview code.
Vadim Zeitlin [Sun, 9 May 2010 14:55:41 +0000 (14:55 +0000)] 
Use ProcessEventLocally() instead of ProcessEventHere() in docview code.

Use wxEvtHandler::ProcessEventLocally() instead of ProcessEventHere() when
forwarding events in the docview code. This ensures that any event handlers
chained with the objects involved (document manager, document, view) will be
used.

Incidentally the old code didn't work at all as ProcessEventHere() didn't even
call TryBefore() where the (further) forwarding was implemented.

Closes #10640.

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

14 years agoAdd wxWindow::ProcessWindowEventLocally() and use it in wxMSW MDI code.
Vadim Zeitlin [Sun, 9 May 2010 14:55:33 +0000 (14:55 +0000)] 
Add wxWindow::ProcessWindowEventLocally() and use it in wxMSW MDI code.

Add ProcessWindowEventLocally() which wraps ProcessEventLocally() in the same
way as ProcessWindowEvent() wraps ProcessEvent(). I.e. it allows to process
the event in this window only, without propagating it upwards, but taking into
account any event handlers associated with it.

Use the new method in wxMDIParentFrame code in wxMSW to ensure that event
handlers pushed on MDI children frames are taken into account. Add a test for
this to the MDI sample.

Closes #11225.

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

14 years agoRefactor the event processing code to add ProcessEventLocally().
Vadim Zeitlin [Sun, 9 May 2010 14:55:28 +0000 (14:55 +0000)] 
Refactor the event processing code to add ProcessEventLocally().

This new method can be used to only process the event in this handler or any
handlers connected to it (unlike ProcessEventHere() which doesn't follow the
chain at all), without propagating the event upwards (unlike ProcessEvent()).

Unfortunately implementing this required a field to wxEvent but there doesn't
seem to be any other way to do what we need.

There should be no user-visible changes after this commit, it just paves the
way for the upcoming fixes.

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

14 years agoCall wxEvtHandler::TryBefore() only once from ProcessEvent().
Vadim Zeitlin [Sun, 9 May 2010 14:55:21 +0000 (14:55 +0000)] 
Call wxEvtHandler::TryBefore() only once from ProcessEvent().

The event pre-processing hooks associated with the window should be called
only once during the event processing, we don't need to call TryBefore() for
each and every event handler associated with the window too.

This makes the code slightly simpler and faster and shouldn't change the
behaviour of any existing code.

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

14 years agoSupress SetFocus() warning in wxVListBoxComboPopup
Jaakko Salli [Sun, 9 May 2010 10:29:48 +0000 (10:29 +0000)] 
Supress SetFocus() warning in wxVListBoxComboPopup

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

14 years agoPrevent idMenuTitle from being accidentally used as invalid wx ID.
Václav Slavík [Sun, 9 May 2010 10:27:44 +0000 (10:27 +0000)] 
Prevent idMenuTitle from being accidentally used as invalid wx ID.

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

14 years agoWhitelist wxID_NONE as valid menu item ID.
Václav Slavík [Sun, 9 May 2010 10:27:40 +0000 (10:27 +0000)] 
Whitelist wxID_NONE as valid menu item ID.

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

14 years agoFixed popup menu's title to be bold regardless of method used.
Václav Slavík [Sun, 9 May 2010 10:27:35 +0000 (10:27 +0000)] 
Fixed popup menu's title to be bold regardless of method used.

Popup menus with title set via SetTitle() had bold font, but menus
created by passing title as ctor argument used normal font. Fixed this
by using the same code (SetTitle) in both cases, instead of having two
independent (and out of sync) implementations of the same functionality.

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

14 years agowxMsgCatalog destructor should be public.
Václav Slavík [Sat, 8 May 2010 15:31:12 +0000 (15:31 +0000)] 
wxMsgCatalog destructor should be public.

Fixes #12031.

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

14 years agoFixed a test in wxTranslations::GetString() to use UINT_MAX instead of -1.
Václav Slavík [Sat, 8 May 2010 15:31:07 +0000 (15:31 +0000)] 
Fixed a test in wxTranslations::GetString() to use UINT_MAX instead of -1.

See #12031.

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

14 years agoInvalidate wxListBox best size immediately without waiting for idle time.
Vadim Zeitlin [Sat, 8 May 2010 10:28:01 +0000 (10:28 +0000)] 
Invalidate wxListBox best size immediately without waiting for idle time.

Since r53743 the listbox best size was only invalidated during idle time but
this meant that it could be laid out using incorrect old best size. So while
we still defer (expensive) horizontal extent calculation until later, do
invalidate the best size immediately to ensure the listbox is laid out
correctly.

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

14 years agoFix crash in wxCommandProcessor of capacity N when N-1 commands were undone.
Vadim Zeitlin [Fri, 7 May 2010 23:38:31 +0000 (23:38 +0000)] 
Fix crash in wxCommandProcessor of capacity N when N-1 commands were undone.

Performing N commands (where N is the maximal number of commands stored by
wxCommandProcessor), undoing N-1 of them and performing another command
resulted in a crash because a dangling pointer was left.

Closes #12027.

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

14 years agoFix assert during separator items creation introduced by r64226.
Vadim Zeitlin [Fri, 7 May 2010 23:38:26 +0000 (23:38 +0000)] 
Fix assert during separator items creation introduced by r64226.

Add separators with correct kind, setting m_kind doesn't work any more because
it's overwritten below.

Also add a comment explaining why is overriding the user-specified kind the
right thing to do here.

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

14 years agoFix bugs related to two phase creation of wxRibbon classes.
Vadim Zeitlin [Fri, 7 May 2010 23:38:21 +0000 (23:38 +0000)] 
Fix bugs related to two phase creation of wxRibbon classes.

Add missing wxRibbonControl::Create() method. Ensure that member variables are
always initialized by the ctor. Check that we're fully initialized in EVT_SIZE
handler.

Closes #12018.

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

14 years agoUpdating setup for OpenVMS
Jouk Jansen [Fri, 7 May 2010 13:38:53 +0000 (13:38 +0000)] 
Updating setup for OpenVMS

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

14 years agoIntegrate with GNOME's Recent Documents menu.
Václav Slavík [Fri, 7 May 2010 06:45:48 +0000 (06:45 +0000)] 
Integrate with GNOME's Recent Documents menu.

GTK+ provides GtkRecentManager for this purpose since 2.10. Use it in
wxFileHistory if available. Integration is simple, we just add a file to
GtkRecentManager in addition to normal wxFileHistory handling.

A well-behaved GNOME application would use GtkRecentManager as the
primary store for recent files, so that it reflects when the user works
with supported files in another editor(s) too. But for now, this is much
better than no support at all.

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

14 years agoClarify that wxFileSystem::OpenFile() takes URL, not filename.
Václav Slavík [Thu, 6 May 2010 18:28:31 +0000 (18:28 +0000)] 
Clarify that wxFileSystem::OpenFile() takes URL, not filename.

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

14 years agoChange wxPGProperty::SetChoices() to accept 'const wxPGChoices&'
Jaakko Salli [Thu, 6 May 2010 17:42:26 +0000 (17:42 +0000)] 
Change wxPGProperty::SetChoices() to accept 'const wxPGChoices&'

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

14 years agoModify float/double wxAny testing to use CPPUNIT_ASSERT_EQUAL() instead of CPPUNIT_AS...
Jaakko Salli [Thu, 6 May 2010 17:21:50 +0000 (17:21 +0000)] 
Modify float/double wxAny testing to use CPPUNIT_ASSERT_EQUAL() instead of CPPUNIT_ASSERT_DOUBLES_EQUAL(), so that we know the retrieved values are truly identical.

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

14 years agoDon't accept focus in the dummy main generic spin control window.
Vadim Zeitlin [Thu, 6 May 2010 12:58:36 +0000 (12:58 +0000)] 
Don't accept focus in the dummy main generic spin control window.

This window is only used as a container for the sub-windows and shouldn't
accept focus, trying to set it to it doesn't work anyhow (see #12004).

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

14 years agoDon't send wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED when nothing changed.
Vadim Zeitlin [Thu, 6 May 2010 12:58:32 +0000 (12:58 +0000)] 
Don't send wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED when nothing changed.

The generic double spin control sent UPDATED events whenever it lost focus,
whether anything changed or not.

Don't send events unless the controls value has really changed.

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

14 years agoAlways update the value of generic spin control when leaving it.
Vadim Zeitlin [Thu, 6 May 2010 12:58:27 +0000 (12:58 +0000)] 
Always update the value of generic spin control when leaving it.

We could be left with an invalid value in the control when leaving it. E.g. in
the widgets sample whose double spin control has range from 0 to 10, 123 could
be entered in it and was not replaced by 10 when the control lost focus. This
happened because the code didn't bother to update the text control if its
contents already corresponded to the internally stored value -- but this was
wrong as it could have a different representation.

Just always update the text unconditionally when synchronizing it with the
internal value.

See #12004.

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

14 years agoMake keyboard navigation in generic wxTreeCtrl more Mac-like under OS X.
Vadim Zeitlin [Thu, 6 May 2010 12:58:22 +0000 (12:58 +0000)] 
Make keyboard navigation in generic wxTreeCtrl more Mac-like under OS X.

In the native OS X tree control right cursor arrow expands the current item
and the left one collapses it if it's expanded, make the generic control work
like this too under Mac.

Closes #12019.

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

14 years agoCheck that menu ids are limited to MSW-supported range.
Vadim Zeitlin [Thu, 6 May 2010 12:40:18 +0000 (12:40 +0000)] 
Check that menu ids are limited to MSW-supported range.

We already check that positive (i.e. specified by user and not generated by
wx) window ids are in 0..SHRT_MAX range. Now do the same for the menu ids as
ids outside of this range suffer from the same problem under MSW: they get
wrapped and become negative when we receive events for them.

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

14 years agoAdded wxLANGUAGE_BOSNIAN.
Vadim Zeitlin [Thu, 6 May 2010 12:40:11 +0000 (12:40 +0000)] 
Added wxLANGUAGE_BOSNIAN.

Closes #12016.

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

14 years agoMention that hatched pens don't work under wxGTK and wxX11.
Vadim Zeitlin [Thu, 6 May 2010 12:22:57 +0000 (12:22 +0000)] 
Mention that hatched pens don't work under wxGTK and wxX11.

See #11983.

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

14 years agoRefactor wxTranslationsLoader API.
Václav Slavík [Thu, 6 May 2010 12:12:53 +0000 (12:12 +0000)] 
Refactor wxTranslationsLoader API.

Instead of calling back into wxTranslations to actually load the data,
return wxMsgCatalog instance from
wxTranslationsLoader::LoadCatalog(). This requires making wxMsgCatalog
public.

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

14 years agoMove wxScopedPtr::reset() implementation to wxDEFINE_SCOPED_PTR.
Václav Slavík [Thu, 6 May 2010 05:43:01 +0000 (05:43 +0000)] 
Move wxScopedPtr::reset() implementation to wxDEFINE_SCOPED_PTR.

Just as the destructor, reset() calls delete on T pointer and so can
only be defined when T is fully defined.

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

14 years agoUse wxCHECKED_DELETE in wxScopedPtr::reset().
Václav Slavík [Thu, 6 May 2010 05:42:57 +0000 (05:42 +0000)] 
Use wxCHECKED_DELETE in wxScopedPtr::reset().

It was only used in delete call in destructor, but the use in  reset()
needs safeguards as well.

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

14 years agoUse wxCHECKED_DELETE in wxScopedPtr<T>.
Václav Slavík [Thu, 6 May 2010 05:42:52 +0000 (05:42 +0000)] 
Use wxCHECKED_DELETE in wxScopedPtr<T>.

It was only used in macros-based implementation, use it in the template
version too.

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

14 years agoFix PCH-less compilation after recent changes.
Vadim Zeitlin [Wed, 5 May 2010 13:53:40 +0000 (13:53 +0000)] 
Fix PCH-less compilation after recent changes.

Include wx/sizer.h explicitly when not using PCH.

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

14 years agoFix incorrect assumptions about locales codes.
Václav Slavík [Wed, 5 May 2010 13:50:15 +0000 (13:50 +0000)] 
Fix incorrect assumptions about locales codes.

wx incorrectly assumes that Unix locale codes have the form of xx_YY,
where both xx and yy are two characters long. This is wrong, xx is
ISO 639 code, which can often have 3 characters ("ast", "gez" etc.);
future ISO 639-6 will have up to 4 chars. Similarly, ISO 3166 has
alpha-3 variant of country codes too (even though they aren't used in
this context today).

For parsing needs, we can just look for '_' in the code. The only place
where a check for xx_YY code was performed was GetSystemLanguage().
Instead of bothering with correct check (or a heuristic), let's simply
assume locale is xx_YY code and only do alternative handling if that
assumption fails. According to the comments, this alternative handling
was for cases such as LANG=german environment on SuSE, but it's safe to
say that no modern systems do that anymore, so it's OK that this patch
is marginally less efficient on such legacy systems.

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

14 years agoNo changes, just make wxDataViewEditorCtrlEvtHandler private.
Vadim Zeitlin [Wed, 5 May 2010 12:45:14 +0000 (12:45 +0000)] 
No changes, just make wxDataViewEditorCtrlEvtHandler private.

This class is used by wxDataViewCtrl implementation only, there is no need for
it to be in a public header.

Move the class declaration from wx/dataview.h to datavcmn.cpp.

See #11732.

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

14 years agoPop event handler from wxDVC edit control before destroying it.
Vadim Zeitlin [Wed, 5 May 2010 12:45:09 +0000 (12:45 +0000)] 
Pop event handler from wxDVC edit control before destroying it.

This fixes the assert in wxWindow dtor checking that all event handlers pushed
on the window were removed.

Also fix a memory leak by not creating an unnecessary object of wxKillRef
class. In fact remove this class entirely.

Closes #11732.

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

14 years agoDon't use size_t for plural forms parameter.
Václav Slavík [Wed, 5 May 2010 12:27:07 +0000 (12:27 +0000)] 
Don't use size_t for plural forms parameter.

size_t should be used for size of objects, which wxGetTranslation() and
wxTranslations::GetString() 'n' argument isn't -- it's just a regular
integer.

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

14 years agoNotify user less intrusively about overflow when previewing HTML printouts.
Vadim Zeitlin [Wed, 5 May 2010 12:20:15 +0000 (12:20 +0000)] 
Notify user less intrusively about overflow when previewing HTML printouts.

We used to show a modal dialog if the page didn't fit horizontally but this
was too intrusive when the user was just previewing the output and not really
printing it. Moreover, the question of the message box ("Print" or "Cancel")
simply didn't make sense in this case.

Fix both problems by not showing this dialog at all when previewing. Instead,
notify the user with a much less intrusive info bar in the preview window.

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

14 years agoMove wxInfoBar to core library from adv.
Vadim Zeitlin [Wed, 5 May 2010 12:20:08 +0000 (12:20 +0000)] 
Move wxInfoBar to core library from adv.

This is necessary in order to be able to use it in the print preview (an
upcoming change).

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

14 years agoReplace wxPrintout::SetIsPreview() with SetPreview().
Vadim Zeitlin [Wed, 5 May 2010 12:19:59 +0000 (12:19 +0000)] 
Replace wxPrintout::SetIsPreview() with SetPreview().

Unlike the old function just indicating whether a printout is being used for
previewing, the new one associates the preview object with it. This can be
useful if we need to access the window used for the preview, for example.

Also remove a bunch of apparently unnecessary SetIsPreview(false) calls as
printing (and not previewing) is already the default.

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

14 years agoNo real changes, just clean up wxAbortProc mess.
Vadim Zeitlin [Wed, 5 May 2010 12:19:53 +0000 (12:19 +0000)] 
No real changes, just clean up wxAbortProc mess.

Remove m_lpAbortProc which is not needed at all and just requires ugly casts
because its type was different from the real type of wxAbortProc.

Get rid of the rest of the old Win16 code.

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

14 years agoRemove GtkPrintOperation preview signal handler.
Vadim Zeitlin [Wed, 5 May 2010 12:19:44 +0000 (12:19 +0000)] 
Remove GtkPrintOperation preview signal handler.

This handler wasn't doing anything useful as we were always using the default
preview based on an external program, so just remove it completely.

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

14 years agoFix wxScopedCharTypeBuffer<T>::CreateOwned() to match docs.
Václav Slavík [Wed, 5 May 2010 07:45:33 +0000 (07:45 +0000)] 
Fix wxScopedCharTypeBuffer<T>::CreateOwned() to match docs.

The documentation says that it takes ownership of the memory block
passed to it, but the implementation made a copy.

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

14 years agoIgnore time component of SYSTEMTIME in wxCalendarCtrl.
Vadim Zeitlin [Tue, 4 May 2010 21:59:17 +0000 (21:59 +0000)] 
Ignore time component of SYSTEMTIME in wxCalendarCtrl.

Native month calendar functions doesn't always return correct values in the
time part of SYSTEMTIME so ignore it and use just the date component.

To simplify doing it, add helper (MSW-specific) SetFromMSWSysDate() and
GetAsMSWSysDate() functions which convert between wxDateTime and SYSTEMTIME
but take only date component into account.

This commit partially replaces changes of r63560 and closes #11276.

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

14 years agoFixed a typo in misc/languages/README.
Václav Slavík [Tue, 4 May 2010 16:38:56 +0000 (16:38 +0000)] 
Fixed a typo in misc/languages/README.

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

14 years agoMove wxFileHistory out of docview framework, add wxUSE_FILE_HISTORY.
Václav Slavík [Tue, 4 May 2010 12:15:14 +0000 (12:15 +0000)] 
Move wxFileHistory out of docview framework, add wxUSE_FILE_HISTORY.

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

14 years agoUse wxString::ToCDouble() instead of emulating it.
Vadim Zeitlin [Mon, 3 May 2010 11:19:42 +0000 (11:19 +0000)] 
Use wxString::ToCDouble() instead of emulating it.

No real changes, just replace the code which was working around the absence of
a wxString::ToCDouble() with the call to the real thing now that we have it.

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

14 years agoUpdate OpenVMS compile support
Jouk Jansen [Mon, 3 May 2010 08:02:02 +0000 (08:02 +0000)] 
Update OpenVMS compile support

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

14 years agoFix PCH-less build after changes r64139.
Vadim Zeitlin [Sun, 2 May 2010 12:19:19 +0000 (12:19 +0000)] 
Fix PCH-less build after changes r64139.

As wx/log.h is not included from wx/dynlib.h (via wx/msw/private.h) any
longer, include it from here explicitly.

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

14 years agoInclude <windows.h> before including <shellapi.h>.
Vadim Zeitlin [Sun, 2 May 2010 12:19:14 +0000 (12:19 +0000)] 
Include <windows.h> before including <shellapi.h>.

Although this is not needed with most compilers (including recent MinGW),
including <shellapi.h> directly apparently doesn't work with some older MinGW
versions.

This fixes compilation after the changes of r64139.

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

14 years agoAdd wxTreeCtrl::{Clear,Set}FocusedItem().
Vadim Zeitlin [Sun, 2 May 2010 12:01:30 +0000 (12:01 +0000)] 
Add wxTreeCtrl::{Clear,Set}FocusedItem().

Allow changing just the currently focused (not selected) item and also
removing the focus completely.

Closes #11599.

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

14 years agoSpell contributor name correctly.
Vadim Zeitlin [Sun, 2 May 2010 11:48:39 +0000 (11:48 +0000)] 
Spell contributor name correctly.

Use the spelling preferred by Nikolay himself, see #11599.

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

14 years agoupdated headers
Stefan Csomor [Fri, 30 Apr 2010 18:29:43 +0000 (18:29 +0000)] 
updated headers

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

14 years agotextctrl impl
Stefan Csomor [Fri, 30 Apr 2010 18:29:17 +0000 (18:29 +0000)] 
textctrl impl

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

14 years agoadding wrapper for native UIWindow, using designated initializer for view controller
Stefan Csomor [Fri, 30 Apr 2010 16:55:33 +0000 (16:55 +0000)] 
adding wrapper for native UIWindow, using designated initializer for view controller

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

14 years agoadjusting to API change of cocoa and carbon
Stefan Csomor [Fri, 30 Apr 2010 16:53:33 +0000 (16:53 +0000)] 
adjusting to API change of cocoa and carbon

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

14 years agocleanup
Stefan Csomor [Fri, 30 Apr 2010 16:52:43 +0000 (16:52 +0000)] 
cleanup

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

14 years agoCheck in samples/dll for WXUSINGDLL.
Václav Slavík [Fri, 30 Apr 2010 16:46:22 +0000 (16:46 +0000)] 
Check in samples/dll for WXUSINGDLL.

If it is set and DLL build of wx is used, emit an error, as the sample
won't work correctly in that case.

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

14 years agomoving value setting conformance to impl
Stefan Csomor [Fri, 30 Apr 2010 16:40:44 +0000 (16:40 +0000)] 
moving value setting conformance to impl

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

14 years agoiphone implementations
Stefan Csomor [Fri, 30 Apr 2010 16:31:27 +0000 (16:31 +0000)] 
iphone implementations

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

14 years agoUse scoped ptrs to managed wxAnyValueType instances. This fixes deallocation issues...
Jaakko Salli [Fri, 30 Apr 2010 13:32:41 +0000 (13:32 +0000)] 
Use scoped ptrs to managed wxAnyValueType instances. This fixes deallocation issues in some dynamic library use cases.

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

14 years agoadding uifont support
Stefan Csomor [Fri, 30 Apr 2010 09:29:36 +0000 (09:29 +0000)] 
adding uifont support

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

14 years agoAlways use active wxTranslations instance via wxLocale.
Václav Slavík [Thu, 29 Apr 2010 08:31:42 +0000 (08:31 +0000)] 
Always use active wxTranslations instance via wxLocale.

Don't use m_translations directly, if the user made changes to
wxTranslations instance, it would be too confusing if calls through
wxLocale compat API did nothing.

Also don't change active wxTranslations object from wxLocale if already
done by user, only call wxTranslations::Set() from wxLocale constructor
if it wasn't already set by the user. Still do if wxTranslations
instance currently in use was set by previous wxLocale on the locale
stack.

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

14 years agowxRTC: fixed style selection reset after editing a style.
Julian Smart [Tue, 27 Apr 2010 16:09:22 +0000 (16:09 +0000)] 
wxRTC: fixed style selection reset after editing a style.
wxRTC: can now edit line spacing in .1 increments from 1 to 2.

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

14 years agoFont output fix
Julian Smart [Tue, 27 Apr 2010 16:07:38 +0000 (16:07 +0000)] 
Font output fix

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

14 years agoSafeguard against redundant registration of the same wxAnyValueType instance (by...
Jaakko Salli [Tue, 27 Apr 2010 13:26:45 +0000 (13:26 +0000)] 
Safeguard against redundant registration of the same wxAnyValueType instance (by storing pointers in a set instead of a vector)

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

14 years agoUse '+' in accelerators, not '-'.
Václav Slavík [Tue, 27 Apr 2010 09:38:17 +0000 (09:38 +0000)] 
Use '+' in accelerators, not '-'.

This was always GTK+ standard and even Windows uses it now, see the
UX Guide.

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

14 years agoAdd support for storing translations in win32 resources.
Václav Slavík [Mon, 26 Apr 2010 20:51:22 +0000 (20:51 +0000)] 
Add support for storing translations in win32 resources.

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

14 years agoShorten lang names in wxTranslations, not wxFileTranslationsLoader.
Václav Slavík [Mon, 26 Apr 2010 20:51:16 +0000 (20:51 +0000)] 
Shorten lang names in wxTranslations, not wxFileTranslationsLoader.

If a catalog with full language name ("fr_BE") doesn't exist,
wxFileTranslationsLoader tries to look for just the base language ("fr")
too. This isn't something specific to wxFileTranslationsLoader, it makes
sense to do it regardless of the loader.

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