]>
git.saurik.com Git - wxWidgets.git/log
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:41 +0000 (23:48 +0000)]
Store HTML "id" parameter value in wxHtmlCell.
Pass on the value of the ID to the cell object when adding a new cell.
Closes #15535.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74880
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:38 +0000 (23:48 +0000)]
Add wxHtmlTag::GetParamAsString() convenience method.
This is more convenient to use than HasParam() + GetParam() and also slightly
more efficient as we search for the tag name only once.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74879
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:34 +0000 (23:48 +0000)]
No changes, just use "@since 3.0" consistently in the documentation.
This was the only place where "@since 3.0.0" was used, replace it with just
"3.0" for consistency with all the others.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74878
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:31 +0000 (23:48 +0000)]
Brazilian Portuguese translations update from Felipe.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74877
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:28 +0000 (23:48 +0000)]
Chinese translations update from Jiawei Huang.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74876
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 30 Sep 2013 17:12:24 +0000 (17:12 +0000)]
Compilation fix for !wxUSE_OWNER_DRAWN.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74875
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 29 Sep 2013 16:08:03 +0000 (16:08 +0000)]
Applied #15226 with modifications: wxRichTextCtrl: Implement setting properties with undo for objects e.g. wxRichTextTable (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74874
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 29 Sep 2013 14:01:16 +0000 (14:01 +0000)]
Don't redraw borders for cells that are hidden - fixes drawing glitch in sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74873
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 29 Sep 2013 13:35:58 +0000 (13:35 +0000)]
Added wxRichTextTableBlock class to help with table UI operations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74872
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 29 Sep 2013 13:11:01 +0000 (13:11 +0000)]
Fixed capitalisation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74871
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 29 Sep 2013 12:58:30 +0000 (12:58 +0000)]
Applied patch #15540: wxRichTextTable: crashes due to an invalid focus object (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74870
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 29 Sep 2013 12:14:19 +0000 (12:14 +0000)]
Applied #15539: wxRichTextCtrl: demonstrate adding and deleting table rows and columns in the richtext sample (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74869
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 29 Sep 2013 12:06:17 +0000 (12:06 +0000)]
wxRTC: save and load the 'shown' status in case there's a situation where layout doesn't restore it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74868
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 27 Sep 2013 13:36:46 +0000 (13:36 +0000)]
wxRTC: fixed guidelines overwriting adjacent cell borders; corrected capitalisation in command labels; now sends text update event when an object is changed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74866
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 26 Sep 2013 12:55:23 +0000 (12:55 +0000)]
Misc XRC format docs corrections.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74865
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 26 Sep 2013 12:55:20 +0000 (12:55 +0000)]
XRC: make wxStaticText's wrap property a dimension.
Parse it as dimension type (including dlg units) and not just integer.
This is backward compatible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74864
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 26 Sep 2013 12:55:17 +0000 (12:55 +0000)]
XRC: make wxSplitterWindow's sashpos and minpanesize dimensions.
Parse them as dimension type (including dlg units) and not just integers. This is backward compatible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74863
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 26 Sep 2013 10:00:50 +0000 (10:00 +0000)]
Corrected disabling of controls in cell editor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74862
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 26 Sep 2013 06:31:20 +0000 (06:31 +0000)]
always use hw-accel, fixes #15536, applied with thanks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74861
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Tue, 24 Sep 2013 12:05:54 +0000 (12:05 +0000)]
Added wxRichTextAction::SetOldAndNewObjects for clarity when submitting a wxRICHTEXT_CHANGE_OBJECT command.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74860
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 24 Sep 2013 05:50:09 +0000 (05:50 +0000)]
avoid calling GetDefaultSize() twice
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74859
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Mon, 23 Sep 2013 09:07:16 +0000 (09:07 +0000)]
Make wxRichTextRectArray usable by other parts of wxRTC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74858
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 22 Sep 2013 20:34:16 +0000 (20:34 +0000)]
Partial fix for #15196: wxRichTextCell caret issues (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74857
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 22 Sep 2013 20:22:19 +0000 (20:22 +0000)]
Allow absent checkbox when transferring dimension data
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74856
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 21 Sep 2013 10:11:08 +0000 (10:11 +0000)]
Make public headers compatible with Objective-C++ with ARC.
OSXGetViewOrWindow() virtual methods were defined in headers and were casting
NSView*/NSWindow* to void*, which the compiler complains about with ARC
enabled. Rather than writing conditional code in the header, move the
implementations into .cpp files. They were virtual anyway, so this is no less
efficient, and doesn't leave any problematic code in public headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74855
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 21 Sep 2013 09:28:47 +0000 (09:28 +0000)]
Revert "using #ifdef wxABORT_ON_CONFIG_ERROR not just #if as elsewhere"
This reverts commit r74656, because it breaks initialization order by
calling OnInit() too late. See
https://groups.google.com/d/topic/wx-dev/H5vgc2VO7K4/discussion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74854
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 21 Sep 2013 09:28:42 +0000 (09:28 +0000)]
Add virtual ~wxAnyScrollHelperBase() to fix compiler warning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74853
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 21 Sep 2013 09:28:39 +0000 (09:28 +0000)]
Fix wxOSX warnings about int-to-void* casts.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74852
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 21 Sep 2013 09:28:34 +0000 (09:28 +0000)]
Set missing Language: headers in PO files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74851
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 21 Sep 2013 09:28:25 +0000 (09:28 +0000)]
Standardize Project-Id-Version in PO files.
Set it to "wxWidgets 3.0". Add where missing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74850
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 20 Sep 2013 17:27:59 +0000 (17:27 +0000)]
Try loading even English translations if provided.
Doing so has negligible cost and can be useful in some situations (e.g.
when using symbolic msgids despite gettext best practices).
Patch by tmsorensen.
Fixes #15522.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74849
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 20 Sep 2013 15:21:25 +0000 (15:21 +0000)]
fix vertical mouse wheel event rotation value, sign was reversed in r74805
fixes #15524
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74848
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 20 Sep 2013 11:34:11 +0000 (11:34 +0000)]
Added setters for table row and column count
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74847
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Fri, 20 Sep 2013 06:07:23 +0000 (06:07 +0000)]
Update OpenVMS makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74846
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 19 Sep 2013 18:23:37 +0000 (18:23 +0000)]
The alignment controls are now left-aligned if the floating controls are not shown.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74845
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 19 Sep 2013 13:14:11 +0000 (13:14 +0000)]
Corrections to border placement
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74844
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 19 Sep 2013 11:09:34 +0000 (11:09 +0000)]
Second part of #15224 fix: AddRows, AddColumns (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74843
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 19 Sep 2013 08:38:48 +0000 (08:38 +0000)]
Fix for #15224: wxRichTextTable: Setting a cell's text colour affects subsequent cells (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74842
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 19 Sep 2013 07:48:22 +0000 (07:48 +0000)]
Fix for #15520: wxRichTextCtrl: Drawing the selection doesn't respect its container (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74841
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 19 Sep 2013 06:16:34 +0000 (06:16 +0000)]
fix building with WXWIN_COMPATIBILITY_2_8 == 0
wxPG_EX_DISABLE_TLP_TRACKING does nothing since r61779
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74840
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 19 Sep 2013 05:33:55 +0000 (05:33 +0000)]
fix wxSystemSettings::GetColour() for wxGTK3
closes #15519
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74839
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 18 Sep 2013 18:02:25 +0000 (18:02 +0000)]
Add missing c_str() call to fix wxGTK ANSI+STL build.
Closes #15518.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74838
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 18 Sep 2013 17:30:30 +0000 (17:30 +0000)]
Use std::isfinite() for wxFinite() for C++11 compilers.
This should fix compilation with MinGW 4.8.1 cross-compiler in C++11 mode as
it doesn't seem to provide finite() any more then.
Also, only defined wxFinite() and wxIsNaN() for C++, not C. This makes the
checks for __cplusplus >= 201103 simpler and is consistent with how
wxIsSameDouble() and wxRound() were already only defined for C++ (this is also
the source of most of the changes in this diff, viewing it ignoring whitespace
will show the only real changes).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74837
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 18 Sep 2013 16:03:31 +0000 (16:03 +0000)]
Add wxTranslations::GetTranslatedString().
Replace GetString(), which always returns something (possibly the
original string) with GetTranslatedString() that returns either a
pointer to translated string or NULL.
This simplifies the code a bit, all handling of missing translations is
now done in wxGetTranslation().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74836
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 18 Sep 2013 16:03:28 +0000 (16:03 +0000)]
Remove unused wxLocale::GetUntranslatedString().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74835
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 18 Sep 2013 16:03:25 +0000 (16:03 +0000)]
Deallocate wxThreadSpecificInfo when wxThread ends.
Cleanup wxThreadSpecificInfo after wxThread::Entry returns to be more
memory efficient.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74834
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 18 Sep 2013 16:03:20 +0000 (16:03 +0000)]
Make _() and friends safe to call from any thread.
The GetUntranslatedString() hack keeps a global copy of all strings, so
that it can return a const reference as wxGetTranslation() return value.
A global wxHashSet instance shared by all threads won't do, even guarded
with a critical section, because it may internally copy values on any
insert and thus invalidate pointers that may still be used on another
thread.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74833
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 18 Sep 2013 16:03:14 +0000 (16:03 +0000)]
Make storing non-trivial data in wxThreadSpecificInfo possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74832
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 18 Sep 2013 15:12:34 +0000 (15:12 +0000)]
Update vc10 build file versions to 3.0.0.
See r74781.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74831
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 18 Sep 2013 08:18:32 +0000 (08:18 +0000)]
Ensure that the overall table border doesn't get overdrawn by cell borders with a different colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74830
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 17 Sep 2013 17:35:54 +0000 (17:35 +0000)]
Fix badly translated wildcard string in German message catalog.
"*.*" should be "*.*" even in German.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74829
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 17 Sep 2013 17:35:51 +0000 (17:35 +0000)]
More German translations updates from Sebastian Walderich.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74828
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:59 +0000 (15:25 +0000)]
Fix assorted typos in comments and other non-code.
Closes #15509.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74827
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:52 +0000 (15:25 +0000)]
Use mask when drawing bitmaps in generic wxDataViewCtrl.
This allows to have bitmaps with transparent areas in them.
Closes #15510.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74826
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:47 +0000 (15:25 +0000)]
Add wxDataViewRendererBase::GetEffectiveAlignment() and use it.
This helper method falls back on the alignment of the column if the renderer
alignment is not specified. This is almost always what should be used instead
of GetAlignment() to determine the alignment that really should be used in the
drawing code.
In particular, using GetEffectiveAlignment() in wxDataViewCustomRenderer fixes
the problem with bitmap columns ignoring column alignment for their bitmaps.
Closes #15498.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74825
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 16 Sep 2013 15:47:27 +0000 (15:47 +0000)]
remove executable property from non-executable files, closes #15504
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74824
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 16 Sep 2013 15:15:37 +0000 (15:15 +0000)]
Fix wrong type information for {v,h}gap in XRC format docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74823
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 11:57:23 +0000 (11:57 +0000)]
Revert "Make wxMSW stack walking methods work with Unicode identifiers."
This reverts r74817 because it broke compilation with VC8 and it doesn't seem
obvious to fix this.
See #15138, closes #15500.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74820
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:44 +0000 (00:16 +0000)]
Add code showing stereo support to the OpenGL cube sample.
Show how WX_GL_STEREO attribute can be used, if available.
See #15434.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74819
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:39 +0000 (00:16 +0000)]
Show full screen windows with WS_POPUP style in wxMSW.
This doesn't make any difference for most windows but fixes a problem with
wxGLCanvas windows using stereo support of Nvidia cards and generally it does
make sense to use WS_POPUP with full screen windows as they are definitely not
overlapped, so just use this style unconditionally.
Closes #15434.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74818
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:34 +0000 (00:16 +0000)]
Make wxMSW stack walking methods work with Unicode identifiers.
This allows to show the stack properly for e.g. Japanese programs.
Closes #15138.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74817
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:26 +0000 (00:15 +0000)]
Disable handling of wxEVT_MOUSEWHEEL in wxVarScrollHelperEvtHandler in wxGTK.
Just for consistency with wxScrollHelperBase, not really sure what problem
exactly does this solve.
See #15357.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74816
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:17 +0000 (00:15 +0000)]
Make default keyboard handling available in wxVarScrollHelperEvtHandler too.
Factor out the keyboard handling code in wxAnyScrollHelperBase allowing its
reuse in wxVarScrollHelperEvtHandler.
Now wxVarScrollHelperBase handles cursor keys in a sane way by default
too and also allows disabling their handling, just as wxScrolledWindow.
See #15357.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74815
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:12 +0000 (00:15 +0000)]
Propagate the event handling fixes to wxVarScrollHelperBase.
Merge the fixes to wxScrollHelperBase::ProcessEvent() of r64358, r64370,
r64464, r72939 and possibly a few more in wxVarScrollHelperBase to fix its
behaviour too, as it wasn't generating the correct events any longer.
Unfortunately the fix right now is to physically copy the code from one class
to the other. This should be avoided, of course, and a more in depth
refactoring should be done to move the code common to both classes into
wxAnyScrollHelperBase after 3.0 release. But for now continuing to duplicate
code is better than not having a working wxVarScrollHelperBase.
See #15357.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74814
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:07 +0000 (00:15 +0000)]
Add wxAnyScrollHelperBase to reduce code duplication in wxVarScrollHelperBase.
This is just a small refactoring to move some trivially common parts of
wxScrollHelperBase and wxVarScrollHelperBase in a new common base class.
This will make it possible to apply other corrections to wxVarScrollHelperBase
without having to physically duplicate the code from wxScrollHelperBase in it.
See #15357.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74813
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:02 +0000 (00:15 +0000)]
Use wxGetTranslation() instead of _() in the public headers.
This allows the code in them to compile even when WXINTL_NO_GETTEXT_MACRO is
defined.
Closes #15443.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74812
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:56 +0000 (00:14 +0000)]
Fix flickering of wxStaticBox background in wxMSW.
First of all, don't erase background in WM_ERASEBKGND at all if we erase it
anyhow in WM_PAINT, this is totally useless and is what wxBG_STYLE_PAINT is for.
Second, clip out not only the siblings of the static box but also its children
when erasing the background to avoid painting over the controls created as the
box children, which is the preferred way to create them now.
Closes #15150.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74811
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:51 +0000 (00:14 +0000)]
Don't crash when laying out wxGridBagSizer with only hidden elements.
wxGridBagSizer lay out algorithm needs at least a single row and a single
column to work, so simply don't run it at all if there is nothing to lay out.
Closes #15475.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74810
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:46 +0000 (00:14 +0000)]
Mention that wxSizer::Clear() always deletes child sizers.
The existence of "delete_windows" argument could mislead people into thinking
that sizers were not deleted neither when it had false value, see #15475.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74809
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:41 +0000 (00:14 +0000)]
Improve composite flags handling in the property grid wxFlagsProperty.
Don't consider that a flag is on just because one of its bits is enabled in
the current flags, for the composite flags (e.g. something like "BOTH = ONE |
TWO") all the bits composing the flag must be on for it to be enabled.
Closes #15499.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74808
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sat, 14 Sep 2013 20:46:43 +0000 (20:46 +0000)]
Workaround for #15404: wxRichTextCtrl: caret does not disappear when focus is lost (Mac) (briceandre)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74807
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 14 Sep 2013 18:15:42 +0000 (18:15 +0000)]
add support for GDK_SCROLL_SMOOTH mouse wheel event, introduced in GTK+ 3.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74806
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 14 Sep 2013 18:06:54 +0000 (18:06 +0000)]
use native lines/columns per action for mouse wheel event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74805
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Fri, 13 Sep 2013 12:55:08 +0000 (12:55 +0000)]
Handle WebKitWebView create-web-view.
In some cases a new window is signalled using create-web-view rather than new-window-policy-decision-requested and so we need to handle it to emit the correct new window events.
Fixes #15447.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74804
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 13 Sep 2013 11:35:13 +0000 (11:35 +0000)]
German translations update from Sebastian Walderich.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74803
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:36 +0000 (20:49 +0000)]
Another Tamil translations update from Dinakar T.D.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74802
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:29 +0000 (20:49 +0000)]
Polish translations update from Grzegorz Zlotowicz.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74801
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:24 +0000 (20:49 +0000)]
Handle non-ASCII output from lsb_release in wxGetLinuxDistributionInfo().
Assume that lsb_release always output UTF-8 text as this seems to be the case
right now for the only (common) Linux distribution which uses anything but
ASCII for its code name (Fedora 19 "Schrödinger's Cat").
Closes #15492.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74800
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:18 +0000 (20:49 +0000)]
Don't reset m_fp if wxFFile::Open() fails.
This makes it behaviour consistent with wxFile::Open().
Also don't use Detach() in Close(), again for consistency with wxFile, even if
this has no user-visible effects at all.
See #15494.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74799
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:10 +0000 (20:49 +0000)]
Return the old file descriptor/pointer from wx(F)File::Detach().
Make Detach() more convenient to use.
Closes #15494.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74798
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 11 Sep 2013 17:02:06 +0000 (17:02 +0000)]
Add missing Calc*Exposed methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74792
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 11 Sep 2013 15:20:21 +0000 (15:20 +0000)]
Don't lie about wxImageList in XRC format spec.
The documentation for setting image lists on controls was a complete
fabrication. It pretended that image lists were created as child
<object>s, while in reality they are properties just as e.g. fonts are.
Fix this and also better document the related 'image' property.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74791
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 11 Sep 2013 15:20:19 +0000 (15:20 +0000)]
Minor corrections to XRC format description.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74790
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 11 Sep 2013 15:20:16 +0000 (15:20 +0000)]
Fix incorrect XRC format docs for wxMenu(Bar)'s "style" property.
It is not true that no standard properties are allowed, "style" is.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74789
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 11 Sep 2013 15:20:13 +0000 (15:20 +0000)]
Better name for wxXmlResource::GetDirection() argument.
'dir' is not very descriptive (of course it's a direction!), it's better
to include 'default' in the name to indicate this is the default value
to use in absence of a specific one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74788
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 11 Sep 2013 15:20:09 +0000 (15:20 +0000)]
Fix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74787
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 11 Sep 2013 15:06:04 +0000 (15:06 +0000)]
Fix another crash when conversion fails in Unix PostScript code.
Returning 0 length from GetTextExtent() is hardly ideal but it's better than
crashing.
Closes #15489.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74786
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 11 Sep 2013 15:05:59 +0000 (15:05 +0000)]
Tamil translations update from Dinakar T.D.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74785
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 11 Sep 2013 15:05:55 +0000 (15:05 +0000)]
Turkish translations update from Çağrı Doğan.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74784
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 11 Sep 2013 12:03:07 +0000 (12:03 +0000)]
Fix stc doxygen warnings and regen stc files.
We need to manually escape a few parts of the autogenerated documentation.
See #15346.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74783
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 11 Sep 2013 10:10:36 +0000 (10:10 +0000)]
Fix doxygen warnings.
Using @since inside a style or event list causes doxygen warnings, replace with plain text.
See #15346.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74782
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 11 Sep 2013 01:46:08 +0000 (01:46 +0000)]
Change version to 3.0.0.
Keep "RC1" in the version string for now, but otherwise all version numbers
should be updated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74781
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 10 Sep 2013 12:12:52 +0000 (12:12 +0000)]
Fix wrong in wxListCtrl::SetItemColumnImage() in r74716.
The check for "image == -1" was added to a wrong line.
See #15421.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74780
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 10 Sep 2013 12:12:47 +0000 (12:12 +0000)]
Fix configure on GNU Hurd.
Closes #15480.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74779
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 8 Sep 2013 18:00:58 +0000 (18:00 +0000)]
Consistently handle DST start time in wxDateTime::Set().
Always move the dates invalid due to DST (i.e. falling into the "missing" hour
on the DST start date) forward, as GNU libc does, even when using a different
CRT implementation, such as MSVC one which moves the invalid dates backwards.
This seems more expected and also fixes an especially bad problem which
happened due to moving the date backwards in Brazilian time zone where DST
starts at midnight as doing this changed the day and totally broke ParseDate()
assumption that setting wxDateTime to 00:00:00 at the given date really did
set it to this date.
Closes #15419.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74777
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 6 Sep 2013 17:09:23 +0000 (17:09 +0000)]
wxMSW: return correct value from wxMessageDialog::GetReturnCode().
wxMessageDialog's native code didn't call SetReturnCode() as it should.
As a result, it didn't work with ShowWindowModal().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74776
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 6 Sep 2013 17:09:20 +0000 (17:09 +0000)]
Add lambda-friendly wxDialog::ShowWindowModalThenDo().
Add a convenience ShowWindowModalThenDo() variant of ShowWindowModal()
that takes a functor argument and calls it when the dialog is closed.
This is, of course, particularly useful when the argument is a C++11
lambda, especially when having more than one window-modal dialog invoked
from the same window, which can get messy quickly with all the
wxEVT_WINDOW_MODAL_DIALOG_CLOSED handlers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74775
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 6 Sep 2013 17:09:16 +0000 (17:09 +0000)]
Add wxWindowPtr smart pointer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74774
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 6 Sep 2013 17:09:11 +0000 (17:09 +0000)]
Add basic deleter support to wxSharedPtr<T>.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74773
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 6 Sep 2013 17:09:07 +0000 (17:09 +0000)]
Document wxWindowModalDialogEvent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74772
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775