Commit Graph

47528 Commits

Author SHA1 Message Date
Francesco Montorsi
d9ced90bcf add many references to the overview_windowsizing topic in wxWindow's size functions; add maximum size and virtual size to the topic overview
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-05 17:40:10 +00:00
Paul Cornett
b666ade784 use the right GdkWindow and origin for non-pizza widget with wxClientDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-05 05:45:40 +00:00
Bryan Petty
ea6e8ec55d Documented wxAuiManagerEvent and it's related event macros.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-05 01:03:31 +00:00
Vadim Zeitlin
2fd35de1c3 fix MSVC warning about implicit int to bool conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 23:06:29 +00:00
Bryan Petty
457f3abf14 Properly distribute docs on string comparison operators, and remove from named groups.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 22:50:11 +00:00
Vadim Zeitlin
5efeac9fd2 PCH-less compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 21:52:38 +00:00
Robert Roebling
ff8c74b972 Use gtk_range_set_value() to set scrollbar and do that after SetVirtualSize() since the latter can shrink the legal range and gtk_range_set_value() checks for that. It also sends out a value_changed signal which will scroll the window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 21:28:00 +00:00
Vadim Zeitlin
e799e8d7d8 use WXDLLIMPEXP_FWD_BASE instead of WXDLLIMPEXP_BASE in friend declaration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 21:27:33 +00:00
Vadim Zeitlin
a830dc4832 another compilation fix to switch in DoYield()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 21:25:00 +00:00
Francesco Montorsi
731bcffc6a fix no-PCH builds for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 21:17:02 +00:00
Robert Roebling
40b849aafe Use wxRound() instead of (int)(my_double + 0.5);
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 21:12:16 +00:00
Vadim Zeitlin
365b9f162a compilation fixes to DoYield() after latest changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 20:36:20 +00:00
Francesco Montorsi
74d60f66ee add a wxEventType argument to wxThreadEvent for coherency with other event classes; rewrite its Clone() function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 19:44:55 +00:00
Francesco Montorsi
1e247d6992 use WXDLLIMPEXP_CORE, not WXDLLIMPEXP_BASE for wxThreadEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 19:25:09 +00:00
Francesco Montorsi
43c8c1f310 fix wxThreadEvent linking in shared builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 18:35:18 +00:00
Francesco Montorsi
a552d2c3f2 update to the latest version of the patch at #10320 the wxApp::DoYield implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 18:02:03 +00:00
Jaakko Salli
5bc244b802 Added useful comment to a code sample snippet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 17:54:31 +00:00
Francesco Montorsi
f6a3e0bad5 fix the new wxThreadEvent class adopting the new type-safe conventions for event classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 17:49:22 +00:00
Francesco Montorsi
d48b06bd90 check in the 'selective yield' patch (see ticket #10320):
- implements YieldFor() with event filtering for wxMSW and wxGTK,
  adds TODO markers in other ports;
- replaces wxYield() in GTK's clipboard code with a wxTheApp->YieldFor() call, thus fixing possible reentrancies 
(and modifies clipboard sample to test synchronous IsSupported calls)
- replaces wxYieldIfNeeded() calls in wxProgressDialog with wxTheApp->YieldFor() calls, so that it processes only 
UI/user-input events, thus fixing the race condition visible in the "thread" sample
- documents the new functions


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 17:42:28 +00:00
Francesco Montorsi
a721fd82b7 in debug mode when clicking with the middle mouse button draw borders around all windows, not only those with a sizer; use different pen colours to distinguish among sizers, spacers and windows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:55:28 +00:00
Francesco Montorsi
939dafa6d4 document new wxBLUE_PEN object; add some more details for standard object instances; cosmetic fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:49:32 +00:00
Jaakko Salli
2728c3bfe7 Added proper COW to wxPGChoices, moved wxPGChoices code from propgrid.cpp to property.cpp (to match header organization), removed some now-unneeded helper functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:45:23 +00:00
Francesco Montorsi
d818458781 add standard wxBLUE_PEN for coherency with the colours available for standard brushes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:30:27 +00:00
Vadim Zeitlin
c77c302300 fix MSVC warning about implicit int to bool conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 14:40:47 +00:00
Francesco Montorsi
52f2299cdd update list of classes supported by wxGenericValidator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 12:41:43 +00:00
Vadim Zeitlin
040d3c2ebf restore the default bitmap icons size to 16*15, making them larger if necessary is enough and doesn't result in having ugly 16*16 bitmaps in a 24*24 button rectangle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 12:19:45 +00:00
Vadim Zeitlin
5d55031c21 compilation fixes for wxMSW/Univ
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 10:07:58 +00:00
Vadim Zeitlin
5d2d4a2ef2 move generic animation sources to ADVANCED_MSW_NATIVE_SRC/HDR from ADVANCED_MSW_SRC/HDR to avoid having duplicated entries in wxMSW/Univ build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 10:02:48 +00:00
Vadim Zeitlin
cff6c9a81a added back compatibility headers (apparently svn can't do move+add in a single commit)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 08:06:42 +00:00
Paul Cornett
0295d4483b revert last commit, it re-introduces the first problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 08:01:58 +00:00
Paul Cornett
cdb7bf6671 fix bug introduced in last commit, contents not scrolling when selecting treectrl elements with up/down arrow keys
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 07:15:03 +00:00
Francesco Montorsi
58fa61dbad Re-add support for multiple text validator styles but
1) catch some invalid configurations in SetStyle()
2) document the order of the checks in wxTextValidator
3) implement wxFILTER_EMPTY
4) rename wxFILTER_SIMPLE_NUMBER => wxFILTER_DIGITS



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 21:21:47 +00:00
Vadim Zeitlin
77cc73a78e added wxPersistentRegisterAndRestore() function to work around VC6 brokenness in debug DLL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 12:02:20 +00:00
Vadim Zeitlin
664e13143e renamed wx/ptr_shrd.h to wx/sharedptr.h; split wx/ptr_scpd.h in wx/scopedptr.h and wx/scopedarray.h; extracted common parts into new wx/checkeddelete.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 12:01:46 +00:00
Robert Roebling
6143d648c8 Add space all around std buttons as per Apple HIG (and as the comment in the code says but the code didn't do)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 10:42:34 +00:00
Robert Roebling
69d32cafb0 Also report events from wxCollapsiblePane's label
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 09:53:33 +00:00
Robert Roebling
2e2e1bb254 Removed accidentally committed debug code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 08:51:25 +00:00
Vadim Zeitlin
abb7d8a351 work around VC6 ICE in DLL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 21:44:36 +00:00
Vadim Zeitlin
f662a526eb compilation fix for template Connect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 21:40:53 +00:00
Vadim Zeitlin
361ba943f9 use explicit this-> with non-dependent names (compilation fix for standard-conforming compilers such as g++ 4)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 21:09:08 +00:00
Vadim Zeitlin
79935f61bf use wxCommandEventHandler instead of manually writing several casts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 20:46:33 +00:00
Vadim Zeitlin
f3ff831f3b Changes to template Connect() to make it compile with MSVC7 and possible other
not quite up-to-date compilers, to reduce repetitions and to allow using
methods of non-wxEvtHandler-derived classes as event callbacks:

1. Don't rely on compiler ability to deduce template parameter from the type
   of a parameter of a function used as another template parameter, at least
   MSVC7 can't do this and it's probably not the only one.
2. Do rely on compiler support for partial specialization to make
   wxEventFunctorMethod compile for non-wxEvtHandler-derived handlers while
   still keeping the old functionality for the wxEvtHandler-derived ones.
3. Don't make any difference between functions and functors, both are callable
   objects so use them as such, this allows to fold code for both cases.
4. Avoid the use of dynamic_cast<>.
5. Several naming changes:
 a) wxTypedEventType -> wxEventTypeTag (because this is what it is)
 b) Subscribe/Unsubscribe -> DoConnect/Disconnect (to follow the usual
    convention of public Foo calling private DoFoo and to avoid using up
    another name)
 c) Derived -> ObjClass (because it's not clear what does Derived mean)
6. Extend the unit test to cover more cases.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 20:38:56 +00:00
Robert Roebling
4c509aecb6 Invalidate only the specified rectangle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 14:05:46 +00:00
Robert Roebling
08bbdb0858 The recent change to ::Refresh() (strangely) fails to invalidate e.g. a wxTreeCtrl in a wxDialog, revert the relevant part
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 14:02:50 +00:00
Vadim Zeitlin
862c917dfb compilation fix for new event types (this shouldn't be necessary but do it to temporarily fix the build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 12:38:17 +00:00
Vadim Zeitlin
f57254320e don't always disable new events code; leave it enabled for MSVC8+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 11:39:48 +00:00
Chris Elliott
004b67a761 and a third fix from http://trac.wxwidgets.org/ticket/10457 fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 08:36:01 +00:00
Robert Roebling
51fbe4cc1d Make wxCheckListBox call event.SetString() on all platforms, not just wxMSW. Mention again, that wxCommandEvent::IsChecked() cannot be used for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 23:43:59 +00:00
Vadim Zeitlin
4fc218c2a7 move evthandler.cpp to non-GUI test as it doesn't require the GUI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 23:20:27 +00:00
Vadim Zeitlin
9b3ff3c04f test that the connected event handler is really called; some naming changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 23:19:45 +00:00