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
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
Vadim Zeitlin
056d5a89ff
correct WXDLLIMPEXP symbols for the event constants
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 11:20:51 +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
Vadim Zeitlin
324dc1f2d8
correct the check added in r57175 to use dynamically computed numbers of rows/columns
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 08:39:13 +00:00
Vadim Zeitlin
0c02fc7765
undo accidental change to always use generic version in r57178
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 07:52:19 +00:00
Vadim Zeitlin
fa3d4aaf0f
implement click events in wxHeaderCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 00:57:53 +00:00
Vadim Zeitlin
ef52f19e6a
check index validity in AddGrowable{Row,Col}()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 23:33:46 +00:00
Vadim Zeitlin
9f68fe76c9
define SetAsSortKey/IsSortKey() in wxMac wxDataViewColumn
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 21:15:20 +00:00
Vadim Zeitlin
5829b3034b
no changes, just removed whitespace and perfectly useless "/* if */" and the incredible "// variable definition and initialization" and wx version checks unnecessary inside wx itself
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 21:05:30 +00:00
Paul Cornett
b63dc1c140
make sure timer events will trigger idle processing, #10251
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 18:23:28 +00:00
Vadim Zeitlin
140a119ad2
restore sorting functionality broken by r57161
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 16:16:21 +00:00
Vadim Zeitlin
0c5209a808
wxDataViewColumn doesn't need to have wxRTTI
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 16:07:54 +00:00
Vadim Zeitlin
835d0d55c1
compilation fix after r57161
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 16:06:34 +00:00
Vadim Zeitlin
3cbd3136f9
removed accidentally left in in r57161 pure virtual function marker
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 16:04:48 +00:00
Vadim Zeitlin
a7d403698f
made wxHeaderColumnBase dtor virtual to avoid gcc warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 16:03:50 +00:00
Vadim Zeitlin
40dc2ae656
update the generic wxHeaderCtrl implementation after r57161
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 16:00:10 +00:00
Vadim Zeitlin
a1d4adc5ce
use wxHeaderColumnSimple instead of wxHeaderColumn
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 15:58:59 +00:00
Vadim Zeitlin
e2bfe6731e
- Rewrite wxHeaderCtrl to be virtual-like: even if we don't need an infinite
...
number of columns in it, it turns out that getting column information from
the associated control is much easier than copying it into the control.
- Provide wxHeaderCtrlSimple derived class which can be used easily if
callback approach of wxHeaderCtrl is not needed.
- Because of wxHeaderCtrl virtualization, port-specific implementations of
wxHeaderColumn are not needed any more and were removed.
- Use wxHeaderCtrl in the generic wxDataViewCtrl: this means that column
events are broken right now in it as they haven't been implemented by
wxHeaderCtrl yet, this will be fixed a.s.a.p.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 14:47:55 +00:00
Vadim Zeitlin
bc0289bf5e
no changes, just remove trailing whitespace
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 14:19:18 +00:00
Francesco Montorsi
2859935bb1
document GetPickerCtrl() method and provide an example of how to use it to change the default 'Browse' label for wxFilePickerCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 13:50:12 +00:00
Francesco Montorsi
c933f8f85b
formatting change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 13:48:36 +00:00
Francesco Montorsi
61babb3c30
add a link to the page of the GTK+ manual stock items
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 13:48:06 +00:00
Vadim Zeitlin
4e021c31d0
enable autobrief comments
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 13:16:32 +00:00
Paul Cornett
3d5b482773
remove redundant clearing of clipped mask
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 05:51:42 +00:00
Paul Cornett
6226d1e97b
fix bitmap position with RTL and non-default scale
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 05:50:11 +00:00
Jaakko Salli
3d1706f8ee
Fixed incorrect background colour that wxStaticTexts in description box sometimes got
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-06 19:01:32 +00:00
Francesco Montorsi
3e0e389578
added a @todo about references to old wx functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-06 16:45:51 +00:00
Francesco Montorsi
727aa9062b
moved many things from wxString reference page to the wxString overview; updated some old/incoherent informations; added some DIA-drawn graphs showing UTF8/UCS2 different representation used by wxString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-06 16:24:52 +00:00
Vadim Zeitlin
e215c9959c
suppress (harmless) unused parameter warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 22:48:25 +00:00
Vadim Zeitlin
b63f9a3330
generic implementation of wxHeaderCtrl API so far
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 22:44:54 +00:00
Vadim Zeitlin
d8fc3398ac
move ScrollWindow() implementation to the base class and call private DoScrollHorz() from it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 22:43:37 +00:00
Vadim Zeitlin
a3e0efb6a4
override GetDefaultBorder() to not use border by default
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 22:34:29 +00:00
Vadim Zeitlin
f24f657913
emulate scrolling in wxMSW header control; document the need to call ScrollWindow() when using it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 22:11:27 +00:00
Vadim Zeitlin
a000920547
add Show/HideColumn() methods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 21:50:30 +00:00
Vadim Zeitlin
78fd3d12bc
add IsShown() accessor which is sometimes more convenient than IsHidden()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 21:49:34 +00:00
Francesco Montorsi
4a6665c6eb
document wxLogLevel, wxTraceMask antypes and wxLogLevelValues enum
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 21:06:09 +00:00