Vadim Zeitlin
|
5fa51d09eb
|
don't compute the columns/rows from the number of items if both were explicitly set by user
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-13 12:26:27 +00:00 |
|
Vadim Zeitlin
|
cd68daf58a
|
support column reordering using drag and drop when using wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-13 00:24:39 +00:00 |
|
Francesco Montorsi
|
baa4a96705
|
extend the range of glib versions for which the GTK+ standard options can be passed to wxWidgets program since the _GOptionGroup structure never changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-12 23:00:06 +00:00 |
|
Vadim Zeitlin
|
cd4f6f5f8f
|
fix compuation of dirty cells when the columns are reordered, this didn't work at all before
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-12 17:34:13 +00:00 |
|
Vadim Zeitlin
|
7bf5be6b56
|
fix best size caching
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-12 16:31:39 +00:00 |
|
Vadim Zeitlin
|
e5182b1bc5
|
really fix STL compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-12 15:06:15 +00:00 |
|
Vadim Zeitlin
|
1bb7462687
|
don't duplicate the column reordering in generic wxHeaderCtrl and wxGrid, extract it into a (public) helper function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-11 22:27:02 +00:00 |
|
Vadim Zeitlin
|
3169a8e837
|
forward SetColPos() to the header window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-11 22:16:38 +00:00 |
|
Vadim Zeitlin
|
38cd07c431
|
don't lose the scroll offset when the window is repositioned
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-11 22:06:55 +00:00 |
|
Vadim Zeitlin
|
3454f80227
|
in STL build wxVector elements need to be assignable as well as copy constructible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-11 21:41:33 +00:00 |
|
Vadim Zeitlin
|
ad805b9e0d
|
added wxGrid::UseNativeColHeader() (column reordering doesn't work yet); more wxGrid clean up: refactor Init/InitVars/Create
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-11 19:21:20 +00:00 |
|
Vadim Zeitlin
|
f458d4dd6b
|
add bigger margins around column title when autosizing column width based on it, it looks better like this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-11 19:20:15 +00:00 |
|
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
|
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
|
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 |
|
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 |
|
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
|
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
|
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 |
|
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
|
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 |
|
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 |
|
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 |
|
Vadim Zeitlin
|
10118a24c8
|
forgot to capture mouse during drag-resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 15:20:10 +00:00 |
|
Vadim Zeitlin
|
8fad69b019
|
fix another logical/physical coords confusion and update the comment to help with this in the future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 15:11:21 +00:00 |
|
Vadim Zeitlin
|
aef252d9da
|
implement column resizing events in wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 14:40:42 +00:00 |
|
Vadim Zeitlin
|
4bfd0ed552
|
don't access inexistent column in wxDataViewTreeCtrl::OnSize() (this bug also probably explains why this code doesn't actually work: size event is generated before we have any columns)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 13:25:09 +00:00 |
|
Francesco Montorsi
|
b5e9cbb92d
|
enable wheel-scrolling under wxGTK by allowing GTK+ default processing to happen (see wx-dev thread 'possible fix for wxGrid mouse wheel handling'); closes #1847
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 13:22:10 +00:00 |
|
Vadim Zeitlin
|
e5a1635371
|
added wxHeaderCtrlSimple::GetBestFittingWidth() for even more automatic column resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 12:28:41 +00:00 |
|
Vadim Zeitlin
|
3bfaa5a7e4
|
add wxEVT_COMMAND_HEADER_SEPARATOR_DCLICK and semi-automatic header resizing support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 12:15:17 +00:00 |
|
Vadim Zeitlin
|
04a33b5031
|
account for scroll offset correctly in the mouse event handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 11:37:42 +00:00 |
|
Vadim Zeitlin
|
6090efab94
|
update column highlight when mouse hovers over the control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 11:26:50 +00:00 |
|
Robert Roebling
|
7b2575e2c4
|
Ticket #10245, UTF-8 font face name of GTK 2 font dialog box
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 10:36:46 +00:00 |
|
Paul Cornett
|
3630713bd0
|
restore clearing of clipped mask, turns out it is needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-08 08:58:13 +00:00 |
|