Commit Graph

26603 Commits

Author SHA1 Message Date
Jaakko Salli
6086bcc8ba Allow wxPGMultiButton to work even if primary editor control was not created in wxPGEditor::CreateControls(); Clarified related samples and documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-09 18:32:43 +00:00
Vadim Zeitlin
0b108d1006 don't call neither OnSaveModified() nor Modify(false) from On{New,Open}Document(): these methods are only ever called for the new wxDocument object which should never be saved, even if they're marked as modified by the user-defined document creation code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-09 18:13:04 +00:00
Vadim Zeitlin
f4be5cd0bf restore passing WM_COMMAND messages for SC_XXX commands to DefFrameProc() in wxMDIParentFrame::MSWWindowProc() accidentally removed in previous changes; removed doing this for WM_SYSCOMMAND in wxMDIChildFrame as this does seem to be unnecessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-09 13:05:40 +00:00
Kevin Ollivier
7185918d69 Fix for accessing m_peer during initialization.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-09 04:29:42 +00:00
Robert Roebling
c937344c8f Commit most parts of #10495 wxDataViewCtrl needs a way to start the label editor programmatically
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 21:41:57 +00:00
Robert Roebling
235d5f88e6 Fixes #10556: wxDataViewCtrl keyboard navigation broken in r59379, some internal renaming
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 21:23:12 +00:00
Vadim Zeitlin
997e8e2979 take into account the width of the static box label in wxStaticBoxSizer minimal size computation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 15:59:23 +00:00
Vadim Zeitlin
2d5fccc60b no changes, just removed unnecessary GetStaticBoxBorders() function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 15:54:08 +00:00
Francesco Montorsi
cae9e7b169 add wxAppConsoleBase::DeletePendingEvents and wxEvtHandler::DeletePendingEvents.
Fix wxAppConsoleBase::Suspend/ResumeProcessingOfPendingEvents: locking the mutex does not prevent wxAppConsoleBase::ProcessPendingEvents from running if the mutex was locked from the main thread!

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 12:58:24 +00:00
Francesco Montorsi
8f13981070 document wxProgressDialog::Update(maximumValue) behaviour and warn the user that it may generate unwanted re-entrancies because of wxDialog::ShowModal()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 12:08:39 +00:00
Jaakko Salli
66fb9e1241 Added support for 'AutoComplete' attribute, automatically used by any wxTextCtrl-based property editor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 11:34:01 +00:00
Jaakko Salli
bd6ffa9f2b Always reduce size of the last (instead of widest) wxPropertyGrid column when control's client size changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 11:04:36 +00:00
Stefan Csomor
f2f6030e9c letting the peer declare whether it wants to draw its borders itself (eg the search control has a round border on mac)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 10:02:25 +00:00
Kevin Ollivier
01000cbcd5 Fix double-click support for wxListBox (#10548)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 06:42:52 +00:00
Kevin Ollivier
b725fa9a8b Mac inherits the window variant setting on control creation, and thus on Mac this always asserts, so remove the assert to fix #10559.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 06:35:58 +00:00
Kevin Ollivier
09a9eb2069 Fixes needed to get transient popup windows working, also implement SetFont for OS X Cocoa for classes that support it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 04:15:58 +00:00
Kevin Ollivier
44ca06dd6e Make sure the user can't select the text.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-08 03:32:37 +00:00
Vadim Zeitlin
8b492f67ab detect adding too many items to a grid sizer sooner and don't crash if this happens
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 23:37:51 +00:00
Vadim Zeitlin
645706a24e support %l in wxDateTime::ParseFormat()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 19:36:59 +00:00
Vadim Zeitlin
072682ce44 optimize Replace() to use a linear algorithm (closes #9135)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 16:07:58 +00:00
Vadim Zeitlin
e5cfb314ae replace wxGetMultipleChoices() with wxGetSelectedChoices() which allows to distinguish between cancelling the dialog and not selecting any items in it (closes #10057)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 15:39:09 +00:00
Vadim Zeitlin
c10c791ba9 correct size of extra controls in pixels to dialogs units correctly (see #9679)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 15:28:47 +00:00
Vadim Zeitlin
24dd7bc824 don't add the sash size to the best size if the window is not actually split (see #10533)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 15:16:48 +00:00
Vadim Zeitlin
ca94b1cc6e also remove WXUNUSED_UNLESS_DEBUG to fix release build after t59404
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 15:10:49 +00:00
Vadim Zeitlin
1ffe958687 compilation fix: add missing header after r59404
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 15:08:52 +00:00
Vadim Zeitlin
18e45a88f6 store our styles in wxSpinCtrlGenericBase ctor (needed to make the changes of r59410 actually work, see #10557)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 14:37:53 +00:00
Vadim Zeitlin
42af6685ae support wxSP_WRAP in generic implementation (closes #10557)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 14:27:06 +00:00
Robert Roebling
f0b31a4b7a wxDATAVIEW_CELL_ACTIVATABLE translates Editable under OS X. Maybe we should remove the distinction.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 14:09:01 +00:00
Vadim Zeitlin
47e105413f fix generation of key events with Alt pressed broken by r59369 (see #626)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 14:07:45 +00:00
Vadim Zeitlin
0576cd9ebe added wxProtocolLog class for logging network requests/responses (closes #7464)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 13:58:39 +00:00
Robert Roebling
fdb45ab7e9 Report first selected item in selection change event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 13:46:28 +00:00
Robert Roebling
636c8dabc6 Make wxDataViewCtrl::GetBestSize() return a height of 80 on OSX as per the other platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 13:33:27 +00:00
Robert Roebling
f5d5909691 Correct define
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 12:11:17 +00:00
Kevin Ollivier
7e9d3e1e9f For search ctrl, the bordered and bezeled styles destroy the control's rounded border and white background for some reason. This gives us "double borders", but for the moment it's better than the old look.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 04:20:52 +00:00
Kevin Ollivier
c2a4d42831 Add alignment support, and more tweaks for label size issues, though I hope to find the core cause and solution soon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-07 04:19:26 +00:00
Francesco Montorsi
9113ffaf56 fix wxDataObjectComposite::GetFormatCount and add some comments to explain the reason of recents modifications to wxDataObjectComposite (closes #10430)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 23:42:06 +00:00
Robert Roebling
d02852036d wxBusyInfo now uses wxGenericStaticText under GTK+, more Refresh/Update updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 23:30:54 +00:00
Francesco Montorsi
ce468dc28b don't return hardcoded constants for empty renderers, introduce wxDVC_DEFAULT_RENDERER_SIZE.
Some code styling review (indentation, long line wrapping, etc)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 22:56:27 +00:00
Francesco Montorsi
f453d7eada fix wxTextDataObject::GetDataHere and SetData functions (under wxMSW) so that they work with strings with embedded NULLs and can cope with non-NULL terminated arrays.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 22:45:00 +00:00
Francesco Montorsi
c2489d8e6d comment out wxPrintf/wxLogDebug calls; fix some indentations; comment out the (debug) code explicitly crashing the application; protect with wxASSERTs the FindNode() return values, before they are dereferenced
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 20:39:23 +00:00
Robert Roebling
7d83595849 Correct minor bishaviours in Expand() and Collapse()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 19:32:07 +00:00
Robert Roebling
874edbb70e Initialise DC only when needed and deinitilise it properly before, fixes #10543: wxGTK wxDataViewCtrl Assert and Crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 18:52:30 +00:00
Jaakko Salli
4aee83345e Property value images are no longer shrinked horizontally
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 17:32:28 +00:00
Vadim Zeitlin
a3281dbc1c don't allow setting readonly combobox value to a string which is not one of the valid choices in wxGTK neither and document this behaviour (closes #10549)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 16:31:26 +00:00
Vadim Zeitlin
51acf83bd6 added wxZlibStream::SetDictionary() (closes #10551)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 16:26:15 +00:00
Vadim Zeitlin
aa8166dd51 fix duplicate events for selection keys after the last change (see #626)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 16:13:23 +00:00
Vadim Zeitlin
8c4209f7b3 no changes, just some minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 10:56:21 +00:00
Vadim Zeitlin
d90ef8e4c2 only set maximal tooltip width if it's greater than the previously set one to avoid breaking long lines if a shorter tooltip is added afterwards (see #10537)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 10:54:56 +00:00
Vadim Zeitlin
78e7881208 pass ApplyEdit() arguments to EndEdit() too for better backwards compatibility (closes #10544)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 10:38:45 +00:00
Julian Smart
d35146fa5d Removed conflicting virtual function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 08:19:31 +00:00
Francesco Montorsi
bc4f1ff265 Indentation/coding style adjustments.
Make the columns resize when dragging the columns in the header control intercepting the EVT_HEADER_RESIZING event

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 00:05:05 +00:00
Francesco Montorsi
8af28fabff fix crash when using wxDataViewListStore::DeleteAllItems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 00:01:11 +00:00
Kevin Ollivier
b0ec7fbb8f Fill out the left and top fields as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 22:54:02 +00:00
Kevin Ollivier
ee29c3dff5 Make about dialog non-modal on GTK/Mac and don't show the OK button on Mac.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 21:54:08 +00:00
Francesco Montorsi
cf3fd63e38 do not use HDS_FLAT by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 21:47:59 +00:00
Kevin Ollivier
a905992cf7 Sheet support for wxDirDialog.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 21:21:45 +00:00
Kevin Ollivier
b2c47ad3f8 Don't use result for both NS and wx button ID values.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 21:20:57 +00:00
Kevin Ollivier
ba41a8c629 Sheet support for wxMessageDialog.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 21:20:05 +00:00
Kevin Ollivier
037f9d3ba3 Fix for sheets based on NSAlert.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 21:19:40 +00:00
Kevin Ollivier
c973763629 Fix typo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 19:22:02 +00:00
Kevin Ollivier
540f444554 Make sure we call SetEventObject before firing events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 19:21:32 +00:00
Kevin Ollivier
16747764fb Make wxStaticText for OS X Cocoa properly size multiline strings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 19:20:36 +00:00
Kevin Ollivier
724999ee87 Use sheets for native file dialogs if the dialog has its parent set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 19:19:28 +00:00
Vadim Zeitlin
25f701e632 don't use WPARAM in the header (build fix after r59336)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 16:32:56 +00:00
Julian Smart
6738c4724a Don't set a large minimum size for both panes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 15:54:50 +00:00
Julian Smart
cdfd5e0166 Prevent splitter sash being set below minimum size when moved
(using the same minimum size for both windows is probably a bad design choice)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 15:44:01 +00:00
Vadim Zeitlin
c7d9c476ea fix multiple problems with selection in controls with wxTR_MULTIPLE style (closes #626)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 14:13:19 +00:00
Kevin Ollivier
2d6aa9197f Ensure that WriteText moves the selection to the end and scrolls to the end, and implement EVT_TEXT_ENTER for NSTextField.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 05:43:59 +00:00
Kevin Ollivier
b480b80a27 Fix comparison operator for functions keys (fixes #10547).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 05:23:25 +00:00
Francesco Montorsi
de4bf0b305 improve look of wxDataViewCtrl and of its renderer on wxMSW when windows XP themeing is not used (wxRendererXP::DrawItemSelectionRect implementation is ok also for wxRendererMSW; share the code).
Fix a typo in the drawing code for horizontal rules in wxDataViewCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-05 00:36:17 +00:00
Kevin Ollivier
826da45133 Ensure we get mouse moved events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-04 23:34:52 +00:00
Jaakko Salli
e777bd14b3 By default, always refresh editor and redraw properties when property value is changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-04 19:53:34 +00:00
Kevin Ollivier
aa960026e6 Don't always set the titled mask.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-04 19:09:24 +00:00
Francesco Montorsi
a4d291f0ab remove wxSYS_DEFAULT_PALETTE: it's supported only by wxMSW and it never worked there: GetStockObject(DEFAULT_PALETTE) returns a palette and not a font; so the resulting wxFont is wrong.
Expand and correct documentation for various system constants.
Provide wxSYS_COLOUR_FRAMEBK as a synonym for wxSYS_COLOUR_BTNFACE as it is the colour which must be used to make wxFrame background coherent with the background of the controls they (eventually) contain.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-04 15:19:58 +00:00
Jouk Jansen
7a8b7e04af inserting missing include for non PCH-build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-04 07:42:42 +00:00
Kevin Ollivier
08c1b1340d More fixes for clickCount... even sometimes when respondsToSelector returned true we'd get a crash, so only check clickCount for up and down events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-03 23:23:51 +00:00
Jaakko Salli
8c5c56e201 Remove unneeded workaround for a ScrolledWindow issue that is now fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-03 21:17:36 +00:00
Jaakko Salli
ed9e243d58 Remove wxEnumProperty::ms_prevIndex
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-03 21:04:08 +00:00
Julian Smart
6d595f3d7a Don't crash if no scrollbar
Force wxVSCROLL in wxRTC


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-03 13:12:52 +00:00
Vadim Zeitlin
87ebb0b789 compilation fix after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-03 09:24:20 +00:00
Vadim Zeitlin
55410bb4f6 fix wxGTK1 compilation after wxTextEntry DoGetValue() change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-03 09:21:35 +00:00
Vadim Zeitlin
417943bf06 fix virtual function hiding warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-03 09:21:03 +00:00
Vadim Zeitlin
d1b8a7430f fix virtual function hiding warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-03 09:20:11 +00:00
Francesco Montorsi
834fcdd949 ProcessPendingEvents() is now in wxApp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 21:14:01 +00:00
Francesco Montorsi
8e40ed8535 move pending event processing back to wxApp (these methods were moved into wxEventLoopBase during YieldFor() refactoring - see #10320): we need to be able to queue events even when there's no event loop running (e.g. wxApp::OnInit)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 20:45:22 +00:00
Vadim Zeitlin
805c8d92b9 wxOSX build fix for wxRichTextCtrl after wxTextEntry::GetValue() renaming to DoGetValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 20:43:12 +00:00
Francesco Montorsi
191e43fd02 revert r59246; the window parameter was there by purpose (i.e. for consistency with other Get* methods -- even if unused); document what the win parameter does in the various wxRenderer::Get* methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 20:09:10 +00:00
Vadim Zeitlin
00c89b2207 another wxOSX build fix after wxTextEntry::GetValue() renaming to DoGetValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 19:28:44 +00:00
Vadim Zeitlin
33b3ade503 wxOSX build fix after wxTextEntry::GetValue() renaming to DoGetValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 19:17:42 +00:00
Vadim Zeitlin
d0a22afc38 build fix: define DoGetValue() and GetEditableWindow()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 16:23:55 +00:00
Vadim Zeitlin
2805bdda51 fix warning about possibly uninitialized variable in release build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 14:54:04 +00:00
Vadim Zeitlin
3373e90070 wxUniv compilation fixes after wxTextEntry::DoGetValue() change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 13:58:42 +00:00
Vadim Zeitlin
135b23b266 added wxTextEntry::DoGetValue() to allow returning empty string if the control currently contains hint text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 13:31:29 +00:00
Vadim Zeitlin
63f7d5022e added wxTextEntry::SetHint() (a.k.a. cue banner or placeholder string)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-02 12:25:01 +00:00
Francesco Montorsi
01a65e7c58 fix rendering of wxGrid on wxMSW when a dialog is over the grid.
To test the bug: open the "grid" sample and popup the about box, then move it over the grid; without this fix portions of wxGrid were painted as gray (disabled colour) even if the wxGrid itself was not disabled.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-01 17:21:46 +00:00
Francesco Montorsi
88c87a11a8 use wxRenderer::GetCheckBoxSize() instead of doing wrong calculations in wxGridCellBoolRenderer::GetBestSize; this fixes checkbox rendering under wxMSW (tested on wxMSW,wxGTK)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-01 16:53:53 +00:00
Francesco Montorsi
92c32bbee7 deprecated GetCheckBoxSize(wxWindow *) in favour of GetCheckBoxSize() const (the window parameter was unused and not documented)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-01 16:46:49 +00:00
Francesco Montorsi
f8d0234d39 move wxGridCellRenderer::Draw before other derived classes implementations (no real change)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-01 16:09:44 +00:00
Francesco Montorsi
4290e8ed3b better document the possible arguments accepted by wxLaunchDefaultBrowser; in particular mention the 'mailto:' scheme
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-01 14:31:41 +00:00
Vadim Zeitlin
02b94f4e73 recognize schemes other than http and ftp in wxLaunchDefaultBrowser()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-01 12:27:31 +00:00
Vadim Zeitlin
8e1a01e475 added const_cast<> to silence gcc warnings (see #10520)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-01 11:59:50 +00:00
Robert Roebling
ec2f175241 Never show tree lines when there are tree buttons under OS X and GTK+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-28 17:30:41 +00:00
Robert Roebling
ba86da30cf Use gdk_window_invalidate instead of gtk_widget_queue_draw as the latter doesn't e.g. invalidate a wxTreeCtrl correctly when place somewhere different from 0,0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-28 17:22:35 +00:00
Vadim Zeitlin
5baee1f4bf compilation fixes for ANSI mode build (closes #10518)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-28 15:54:04 +00:00
Vadim Zeitlin
4e916e61ea reset the tooltip text before changing it, this apparently prevents a spurious redraw of the control below it (see #10520)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-28 15:49:10 +00:00
Kevin Ollivier
9d5cfd0e64 Cast needed to fix compilation on 10.4 --This line, and those below,
will be ignored--

M    src/osx/cocoa/printdlg.mm


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-28 00:19:59 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
Kevin Ollivier
f0e0116ea8 Landing basic EVT_CHAR support, along with the rest of EVT_TEXT support fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 18:25:36 +00:00
Kevin Ollivier
4d23a0d3a0 Add support for EVT_TEXT in OS X Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 18:13:49 +00:00
Jaakko Salli
8c61a9ea94 Added wxComboPopup::GetComboCtrl()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 15:13:29 +00:00
Francesco Montorsi
1f2f732921 remove wxAppConsoleBase::OInitGui and leave it only in wxApp[Base] class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 14:42:35 +00:00
Vadim Zeitlin
efce878a2a add public wxLog::Log() to avoid ugly casts needed in order to call DoLog() from derived classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 00:46:25 +00:00
Paul Cornett
cf92f48759 fix the restore of the fix of r58979
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 20:56:39 +00:00
Vadim Zeitlin
9d04caf8b5 restore changes of r58979 accidentally overwritten by r59023
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 20:37:30 +00:00
Paul Cornett
fd1dc2a7e6 fix event table base for wxListMainWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 20:30:57 +00:00
Paul Cornett
50de831a51 non-pch build fixes, some cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 18:08:19 +00:00
Paul Cornett
a645ea885d fix for missing sighandler_t
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 17:13:56 +00:00
Václav Slavík
131fc12022 added asserts to check correct order of wxHtmlDCRenderer methods calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 16:43:22 +00:00
Francesco Montorsi
8b93348e82 fix a few typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 15:40:15 +00:00
Stefan Neis
f0838d63f3 Added wxSingleInstanceChecker for OS/2 (patch #10491).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 13:52:20 +00:00
Francesco Montorsi
122cf17b13 use %p when logging the thread IDs instead of %lu to make it easier to debug multithreaded programs when using GDB (which uses the %p syntax)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-20 12:40:30 +00:00
Francesco Montorsi
33957ef519 wxCHECK that there is an active event loop before using wxEventLoopBase::GetActive() pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 23:45:23 +00:00
Vadim Zeitlin
335a0bc339 fix Windows compilation after last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 21:30:05 +00:00
Francesco Montorsi
9f54c829ed don't leak events in wxEvtHandler::QueueEvent when there's no event loop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 20:57:47 +00:00
Robert Roebling
a1abd1a923 Make wxImageList not copiable (fixes #10503), replace wxList with wxObjectList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 20:26:00 +00:00
Robert Roebling
668674c1e2 If a selected item is about to be deleted, try to select the next one first, otherwise the parent, like the wxMSW does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 20:18:53 +00:00
Paul Cornett
b2231d4d0b add braces around if-body
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 17:45:34 +00:00
Paul Cornett
a907139aa3 remove old hacks for gtk blit problem which was probably fixed long ago
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 17:45:09 +00:00
Paul Cornett
ce7c8a9751 better fix for aCC and rawbmp.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 17:28:37 +00:00
Vadim Zeitlin
04b2ab1a0c compilation fix for systems without neither MSG_NOSIGNAL nor SO_NOSIGPIPE (such as AIX and old HP-UX): disable SIGPIPE manually in this case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 14:17:21 +00:00
Vadim Zeitlin
f6a25e0866 another AIX compilation fix: getservbyname_r() returns int, not servent* there
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 14:01:26 +00:00
Paul Cornett
d9b22b06d3 avoid setting negative size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 07:37:57 +00:00
Paul Cornett
58d439cf5a unused variable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 07:37:32 +00:00
Paul Cornett
817d2e9b9b remove unused gtk includes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 07:37:12 +00:00
Paul Cornett
8a614483c3 fix for HP aCC, it can't compile rawbmp.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 05:34:48 +00:00
Paul Cornett
8d3166e8ac fix for IBM xlC 8, it can't compile Clone() if wxDataFormat is not defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 05:34:03 +00:00
Vadim Zeitlin
58cccb3b44 AIX compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-19 01:03:27 +00:00
Robert Roebling
60433f3f82 Uncomment code accidentally left commented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 21:21:19 +00:00
Robert Roebling
30b8043911 Don't use default size of control has a sizer (as per other ports)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 21:20:04 +00:00
Paul Cornett
c4021a7920 use bool expression rather than implicit conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 18:02:53 +00:00
Paul Cornett
f8f7cff436 remove unused wxKeyEvent member m_scanCode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 17:15:40 +00:00
Jaakko Salli
d42b86211a Under wxGTK, always use wxPopupTransientWindow as the popup window, even if UseAltPopupWindow() has been called. Do this because, of all popup window types, only wxPopupTransientWindow is able to have focused child controls when the popup is shown in wxGTK modal dialog.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 16:16:24 +00:00
Francesco Montorsi
29ad2740ff remove comment erroneously committed in r58654
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 15:33:08 +00:00
Francesco Montorsi
ee32a48d95 fix typo: the leave/enter order for the m_handlersWithPendingEventsLocker critical section was flipped
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 15:14:41 +00:00
Francesco Montorsi
5b5939956d fix typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 11:30:19 +00:00
Francesco Montorsi
d270fef3e8 fix wxGTK1 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 10:32:21 +00:00
Paul Cornett
5079735ca0 build fixes for wxUSE_THREADS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-18 04:06:46 +00:00
Jaakko Salli
110d27b332 Have wxComboCtrl respect parent's wxTAB_TRAVERSAL flag; Also cleaned up key event redirecting code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 20:52:16 +00:00
Jaakko Salli
df6007a555 Also redirect wxEVT_KEY_UP and wxEVT_CHAR from the embedded wxTextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 20:19:29 +00:00
Robert Roebling
89c33c4831 Corrected meaning of parameter col as the position not ID in wxLisrCtrl::InsertColumn() under OSX/Carbon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 18:46:24 +00:00
Jaakko Salli
0c35994d50 Test for m_pPropGrid in wxPropertyGridPageState::DoClear()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 18:07:33 +00:00
Jaakko Salli
8dee26e107 Clear grid selection more consistently prior clear operations; improved Clear() tests (fixes #10497)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 18:01:06 +00:00
Vadim Zeitlin
b5f3d8e934 don't skip the event in wxGridCellEditorEvtHandler::OnKillFocus() to fix crashes which happen if the control receiving this event gets deleted from it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 16:43:10 +00:00
Jouk Jansen
6918257d40 add wx/log.h for non-PCH build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 13:07:58 +00:00
Vadim Zeitlin
c496d8fa88 suppress unused parameter warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 12:01:07 +00:00
Robert Roebling
f965a844db Blind implementation of YieldFor() for OSX/Cocoa, copied from OSX/Carbon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 11:30:50 +00:00
Robert Roebling
9e5754bebd Blind implementation of GetSubItemRect() for wxListCtrl under carbon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 11:24:19 +00:00
Vadim Zeitlin
2ec94d6b96 add missing stdcall to fix crash when using state image lists after r58572
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 09:57:10 +00:00
Paul Cornett
6089c4c8e8 fix deferred show when SetSize() is called after SetClientSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 03:32:40 +00:00
Francesco Montorsi
6fd068fcf1 don't consider EOF an unrecoverable error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 21:14:12 +00:00
Paul Cornett
bcf79477d1 non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 17:22:02 +00:00
Paul Cornett
1e04d2bf54 fix evtloop.h header dependency
implementation headers go first to catch this kind of problem, don't move them to fix a build error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 17:19:17 +00:00
Robert Roebling
c146c3ae44 Compilo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 08:56:52 +00:00
Václav Slavík
0fef6b7a5e fully reverted Francesco's removal of copying information (r58913,r58922)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 08:24:23 +00:00
Jouk Jansen
9261e8f17d motif/cursor.cpp: adding include wx/log.h to define wxLogError
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 08:20:47 +00:00
Robert Roebling
140f202726 Compilo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 08:09:39 +00:00
Francesco Montorsi
8d60daa8d3 wxApp::DoYield => wxGUIEventLoop::YieldFor (part of r58911)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 23:18:04 +00:00
Francesco Montorsi
0a949d7896 revert previous commit - but don't include unneeded email headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 23:06:05 +00:00
Francesco Montorsi
8bd9fa338e PCH-less build fix by Tim S
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 19:34:58 +00:00
Stefan Csomor
bf02a7f976 switching to compositing operators (fixes #9881), adding layers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 16:52:05 +00:00
Francesco Montorsi
977a41ec3e use YieldFor() in wxTopLevelWindowGTK::RequestUserAttention; comment on the use of YieldFor() in wxProgressDialog; add some TODOs near wxYieldIfNeeded()/wxSafeYield() calls in wxListCtrl, wxDataViewCtrl, wxTreeCtrl (closes #10320)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 15:42:15 +00:00
Vadim Zeitlin
31cb01131e don't use AC_CANONICAL_TARGET in libtiff configure: this is unnecessary as it's not a cross-compiler and also doesn't work when running it as sub-configure when caching is enabled (because the host and the build aliases are cached by the top level configure but the target one is not and autoconf-generated code doesn't deal with this situation correctly)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 15:26:07 +00:00
Francesco Montorsi
0955be65ca remove GTK_CHECK_VERSION checks for GTK versions < 2.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 15:16:18 +00:00
Francesco Montorsi
a8519f6507 build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 14:54:31 +00:00
Francesco Montorsi
dde19c2180 second part of #10320: move wxApp event handling functions to wxEventLoopBase (in particular move Yield() functions); add backward compatible redirections to wxApp; update docs; remove global lists wxPendingEvents and wxPendingEventsLocker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 14:25:08 +00:00
Vadim Zeitlin
145bbf1fdf fix (harmless)m ingw32 warning; use anonymous namespace instead of a bunch of static functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 14:25:04 +00:00
Francesco Montorsi
2ad4f89f57 do not export compare functions in the wx ABI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 12:48:31 +00:00
Francesco Montorsi
af59b3fc6d even more user-friendly message (as suggested by John Roberts)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 12:19:08 +00:00
Kevin Ollivier
41af81ea20 Fix typo (sorry, thought I compiled before committing.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-14 17:07:56 +00:00
Jaakko Salli
0689e4c1f0 Fixed assertion that could appear under wxGTK if wxComboCtrl drop-down button was clicked too quickly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-14 16:42:40 +00:00
Kevin Ollivier
c824c165b1 Start on implementation for wxTE_MULTILINE / wxTE_RICH* support using NSTextView/NSScrollView.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-14 08:06:34 +00:00
Kevin Ollivier
98978a10b7 Remove the "double border" around the search ctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-14 08:01:56 +00:00
Kevin Ollivier
fc09949561 Add a tracking rect on resize so that the view will receive mouse entered and exited events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-14 08:00:43 +00:00
Kevin Ollivier
f1f1500304 clickCount is not available for mouse entered/exited events also, just use respondsToSelector to make sure we catch this always, and add some stubs for mouse entered / exited events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 20:16:13 +00:00
Kevin Ollivier
bb839504eb Implement NSPanel support to get wxFRAME_TOOL_WINDOW and wxMiniFrame working.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 20:15:05 +00:00
Stefan Csomor
7e06ee6d10 direct wxFrame events support (paint was not delivered directly)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 19:47:00 +00:00
Stefan Csomor
57c0a8ac50 different contentview-offset code, otherwise 'wx' synthetic borders are also taken into account, and round-trips woulnd't be correct anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 19:23:58 +00:00
Stefan Csomor
45f5bb03d5 paint event was missing the id, Connect not working for this otherwise
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 19:21:51 +00:00
Robert Roebling
496e7ec647 More GTK prefixing for internal methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 10:25:38 +00:00
Robert Roebling
7fc8b9a4fe GTK prefix for internal tooltip methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 10:10:36 +00:00
Robert Roebling
71ead4bf23 Removed unneeded FixUpMouse() method, some more GTK prefixing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 10:00:22 +00:00
Robert Roebling
4dfa17210f Reorder code so that you can actually set the size of a picker control at startup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-13 09:34:04 +00:00
Vadim Zeitlin
6eb872ea53 return radio box own help text when origin is Origin_Unknown to make sure GetHelpText() returns the same value as was passed to SetHelpText()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 23:18:29 +00:00
Benjamin Williams
dd17c9c6f1 maximize pane should ignore floating windows (#4066)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 22:46:21 +00:00
Robert Roebling
77d827708d Don't use native file/dir picker buttons when using an associated text control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 21:11:09 +00:00
Jaakko Salli
2197ec8012 Fixed old font-related code that caused problems on wxMAC, also replaced all accesses to m_font with GetFont()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 16:55:19 +00:00
Vadim Zeitlin
d11c9d86b6 made wxArrayString::assign(iterator, iterator) a template function; also fixed a bad bug in it: it didn't call clear(); mention existence of std::vector-like methods in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 12:09:13 +00:00
Stefan Csomor
e32090bacd renaming clickedAction callbacks to more generic controlAction, textctrl updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 07:17:46 +00:00
Stefan Csomor
c0f6cd1924 CGContextFlush is already called in SetNativeContext
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 07:16:32 +00:00
Kevin Ollivier
a2ee194587 Restore DrawRadioButton to the main wxRenderer API, create a method overload for the wxUniv API so that it can coexist with the wxUniv method of the same name.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 01:06:53 +00:00
Kevin Ollivier
5ec8cc4ddd Fix assertion when passing nil to setKeyEquivalent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 01:02:42 +00:00
Stefan Csomor
f28b6f0668 supporting graphics context on invisible views, icon refs are available under 64 bit cocoa as well, turn drawing on again, fixes #10490
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-10 07:00:03 +00:00
Paul Cornett
7669dce5d2 corrected build fix, new code does work with GTK+ < 2.10
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-10 03:43:30 +00:00
Vadim Zeitlin
e232b083f9 compilation fix for GTK+ < 2.10
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 21:17:02 +00:00
Kevin Ollivier
ceed527cc9 We'll get an unhandled exception if the view is hidden, fortunately, lockFocusIfCanDraw does the right thing here, or at least the best we can hope for.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 18:48:20 +00:00
Stefan Csomor
15fc716c57 paint event handling fixes and wxClientDC implementation for osx-cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 18:03:13 +00:00
Stefan Csomor
be136f0738 make sure no delegates/impl ptrs are still set during destruction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 17:59:37 +00:00
Vadim Zeitlin
99366b91eb don't use invalid item indices in wxLC_HRULES-drawing code (closes #10484)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 13:41:25 +00:00
Vadim Zeitlin
8d6e8e45fe fix MSVC warnings about possibly uninitialized variables; some reindentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 13:16:42 +00:00
Vadim Zeitlin
70ef48fee3 compilation fix for wxUSE_STL build after latest changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 13:12:53 +00:00
Robert Roebling
cbbf47f375 Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:54:53 +00:00
Stefan Csomor
094898332b drawing code now in common file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:54:23 +00:00
Stefan Csomor
f215225dcf replacing RgnHandle with HIShapeRef usage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:41:40 +00:00
Stefan Csomor
5398a2e050 common drawing code for osx-cocoa and osx-carbon, also since 10.5 HIShapeRef is in ApplicationServices, so this can be used for all osx-cocoa builds as native wxRegion implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:01:19 +00:00
Robert Roebling
abdb8c1806 Fixes #10454, Applied patch for wxDataViewCtrl should not change the selection when clicking the expander. Thanks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 08:48:14 +00:00
Kevin Ollivier
42c2b729e8 Remove delegates before releasing the native object, so that we don't have delegate methods getting called during destruction.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 05:22:45 +00:00
Kevin Ollivier
0600cf3ae9 Do a sanity check to make sure GetWindow() has a valid window, and assert if it doesn't. On OS X Cocoa, try to continue on in release mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 02:21:30 +00:00
Kevin Ollivier
f487501a2c Initial support for EVT_ERASE_BACKGROUND for OS X Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 02:20:03 +00:00
Francesco Montorsi
80255b7eaf fix memory leak; allocate the DC before SetFont() is called on the status bar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 00:53:58 +00:00
Francesco Montorsi
0cd159592e save the current status text for each pane inside wxStatusBarPane: native controls now store the (eventually) ellipsized version of the string; remove code for managing the status strings currently inside the [native|generic] control; add ellipsization support under wxMSW; now that all SetFieldsCount() implementation rrely on wxStatusBarBase::SetFieldsCount document how it behaves when adding new panes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 00:33:19 +00:00
Kevin Ollivier
ada083260a Stub out GetMatchingPair() for now to allow us to use the generic wxDVC on Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 23:21:22 +00:00