aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-selection-model.h
Commit message (Collapse)AuthorAgeFilesLines
* From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com>Christopher James Lahey2001-02-171-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | 2001-02-17 Christopher James Lahey <clahey@ximian.com> From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com> * e-cell-checkbox.h, e-cell-date.h, e-cell-number.h, e-cell-size.h, e-cell-text.h, e-cell-toggle.h, e-cell-tree.h, e-cell.h, e-table-click-to-add.h, e-table-col-dnd.h, e-table-col.h, e-table-column-specification.h, e-table-config-field.h, e-table-config.h, e-table-defines.h, e-table-extras.h, e-table-field-chooser-item.h, e-table-group-container.h, e-table-group-leaf.h, e-table-group.h, e-table-header-item.h, e-table-header-utils.h, e-table-header.h, e-table-item.h, e-table-model.h, e-table-one.h, e-table-selection-model.h, e-table-simple.h, e-table-sort-info.h, e-table-sorted-variable.h, e-table-sorted.h, e-table-sorter.h, e-table-specification.h, e-table-state.h, e-table-subset-variable.h, e-table-subset.h, e-table-tooltip.h, e-table-tree.h, e-tree-model.h, e-tree-simple.h, e-tree-sorted-variable.h: Added GNOME_DECLS. svn path=/trunk/; revision=8265
* Make home and end keys move to the beginning and end of the row if cursorChristopher James Lahey2001-01-281-0/+1
| | | | | | | | | | | | | | | | | | | | 2001-01-27 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c (eti_event): Make home and end keys move to the beginning and end of the row if cursor mode is set to E_TABLE_CURSOR_SIMPLE. Otherwise have %ETableSelectionModel handle them. * e-table-selection-model.c, e-table-selection-model.h: Added a "cursor_mode" argument. (e_table_selection_model_key_press): Made home and end keys move the beginning and end of the table if cursor_mode is E_TABLE_CURSOR_MODE_LINE. * e-table.c: Set the cursor-mode argument of our %ETableSelectionModel. svn path=/trunk/; revision=7864
* Documented. Added a "cursor_activated" signal. Removed some unusedChristopher James Lahey2001-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | 2001-01-25 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h: Documented. Added a "cursor_activated" signal. Removed some unused functions (e_table_group_get_count and e_table_group_get_ecol). * e-table-selection-model.c, e-table-selection-model.h: Added a "cursor_activated" signal. Call it when the user changes the selection to match the cursor. * e-table.c, e-table.h: Added a "cursor_activated" signal. Fixed the e_table_compute_location function to take into account the scrolled position. svn path=/trunk/; revision=7808
* Made this conform to the new prototype for e_popup_menu_run.Christopher James Lahey2001-01-211-23/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-21 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c (ethi_header_context_menu): Made this conform to the new prototype for e_popup_menu_run. * e-table-item.c, e-table-item.h: Documented. (e_table_item_is_row_selected): Removed this function. (eti_draw): Changed this so that if the ETableItem is in cursor-mode="row", the cursor is draw all the way across the row. (eti_cursor_move_up, eti_cursor_move_down): Commented these out since they're no longer used. (_do_tooltip, eti_event): Commented out tooltips. (eti_event): Made it so that we call the key_press function in the %ETableSelectionModel on each key press. * e-table-selection-model.c, e-table-selection-model.h: Documented. Added a function e_table_selection_model_key_press that does whatever behavior is correct for the user having pressed the given key. Changed the behavior of this to better match windows (use selection-mode="browse"). * e-table-specification.c, e-table-specification.h: Added a draw_focus variable. * e-table.c: Decide whether to draw the focus based on the ETableSpecification. Removed the argument for setting whether to draw the focus. svn path=/trunk/; revision=7673
* Added selection_mode argument.Christopher James Lahey2001-01-121-0/+2
| | | | | | | | | | | | | | | | 2001-01-11 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c, e-table-selection-model.h: Added selection_mode argument. * e-table-specification.c, e-table-specification.h: Added a selection_mode field that is set based on the selection-mode attribute in the ETableSpecification element. * e-table.c (et_real_construct): Set the selection model's selection mode based on the ETableSpecification. svn path=/trunk/; revision=7427
* Select all elements of the etable.Jeffrey Stedfast2000-10-051-0/+3
| | | | | | | | | | | | | | | | 2000-10-04 Jeffrey Stedfast <fejj@helixcode.com> * e-table-selection-model.c (e_table_selection_model_select_all): Select all elements of the etable. (e_table_selection_model_invert_selection): Invert the current selection. * e-table.c (e_table_select_all): New convenience function to select all elements in an e-table. (e_table_invert_selection): New convenience function to invert the current selection in an e-table. svn path=/trunk/; revision=5719
* Moved files, fixed header files and paths - FedericoFederico Mena Quintero2000-09-201-3/+3
| | | | svn path=/trunk/; revision=5513
* Fixed e-table #includes so that it would compile.Chris Lahey2000-09-181-3/+3
| | | | svn path=/trunk/; revision=5482
* Added e_table_selection_model_selected_count.Christopher James Lahey2000-08-211-0/+1
| | | | | | | | | 2000-08-20 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Added e_table_selection_model_selected_count. svn path=/trunk/; revision=4893
* Make right click select if the current row is not selected.Christopher James Lahey2000-08-101-0/+4
| | | | | | | | | | 2000-08-09 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table-selection-model.c, e-table-selection-model.h: Make right click select if the current row is not selected. svn path=/trunk/; revision=4658
* Made selection ranges work even if the table is sorted.Christopher James Lahey2000-08-051-2/+4
| | | | | | | | | | | | | 2000-08-05 Christopher James Lahey <clahey@helixcode.com> * Makefile.am, e-table-selection-model.c, e-table-selection-model.h, e-table.c, e-table.h: Made selection ranges work even if the table is sorted. * e-table-sorter.c, e-table-sorter.h: New files to help with making selection ranges work even if sorted. svn path=/trunk/; revision=4546
* Made drag events calculate a row and column and signal that information.Christopher James Lahey2000-08-041-2/+1
| | | | | | | | | | | | | | 2000-08-04 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h: Made drag events calculate a row and column and signal that information. * e-table-selection-model.c, e-table-selection-model.h: Changed do_something to take a GdkModifierType. svn path=/trunk/; revision=4529
* Fixed a reference.Christopher James Lahey2000-07-271-0/+1
| | | | | | | | | | | | | | 2000-07-26 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c: Fixed a reference. * e-table-selection-model.c, e-table-selection-model.h: Added a clear function. * e-table.c, e-table.h: Made going from click to add to the main table and back work better. svn path=/trunk/; revision=4373
* Added "table_selection_model" argument. Removed foreach function andChristopher James Lahey2000-07-271-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-07-26 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-container.h, e-table-group-leaf.c, e-table-group-leaf.h: Added "table_selection_model" argument. Removed foreach function and selection notification. * e-table-group.c, e-table-group.h: Removed foreach function and selection notification. * e-table-header.c: Fixed header width calculation to include the last column. * e-table-item.c, e-table-item.h: Fixed this to use the new selection model. * e-table-scrolled.c, e-table-scrolled.h: Removed selection notification. * e-table-selection-model.c, e-table-selection-model.h: Finished notification signals and fixed a bunch of bit manipulations. Implemented do_something method. * e-table.c, e-table.h: Create an ETableSelectionModel and use it properly. svn path=/trunk/; revision=4363
* Replaced get_selection_list with foreach.Christopher James Lahey2000-07-261-2/+5
| | | | | | | | | | | 2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c, e-table-selection-model.h: Replaced get_selection_list with foreach. * e-table.h: Add a ETableSelectionModel. svn path=/trunk/; revision=4334
* Added e-table-selection-model.c and e-table-selection-model.h.Christopher James Lahey2000-07-261-7/+3
| | | | | | | | | | | | | | 2000-07-25 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-table-selection-model.c and e-table-selection-model.h. * e-table-selection-model.c: Added the get_selection_list and is_row_selected functions. Removed some unused code. * e-table-selection-model.h: Removed some unused code. svn path=/trunk/; revision=4331
* Added comments to the bit field code.Christopher James Lahey2000-07-261-1/+1
| | | | | | | | | | 2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Added comments to the bit field code. * e-table-selection-model.h: Made the selection data guint32s. svn path=/trunk/; revision=4329
* New files for doing a selection model. Not finished yet and thus not inChristopher James Lahey2000-07-261-0/+57
2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c, e-table-selection-model.h: New files for doing a selection model. Not finished yet and thus not in Makefile.am. * e-table.c, e-table.h: Renamed the new dnd signals so that they won't conflict with the widget signals. svn path=/trunk/; revision=4326