Jaakko Salli
cd4b15e523
Do not process editor control events when propgrid event is currently being processed. Doing otherwise could lead to a crash if application is doing something time-consuming (such as displaying a message box) in the event handler.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 14:39:03 +00:00
Jaakko Salli
644b283d6a
Store property name and value in wxPropertyGridEvent, keep track of live event instances, and clear property/grid information in them in wxPropertyGrid dtor. This allows application to relay events for later processing without fear of losing most relevant information within.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 14:35:02 +00:00
Jaakko Salli
9867e3e498
wxFontProperty: Added support for wxFONTFAMILY_TELETYPE and wxFONTFAMILY_UNKNOWN, moved Family child-property to the back.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 11:44:25 +00:00
Julian Smart
906cb3f119
Applied modified #10655 (Added Cookie (receive) support to wxHTTP)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 19:47:23 +00:00
Stefan Csomor
b0a9bfc8b8
adding ProcessPendingEvents as ProcessIdle doesn't call it anymore, closes #11132
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 18:50:33 +00:00
Vadim Zeitlin
0b2a23c48d
No real changes, just small cleanup in wxMac wxDVC.
...
Use wxDC{Pen,Brush}Changer classes instead of setting/restoring pen and brush
manually.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:44 +00:00
Vadim Zeitlin
6f0740beb5
Use FWD version of DLL export macro in forward declaration.
...
Forward declarations must use WXDLLIMPEXP_FWD_XXX and not WXDLLIMPEXP_XXX to
avoid g++ warnings about "type attributes are honored only at type definition".
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:37 +00:00
Vadim Zeitlin
ddb44248a6
Fixed wxDataViewCtrl::Set{Foreground,Background}Colour() to work under GTK too.
...
Implement DoApplyWidgetStyle() in wxGTK version of wxDataViewCtrl to propagate
the main window style to the GtkTreeView which is what the user mostly sees.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:30 +00:00
Vadim Zeitlin
bb58fa37cd
Don't hard code white background colour in generic wxDataViewCtrl.
...
wxDataViewMainWindow::OnPaint() always used the white brush to erase the
control background which was wrong, change it to use the background colour of
the control.
Also add tests for setting wxDataViewCtrl foreground and background colours to
the dataview sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:19 +00:00
Vadim Zeitlin
2fa90e33ea
Use default composite controls attributes for wxDataViewCtrl.
...
wxDataViewCtrl should use the same colours/fonts as the native list and tree
controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:12 +00:00
Vadim Zeitlin
0534259ab8
Move wxControl::GetCompositeControlsDefaultAttributes() from MSW to common.
...
This function is not MSW-specific and should be used in generic implementation
of controls such as wxListCtrl, wxTreeCtrl and wxDataViewCtrl. Even if it is
needed by MSW only now, move it to the common code to avoid #ifdefs in these
controls code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:06 +00:00
Vadim Zeitlin
7fc1b0c7ca
Fix harmless warning about -1 to WPARAM conversion.
...
This was introduced by the last change to this file in r62058.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:42:56 +00:00
Stefan Csomor
715824d58d
reducing key event handling complexity
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:39:33 +00:00
Vadim Zeitlin
1d8cdcf2e3
Don't use invalid pen in wxDCImpl::DoGradientFillConcentric().
...
The old code stored the original colour of m_pen before changing it and
restored it on exit but this didn't work if the pen was invalid to start with.
Just store the pen itself instead, this works in any case.
Closes #11235 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:41 +00:00
Vadim Zeitlin
bbb8a1aad6
Use checked bitmap for menu items under Vista.
...
The normal (unchecked) bitmap was always used for the menu items under Vista,
fix this and do use the checked bitmap if needed.
Closes #11244 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:32 +00:00
Vadim Zeitlin
bbb0ff36db
Fix another off-by-1 bug in wxMBConv::ToWChar().
...
When converting a fixed number of characters we need to take any NULs inside
the buffer being converted into account for our return value -- but this
wasn't done and converting 2 characters 'x' and '\0' returned only 1, even if
the length 2 was explicitly specified.
Fix this bug and add a unit test checking for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:27 +00:00
Vadim Zeitlin
4bc9acbe16
No changes, just convert file to UTF-8.
...
All files in svn are supposed to use UTF-8 now so convert this one to UTF-8
too before committing more changes to it (which would be otherwise rejected by
pre-commit hook).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:20 +00:00
Vadim Zeitlin
3396739da1
Refactor wxStyledTextCtrl to share common file save/load code.
...
Keep the code for saving and loading text contents from files in a single
place instead of doing it differently in wxTextCtrl and wxStyledTextCtrl.
This required adding Set/GetValue() methods to wxTextAreaBase just so that its
DoLoad/SaveFile() could use them, even if they are the same as wxTextEntryBase
methods and are overridden in wxTextCtrlBase to be implemented in terms of the
latter.
Notice that wxRichTextCtrl might need to be refactored to use this code too in
the future.
Also notice that this reverts the change of r62081 which replaced SetValue()
with ChangeValue() in DoLoadFile() as wxTextAreaBase only has SetValue() and
it's not worth adding ChangeValue() to it too just to preserve this recent
change in behaviour.
Closes #10715 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:26:16 +00:00
Vadim Zeitlin
65702d2fe9
Compilation fix for non-MSW: don't use ProcessCommand().
...
wxControl::ProcessCommand() is MSW-only, use HandleWindowEvent() to fix
compilation under Unix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:26:03 +00:00
Stefan Csomor
ddbc8ac9ca
cleaning up key handling, closes #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 10:39:26 +00:00
Jaakko Salli
a1d5aa9361
Have wxComboCtrl generate wxEVT_COMMAND_COMBOBOX_DROPDOWN and wxEVT_COMMAND_COMBOBOX_CLOSEUP events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 09:15:29 +00:00
Stefan Csomor
f4c24d3da4
using native key handling, closes #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 18:53:38 +00:00
Stefan Csomor
81eaa4dab2
using common notification mechanism for selection changes (key or mouse), see #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 16:57:08 +00:00
Julian Smart
b80fdc0299
Raise the scrollbars on reparenting (part of patch #9076 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 16:15:04 +00:00
Julian Smart
b78ffab030
Applied #8804 ([wxMac] wxSpinCtrl behaviour)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 15:25:25 +00:00
Julian Smart
7291222828
Applied #8697 (Improve error detection for MacFindFont )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 13:14:31 +00:00
Julian Smart
476a319a8f
Applied #11238 : Wrong text positioning if fonts with different Ascent/Descent ratio are on the same line
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 11:14:11 +00:00
Julian Smart
58d4ed8a11
Applied #10007 : SetWindowGroupParent hangs in Mac Carbon dialog.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 10:11:24 +00:00
Julian Smart
1508fcaccd
Applied #10753 : WarpPointer() for Mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 09:57:41 +00:00
Julian Smart
51c72a7b56
Applied #9011 : Native wxListCtrl::HitTest on OS X
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 09:02:04 +00:00
Julian Smart
8b558f1228
Applied #9520 : Fix to allow repeated use of wxFileDialog object
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:51:50 +00:00
Julian Smart
a74d082e8c
Applied #10858 : wxListCtrl on Mac does not route Freeze/Thaw/Update to m_genericImpl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:45:35 +00:00
Julian Smart
059d234d41
Removed comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:31:01 +00:00
Julian Smart
e8fdf3647c
Applied #9481 : submenus for help menu
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:29:59 +00:00
Julian Smart
240071a415
Added missing const
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 20:47:34 +00:00
Julian Smart
02a40b8af9
Applied #10917 : wxGTK wxFileDialog::SetDirectory and ::SetFilename problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 20:36:46 +00:00
Julian Smart
198c264dbc
Applied part of #10034 : wxImage::ConvertToDisabled()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 20:05:33 +00:00
Julian Smart
cc3d673a84
wxDateTime timezone functions now dynamic (no caching).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 19:13:29 +00:00
Julian Smart
5e3566ffaf
Applied #9668 : made wxGetTimeZone() dynamic
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 19:12:31 +00:00
Julian Smart
5b806097fd
Applied #11106 : wxGenericDirCtrl can get into a state where it will no longer expand
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 17:04:44 +00:00
Julian Smart
c25bb73116
Applied #11005 : use purple instead of black as default wxHyperlinkCtrl::m_visitedColour
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 16:46:41 +00:00
Julian Smart
65b9ad2b55
Applied #10892 : Remove wxDocManager instance check
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 16:25:45 +00:00
Julian Smart
f37f49b652
Applied #10811 : Image in docview sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 16:04:06 +00:00
Julian Smart
abee7f4704
Applied #10829 : docview sample: enable canvas in --single mode
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 15:48:00 +00:00
Julian Smart
4a00d37c96
Applied #11236 : Event from thread not processed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 15:42:18 +00:00
Julian Smart
b37e592bd7
Applied #9789 : missing wxBORDER_THEME style in XRC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 15:36:43 +00:00
Julian Smart
b14cd77b2a
wxTextCtrl::LoadFile no longer sends a text event, to correct problems with spurious modification of documents.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 14:35:39 +00:00
Julian Smart
8410881294
Applied #10828 (Hourglass in wxDocManager::OnPreview)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:54:31 +00:00
Julian Smart
250ab35a3b
Applied: wxDocument: Adding an asterix to the title
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:49:01 +00:00
Julian Smart
e558f9533e
Applied better/Win98-proof method of getting edit window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:33:41 +00:00