Paul Cornett
48200154f4
replace m_insertCallback with a virtual function, contrary to the old comments a virtual works just fine
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-29 15:46:48 +00:00
Paul Cornett
9ff9d30c0a
Hold a reference on m_widget for the life of the associated wxWindow object.
...
This allows removing some ugly hacks, and leaking of GtkWidgets by wxNotebook.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 16:19:23 +00:00
Vadim Zeitlin
7f6cbcead9
fix ANSI mode build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-14 14:35:28 +00:00
Robert Roebling
ef11ea71bb
Use wxList::DeleteContents() to delete columns
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 09:26:09 +00:00
Robert Roebling
19723525ce
Added InsertColumn( pos, col ), some reformating
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-21 08:47:21 +00:00
Robert Roebling
344ed1f386
Option for variable line heights (MSW and GTK+ sofar)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-16 12:37:32 +00:00
Robert Roebling
023eecb7e0
Fix crash when deleting node
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-12 20:24:08 +00:00
Robert Roebling
419a360703
Corrected/added support for column headers with icon and text
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-12 20:07:53 +00:00
Robert Roebling
c232dfe592
Add test for context menu, fixed mem leak, fixed focus problem when re-editing same item
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-11 10:40:58 +00:00
Robert Roebling
f2b7492a88
By default, align renderers as column header under GTK+, too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-08 10:39:57 +00:00
Robert Roebling
e39de7022c
Split wxDataViewVirtualModel fork wxDataViewIndexModel to make the code clearer and let wxDataViewIndexModel behave the same on all platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-07 09:27:21 +00:00
Robin Dunn
97e89e2931
use the same constant the other ports use instead of a magic number
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-06 02:38:17 +00:00
Robert Roebling
973dc9079c
Always interpret a column width of -1 as 80 until somthing better is found
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-05 18:22:37 +00:00
Robert Roebling
0bdfa38835
Support renderer::LeftClick() in generic code, removed unsupported RightClick(), corrected docs, added test to sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-05 12:09:15 +00:00
Vadim Zeitlin
bd7cef4a05
fix gcc warning about assigning -1 to a guint
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-28 01:45:36 +00:00
Vadim Zeitlin
25bc5c55d0
several g++ 4 warning fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 23:53:28 +00:00
Vadim Zeitlin
7857346a54
I got too tired of seeing these unused parameters warnings finally
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-14 15:24:09 +00:00
Robert Roebling
ad3867930c
Partial impl of auto resizing columns
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-14 11:04:57 +00:00
Paul Cornett
7dea20f60a
don't use the same parameter name twice, HP compiler actually checks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-10 06:00:45 +00:00
Paul Cornett
5e6f89276d
non-pch build fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-30 19:12:04 +00:00
Robert Roebling
f6f0ef852c
initial drag interface for wxDataViewCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-30 12:41:39 +00:00
Robert Roebling
85136e3bf5
wxDataViewCtrl DnD stubs, some reformating
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-29 13:46:18 +00:00
Robert Roebling
99c75ebc5e
Patch from Hartwig and me for implementing reorderable dataview columns. Works on OS X and GTK+, breaks OS X a litte
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-26 18:30:56 +00:00
Vadim Zeitlin
1bf629bd9a
fix for ANSI mode build (patch 1853001)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-19 16:50:06 +00:00
Robert Roebling
33ba5a0562
Added wxDataViewListIndexModel::Reset(), clarified and corrected wxDataViewModel::Cleared(), corrected sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-17 13:56:28 +00:00
Robert Roebling
74dea0decf
Implemented (for GTK+) and tested dataview_context_menu event
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-16 15:16:52 +00:00
Robert Roebling
1a07a730f0
Add support for wxDC_ROW_LINES for GTK+ and OS X
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-03 09:44:29 +00:00
Robert Roebling
c5c5395b60
compilation fix and fewer warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-01 12:03:09 +00:00
Robert Roebling
888dde65f4
DC reorganization
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 13:48:22 +00:00
Václav Slavík
937013e0fd
1. added wxEvtHandler::SafelyProcessEvent() and wxWindow::HandleWindowEvent() to correctly handle exceptions in even handlers in wxGTK
...
2. use HandleWindowEvent() everywhere as more obvious and convenient shortcut for GetEventHandler()->ProcessEvent(); also for consistency with wxGTK where it's required
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-29 17:00:58 +00:00
Robert Roebling
f52984b82e
Patch from Bo to show missing lines again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-27 20:57:57 +00:00
Václav Slavík
b9db5f3061
removed trailing whitespace
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-27 19:00:50 +00:00
Robert Roebling
2056dede02
Implement wxGTK internal short-cut for wxDataViewIndexListModel
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-18 23:54:57 +00:00
Robert Roebling
4f37154e98
Further wxDC changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-14 14:49:40 +00:00
Robert Roebling
4264606eed
Add wxDataViewTextRendererAttr, blind noop under wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-08 22:51:58 +00:00
Paul Cornett
c3c62822fd
build fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 16:13:06 +00:00
Paul Cornett
a76c2f3715
remove extraneous semicolons
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 07:27:12 +00:00
Robert Roebling
f69c03def9
Use a private GtkCellRendererText for rendering text in a wxDataViewCustomRenderer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 11:26:04 +00:00
Robert Roebling
71c6b45513
Correctly set item in wxDataViewRenderer::Activate()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 10:40:45 +00:00
Robert Roebling
52e750fc75
Added wxDataViewCustomRenderer::RenderText() for renderer simple text in platform dependent way, added wxDataViewSpinRenderer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 20:09:10 +00:00
Robert Roebling
736fe67c66
Added PrependColumn methods and short cuts. Added test for DeleteColumn to sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 20:56:38 +00:00
Robert Roebling
e94d0c1e66
Add wxDataViewTreeStore with sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-16 11:41:46 +00:00
Robert Roebling
a826202ecf
Implemented HasContainerColumns() for GTK+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-12 19:36:21 +00:00
Václav Slavík
26f119eb25
compilation fixes for x86_64; use wxLogDebug instead of wxPrintf
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-07 21:20:16 +00:00
Robert Roebling
6608fdab17
Document _ITEM_VALUE_CHANGED and implmement it equally as being sent from valueChanged and ItemChanged. Remove other _MODEL_XXX events.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-02 10:41:46 +00:00
Robert Roebling
d32332aaf6
Implement wxDataViewCtrl::GetSortingColumn() and related code for GTK+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-14 21:02:18 +00:00
Robert Roebling
dadc879e99
Implement and test _HEADER_RIGHT_CLICK event for GTK+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-14 20:36:19 +00:00
Robert Roebling
aed836f372
Implement and test wxDataViewCtrl::GetColumnPosition() for GTK+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-14 20:30:05 +00:00
Robert Roebling
d86c187031
API change: a single SELECTION_CHANGED not lots of SELECT and UNSELECT events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-14 08:59:07 +00:00
Robert Roebling
453091c269
Add wxDataViewCtrl::GetColumnPosition() stubs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-13 13:29:19 +00:00