Václav Slavík
4ca056ea2b
added test for operator?: and wxCStrData
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-28 09:40:22 +00:00
Václav Slavík
a962cdf410
re-enabled using std::string for wxStringImpl if wxUSE_STL again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-28 09:37:34 +00:00
Vadim Zeitlin
08295a040c
update from helix84
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-28 00:02:34 +00:00
Julian Smart
378c9833b7
Need an extra pixel when divider present
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-27 13:42:42 +00:00
Václav Slavík
463c2e5bc7
disabled VC6 warning about passing a macro that expands to nothing to DECLARE_LOG_FUNCTION2_IMPL macro
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-27 10:13:52 +00:00
Václav Slavík
b1d3206523
fixed compilation with 2.8 compatibility off: wxTR_EXTENDED is deprecated
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-27 09:40:02 +00:00
Robin Dunn
cbfc9df676
Merge recent changes from 2.8 branch.
...
Make updates for recent changes on CVS HEAD.
Remove or workaround deprecated items.
Fix compile errors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-27 01:49:46 +00:00
Vadim Zeitlin
fd4081aa33
make Ctrl-PageUp/Down work for changing notebook pages even when there is a wxWindow (i.e. not a native wxControl) in the hierarchy; this comes at the price of not being able to use the same key combinations for horizontal scrolling of the windows which do not have wxHSCROLL style and this seems like an acceptable tradeoff
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 23:46:31 +00:00
Vadim Zeitlin
b5a4975771
removed wxHAS_NATIVE_TAB_TRAVERSAL which is now defined in wx/window.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 23:40:40 +00:00
Vadim Zeitlin
2a1cf3e9ad
use NavigateIn() method instead of sending wxNavigationKeyEvent directly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 22:15:14 +00:00
Vadim Zeitlin
5644933fa6
added wxWindow::NavigateIn(); provide wxGTK implementation of DoNavigateIn() working with native tab traversal
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 22:10:04 +00:00
Vadim Zeitlin
93febff2f3
added taborder sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 21:24:51 +00:00
Václav Slavík
02f935fbab
added basic test for wxLocale
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 21:12:13 +00:00
Václav Slavík
d7a80cf5cd
use wxString for wxXmlResource::Set/GetDomain(), it's simpler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 21:07:36 +00:00
Václav Slavík
31b7522e2b
use wxStrings in wxLocale methods, _() and wxGetTranslation(), so that it can be used with any string literals
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 21:05:04 +00:00
Václav Slavík
f5f93ea573
escape _ in LaTeX sources
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 20:50:34 +00:00
Václav Slavík
8f93a29f8e
Preparing wxString for UTF-8 representation:
...
1) split into wxStringImpl class that has std::string-like API and operates on char* or wchar_t* data and wxString class that provides Unicode iterators and indexes
2) added both char* and wchar_t* versions of many wxString methods to avoid having to use _T()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 20:28:04 +00:00
Robin Dunn
d9485f89b8
Forward port of my recent changes in the 2.8 branch:
...
* Force use of floating point math in wxGCDC::DoDrawEllipticArc.
* Check for 0.5 offset in wxGCDC::DoDrawRoundedRectangle and
DoDrawEllipse. Set wxGDIPlusContext to use the offset.
* Avoid crash in wxStdDialogButtonSizer::Realize if there is no
negative button.
* Provide implementations for wxCairoPathData::AddPath,
wxCairoContext::Clip, wxCairoContext::DrawBitmap,
wxCairoContext::DrawIcon, and wxCairoContext::GetTextExtent.
* Fix wxCairoContext::DrawText to draw the text using the upper-left
corner for the x,y position, not the baseline.
* Fix wxMacCoreGraphicsRenderer::CreateContext to be able to use a
wxMemoryDC as the target.
* Map wxTELETYPE font family on wxMac to a monospace font.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 20:08:41 +00:00
Vadim Zeitlin
28e88942bc
use native TAB traversal for GTK+ 2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 19:30:20 +00:00
Vadim Zeitlin
5486c1a283
added ellipsis to a couple of stock labels
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 19:27:27 +00:00
Vadim Zeitlin
147adf0a3a
fixed compilation without PCH
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 19:20:30 +00:00
Vadim Zeitlin
8af53fb428
use more complicated layout; added wxTE_PROCESS_TAB test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 19:06:13 +00:00
Vadim Zeitlin
b348c1dac1
send wxNavigationKeyEvent to the correct window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 15:14:21 +00:00
Vadim Zeitlin
d63f7562cf
added taborder sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 15:07:10 +00:00
Vadim Zeitlin
2a69b4e849
assert if AddRoot() is called twice for a wxTR_HIDE_ROOT tree
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 13:07:15 +00:00
Julian Smart
4f0cd9b61e
Typo correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 09:42:43 +00:00
Václav Slavík
92d21a8a07
added missing operators to wxString::reverse_iterator
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 08:25:47 +00:00
Vadim Zeitlin
6b81fbd8de
do accept focus in notebook as it needs it for tabs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 23:00:36 +00:00
Vadim Zeitlin
3368424ae8
don't accept focus in book control itself
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:55:35 +00:00
Vadim Zeitlin
de160b0647
don't use wxControlContainer if wxHAS_NATIVE_TAB_TRAVERSAL is defined (currently it never is)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:41:11 +00:00
Vadim Zeitlin
ad02525dad
don't check whether the window is shown and enabled in AcceptsFocus() itself
...
as it makes overriding it in derived classes problematic; provide a separate
non virtual CanAcceptFocus() method checking whether the window accepts focus
and if it can accept it now and use it instead of AcceptsFocus(); documented
AcceptsFocus() and AcceptsFocusFromKeyboard()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:36:24 +00:00
Vadim Zeitlin
4542739ccb
why was this class made a wxControlContainer (rev. 1.7), this doesn't seem to make sense -- and if it does it should probably be done at the base class level, not here
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 21:17:19 +00:00
Václav Slavík
2233af93b0
remove wxStringBase::AllocCopy(), it wasn't used anywhere
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 19:46:05 +00:00
Vadim Zeitlin
16a81f6fe7
remove all the tags for development branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 13:54:19 +00:00
Vadim Zeitlin
2dd8d2d7f0
update status bar display when we don't have focus too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 13:43:30 +00:00
Vadim Zeitlin
378b042b98
make wxNO_BORDER work with wxRadioBox (patch 1525406)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 01:57:24 +00:00
Vadim Zeitlin
785d8330bb
respect the current default style in SetValue() (modified patch 1684613)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 01:30:46 +00:00
Vadim Zeitlin
8639b30da1
document GetBufferSize() (patch 1687070)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:54:40 +00:00
Vadim Zeitlin
c98543210a
corrected name of wxWS_EX_PROCESS_UI_UPDATES style (part of patch 1686335)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:53:13 +00:00
Vadim Zeitlin
38b36b4c67
corrected link to gettext manual (part of patch 1686335)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:52:19 +00:00
Vadim Zeitlin
0e2132fd88
extract popup menu item labels from Scintilla sources too (patch 1679509)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:51:03 +00:00
Vadim Zeitlin
b1c673942d
moved Write(const wxString&) to .cpp files as they're going to be changed again soon; removed unnecessary casts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-24 14:42:29 +00:00
Julian Smart
bd3f83f763
Test for encoding conversion success in wxFile::Write to avoid crash
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-24 10:21:48 +00:00
Julian Smart
f3140390f9
Test for encoding conversion success in wxFFile::Write to avoid crash
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-24 10:20:14 +00:00
Vadim Zeitlin
8145496b9b
more changes from 2.8.4 added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 16:24:11 +00:00
Vadim Zeitlin
b40bf35c76
don't use TPM_RECURSE under NT4, it results in TrackPopupMenu() not showing the menu at all (bug 1663216)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 16:20:30 +00:00
Vadim Zeitlin
c961c0cfca
fixed compilation for Windows compilers now after last change: replaced conversions to ushort and uint with a conversion to wint_t but do it for (non-Apple) gcc only
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 15:16:08 +00:00
Vadim Zeitlin
2a686bd333
added conversions to unsigned short: this fixes compilation for some platforms where wint_t is ushort (mingw32)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 15:00:12 +00:00
Kevin Ollivier
e608ff58de
If using the system Window menu on OS X, integrate any Window wxMenu items into the system menu, rather than having duplicate Window menus (current behavior).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:53:55 +00:00
Vadim Zeitlin
9a183206da
compilation fix after wxCStrData changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:20:12 +00:00