Commit Graph

176 Commits

Author SHA1 Message Date
Robert Roebling
9d8fe14a97 Use type safe list for model notifiers, sample corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-25 18:46:01 +00:00
Robert Roebling
469d3e9b7b ItemDeleted now has (parent, item)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-25 18:18:51 +00:00
Robert Roebling
d8331a013b Send events from port-specific code, not common code, tested in samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-24 09:15:04 +00:00
Robert Roebling
c534e69669 added wxDataViewIndexListModel and sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-21 23:07:03 +00:00
Robert Roebling
ed903e4242 Renamed HasChildren() to IsContainer(), added GetParent() to wxDataViewModel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 09:01:52 +00:00
Robert Roebling
4508fcd20a First work at resort with header click
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 14:09:26 +00:00
Robert Roebling
ef4279890a First actual sorting for wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 13:23:57 +00:00
Robert Roebling
9d52aad39a change wxDataViewItem id to void*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 11:01:05 +00:00
Robert Roebling
1e08ad102a Made wxDataViewCtrl sample use a real, expandabl data tree
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-14 13:54:14 +00:00
Robert Roebling
d5025dc00f More patches from Bo, reduced wxDataViewModel, more sorting preps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 00:35:39 +00:00
Robert Roebling
3b6280beb2 Bo's patch for generic code, more sorting code, WIP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-12 12:58:28 +00:00
Robert Roebling
5732efaa91 Add compare function to wxDataViewModel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 12:32:59 +00:00
Robert Roebling
aba9bfd00a Bo'd patch to make wxDataViewCtrl compile again (4th attempt
to actually commit).



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:38:22 +00:00
Václav Slavík
b5dbe15d0b added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Robert Roebling
5debbdcf7b The dataview sample compiles now, but doesn't work yet...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-05 14:59:16 +00:00
Robert Roebling
e0062c047e New API for wxdataViewCtrl (doesn't run yet).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-05 00:13:28 +00:00
Vadim Zeitlin
b01204c942 fix unused parameters warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 23:57:25 +00:00
Robert Roebling
c0a66d9237 Added initial OS X implementation of the wxDataViewCtrl
in its current tabular form.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-06 23:40:24 +00:00
Robert Roebling
b9b8b59c0d Forgot to commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 21:03:26 +00:00
Robert Roebling
1821abd1ce Implemented dataview_model notification event to the ctrl
(and then the user).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-28 14:46:52 +00:00
Robert Roebling
63415a4212 Removed wxDataViewViewColumn since it is redundant.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-28 13:47:49 +00:00
Robert Roebling
f7ed8c899f Use child's listmodelnotifier's destructor (by overloading
it) to get informed about the destruction of the child
   model in a sorted model. Removed Freed() method used for
   that so far.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 18:00:14 +00:00
Robert Roebling
2fa73716ca Change SetValue( wxVariant &value ) to
SetValue( const wxVariant &value )
    (already documented)
   Delete in-place editing control through
    pending list, not in event handler.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 09:36:48 +00:00
Vadim Zeitlin
96c2a0dd74 fix unused parameters warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 01:40:13 +00:00
Robert Roebling
30715fa195 Fix inplace editing of custom controls for
GTK+ variant of wxDataViewCtrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 12:47:47 +00:00
Robert Roebling
c3112d560e Corrected/implemented sorting (by way of clicking on
on the header button) for the generic code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-18 12:31:35 +00:00
Robert Roebling
1e510b1e2d Implemented the same simple API for creating customized
in-place editing controls for GTK+ and the generic
   version and demonstrate its use in the sample using
   a wxSpinCtrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 12:08:10 +00:00
Robert Roebling
99d471a5db Rewritten in-place editing for generic wxDataViewCtrl
moving the code (partly) to the renderer and away
    from the wxDataViewCtrl class. Adding new in-plae
    editors (wxChoice) should be much simpler now.
  Also implemented using Validate() before committing
    a change to the data model.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 12:45:25 +00:00
Robert Roebling
9861f022c3 [ 1665996 ] Fixes/extensions to wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-23 07:57:46 +00:00
Robert Roebling
87f0efe2d7 Most of FM's wxDataViewCtrl patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-17 12:32:38 +00:00
Robert Roebling
b94db696c2 Make wxDataViewCtrl compile and work in ANSI mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 15:24:48 +00:00
Paul Cornett
e07c114691 correct DLL attributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-10 17:35:49 +00:00
Robert Roebling
1286b7ba6c Not everything has to be virtual.
Made short cuts for adding columns more useful.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-07 14:15:53 +00:00
Robert Roebling
31fb32e137 Implemended column header mouse clicks.
Ascending/descending sorting.
  Setting the little arrow indicator for ascending
    and desceding sorting.
  Generic stubs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-06 09:50:45 +00:00
Robert Roebling
47cef10f28 Added sort order and alignement for column headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-05 19:35:23 +00:00
Robert Roebling
07a84e7bbb Add support for bitmaps in headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-05 19:06:21 +00:00
Robert Roebling
f828871d12 Add row activated event.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-04 13:23:20 +00:00
Robin Dunn
2f799ae8d2 DLL build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-03 21:51:05 +00:00
Robert Roebling
fc211fe5ce More selection work in GTK+ version.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-03 17:28:19 +00:00
Robert Roebling
baa9ebc473 Renamed wxDataViewCell to wxDataViewRenderer since the
class just renders the cell, it doesn't represent one.
    Maybe wxDataViewCellRenderer would be best...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-03 15:24:03 +00:00
Robert Roebling
eb7f97f8d6 Added event skeletons, defines, event ids..
Implemented wxEVT_DATAVIEW_ROW_SELECTED.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-03 13:23:31 +00:00
Robert Roebling
6ff7eee7ea Added selection API.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-03 11:39:08 +00:00
Robert Roebling
0a71f9e92f Replaces size_t with unsigned int in wxDataViewCtrl API.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-03 11:09:06 +00:00
Robert Roebling
008b5a66f7 Removed some irritating flags.
Implmented the remaining ones under GTK.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-01 21:09:56 +00:00
Robert Roebling
2586d4a121 Several wxBitmapDataCell changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-30 21:21:19 +00:00
Robert Roebling
4627af27d4 Implement most of AppendRow(), PrependRow(), InsertRow(),
DeleteRow() for GTK+ version and sorted model.
  Added tests for these.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 21:11:14 +00:00
Vadim Zeitlin
d3c7fc996a mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Robin Dunn
f460c29d59 Use correct DLL import/export specifier for multi-lib builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 01:22:06 +00:00
Włodzimierz Skiba
07b6378fcb Be nice to eVC++ build process and don't include not existing files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-27 11:33:56 +00:00
Robert Roebling
c21f7aa162 Added style flags for selection mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-19 08:31:35 +00:00
Robert Roebling
533544f2ea Added some column width contrl code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 23:14:36 +00:00
Robert Roebling
0f0297d8f3 Remove CVS clash in RCS-ID
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-28 08:14:50 +00:00
Włodzimierz Skiba
f554a14b89 Source and warning cleaning after enabling wxUSE_DATAVIEWCTRL in wxMSW builds.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-27 14:01:33 +00:00
Robert Roebling
0fdc2321bc Implement basic MVC logic (change an item in one
view and all views update themselves) and made
   wxDataViewToggleCell react to mouse clicks as a
   test for that (generic code).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-23 11:44:57 +00:00
Robert Roebling
4b3feaa75d Added windowing and scrolling logic to generic
implementation of wxDataViewCtrl (it runs now).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 12:30:06 +00:00
Robert Roebling
4ed7af081e Added (yet unfunctional) skeleton files fir
generic implementation of wxDataViewCtrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-20 16:37:24 +00:00
Robert Roebling
3f3af7e7f8 Change wxVariant GetValue() to GetValue( wxVariant & ).
More cool sorting code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-02 10:46:01 +00:00
Robert Roebling
4eccd3a10f Further sorting work using the sorting data model.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-01 10:49:06 +00:00
Robert Roebling
8f850e2831 Moved code around preparing the sorted model.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-28 15:04:25 +00:00
Robert Roebling
8981608c69 Added wxDataViewSortedListModel, which doesn't work
yet, but you get the idea..


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-28 10:47:28 +00:00
Robert Roebling
b5d777c78e Added generic MVC hookup code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-27 13:09:41 +00:00
Robert Roebling
4d496ecbc4 Some restructuring, beginning of wxDataViewDateCell.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-26 15:48:42 +00:00
Robert Roebling
553f7d8f56 Makes custom cell activatable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-26 01:51:28 +00:00
Robert Roebling
ad63bf413b Added wxDataViewProgressCell with native code
for GTK 2.6 and fallbacks otherwise.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-25 13:13:05 +00:00
Robert Roebling
e152afc3d4 Added wxDataViewCustomCell.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-24 18:19:55 +00:00
Robert Roebling
605c2c4ac6 added wxDataViewToggleCell
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-24 13:19:23 +00:00
Robert Roebling
a7f61f762d wxDataViewCtrl now with editable text and multiple
views for the same data model (in the sample).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-23 13:34:15 +00:00
Robert Roebling
6090c7d328 Return variant type of a cell.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-23 03:09:27 +00:00
Robert Roebling
6842a71a5b added wxDataViewCell
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-23 02:04:46 +00:00
Robert Roebling
fa28826dd3 Added wxDataViewColumn
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-22 00:19:04 +00:00
Robert Roebling
6e2e590f2a Add notifier class.
Only use listmodel for now, treemodel later.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-21 20:52:05 +00:00
Robert Roebling
260b9be703 More compilation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-21 19:55:58 +00:00
Robert Roebling
64ffb88849 Compilation fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-21 18:12:44 +00:00
Robert Roebling
239eaa4154 wxDataViewCtrl WIP.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-21 17:35:19 +00:00
Mart Raudsepp
63ec432bd7 Move constant strings to .rodata/.data.rel.ro ELF segment from .data by making them really const.
If any more exotic toolchain decides to not export these strings into the core library anymore, let me know. Try to
compile the notebook sample, for example.
TODO: Move strings not meant for wxCore out of wxCore to the appropriate library.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-16 14:59:55 +00:00
Robert Roebling
bcd846ea71 Added empty wxDataViewCtrl header and control name string.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-08 21:50:02 +00:00