Commit Graph

47826 Commits

Author SHA1 Message Date
Vadim Zeitlin
a9e2e6e52b refactor wxDocChildFrame and wxDocMDIChildFrame to use wxDocChildFrameAny intead of duplicating its code (with subtle differences, as usual); also added wxDocChildFrameAnyBase and store a pointer to it in wxView to reset the frame view if the view is being deleted because its creation fails to avoid crashes in this case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 12:24:03 +00:00
Vadim Zeitlin
021f9dee07 added wxDECLARE_NO_COPY_TEMPLATE_CLASS_2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 11:36:10 +00:00
Julian Smart
f51723055a Fixed wxRichTextCtrl base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 10:54:12 +00:00
Vadim Zeitlin
2d8c0c2ce4 move functions using deprecated methods out of line to avoid deprecation warnings from MSVC when building any code including wx/event.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 10:21:38 +00:00
Julian Smart
492d6611d4 Corrected IMPLEMENT_CLASS/BEGIN_EVENT_TABLE base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 09:00:48 +00:00
Stefan Csomor
8cbc59fe84 applying patch, fixes #10523
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 05:27:38 +00:00
Stefan Csomor
c3e433b159 applying patch, fixes #10524
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 05:23:22 +00:00
Jaakko Salli
bb2e05cf28 No longer overestimate virtual height given to the vertical scroll bar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 19:35:46 +00:00
Jaakko Salli
4584344296 wxPropertyGrid::IsEditorFocused() is now public
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 19:00:46 +00:00
Vadim Zeitlin
36835e02e3 fix Remove() argument in the example (closes #10521)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 18:59:03 +00:00
Vadim Zeitlin
8cc208e39f deprecate the old TryValidator/Parent() and replace them with the new and documented TryBefore/After()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 16:16:31 +00:00
Vadim Zeitlin
531cfed2d1 added wxDEPRECATED_BUT_USED_INTERNALLY_INLINE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 16:10:50 +00:00
Vadim Zeitlin
cd60273b3d override TryValidator() in wxMDIParentFrame to implement forwarding of menu/toolbar events to the active child at wx level instead of forwarding the WM_COMMAND itself: this is better as it prevents the same event from being passed twice to wxApp fall back if a handler exists in the child frame but skips the event and also because the code is portable now and can be moved down to the base class; also call the base class TryValidator() from wxDocMDI classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 15:24:03 +00:00
Vadim Zeitlin
22cb31398e another missing WXDLLIMPEXP to fix DLL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 14:15:20 +00:00
Jouk Jansen
fec34ef52d Updating OpenVMS compile configuration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 07:24:25 +00:00
Václav Slavík
04ae32cdab added wxXmlResource::LoadFile() to avoid URL-vs-filename ambiguity in Load()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 00:17:23 +00:00
Václav Slavík
acd32ffcdb fixed wxXmlResource::Load's detection of filenames to be done as early as possible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 00:13:03 +00:00
Vadim Zeitlin
574e1c5a03 added wxGrid::{Set,Get}{Row,Col}Sizes() methods allowing to save/restore all grid rows/columns sizes at once
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 23:41:29 +00:00
Vadim Zeitlin
0330301cb3 compilation fix after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 23:27:07 +00:00
Vadim Zeitlin
936525578d don't use template assign() with VC6, even though it can compile it it doesn't handle it correctly when using DLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 23:02:53 +00:00
Vadim Zeitlin
a405cd89a2 compilation fix after the previous commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 21:12:47 +00:00
Vadim Zeitlin
c84d128369 fix for DLL build: wxEvtHandlerArray should be in wxBase as it's used by wxEventLoopBase, not in wxCore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 21:04:45 +00:00
Vadim Zeitlin
038d59e979 undo the change of r57522, it's not needed any more after r59136
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 21:01:53 +00:00
Vadim Zeitlin
4e4e06e349 postpone the check for the validity of growable rows/columns indices until we know the total number of items in the sizer (closes #10294)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 21:01:19 +00:00
Vadim Zeitlin
5293e4b710 replace templae Connect() overloads with separate Bind() method to improve compatibility (see #10000, closes #10477)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 17:43:22 +00:00
Francesco Montorsi
ec38d07d03 add wxAppConsoleBase::OnEventLoopEnter/Exit callbacks; add wxEventLoopBase::IsMain() and wxAppConsoleBase::GetMainLoop() helpers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 13:23:12 +00:00
Francesco Montorsi
808f5a3aac document wxPolygonFillMode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 13:12:09 +00:00
Francesco Montorsi
e399549343 no real change: just group functions in a logic manner
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 13:10:25 +00:00
Vadim Zeitlin
efc49a216c don't call Refresh(empty-rect) unnecessarily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 13:07:36 +00:00
Francesco Montorsi
e65a6cc1ec try to clear the device/logical unit fog; remove unused and unsupported (an assertion fails if they are used) wxMM_ constants; better docs for the supported wxMM_ constants; use MM_ANISOTROPIC in old win16 metafile code instead of wxMM_ANISOTROPIC since it's not supported by wx code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 12:08:12 +00:00
Francesco Montorsi
48ed4a8971 revise all code; do not use many global objects; use wxLog to give errors/messages; put drawing code in a wxApp member; get rid of old code; fix indentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 11:54:16 +00:00
Jouk Jansen
c9082c105d Update compile configuration for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 07:59:43 +00:00
Kevin Ollivier
63a6419cd7 Remove no longer necessary re-entrancy check, fix function prototype definition for insertText, and add support for handling almost all the missing keys. (Function keys and the numpad Enter are still not handled properly.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 02:11:21 +00:00
Vadim Zeitlin
5c3a7f71a6 fix handling of long lines in wxGridCellAutoWrapStringRenderer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 00:09:23 +00:00
Kevin Ollivier
a05e6efe61 Fix for deprecated constructor issues, setting a function without a body as inline doesn't work for Mac whether debug is set or not. Since it's a workaround for old versions of gcc, limit its use to those cases to avoid future problems.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-24 22:19:10 +00:00
Benjamin Williams
ea34484ca3 focus fixes for wxAUINotebook (fixes #4361)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-24 19:34:01 +00:00
Vadim Zeitlin
f14217abb4 render <TH> contents in bold, as all the browsers do
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-24 18:10:43 +00:00
Kevin Ollivier
9130dfd784 Turn off the annoying beep when a key down is passed all the way up the handler chain.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-24 05:51:52 +00:00
Vadim Zeitlin
5a0dca116d remove non-existent wx/msw/datecontrols.h from files.bkl (it's a private file and shouldn't be installed)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-23 21:24:37 +00:00
Vadim Zeitlin
463c95db09 add wx/persist/*.h files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-23 21:20:35 +00:00
Vadim Zeitlin
36e5a9a7c4 fix (harmless) warnings in release mingw32 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-23 21:15:45 +00:00
Vadim Zeitlin
4b87142167 correct the coordinates used for DIBs in StretchBlt() (closes #10501)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 23:54:05 +00:00
Vadim Zeitlin
068f78bc73 avoid integer overflow when computing the radius in DoDrawArc() (see #10494)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 23:49:15 +00:00
Vadim Zeitlin
e143fb636d no changes, just update the copyright in the header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 23:38:52 +00:00
Vadim Zeitlin
5fab0c8d86 add accessors for sockaddr to wxSockAddress (closes #10511)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 23:38:07 +00:00
Kevin Ollivier
70412bd46c Quick fix to prevent a crash when running on 10.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 22:20:06 +00:00
Vadim Zeitlin
23239d944a add public wxXmlResource::GetResourceNode() which can be used directly instead of deriving from wxXmlResource and using FindResource()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 21:52:00 +00:00
Kevin Ollivier
c0b5b33b0d Missed one symbol used in the compatibility path.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 21:30:30 +00:00
Kevin Ollivier
f72e03b222 Fix for building under 10.4, where the BlendMode constants are not defined.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 21:22:07 +00:00
Stefan Neis
e39b5fa457 Various compilation fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 19:09:49 +00:00