Commit Graph

46706 Commits

Author SHA1 Message Date
Vadim Zeitlin
4db4c0173b there is no need to call UpdateColumn() in the derived class UpdateColumnWidthToFit(), the base class does it already if the latter returns true
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 19:17:55 +00:00
Vadim Zeitlin
93e4e62b92 generate EVT_HEADER_RESIZING events from HDN_ITEMCHANGING, not from HDN_TRACK which we don't seem to be getting at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 18:57:03 +00:00
Vadim Zeitlin
4635abaca6 added wxHeaderCtrl::OnColumnCountChanging()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 17:15:43 +00:00
Jaakko Salli
f915d44b3f Added wxPropertyGridInterface::RemoveProperty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 17:11:35 +00:00
Vadim Zeitlin
059979d848 fix wxTextCtrl::Replace() under wxGTK; added unit test for it and describe its effect on the insertion point
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 16:46:25 +00:00
Jaakko Salli
18e046a7c5 SpinCtrl editor's 'value change by mouse motion' feature is made optional, enabled via 'MotionSpin' attribute. Also, for now only enabled on MSW (mouse capture etc. inconsistent on native wxGTK spinbutton?).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 16:14:55 +00:00
Vadim Zeitlin
e068310a5a added wxVector::resize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 13:45:04 +00:00
Vadim Zeitlin
de150f6af9 export wxSettableHeaderColumn from DLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 13:27:03 +00:00
Vadim Zeitlin
dcb6cbecc8 extract setters from wxHeaderColumnBase into a separate wxSettableHeaderColumn class as we don't always need to implement them in order to use this class; also renamed wxHeaderColumnBase to just wxHeaderColumn as we didn't have any wxHeaderColumn at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 13:05:48 +00:00
Francesco Montorsi
953aebc2d5 substitute (c) and (C) for copyright strings as documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 12:14:14 +00:00
Vadim Zeitlin
da678e6c39 don't use MSW-only DEFAULT_ITEM_WIDTH but the width returned by the best class GetBestSize() in wxHeaderCtrl::DoGetBestSize() implementation for empty header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 10:50:59 +00:00
Paul Cornett
648d2bb8f4 fix SetStyle tag removing, broken in r45186
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 05:52:22 +00:00
Vadim Zeitlin
6327cdd57c implement column reordering by dragging in the generic wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 00:49:34 +00:00
Vadim Zeitlin
893039c03f clarify wxFlexSizerGrowMode description
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 23:38:58 +00:00
Vadim Zeitlin
51810d4d7e deprecate wxStringEq
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 20:07:33 +00:00
Vadim Zeitlin
70405f7e3d undo accidental change of r57233
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 16:24:54 +00:00
Vadim Zeitlin
74d283aac4 properly implement Do[GS]etColumnsOrder() in the generic wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 16:24:08 +00:00
Francesco Montorsi
7dfb6dc4a9 use wxAboutBox() to make it evident a wxGrid refreshing bug under wxMSW (probably correlated to the window disabler used by the generic about box)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 16:20:07 +00:00
Vadim Zeitlin
20db5469a0 provide Do[GS]etColumnsOrder() stubs for the generic wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 16:09:58 +00:00
Vadim Zeitlin
565804f2b9 added EVT_HEADER_DRAGGING_CANCELLED event sent when either resizing or reordering operation is cancelled instead of having a special cancelled flag in normal END_RESIZE/REORDER events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 16:05:21 +00:00
Vadim Zeitlin
702f5349c6 implement column reordering support in wxMSW wxHeaderCtrl; use it in wxDataViewCtrl (and make difference between column indices and positions more clear in it)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 15:56:11 +00:00
Vadim Zeitlin
fbc25b5107 make first column non-draggable to test support for this flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 23:31:32 +00:00
Francesco Montorsi
7a4370a3f5 if we keep autobrief comments = YES, let's repeat the brief comment in the detailed documentation block as to avoid lots of empty blocks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 19:53:19 +00:00
Václav Slavík
5f4250ede0 fix for r56618: toolbar event handlers can toggle or disable tools again (patch #10241)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 18:35:48 +00:00
Vadim Zeitlin
659d0ee81d define I_IMAGENONE now that we use it, at least VC6 doesn't have it (thanks buildbot)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 14:45:23 +00:00
Vadim Zeitlin
1efd7bc655 document UpdateColumn()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 14:05:07 +00:00
Vadim Zeitlin
9298a1c2ac use a slightly less ugly way to conditionally suppress unused parameter warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 13:36:23 +00:00
Vadim Zeitlin
daa9c57738 call wxMDIClientWindow::CreateClient()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 13:35:08 +00:00
Vadim Zeitlin
fe8e8fb80d recreate the column instead of trying to update it in place, it's much simpler like this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 11:42:46 +00:00
Francesco Montorsi
0dd9646ea8 fix wxOS2 build where OpenGL headers are available but there's no wxGlCanvas implementation available
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 09:15:24 +00:00
Vadim Zeitlin
4de60a27a7 recreate the column instead of trying to update it in place, it's much simpler like this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-09 00:14:11 +00:00
Francesco Montorsi
558e89e74d add an event table; even if wxMenuItem is not a widget, it emits events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 23:22:41 +00:00
Francesco Montorsi
b476cde6d5 formatting change; added @c in front of wxEVT_ constants
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 23:21:58 +00:00
Francesco Montorsi
f03637a24d implement 'auto' mode for both wxMediaCtrl and OpenGL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 23:19:37 +00:00
Vadim Zeitlin
89c73d546a always update the column icon field when updating the item as it could be reset to nothing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 21:22:26 +00:00
Vadim Zeitlin
fba41cf33a skip the header click event to allow sorting (done in the default handler) to take place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 21:14:00 +00:00
Vadim Zeitlin
46234a0383 restore sorting functionality of the generic wxDataViewCtrl but implement it on top of wxHeaderCtrl support for it now; don't have const and non-const overloads of GetSortingColumn() in wxDVC returning different things (could this have really been intentional?); added GetSortingColumnIndex()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 21:13:29 +00:00
Francesco Montorsi
05867e397e don't give an error when OpenGL libraries aren't available; give a warning, put wxUSE_OPENGL=no and proceed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 19:33:08 +00:00
Francesco Montorsi
2f365fcbd5 added a overview_string_binary section describing what is wxString support with regard to binary data; removed traces of UCS2 wording; it was not completely correct (see wx-dev thread 'string changes doubts and docs')
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 19:25:07 +00:00
Francesco Montorsi
c74aaca2ec enable OpenGL and MediaCtrl components by default as discussed on wx-dev; remove some old checks against wxUSE_CONSTRAINTS - they're not needed anymore (part of r57199)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 19:07:38 +00:00
Vadim Zeitlin
0b2e14832a don't allow resizing non-resizeable columns in wxHeaderCtrl itself, no need to do it in wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 17:36:11 +00:00
Vadim Zeitlin
a45caa71bf honour column min width when resizing in wxHeaderCtrl, no need to do it in wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 17:33:03 +00:00
Jaakko Salli
f14ed73f1a Better EVT_MOTION handling in wxPGSpinButton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 17:20:11 +00:00
Francesco Montorsi
b0b81bc95b enable OpenGL and MediaCtrl components by default as discussed on wx-dev; remove some old checks against wxUSE_CONSTRAINTS - they're not needed anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:51:43 +00:00
Vadim Zeitlin
fed76ce1e7 test non-resizeable and resizeable but with min size set columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:50:26 +00:00
Vadim Zeitlin
396825dced rename wxHeaderCtrl DRAG events into RESIZE ones as we're also going to have column drag-reodering
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:38:56 +00:00
Vadim Zeitlin
afdf99e13a don't take EVT_HEADER_END_DRAG into account if it indicates the the drag was cancelled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:31:44 +00:00
Vadim Zeitlin
e36dcd10d0 add the possibility to cancel drag-resizing by pressing Esc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:30:09 +00:00
Vadim Zeitlin
0c9c5b4376 buildbot VC6 apparently can't compile variable declaration inside a switch statement even though my own VC6 SP5 can
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:24:39 +00:00
Francesco Montorsi
e723ee9439 add some missing semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:20:51 +00:00