Julian Smart
af4168e2cf
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
2013-09-29 13:35:58 +00:00
Julian Smart
787de84048
Fixed capitalisation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-29 13:11:01 +00:00
Julian Smart
92a98ecc53
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
2013-09-29 12:58:30 +00:00
Julian Smart
f4ac09e8e9
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
2013-09-29 12:14:19 +00:00
Julian Smart
ac448bc0a0
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
2013-09-29 12:06:17 +00:00
Julian Smart
f7f8a13c04
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
2013-09-27 13:36:46 +00:00
Václav Slavík
07aec89fe1
Misc XRC format docs corrections.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-26 12:55:23 +00:00
Václav Slavík
c4c885f043
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
2013-09-26 12:55:20 +00:00
Václav Slavík
85d64f6aa1
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
2013-09-26 12:55:17 +00:00
Julian Smart
3b9c5fe8b3
Corrected disabling of controls in cell editor.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-26 10:00:50 +00:00
Stefan Csomor
e2c0faf71c
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
2013-09-26 06:31:20 +00:00
Julian Smart
e490db597a
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
2013-09-24 12:05:54 +00:00
Paul Cornett
7b37894790
avoid calling GetDefaultSize() twice
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-24 05:50:09 +00:00
Julian Smart
4f2d6692c7
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
2013-09-23 09:07:16 +00:00
Julian Smart
057945a5cd
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
2013-09-22 20:34:16 +00:00
Julian Smart
7fd80c6f68
Allow absent checkbox when transferring dimension data
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-22 20:22:19 +00:00
Václav Slavík
1c2704fe7b
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
2013-09-21 10:11:08 +00:00
Václav Slavík
d10fdec4b7
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
2013-09-21 09:28:47 +00:00
Václav Slavík
0d1903dbda
Add virtual ~wxAnyScrollHelperBase() to fix compiler warning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-21 09:28:42 +00:00
Václav Slavík
59576592b8
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
2013-09-21 09:28:39 +00:00
Václav Slavík
cdbd62d6ff
Set missing Language: headers in PO files.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-21 09:28:34 +00:00
Václav Slavík
af04373873
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
2013-09-21 09:28:25 +00:00
Václav Slavík
a255c995a1
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
2013-09-20 17:27:59 +00:00
Paul Cornett
ac687ddffb
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
2013-09-20 15:21:25 +00:00
Julian Smart
7dd6983e0b
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
2013-09-20 11:34:11 +00:00
Jouk Jansen
b43069c6a0
Update OpenVMS makefile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-20 06:07:23 +00:00
Julian Smart
cb6b81bc94
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
2013-09-19 18:23:37 +00:00
Julian Smart
32c2b16dac
Corrections to border placement
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-19 13:14:11 +00:00
Julian Smart
d9dd0c95df
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
2013-09-19 11:09:34 +00:00
Julian Smart
0cae0a4e18
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
2013-09-19 08:38:48 +00:00
Julian Smart
9142a5ec3f
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
2013-09-19 07:48:22 +00:00
Paul Cornett
f363cee882
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
2013-09-19 06:16:34 +00:00
Paul Cornett
dfb39a3727
fix wxSystemSettings::GetColour() for wxGTK3
...
closes #15519
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-19 05:33:55 +00:00
Vadim Zeitlin
6e48287c6a
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
2013-09-18 18:02:25 +00:00
Vadim Zeitlin
bfdaa9173e
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
2013-09-18 17:30:30 +00:00
Václav Slavík
f2959820a5
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
2013-09-18 16:03:31 +00:00
Václav Slavík
acebfdf052
Remove unused wxLocale::GetUntranslatedString().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-18 16:03:28 +00:00
Václav Slavík
5278469615
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
2013-09-18 16:03:25 +00:00
Václav Slavík
d2740de55e
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
2013-09-18 16:03:20 +00:00
Václav Slavík
92c0fc34c1
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
2013-09-18 16:03:14 +00:00
Steve Lamerton
632c86a3e6
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
2013-09-18 15:12:34 +00:00
Julian Smart
e0effd7e3b
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
2013-09-18 08:18:32 +00:00
Vadim Zeitlin
6df9d3c0e0
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
2013-09-17 17:35:54 +00:00
Vadim Zeitlin
5ecd98f175
More German translations updates from Sebastian Walderich.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-17 17:35:51 +00:00
Vadim Zeitlin
b0ad146aba
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
2013-09-17 15:25:59 +00:00
Vadim Zeitlin
0d60699143
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
2013-09-17 15:25:52 +00:00
Vadim Zeitlin
3e33568e0b
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
2013-09-17 15:25:47 +00:00
Paul Cornett
b59ada676f
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
2013-09-16 15:47:27 +00:00
Václav Slavík
83e1811732
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
2013-09-16 15:15:37 +00:00
Vadim Zeitlin
7dbb435338
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
2013-09-15 11:57:23 +00:00