aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
Commit message (Collapse)AuthorAgeFilesLines
* Removed e_table_col_get_arrow and e_table_col_set_arrow.Christopher James Lahey2000-11-262-28/+0
| | | | | | | | | 2000-11-25 Christopher James Lahey <clahey@helixcode.com> * e-table-col.c: Removed e_table_col_get_arrow and e_table_col_set_arrow. svn path=/trunk/; revision=6669
* Documented.Miguel de Icaza2000-11-256-29/+212
| | | | | | | | | | | | | | | | | | 2000-11-25 Miguel de Icaza <miguel@helixcode.com> * e-cell.c: Documented. 2000-11-24 Miguel de Icaza <miguel@helixcode.com> * e-cell-toggle.c (etog_queue_redraw): Documented. * e-cell-text.c: Removed list of unused arguments. Add docs. * e-cell-checkbox.c (e_cell_checkbox_new): Add docs. * e-table-simple.c (e_table_simple_new): Add docs. svn path=/trunk/; revision=6665
* inline documentation added.Miguel de Icaza2000-11-253-152/+430
| | | | | | | | | | | | 2000-11-24 Miguel de Icaza <miguel@helixcode.com> * e-table-header.c: inline documentation added. * e-table-col.c Added inline documentation. * e-table-model.c: Added some inline documentation. svn path=/trunk/; revision=6664
* Save the children - FedericoFederico Mena Quintero2000-11-234-11/+19
| | | | svn path=/trunk/; revision=6652
* Updated version number.Christopher James Lahey2000-11-142-15/+24
| | | | | | | | | | | | | 2000-11-13 Christopher James Lahey <clahey@helixcode.com> * configure.in: Updated version number. * gal/e-table/e-tree-model.c, gal/e-table/e-tree-model.h: Added freeze and thaw functions. * gal/menus/gal-define-views-dialog.c: Fixed some warnings. svn path=/trunk/; revision=6563
* Changed this to match the new EPopupMenu structre.Christopher James Lahey2000-11-071-16/+16
| | | | | | | | | 2000-11-06 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Changed this to match the new EPopupMenu structre. svn path=/trunk/; revision=6467
* Made it compile again.Chris Lahey2000-11-041-2/+2
| | | | svn path=/trunk/; revision=6376
* Turned on proper handling of insert and delete.Christopher James Lahey2000-11-041-1/+1
| | | | | | | | | 2000-11-03 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Turned on proper handling of insert and delete. svn path=/trunk/; revision=6375
* Since we insert at the parent->child position, we need to account forNot Zed2000-11-031-39/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-03 Not Zed <NotZed@HelixCode.com> * e-tree-model.c (e_tree_model_node_insert): Since we insert at the parent->child position, we need to account for expanded nodes above this node to properly calculate the absolute row position of the node. (e_tree_model_node_insert): If we're inserting at the end of this node, then we just use the position directly. (e_tree_model_node_remove): Completely rewritten. Now we delete all nodes at once, which should be >> faster, unfortunately still have to signal each removal, which is >> SLOW :( Its still about 2-3x faster than it was (for 25K nodes). (child_free): Free all data/subnodes of a given path, no unlinking. (e_tree_model_node_remove): If we are removing a lot of nodes [>1000 or >1/4 total nodes], then use model_changed, rather then removing each node. Yay. Now its about 500x faster than it was, for 25K nodes. (etree_pre_change): Signal handler, so we can find out when we are in a pre-change state. (etree_changed): Likewise to find when we have finished. (e_tree_model_construct): Link to the model*changed signals so we know when we are in pre/changed state. (e_tree_model_node_insert): Only perform a row_inserted if not in pre_change state. Another significant speed improvement (200-500%) on big trees. (e_tree_model_node_remove): Do not emit row_deleted (or model_changed), if we are in the pre_change state. (add_visible_descendents_to_array): Likewise for row_inserted. (e_tree_model_node_sort): And here too, for consistency. svn path=/trunk/; revision=6363
* Updated these unused glade files to better match the versions in the code.Christopher James Lahey2000-11-035-100/+130
| | | | | | | | | | | | | | 2000-11-02 Christopher James Lahey <clahey@helixcode.com> * e-table-config.glade, e-table-config.glade.h: Updated these unused glade files to better match the versions in the code. * e-table.c, e-table.h: Added e_table_selected_count and "selection_change" signal. * e-tree-model.c: Fixed an out of order svn path=/trunk/; revision=6354
* If we are inserting into the root level, we dont have to search the wholeNot Zed2000-10-271-1/+6
| | | | | | | | | | 2000-10-27 Not Zed <NotZed@HelixCode.com> * e-tree-model.c (e_tree_model_node_insert): If we are inserting into the root level, we dont have to search the whole array for a parent node we'll never find. svn path=/trunk/; revision=6218
* remove the save_id here, so we don't save state for nodes that no longerChris Toshok2000-10-261-9/+6
| | | | | | | | | | | | | 2000-10-25 Chris Toshok <toshok@helixcode.com> * e-tree-model.c (e_tree_model_node_remove): remove the save_id here, so we don't save state for nodes that no longer exist. (etree_destroy): remove the foreach, since all the save_id's should have been removed by now (don't destroy a tree without destroying the root node.) also, make sure to call g_hash_table_destroy. svn path=/trunk/; revision=6202
* Made the column on the right click and click signals be the model columnChristopher James Lahey2000-10-261-2/+2
| | | | | | | | | 2000-10-25 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Made the column on the right click and click signals be the model column instead of the view column. svn path=/trunk/; revision=6172
* Add "click" to the list of etable signals we proxy.Dan Winship2000-10-262-0/+23
| | | | | | | * e-table-scrolled.c: Add "click" to the list of etable signals we proxy. svn path=/trunk/; revision=6170
* make ETreeModel opaque, and switch from using g_new0 and g_free forChris Toshok2000-10-252-97/+135
| | | | | | | | | | | | | | | 2000-10-24 Chris Toshok <toshok@helixcode.com> * e-tree-model.c: make ETreeModel opaque, and switch from using g_new0 and g_free for ETreePath's to using g_mem_chunk routines. (e_tree_model_node_remove): free the path's save_id. * (e_tree_model_set_expanded_default): add method to add default expanded status for parent nodes. (etree_set_expanded_recurse): make this more efficient. e-tree-model.h: make ETreeModel opaque. add prototype for e_tree_model_set_expanded_default. svn path=/trunk/; revision=6156
* Destroy the tooltip timeout on object destruction.Christopher James Lahey2000-10-241-1/+8
| | | | | | | | | 2000-10-23 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Destroy the tooltip timeout on object destruction. svn path=/trunk/; revision=6137
* Made it so that it doesn't recalculate all the rows if a row is changed,Christopher James Lahey2000-10-222-4/+36
| | | | | | | | | | | 2000-10-22 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Made it so that it doesn't recalculate all the rows if a row is changed, inserted or deleted. * e-table-subset.c: Added debugging code (turned off). svn path=/trunk/; revision=6102
* Made it so that rows inserted with their children nodes already in theChristopher James Lahey2000-10-221-1/+3
| | | | | | | | | | 2000-10-21 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Made it so that rows inserted with their children nodes already in the tree get placed before their children nodes instead of after. svn path=/trunk/; revision=6101
* Added e_table_set_state_object which loads the state from the givenChristopher James Lahey2000-10-222-4/+6
| | | | | | | | | 2000-10-20 Christopher James Lahey <clahey@helixcode.com> * e-table.c, e-table.h: Added e_table_set_state_object which loads the state from the given ETableState object. svn path=/trunk/; revision=6099
* remove timeouts on destroy so they don't try to write to freed dataDan Winship2000-10-201-0/+3
| | | | svn path=/trunk/; revision=6032
* Switched to saving the version as a double instead of a string.Christopher James Lahey2000-10-191-1/+1
| | | | | | | | | 2000-10-18 Christopher James Lahey <clahey@helixcode.com> * e-table-state.c: Switched to saving the version as a double instead of a string. svn path=/trunk/; revision=6019
* Fixed ETableFieldChooser row heights a bit.Christopher James Lahey2000-10-194-30/+88
| | | | | | | | | | | | | | | 2000-10-18 Christopher James Lahey <clahey@helixcode.com> * e-table-field-chooser-item.c, e-table-field-chooser-item.h: Fixed ETableFieldChooser row heights a bit. * e-table-header-item.c: Formatting clean up. * e-table-state.c: Added saving of the version of the ETableState. This way, if we change the format of an ETableState, we can detect old version numbers. svn path=/trunk/; revision=6016
* Make text a different color if !(flags & E_CELL_FOCUSED).Christopher James Lahey2000-10-194-2/+17
| | | | | | | | | | | | | | | | | 2000-10-18 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Make text a different color if !(flags & E_CELL_FOCUSED). * e-cell.h: Added E_CELL_FOCUSED to flags. * e-table-item.c: Changed the background color of selected cells if the widget is focused. Send E_CELL_FOCUSED to flags if the widget is focused. * e-table.c: Repaint the window if focus changes. svn path=/trunk/; revision=6010
* Sped up signal propogation.Christopher James Lahey2000-10-192-2/+52
| | | | | | | | 2000-10-18 Christopher James Lahey <clahey@helixcode.com> * e-table-subset.c, e-table-subset.h: Sped up signal propogation. svn path=/trunk/; revision=6006
* Fixed the color of the background rectangle. Made the rectangle start atChristopher James Lahey2000-10-191-0/+16
| | | | | | | | | | 2000-10-18 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Fixed the color of the background rectangle. Made the rectangle start at the bottom of the table so that the row lines are still there. svn path=/trunk/; revision=5993
* Make background color of ETable match the background color of item rows.Christopher James Lahey2000-10-181-1/+1
| | | | | | | | | 2000-10-18 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Make background color of ETable match the background color of item rows. svn path=/trunk/; revision=5989
* Removed an unnecessary glade include file.Christopher James Lahey2000-10-184-1/+29
| | | | | | | | | | | | | 2000-10-18 Christopher James Lahey <clahey@helixcode.com> * e-table-field-chooser-dialog.h: Removed an unnecessary glade include file. * e-table-field-chooser.c: Make sure that glade is initialized. * e-table.c, e-table.h: Added a white background to the ETable. svn path=/trunk/; revision=5988
* Moved the glade file directories.Christopher James Lahey2000-10-181-1/+2
| | | | | | | | | | 2000-10-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Moved the glade file directories. * e-table-header-item.c: Removed an unused variable. svn path=/trunk/; revision=5982
* Reworked some of the height stuff?Christopher James Lahey2000-10-171-14/+12
| | | | | | | | 2000-10-16 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Reworked some of the height stuff? svn path=/trunk/; revision=5943
* Choose a better size for the e-table-header-itemIain Holmes2000-10-171-17/+53
| | | | svn path=/trunk/; revision=5942
* get the next child before traversing/calling func.Chris Toshok2000-10-161-2/+5
| | | | | | | | | 2000-10-15 Chris Toshok <toshok@helixcode.com> * e-tree-model.c (e_tree_model_node_traverse): get the next child before traversing/calling func. svn path=/trunk/; revision=5937
* get rid of ENode type, as everything in it is now in ETreePath, and addChris Toshok2000-10-162-139/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-15 Chris Toshok <toshok@helixcode.com> * e-tree-model.c: get rid of ENode type, as everything in it is now in ETreePath, and add parent/sibling/child pointers to ETreePath. everywhere where GNode/ENode were used, we just use ETreePath now. (e_tree_path_depth): new function. (e_tree_path_insert): new function. (e_tree_path_unlink): new function. (e_tree_model_node_traverse): new function. (etree_get_first_child): new virtual function impl. (etree_get_last_child): same. (e_tree_model_class_init): fill in function pointers for get_first_child/get_last_child. (e_tree_model_node_get_first_child): new function. (e_tree_model_node_get_last_child): new function. (e_tree_model_node_depth): g_node_depth -> e_tree_path_depth. (e_tree_model_node_insert): modify to use ETreePath and new e_tree_path functions. Prepends and appends are now both constant time. (child_remove): modify for e_tree_model_node_traverse. (e_tree_model_node_remove): same, and use e_tree_path functions. (e_tree_model_node_insert_before): add a loop here to figure out the position, since it's the only place we care about the child position. (e_tree_model_node_sort): rework to accomodate new e_tree_path functions, and put the e_tree_model_node_set_expanded calls in a separate loop after all the children have been added. * e-tree-model.h: add prototypes and virtual functions for more tree traversal operations (get_first_child, get_last_child), as well as a new function to traverse depth first the descendents of a node (e_tree_model_node_traverse), much like g_node_traverse (G_IN_ORDER). Also, ETreePath is an opaque type now, and is not a GNode. svn path=/trunk/; revision=5932
* Made it so that ETable won't use a state with 0 columns.Christopher James Lahey2000-10-161-2/+14
| | | | | | | | | 2000-10-15 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Made it so that ETable won't use a state with 0 columns. svn path=/trunk/; revision=5931
* Fixed these to use the new ascending attribute as a boolean instead of anChristopher James Lahey2000-10-145-11/+11
| | | | | | | | | | | | | 2000-10-13 Christopher James Lahey <clahey@helixcode.com> * e-table-example-1.c, e-table-example-2.c, e-table-size-test.c, test-table.c: Fixed these to use the new ascending attribute as a boolean instead of an int. * e-table-sort-info.c: Changed the ascending attribute to a boolean ("true"/"false") instead of an int (1/0). svn path=/trunk/; revision=5903
* Added e-table-config-field.lo.Christopher James Lahey2000-10-1411-228/+704
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-13 Christopher James Lahey <clahey@helixcode.com> * gal/Makefile.am: Added e-table-config-field.lo. * tests/test-tree-2.c: Changed this to use cursor-mode in the xml instead of the no longer existing gtk argument. From gal/e-table/ChangeLog: 2000-10-13 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-table-config-field.c and e-table-config-field.h. * e-table-column-specification.c: Cleaned this up a bit. Made it leak less memory. * e-table-config-field.c, e-table-config-field.h: New files. This is the configuration widgets for sorting or grouping. * e-table-config.c, e-table-config.h: Nuked these and replaced them with a widget that handles all the ETable configuration. * e-table-config.glade, e-table-config.glade.h: Updated this a bit to match what's actually being used better. This isn't used in actual code. * e-table-header-item.c, e-table-header-item.h: Added a pointer to the table in the header item structure so that we can launch the configuration from the header item right click menu. Made the header item launch the ETable configuration dialog. * e-table.c, e-table.h: Keep the spec given to us around. Added a get_state_object function which returns an ETableState *. Set the "table" argument on the header item. svn path=/trunk/; revision=5901
* NULL is not a valid argument to `xmlNewDoc'. Was this code everEttore Perazzoli2000-10-141-1/+3
| | | | | | tested *at all*? svn path=/trunk/; revision=5899
* Fixed gdk-font refcountingIain Holmes2000-10-132-17/+21
| | | | | | | Added font_e argument to e-text Fixed the header-item drawing the pixmap incorrectly svn path=/trunk/; revision=5894
* when there are 0 columns, don't assert.Jeffrey Stedfast2000-10-121-1/+1
| | | | | | | | 2000-10-12 Jeffrey Stedfast <fejj@helixcode.com> * e-table-item.c: when there are 0 columns, don't assert. svn path=/trunk/; revision=5876
* Make saving state work properly.Christopher James Lahey2000-10-121-3/+41
| | | | | | | | 2000-10-11 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Make saving state work properly. svn path=/trunk/; revision=5859
* Fixed the parity on the cursor-mode check.Christopher James Lahey2000-10-111-1/+1
| | | | | | | | | 2000-10-11 Christopher James Lahey <clahey@helixcode.com> * e-table-specification.c: Fixed the parity on the cursor-mode check. svn path=/trunk/; revision=5847
* Changed these to use the default cells.Christopher James Lahey2000-10-116-50/+13
| | | | | | | | | | | | | | | | | | | | | | | 2000-10-11 Christopher James Lahey <clahey@helixcode.com> * tests/test-tree-1.c, tests/test-tree-2.c, tests/test-tree-3.c: Changed these to use the default cells. From gal/e-table/ChangeLog: 2000-10-11 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c, e-cell-text.h, e-cell-tree.c, e-cell-tree.h: Got rid of the model parameter to e_cell_text_new and e_cell_tree_new as they aren't used. * e-table-extras.c: Added default "integer" compare and default "tree-string", "string", and "checkbox" cells. * e-table.c: Made this use the draw-grid, cursor-mode, and _click-to-add-message fields from the xml. svn path=/trunk/; revision=5841
* Example spec file. Not used. Just an example of what you can do.Christopher James Lahey2000-10-111-0/+21
| | | | | | | | | 2000-10-11 Christopher James Lahey <clahey@helixcode.com> * spec.xml: Example spec file. Not used. Just an example of what you can do. svn path=/trunk/; revision=5839
* Changed these to match the new ETable system.Christopher James Lahey2000-10-1119-308/+1292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-11 Christopher James Lahey <clahey@helixcode.com> * tests/test-tree-1.c, tests/test-tree-2.c, tests/test-tree-3.c: Changed these to match the new ETable system. * gal/Makefile.am: Added e-table-column-specification.lo, e-table-extras.lo, e-table-specification.lo, and e-table-state.lo. From gal/e-table/ChangeLog: 2000-10-11 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-table-column-specification.c, e-table-column-specification.h, e-table-extras.c, e-table-extras.h, e-table-specification.c, e-table-specification.h, e-table-state.c, and e-table-state.h. Removed some duplicated .h files. * e-cell-tree.c: Ref, sink, and unref the subcell instead of destroying it when done. * e-table-column-specification.c, e-table-column-specification.h: New class which describes a column without having a table get instantiated. * e-table-config.c: Changed get_specification to get_state to get this to compile. * e-table-defines.h, e-table-item.h: Moved the definition of ETableCursorMode from e-table-item.h to e-table-defines.h. * e-table-extras.c, e-table-extras.h: New class which acts as a set of 3 hash tables. All from char * and to alternately, ECells, GCompareFuncs, and GdkPxibufs. * e-table-scrolled.c, e-table-scrolled.h: Changed this to match the new ETable function declarations. * e-table-sort-info.c, e-table-sort-info.h: Added functions for saving to and loading from xml. * e-table-specification.c, e-table-specification.h: New class which describes a table without having to instantiate it. * e-table-state.c, e-table-state.h: New class which describes the state of a table without having to instantiate the table. * e-table.c, e-table.h: Changed this to accept both a state and a specification instead of just a specification. You then save only the state. The specification stays exactly the same. Also, you no longer need to pass in an ETableHeader. Most of the information contained in the ETableHeader are in the specification. However you may need to translate some of the strings in the specification to objects. If you need anything other than the builtin choices, you need to create an ETableExtras and pass it in. * e-tree-model.c: Removed an unused variable. svn path=/trunk/; revision=5837
* Removed the assertion that there must be at least 1 column. No way toNot Zed2000-10-095-2/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-06 Not Zed <NotZed@HelixCode.com> * e-table-item.c (eti_header_structure_changed): Removed the assertion that there must be at least 1 column. No way to remove all columns otherwise (which the header allows). * e-table.c (et_xml_config_header): Reconfigure header based on xml nodes for header. (et_real_set_specification): Just configure the header only, dont try to recreate everything. 2000-10-05 Not Zed <NotZed@HelixCode.com> * e-table-scrolled.c (e_table_scrolled_set_specification): Set the spec on a scrolled etable. (e_table_scrolled_load_specification): Likewise for load. * e-table.c (et_real_set_specification): Allow you to set the specification after the widget was created. (et_real_construct): Changed to use et_real_set_specification to set the spec. (e_table_load_specification): New frunction, load the speficication from a specific file. (e_table_set_specification): NEw function to set the specification from a string. svn path=/trunk/; revision=5795
* Emit the selection/cursor "changed" signals.Jeffrey Stedfast2000-10-051-0/+19
| | | | | | | | | | | 2000-10-04 Jeffrey Stedfast <fejj@helixcode.com> * e-table-selection-model.c (e_table_selection_model_invert_selection): Emit the selection/cursor "changed" signals. (e_table_selection_model_select_all): Same. svn path=/trunk/; revision=5724
* Select all elements of the etable.Jeffrey Stedfast2000-10-054-0/+67
| | | | | | | | | | | | | | | | 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
* Changed to take into account the sort group, if the table has one.xNot Zed2000-10-047-18/+428
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-04 Not Zed <NotZed@HelixCode.com> * e-table-sorted-variable.c (etsv_add): Changed to take into account the sort group, if the table has one.x (etsv_insert_idle): Clear the insert count if we hit an idle loop. (etsv_sort_idle): Reset the insert count if we perform a sort. (etsv_add): If we are adding a lot (>ETSV_INSERT_MAX) items, without hitting an idle loop, assume we're better off performing a sort instead. Use another idle handler to reset the count. 2000-10-03 Not Zed <NotZed@HelixCode.com> * e-table-sorted-variable.c (etsv_sort_by_group): Sort based on the sort_group stuff. * e-tree-model.c (e_tree_init): Setup the group sort info string. (etree_destroy): And free it. (build_sort_group): Build a string for this node. 2000-09-29 Not Zed <NotZed@HelixCode.com> * e-cell-tree.c (e_cell_tree_get_node): Changed to take the source model, not the tree model. The source model may be a subset, and it needs to remap the rows for us. (ect_draw): (ect_event): (ect_max_width): (ect_print): Changed callers. * e-table-sorted-variable.c (etsv_sort_subset): (etsv_sort_build_subset): (etsv_sort_free_subset): Functions to perfom grouping of sorts for sorts that have row_sort_group returning useful info. (etsv_sort): Use the complex sort routines if we need to. * e-table-model.c (e_table_model_row_sort_group): Return a sort-id for a given row. (e_table_model_has_sort_group): Return if the sort-id provides any useful information. svn path=/trunk/; revision=5705
* Put in 3 more dialog boxes in these files.Christopher James Lahey2000-10-042-75/+1811
| | | | | | | | | Tue Oct 3 18:28:09 2000 Christopher James Lahey <clahey@helixcode.com> * e-table-config.glade, e-table-config.glade.h: Put in 3 more dialog boxes in these files. svn path=/trunk/; revision=5696
* change/add prototypes and a typedef for ETreePathCompareFunc.Chris Toshok2000-10-032-49/+99
| | | | | | | | | | | | | | | | | | | | | | 2000-10-02 Chris Toshok <toshok@helixcode.com> * e-tree-model.h: change/add prototypes and a typedef for ETreePathCompareFunc. * e-tree-model.c (e_tree_model_node_set_compare_function): new function, used to set the comparison function for sorted nodes. Eventually sorting entail just calling this function, with the tree maintaining the sort. (e_tree_model_node_sort): use a helper function (e_tree_model_node_compare) to allow the e-tree user's comparison function to take mode reasonable paramaters. also, fix it so the previous expanded state is kept with the node. i can't believe i wrote it the way it originally was. also, don't take the comparison function here. it's set in e_tree_model_node_set_compare_function. svn path=/trunk/; revision=5674
* don't screw things up if we sort a collapsed node.Chris Toshok2000-10-031-2/+5
| | | | | | | | | 2000-10-02 Chris Toshok <toshok@helixcode.com> * e-tree-model.c (e_tree_model_node_sort): don't screw things up if we sort a collapsed node. svn path=/trunk/; revision=5673
* nukeChris Toshok2000-10-032-1181/+0
| | | | | | | | | | | | | | | | | | | | | | 2000-10-02 Chris Toshok <toshok@helixcode.com> * gal/e-table/e-tree-example-1.c: nuke * gal/e-table/e-tree-example-2.c: nuke * tests/test-tree-1.c: move gal/e-table/e-tree-example-1.c here. * tests/test-tree-2.c: move gal/e-table/e-tree-example-2.c here. * tests/Makefile.am: new file. * tests/.cvsignore: same. * configure.in: AC_OUTPUT (tests/Makefile) * Makefile.am (SUBDIRS): add tests dir. svn path=/trunk/; revision=5671
* flip black and gray, the way i intended them to be.Chris Toshok2000-10-032-4/+4
| | | | | | | | | | 2000-10-02 Chris Toshok <toshok@helixcode.com> * tree-unexpanded.xpm: flip black and gray, the way i intended them to be. * tree-expanded.xpm: same. svn path=/trunk/; revision=5665
* reinstate file.Chris Toshok2000-10-035-24/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-02 Chris Toshok <toshok@helixcode.com> * tree-expanded.xpm: reinstate file. * tree-unexpanded.xpm: same. * e-tree-example-1.c (main): remove calls to e_cursor_*, and don't create pixbufs. let's the tree give us the defaults. * e-tree-model.c (e_tree_model_node_changed): call e_table_model_row_changed on the node's row (if it's visible). (e_tree_model_node_inserted): call e_table_model_row_inserted on the new node's row, if it's visible. (e_tree_model_node_removed): call e_table_model_row_removed on the old node's row, if it was visible. * e-cell-tree.c (e_cell_tree_construct): allow open_pixbuf and closed_pixbuf to be NULL, and default them to the xpm data in rtee-{un}expanded.xpm. (ect_destroy): call gdk_pixbuf_unref on our open/closed pixbufs. * tree-expanded.xpm, tree-unexpanded.xpm: make the + and - a little lighter than straight black. svn path=/trunk/; revision=5660
* Changed.Christopher James Lahey2000-09-291-0/+0
| | | | | | | | Fri Sep 29 10:05:58 2000 Christopher James Lahey <clahey@helixcode.com> * e-table.dia: Changed. svn path=/trunk/; revision=5635
* New file. Approximate UML description of ETable.Christopher James Lahey2000-09-291-0/+0
| | | | | | | | Thu Sep 28 20:01:53 2000 Christopher James Lahey <clahey@helixcode.com> * e-table.dia: New file. Approximate UML description of ETable. svn path=/trunk/; revision=5628
* Fudge the location of a click in the tooltip, so that it selects theIain Holmes2000-09-273-10/+38
| | | | | | | | | | | | | | | | | | | | | | | | 2000-09-27 Iain Holmes <iain@helixcode.com> * e-cell-text.c: Fudge the location of a click in the tooltip, so that it selects the current cell. Pass keyboard events to the e-table. * e-table-item.c: Don't show the tooltip if the cell is being editted. Also don't destroy the tooltip until the button release event (other wise the e-table-item starts a select) 2000-09-25 Iain Holmes <iain@helixcode.com> * e-table-header-item.c (draw_button): Calculate the vertical offset correctly to centre text. 2000-09-25 Iain Holmes <iain@helixcode.com> * e-table-header-item.c (ethi_popup_best_fit): Fill this out to call the "request_width" signal and set the new size. svn path=/trunk/; revision=5599
* drag/drop signals need to be added to the same object that is passed toChris Toshok2000-09-271-9/+9
| | | | | | | | | | | | 2000-09-26 Chris Toshok <toshok@helixcode.com> * gal/e-table/e-table.c (e_table_setup_table): drag/drop signals need to be added to the same object that is passed to gtk_drag_begin in e_table_drag_begin. namely, the ETable. (et_drag_data_received): fix typo - should emit TABLE_DRAG_DATA_RECEIVED, not TABLE_DRAG_MOTION. svn path=/trunk/; revision=5590
* add save_state stuff to ETreeModel, and prototypes for the public methods.Chris Toshok2000-09-262-7/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-09-25 Chris Toshok <toshok@helixcode.com> * gal/e-table/e-tree-model.h: add save_state stuff to ETreeModel, and prototypes for the public methods. * gal/e-table/e-tree-model.c: add save_id to the ENode. (expanded_remove_func): new function, iterator to delete the save id's. (etree_destroy): iterate over expanded_state. (etree_set_expanded): if the node has a save id, make sure to update both the collapsed and expanded counts. (e_tree_model_node_insert_id): convenience function that inserts a node and sets its id. (e_tree_model_node_sort): remove extra spew. (save_expanded_state_func): new function, iterator for saving expanded state. (e_tree_model_save_expanded_state): new function. (get_string_value): helper function for loading. (e_tree_model_load_expanded_state): new function. (e_tree_model_node_set_save_id): sets the save id for a node, adding it to the hashtable if it's not already there. if the id was there previously, set the expanded flag of the node accordingly. svn path=/trunk/; revision=5573
* Fix include typo.Ariel Rios2000-09-251-1/+1
| | | | | | | | 2000-09-24 Ariel Rios <ariel@arcavia.com> * e-tree-model.c: Fix include typo. svn path=/trunk/; revision=5566
* fix sorting - need to update the row_array as well as the actual structureChris Toshok2000-09-251-4/+20
| | | | | | | | | | 2000-09-24 Chris Toshok <toshok@helixcode.com> * e-tree-model.c (e_tree_model_node_sort): fix sorting - need to update the row_array as well as the actual structure of the GNodes. svn path=/trunk/; revision=5564
* Typo caused readability problems with ETable.Christopher James Lahey2000-09-211-1/+1
| | | | | | | | 2000-09-21 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Typo caused readability problems with ETable. svn path=/trunk/; revision=5536
* Moved files, fixed header files and paths - FedericoFederico Mena Quintero2000-09-2064-148/+147
| | | | svn path=/trunk/; revision=5513
* Fixed e-table #includes so that it would compile.Chris Lahey2000-09-1832-64/+64
| | | | svn path=/trunk/; revision=5482
* Better calculations for tooltip positionsIain Holmes2000-09-183-10/+16
| | | | svn path=/trunk/; revision=5477
* Added some missing #includes.Christopher James Lahey2000-09-163-3/+4
| | | | | | | | | | | | 2000-09-16 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Added some missing #includes. * e-cell-tree.c: Removed an unused variable. * e-table-item.c: Added some missing casts. svn path=/trunk/; revision=5470
* Removed g_printIain Holmes2000-09-161-1/+0
| | | | svn path=/trunk/; revision=5469
* If the cursor is inside the subcell, call the show_tooltip on it.Iain Holmes2000-09-168-41/+404
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-09-15 Iain Holmes <iain@helixcode.com> * e-cell-tree.c (ect_show_tooltip): If the cursor is inside the subcell, call the show_tooltip on it. * e-table-header-item.c (draw_button): Draw the arrow first, then take it's size into account when calculating how to draw the text. Use ellipsis if the text it too long. 2000-09-15 Iain Holmes <iain@helixcode.com> * e-table-header-item.c (draw_button): Fix a crash by passing the canvas widget to gtk_paint_box. Reported by Radek. 2000-09-14 Iain Holmes <iain@helixcode.com> * e-table-header-item.c (set_cursor): The column isn't resizable if it is the last, or if all other columns after it are not resizable. * e-cell-text.c (ect_max_width): Correctly calculate the width of the line of text. Unbuild the current cell and unref the lines as well. (build_current_cell): Initialize cell->style to 0; 2000-09-14 Iain Holmes <iain@helixcode.com> * e-table-item.c: Start timers for the tooltip to appear, on motion events. * e-cell.[ch]: Add a new show_tooltip method. * e-cell-text.c (ect_show_tooltip): Show the tooltip. svn path=/trunk/; revision=5466
* Fix a crash in draw_button.Iain Holmes2000-09-151-2/+2
| | | | svn path=/trunk/; revision=5444
* typo/compile fixPeter Williams2000-09-151-2/+0
| | | | svn path=/trunk/; revision=5441
* Fix some crashes Make double clicking on the header dividers automaticallyIain Holmes2000-09-1512-27/+238
| | | | | | | | | | | Fix some crashes Make double clicking on the header dividers automatically size the header to it's best fit. When dragging onto the header check the dragged item is a header object. Check the column is resizeable before setting the cursor to <-> Use the font and themes to draw the table and items. svn path=/trunk/; revision=5438
* Made bold text calculate widths properly.Christopher James Lahey2000-09-121-17/+42
| | | | | | | | 2000-09-11 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Made bold text calculate widths properly. svn path=/trunk/; revision=5331
* Made page up and page down active in the ETable.Christopher James Lahey2000-09-111-3/+44
| | | | | | | | 2000-09-11 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Made page up and page down active in the ETable. svn path=/trunk/; revision=5319
* Fixed the ETableModel callbacks.Christopher James Lahey2000-09-101-12/+12
| | | | | | | | 2000-09-09 Christopher James Lahey <clahey@helixcode.com> * e-tree-simple.c: Fixed the ETableModel callbacks. svn path=/trunk/; revision=5293
* Added base ETableModel functions.Christopher James Lahey2000-09-094-37/+244
| | | | | | | | | | | | | | 2000-09-08 Christopher James Lahey <clahey@helixcode.com> * e-tree-example-1.c: Added base ETableModel functions. * e-tree-example-2.c: Added base ETableModel functions. Made it never return NULL as a string, instead return "". * e-tree-simple.c, e-tree-simple.h: Require base ETableModel functions. svn path=/trunk/; revision=5266
* Fixed a leak and a double unref.Christopher James Lahey2000-09-022-3/+1
| | | | | | | | 2000-09-01 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table.c: Fixed a leak and a double unref. svn path=/trunk/; revision=5174
* new test, a home grown 2 hour hack of a file browser. usesChris Toshok2000-09-012-0/+674
| | | | | | | | | | | | | | 2000-09-01 Chris Toshok <toshok@helixcode.com> * e-tree-example-2.c: new test, a home grown 2 hour hack of a file browser. uses node_collapsed/emitted signals to populate the left tree. * Makefile.am: add tree-example-2.c stuff. * .cvsignore: add tree-example-2 svn path=/trunk/; revision=5163
* add signals/prototypes for e_tree_model_node_collapsed andChris Toshok2000-09-012-11/+63
| | | | | | | | | | | | | | | | | 2000-09-01 Chris Toshok <toshok@helixcode.com> * e-tree-model.h: add signals/prototypes for e_tree_model_node_collapsed and e_tree_model_node_expanded. * e-tree-model.c (etree_set_expanded): emit node_expanded/node_collapsed signals, with node_expanded happening before the expansion so it can much with the children, and collapsed being emitted after. (e_tree_model_row_of_node): remove stupid check, and g_warning. (e_tree_model_node_collapsed): new function. (e_tree_model_node_expanded): new function. svn path=/trunk/; revision=5162
* Made the selection work when shift clicking on the first row of the table.Christopher James Lahey2000-08-311-7/+7
| | | | | | | | | 2000-08-31 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Made the selection work when shift clicking on the first row of the table. svn path=/trunk/; revision=5139
* Fix the tree example so that is doesn't show two sets of expand/unexpandRichard Hult2000-08-311-4/+6
| | | | | | icons at tree nodes. svn path=/trunk/; revision=5137
* Make printing of groups work better and make them print headers.Christopher James Lahey2000-08-292-38/+134
| | | | | | | | | | | 2000-08-28 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c: Make printing of groups work better and make them print headers. * e-table-item.c: Turn off alternating row support. svn path=/trunk/; revision=5086
* Remove a ton of (hopefully harmless) warnings from the ETable code.Ettore Perazzoli2000-08-283-6/+16
| | | | svn path=/trunk/; revision=5081
* Added some g_return_if_fails and g_return_val_if_fails.Christopher James Lahey2000-08-264-15/+55
| | | | | | | | | | 2000-08-25 Christopher James Lahey <clahey@helixcode.com> * e-table-col.c, e-table-config.c, e-table-header.c, e-table-text-model.c: Added some g_return_if_fails and g_return_val_if_fails. svn path=/trunk/; revision=5056
* Fix an off by one error that was causing crashes.Christopher James Lahey2000-08-251-1/+2
| | | | | | | | 2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Fix an off by one error that was causing crashes. svn path=/trunk/; revision=5027
* Set default values for all of the signal emissions.Christopher James Lahey2000-08-251-3/+3
| | | | | | | | 2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Set default values for all of the signal emissions. svn path=/trunk/; revision=5026
* Check for selection->selection being NULL inChristopher James Lahey2000-08-251-0/+3
| | | | | | | | | 2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Check for selection->selection being NULL in e_table_selection_model_selected_count. svn path=/trunk/; revision=5025
* Pay attention to the return value from the click signal.Christopher James Lahey2000-08-251-2/+8
| | | | | | | | | 2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Pay attention to the return value from the click signal. svn path=/trunk/; revision=5022
* Added a click signal which gets sent if the user hits the left or middleChristopher James Lahey2000-08-258-0/+89
| | | | | | | | | | | 2000-08-24 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, e-table.c, e-table.h: Added a click signal which gets sent if the user hits the left or middle mouse button on a cell. svn path=/trunk/; revision=5020
* Forgot to commit thisChris Lahey2000-08-251-2/+2
| | | | svn path=/trunk/; revision=5019
* Added g_return_if_fails.Christopher James Lahey2000-08-252-3/+134
| | | | | | | | 2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-table-scrolled.c, e-table.c: Added g_return_if_fails. svn path=/trunk/; revision=5015
* Added infrastructure for setting the justification of columns. Still needChristopher James Lahey2000-08-258-11/+54
| | | | | | | | | | | | 2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h, e-table-col.c, e-table-col.h, e-table-item.c: Added infrastructure for setting the justification of columns. Still need to change the cells to support it and need to add user interface to change the justification. svn path=/trunk/; revision=5010
* Fixed a bug in e_table_subset_variable_increment that causes problems withChristopher James Lahey2000-08-241-2/+2
| | | | | | | | | | | 2000-08-23 Christopher James Lahey <clahey@helixcode.com> * e-table-subset-variable.c: Fixed a bug in e_table_subset_variable_increment that causes problems with ETree's. Specifically, when you incremented at position x, the row x didn't get incremented as it should (s/>/>=/.) svn path=/trunk/; revision=4994
* remove tree-expanded.xpm and tree-unexpanded.xpm.Chris Toshok2000-08-233-49/+2
| | | | | | | | | | | | | | | | | 2000-08-22 Chris Toshok <toshok@helixcode.com> * Makefile.am (icons): remove tree-expanded.xpm and tree-unexpanded.xpm. * e-tree-example-1.c: use art/tree-expanded.xpm and art/tree-unexpanded.xpm. (remove_node): commit the change listed below (08-21). * tree-expanded.xpm: removed. * tree-unexpanded.xpm: removed. svn path=/trunk/; revision=4975
* Handle iso-8859-1 keys nicely in e-text and e-table. Other encodings toLauris Kaplinski2000-08-231-2/+15
| | | | | | come... svn path=/trunk/; revision=4972
* Moved drawing of the cell backgrounds from ECell into ETableItem.Christopher James Lahey2000-08-225-30/+23
| | | | | | | | | | | 2000-08-22 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-table-item.c: Moved drawing of the cell backgrounds from ECell into ETableItem. * e-tree-model.c: Include stdlib.c. svn path=/trunk/; revision=4915
* Changed UTF-8 handling syntax from char based to byte basedLauris Kaplinski2000-08-221-117/+124
| | | | svn path=/trunk/; revision=4913
* we can remove nodes with children now.Chris Toshok2000-08-222-5/+52
| | | | | | | | | | | | | | | | | | | | | | 2000-08-21 Chris Toshok <toshok@helixcode.com> * e-tree-example-1.c (remove_node): we can remove nodes with children now. * e-tree-model.h: add prototype for e_tree_model_node_sort. * e-tree-model.c (etree_set_expanded): if the node is invisible, just set its expanded flag and return. (e_tree_model_root_node_set_visible): call set_expanded before we remove it from the row array or else the aforementioned change will result in nothing happening. (e_tree_model_node_insert): use a position of -1 as "append". (e_tree_model_node_insert): if the model was marked with root_visible == FALSE, make sure to set it's expanded flag to TRUE when the root node is inserted. (e_tree_model_node_sort): new function. svn path=/trunk/; revision=4912
* pass table, not site as the closure for these drag signals, sinceChris Toshok2000-08-221-2/+2
| | | | | | | | | | 2000-08-21 Chris Toshok <toshok@helixcode.com> * e-table.c (e_table_drag_source_set): pass table, not site as the closure for these drag signals, since e_table_drag_source_event_cb assumes it's the table. svn path=/trunk/; revision=4911
* Added e_table_selection_model_selected_count.Christopher James Lahey2000-08-212-0/+27
| | | | | | | | | 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
* First step moving to UTF-8 stringsLauris Kaplinski2000-08-202-207/+272
| | | | svn path=/trunk/; revision=4885
* Made background colors alternate.Christopher James Lahey2000-08-2012-45/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-08-19 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Made background colors alternate. * e-table-click-to-add.c: Made tabbing off the right edge of the click to add commit the new values. * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-sorted-variable.c, e-table-subset-variable.c, e-table-subset-variable.h: Added a decrement method. Made the add and remove methods not automatically increment and decrement. * e-table-item.c: Fixed some view vs model issues for both rows and columns. * e-table-model.c: Added debugging code. Removed automatic signalling of changes by the ETableModel set_value_at function (the model should send these signals itself.) * e-table.c: Added increment and decrement calls when a row is removed or added from the source model. svn path=/trunk/; revision=4881
* Make right click select if the current row is not selected.Christopher James Lahey2000-08-103-0/+19
| | | | | | | | | | 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
* Call our parent's destroy method.Miguel de Icaza2000-08-091-0/+5
| | | | | | | | | 2000-07-18 Miguel de Icaza <miguel@helixcode.com> * e-tree-model.c (etree_destroy): Call our parent's destroy method. svn path=/trunk/; revision=4643
* Tag some strings for translation.Miguel de Icaza2000-08-091-15/+15
| | | | | | | | 2000-08-08 Miguel de Icaza <miguel@helixcode.com> * e-table-header-item.c: Tag some strings for translation. svn path=/trunk/; revision=4642
* Changed e_popup_menu_run call to match the new arguments.Christopher James Lahey2000-08-091-1/+1
| | | | | | | | | 2000-08-09 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Changed e_popup_menu_run call to match the new arguments. svn path=/trunk/; revision=4628
* Added functions to convert from view row to model row or from model row toChristopher James Lahey2000-08-062-11/+40
| | | | | | | | | | | | | 2000-08-05 Christopher James Lahey <clahey@helixcode.com> * e-table.c, e-table.h: Added functions to convert from view row to model row or from model row to view row. Also changed e_table_set_cursor_row and e_table_get_cursor_row to take a model row as this works better with the rest of the model. Changed the name of e_table_get_next_row_sorted and e_table_get_prev_row_sorted. (Dropped the _sorted.) svn path=/trunk/; revision=4556
* fixDan Winship2000-08-061-3/+3
| | | | | | * e-table.c (e_table_get_{next,prev}_row_sorted): fix svn path=/trunk/; revision=4553
* Added a function to get the next row with sorting taken into account.Christopher James Lahey2000-08-052-0/+40
| | | | | | | | | 2000-08-05 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Added a function to get the next row with sorting taken into account. svn path=/trunk/; revision=4549
* Made it so that selection ranges work even if the table is using grouping.Christopher James Lahey2000-08-051-4/+6
| | | | | | | | | 2000-08-05 Christopher James Lahey <clahey@helixcode.com> * e-table-sorter.c: Made it so that selection ranges work even if the table is using grouping. svn path=/trunk/; revision=4547
* Made selection ranges work even if the table is sorted.Christopher James Lahey2000-08-056-25/+432
| | | | | | | | | | | | | 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
* Built code to have autodrags only work from within the table and to reportChristopher James Lahey2000-08-052-39/+236
| | | | | | | | | | 2000-08-04 Christopher James Lahey <clahey@helixcode.com> * e-table.c, e-table.h: Built code to have autodrags only work from within the table and to report the row dragged from automatically. svn path=/trunk/; revision=4542
* Made drag events calculate a row and column and signal that information.Christopher James Lahey2000-08-048-32/+99
| | | | | | | | | | | | | | 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
* Add a handler for "model_pre_change" and properly stop editing.Christopher James Lahey2000-08-038-10/+87
| | | | | | | | | | | | | | | | | | 2000-08-02 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table-item.h: Add a handler for "model_pre_change" and properly stop editing. * e-table-model.c, e-table-model.h: Added a "model_pre_change" signal that gets sent before any row numbers are changed. * e-table-sorted-variable.c, e-table-subset-variable.c: Emit "model_pre_change" signals as appropriate. * e-table-subset.c, e-table-subset.h: Proxy "model_pre_changed" signals. svn path=/trunk/; revision=4472
* Changed the API for the append_row function. Now accepts a model to copyChristopher James Lahey2000-08-027-39/+17
| | | | | | | | | | | | | | | | 2000-08-02 Christopher James Lahey <clahey@helixcode.com> * e-table-model.c, e-table-model.h: Changed the API for the append_row function. Now accepts a model to copy data from instead of returning a row number and leaving it up to ETableOne to copy the data in. * e-table-one.c, e-table-one.h: Adapted to use new append_row API. * e-table-simple.c, e-table-simple.h, e-table-subset.c: Adapted to supply new append_row API. svn path=/trunk/; revision=4468
* Added an argument to set a column so that you can't sort by that column.Christopher James Lahey2000-08-013-23/+72
| | | | | | | | | | | 2000-07-31 Christopher James Lahey <clahey@helixcode.com> * e-table-col.c, e-table-col.h: Added an argument to set a column so that you can't sort by that column. * e-table-header-item.c: Obey the sortable column of ETableCol. svn path=/trunk/; revision=4439
* Made enter key destroy and recreate the ETableItem.Christopher James Lahey2000-07-302-1/+15
| | | | | | | | | | | | 2000-07-29 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c: Made enter key destroy and recreate the ETableItem. * e-table-item.c: Grab focus when person clicks even if cursor isn't changing. svn path=/trunk/; revision=4416
* Remove the idle handler before destroying the data it operates on.Dan Winship2000-07-291-0/+2
| | | | | | | * e-table-header.c (eth_destroy): Remove the idle handler before destroying the data it operates on. svn path=/trunk/; revision=4407
* Fixed up the table behavior so that it's not always in an edit mode.Christopher James Lahey2000-07-281-9/+43
| | | | | | | | | 2000-07-27 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Fixed up the table behavior so that it's not always in an edit mode. svn path=/trunk/; revision=4392
* Added a comment.Christopher James Lahey2000-07-271-0/+1
| | | | | | | | 2000-07-27 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Added a comment. svn path=/trunk/; revision=4387
* Fixed shift click selections.Christopher James Lahey2000-07-271-37/+40
| | | | | | | | 2000-07-27 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Fixed shift click selections. svn path=/trunk/; revision=4386
* Allocate correctly in the insert method.Christopher James Lahey2000-07-272-7/+3
| | | | | | | | | | | 2000-07-27 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Allocate correctly in the insert method. * e-table-click-to-add.c: Removed the line that was causing this to do bad things. svn path=/trunk/; revision=4385
* Grab focus properly.Christopher James Lahey2000-07-272-28/+69
| | | | | | | | | | | 2000-07-27 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c (eti_cursor_change): Grab focus properly. * e-table-item.c, e-table-click-to-add.c: Fixed ETableClickToAdd to handle carriage return. This still doesn't quite work right. svn path=/trunk/; revision=4384
* Clear the selection model when activating.Christopher James Lahey2000-07-273-68/+79
| | | | | | | | | | | | | | | 2000-07-27 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c: Clear the selection model when activating. * e-table-item.c: Fixed a bunch of model column vs. view column issues. * e-table-selection-model.c: Set the cursor to -1, -1 and emi a "cursor_changed" signal. svn path=/trunk/; revision=4380
* Fixed a reference.Christopher James Lahey2000-07-275-6/+36
| | | | | | | | | | | | | | 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 an ETableSelectionModel so this won't crash.Christopher James Lahey2000-07-272-11/+24
| | | | | | | | | 2000-07-26 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c, e-table-click-to-add.h: Added an ETableSelectionModel so this won't crash. svn path=/trunk/; revision=4372
* Fixed the model/view row confusion.Christopher James Lahey2000-07-272-11/+15
| | | | | | | | | | | 2000-07-26 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Fixed the model/view row confusion. * e-table-selection-model.c: Changed one expression to use a #define properly. svn path=/trunk/; revision=4371
* Uninitialized variable fix for e-tableMatthew Loper2000-07-271-1/+1
| | | | svn path=/trunk/; revision=4367
* Added "table_selection_model" argument. Removed foreach function andChristopher James Lahey2000-07-2715-434/+508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Made foreach call the callback in top to bottom order.Christopher James Lahey2000-07-261-4/+5
| | | | | | | | | 2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Made foreach call the callback in top to bottom order. svn path=/trunk/; revision=4335
* Replaced get_selection_list with foreach.Christopher James Lahey2000-07-263-11/+14
| | | | | | | | | | | 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-262-152/+46
| | | | | | | | | | | | | | 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-262-3/+14
| | | | | | | | | | 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
* More fixes.Christopher James Lahey2000-07-261-8/+22
| | | | | | | | 2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: More fixes. svn path=/trunk/; revision=4328
* Fixed up the bit manipulation a bit here.Christopher James Lahey2000-07-261-3/+34
| | | | | | | | | 2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Fixed up the bit manipulation a bit here. svn path=/trunk/; revision=4327
* New files for doing a selection model. Not finished yet and thus not inChristopher James Lahey2000-07-264-96/+427
| | | | | | | | | | | | | 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
* Implemented some of the drag & drop code. Drops all report as being on rowChristopher James Lahey2000-07-252-9/+517
| | | | | | | | | | 2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-table.c, e-table.h: Implemented some of the drag & drop code. Drops all report as being on row 0, col 0. Also, automatic drags don't set the row and column being dragged from. svn path=/trunk/; revision=4312
* added a color_column where the color can be specified as a string, e.g.Damon Chaplin2000-07-232-2/+108
| | | | | | | | | | | | | | | | 2000-07-23 Damon Chaplin <damon@helixcode.com> * e-cell-text.c: added a color_column where the color can be specified as a string, e.g. "red" or "rgb:F/0/0". * e-cell-text.c (ect_leave_edit): don't call unbuild_current_cell() since the CellEdit struct has been freed in ect_stop_editing() and so has the text. * e-cell-text.c (unbuild_current_cell): set cell->text to NULL to make sure we don't try to free it again. svn path=/trunk/; revision=4279
* Added some unused declarations for drag and drop work.Christopher James Lahey2000-07-221-0/+105
| | | | | | | | | 2000-07-21 Christopher James Lahey <clahey@helixcode.com> * e-table.h: Added some unused declarations for drag and drop work. svn path=/trunk/; revision=4267
* g_free things we g_malloc.Michael Meeks2000-07-151-2/+1
| | | | | | | | 2000-07-14 Michael Meeks <michael@helixcode.com> * e-table-subset.c (etss_destroy): g_free things we g_malloc. svn path=/trunk/; revision=4167
* Changed the background color of the header.Christopher James Lahey2000-07-141-1/+1
| | | | | | | | | 2000-07-13 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Changed the background color of the header. svn path=/trunk/; revision=4152
* Made scroll wheel work properly in header.Christopher James Lahey2000-07-131-1/+4
| | | | | | | | | 2000-07-12 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Made scroll wheel work properly in header. svn path=/trunk/; revision=4128
* Make sure the ETable is constructed properly, by setting theEttore Perazzoli2000-07-112-6/+17
| | | | | | arguments in the parent EScrollFrame class. svn path=/trunk/; revision=4063
* Fix a typbraino in the ETableScrolled header file.Ettore Perazzoli2000-07-111-1/+1
| | | | svn path=/trunk/; revision=4043
* Add e-table-scrolled.c and e-table-scrolled.h.Christopher James Lahey2000-07-106-41/+461
| | | | | | | | | | | | | | | | | 2000-07-09 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Add e-table-scrolled.c and e-table-scrolled.h. * e-table-item.c: Make sure that find_cell returns FALSE if the item doesn't have any cells. * e-table-scrolled.c, e-table-scrolled.h: Added a widget to contain an ETable and provide scrollbars (for ease of use.) * e-table.c, e-table.h: Make this support the scrollable interface and not contain its own scrollbars. svn path=/trunk/; revision=4031
* Put back e_cell_event sometimes when we're not editing.Christopher James Lahey2000-07-101-3/+3
| | | | | | | | | 2000-07-09 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c (eti_event): Put back e_cell_event sometimes when we're not editing. svn path=/trunk/; revision=4019
* Set the dnd_code to something non-null for the ETableHeaderItem.Christopher James Lahey2000-07-091-0/+1
| | | | | | | | | 2000-07-09 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Set the dnd_code to something non-null for the ETableHeaderItem. svn path=/trunk/; revision=4013
* Set header canvas scroll region correctly.Christopher James Lahey2000-07-091-1/+1
| | | | | | | | 2000-07-09 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Set header canvas scroll region correctly. svn path=/trunk/; revision=4010
* Don't draw drop markers when the layout won't be changed by the drop.Anders Carlsson2000-07-091-2/+9
| | | | svn path=/trunk/; revision=4005
* Get rid of an unused variable.Ettore Perazzoli2000-07-091-0/+4
| | | | svn path=/trunk/; revision=3997
* When inserting a root node, only call e_table_model_row_inserted ifDan Winship2000-07-091-4/+4
| | | | | | | | | | * e-tree-model.c (e_tree_model_node_insert): When inserting a root node, only call e_table_model_row_inserted if root_visible. (e_tree_model_node_remove): Call e_table_model_row_deleted before removing the row from the row_array, because the chain of signal handlers will sometimes need that info. svn path=/trunk/; revision=3994
* Don't call e_cell_event if we're not editing.Christopher James Lahey2000-07-091-3/+3
| | | | | | | | | 2000-07-08 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c (eti_event): Don't call e_cell_event if we're not editing. svn path=/trunk/; revision=3991
* Commented out some unnecessary and buggy code.Christopher James Lahey2000-07-091-0/+2
| | | | | | | | | 2000-07-08 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c (eti_table_model_changed): Commented out some unnecessary and buggy code. svn path=/trunk/; revision=3988
* add a g_return_val_if_fail to etree_node_at_rowDan Winship2000-07-071-2/+2
| | | | svn path=/trunk/; revision=3937
* Make this work recursively.Dan Winship2000-07-071-1/+8
| | | | | | | * e-tree-model.c (e_tree_model_node_remove): Make this work recursively. svn path=/trunk/; revision=3935
* fix the conditions under which we draw a horizontal line.Chris Toshok2000-07-071-1/+1
| | | | | | | | | 2000-07-06 Chris Toshok <toshok@helixcode.com> * e-cell-tree.c (ect_draw): fix the conditions under which we draw a horizontal line. svn path=/trunk/; revision=3929
* Send GDK_BUTTON_RELEASE events to the ecell associated with the cell (ifChristopher James Lahey2000-07-061-0/+37
| | | | | | | | | 2000-07-06 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Send GDK_BUTTON_RELEASE events to the ecell associated with the cell (if it's the cursor.) svn path=/trunk/; revision=3909
* Added a reflow_compare callback and did removal if you do shift-click on aChristopher James Lahey2000-07-041-5/+30
| | | | | | | | | 2000-07-03 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Added a reflow_compare callback and did removal if you do shift-click on a selected row that's not the cursor. svn path=/trunk/; revision=3873
* From mail:Christopher James Lahey2000-06-3013-71/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-06-29 Christopher James Lahey <clahey@helixcode.com> * message-list.c, mail-ops.c: Changed the name of e_table_select_row to e_table_set_cursor_row. From widgets/e-table: 2000-06-29 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c: Made this appear a bit better. * e-table-defines.h: Cleaned this up a bit, added ETableForeachFunc. * 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, e-table.c, e-table.h: Changed e_table_select_row to e_table_set_cursor_row. Changed e_table_get_selected_view_row to e_table_get_cursor_row. Added e_table_selected_row_foreach. * e-table-header-item.c: Fixed some warnings. * e-table-sorted-variable.c: Removed some unneeded debugging print statments. * e-tree-example-1.c: Changed e_table_get_selected_view_row to e_table_get_cursor_row. svn path=/trunk/; revision=3799
* Added an unsort command.Christopher James Lahey2000-06-282-0/+14
| | | | | | | | | | 2000-06-27 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Added an unsort command. * e-table-item.c: leave_edit when you loose the cursor. svn path=/trunk/; revision=3766
* Calculate height including if clip_height is set to -1.Christopher James Lahey2000-06-2721-29/+1022
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * widgets/e-text/e-text.c: Calculate height including if clip_height is set to -1. From addressbook/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * contact-editor/e-contact-editor-categories.c, addressbook/gui/component/e-cardlist-model.c: Added value_to_string handlers. * demo/addressbook-widget.c, demo/demo.c: Removed usage of "x" and "y" arguments. * addressbook/gui/component/addressbook.c: Activated Click To Add and set the click to add message. * addressbook/gui/component/e-addressbook-model.c: Added value_to_string and append_row handlers. * addressbook/gui/component/e-select-names.c: Added a column. From calendar/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * gui/calendar-model.c: Added an #ifdefed value_to_string handler assignment. From camel/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * providers/mbox/camel-mbox-summary.c: Added debugging information. From composer/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-msg-composer-select-file.h for make distcheck. From e-util/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-canvas-vbox.c and e-canvas-vbox.h. * e-canvas-vbox.c, e-canvas-vbox.h: New canvas object to act like a vbox using the reflow system. From mail/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * message-list.c: Added a value_to_string handler. From shell/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * glade/Makefile.am: Added EXTRA_DIST for make distcheck. From widgets/e-table/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-table-click-to-add.c, e-table-click-to-add.h, e-table-one.c, and e-table-one.h. * e-table-click-to-add.c, e-table-click-to-add.h: A new canvas item that represents a single row that sometimes exists. It's for adding new rows to your table. * e-table-example-1.c, e-table-example-2.c, e-table-size-test.c, test-check.c, test-cols.c, test-table.c: Added value_to_string handlers. * e-table-group-container.c: Use value_to_string to make grouping not crash for non string columns. Made some changes to work properly in an ECanvasVbox. * e-table-group-leaf.c, e-table-item.c: Made some changes to work properly in an ECanvasVbox. * e-table-model.c, e-table-model.h: Added append_row and value_to_string methods. * e-table-one.c, e-table-one.h: Given a source ETableModel, this provides a single row model that uses the initialize_value, duplicate_value, free_value, and value_is_empty methods of the original source to implement set_value and value_at (and proxies most of the other methods.) This is used for ETableClickToAdd. * e-table-simple.c, e-table-simple.h: Added append_row and value_to_string handlers. append_row uses a GtkArg instead of a parameter to e_table_simple_new. * e-table-subset.c: Added append_row and value_to_string handlers. * e-table.c, e-table.h: Use a vbox containing an ETableClickToAdd and an ETableItem instead of an ETableItem directly. Only show the ETableClickToAdd if the top level of the xml SPEC has the attribute click-to-add set to some non-zero integer. (click-to-add="1"). Add a "click_to_add_message" argument. * e-tree-model.c: Add a commented out value_to_string handler. From widgets/meeting-time-sel/ChangeLog: 2000-06-26 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added the include path to top_srcdir. svn path=/trunk/; revision=3744
* draw pixmaps with he right background and selection colors.Larry Ewing2000-06-241-1/+9
| | | | | | | | | 2000-06-23 Larry Ewing <lewing@helixcode.com> * e-cell-toggle.c (etog_draw): draw pixmaps with he right background and selection colors. svn path=/trunk/; revision=3709
* add icon_at virtual function - it was stupid to make the insert call takeChris Toshok2000-06-236-52/+52
| | | | | | | | | | | | | | | | | | | | 2000-06-23 Chris Toshok <toshok@helixcode.com> * e-tree-model.h, e-tree-model.c: add icon_at virtual function - it was stupid to make the insert call take 2 pixbufs. the model should give this information. * e-cell-tree.c: get rid of the opened/closed pixbuf stuff. call e_tree_model_icon_of_node. * e-tree-example-1.c: add my_icon_at. * e-tree-simple.c (simple_icon_at): new function (e_tree_simple_new): add icon_at parameter. * e-tree-simple.h: add SimpleIconAtFn. svn path=/trunk/; revision=3707
* use the expanded/unexpanded pixbufs as node pixbufs for the first level ofChris Toshok2000-06-234-31/+108
| | | | | | | | | | | | | | | | | | | | 2000-06-23 Chris Toshok <toshok@helixcode.com> * e-tree-example-1.c (create_tree): use the expanded/unexpanded pixbufs as node pixbufs for the first level of children, to test the drawing. * e-tree-model.c (e_tree_model_node_get_closed_pixbuf): new function. (e_tree_model_node_get_opened_pixbuf): same. (e_tree_model_node_insert): add opened/closed pixbuf argument. (e_tree_model_node_insert_before): same. * e-tree-model.h: add prototypes for opened/closed pixbuf accessors, and add them to the e_tree_model_node_insert_* calls. * e-cell-tree.c (ect_draw): add opened/closed pixbuf drawing per node. svn path=/trunk/; revision=3706
* Make the table not move around as you resize.Christopher James Lahey2000-06-231-16/+18
| | | | | | | | 2000-06-22 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Make the table not move around as you resize. svn path=/trunk/; revision=3696
* Killed a warning.Christopher James Lahey2000-06-231-1/+1
| | | | | | | | 2000-06-22 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Killed a warning. svn path=/trunk/; revision=3691
* Remove use of the "x" and "y" arguments to EText.Christopher James Lahey2000-06-235-10/+2
| | | | | | | | | | | | | | 2000-06-22 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c: Remove use of the "x" and "y" arguments to EText. * e-table-item.c: Properly ref the source_model field. * test-check.c, test-cols.c, test-table.c: Remove use of the "x" and "y" arguments to ETableHeaderItem. svn path=/trunk/; revision=3690
* Made the Close button work.Christopher James Lahey2000-06-223-1/+33
| | | | | | | | | | | 2000-06-21 Christopher James Lahey <clahey@helixcode.com> * e-table-field-chooser-dialog.c: Made the Close button work. * e-table-field-chooser.glade, e-table-field-chooser.glade.h: Added a text description of this dialog. svn path=/trunk/; revision=3685
* Changed this to move the cell to the nearest edge instead of to the leftChristopher James Lahey2000-06-222-3/+47
| | | | | | | | | | | | 2000-06-21 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Changed this to move the cell to the nearest edge instead of to the left of the column it's over. * e-table-header.c: Made target_index equal to eti->col_count be a valid parameter to e_table_header_move. svn path=/trunk/; revision=3683
* Made moving columns to the right work properly.Christopher James Lahey2000-06-221-0/+3
| | | | | | | | | 2000-06-21 Christopher James Lahey <clahey@helixcode.com> * e-table-header.c: Made moving columns to the right work properly. svn path=/trunk/; revision=3681
* Fix a minor warning.Christopher James Lahey2000-06-212-8/+20
| | | | | | | | | | | 2000-06-20 Christopher James Lahey <clahey@helixcode.com> * e-table-group-leaf.c: Fix a minor warning. * e-table-item.c: Add to the selection if shift is held down. Show cursor when changing sort (or if table changes majorly.) svn path=/trunk/; revision=3667
* Fix HEADER_PADDING.Christopher James Lahey2000-06-211-1/+1
| | | | | | | | 2000-06-20 Christopher James Lahey <clahey@helixcode.com> * e-table-defines.h: Fix HEADER_PADDING. svn path=/trunk/; revision=3662
* Fix cursor column information.Christopher James Lahey2000-06-211-6/+9
| | | | | | | | 2000-06-20 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Fix cursor column information. svn path=/trunk/; revision=3661
* Removed the unfocus method since that's handled by the canvas itself now.Christopher James Lahey2000-06-216-137/+92
| | | | | | | | | | | | | | | | | | 2000-06-20 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h: Removed the unfocus method since that's handled by the canvas itself now. * e-table-item.c, e-table-item.h: Finished adapting ETableItem to use the canvas selection/cursor system. Selection and cursor now use row numbers associated with the source model instead of the sorted model (if the model they are given is an ETableSubset.) This has no effect on the interface, except that unfocus was removed and e_table_item_focus was renamed to e_table_item_set_cursor. svn path=/trunk/; revision=3660
* Started adapting ETableItem to use the canvas selection/cursor system.Christopher James Lahey2000-06-212-101/+77
| | | | | | | | | 2000-06-20 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table-item.h: Started adapting ETableItem to use the canvas selection/cursor system. svn path=/trunk/; revision=3656
* call e_table_model_row_inserted instead of e_table_model_changed.Chris Toshok2000-06-201-4/+4
| | | | | | | | | 2000-06-17 Chris Toshok <toshok@helixcode.com> * e-tree-model.c (e_tree_model_node_insert): call e_table_model_row_inserted instead of e_table_model_changed. svn path=/trunk/; revision=3637
* Made cells with strikeout on have a line from the left margin to the rightChristopher James Lahey2000-06-171-8/+4
| | | | | | | | | 2000-06-17 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Made cells with strikeout on have a line from the left margin to the right margin, instead of just over the text. svn path=/trunk/; revision=3609
* Moved the reflow signal handling into an idle handler to fix a bug whenChristopher James Lahey2000-06-162-3/+19
| | | | | | | | | 2000-06-16 Christopher James Lahey <clahey@helixcode.com> * e-table.c, e-table.h: Moved the reflow signal handling into an idle handler to fix a bug when resizing twice in succession. svn path=/trunk/; revision=3588
* print the icon for the tree control.Chris Toshok2000-06-161-21/+27
| | | | | | | | 2000-06-15 Chris Toshok <toshok@helixcode.com> * e-cell-tree.c (ect_print): print the icon for the tree control. svn path=/trunk/; revision=3579
* new function, to generate postscript so i can test tree printing.Chris Toshok2000-06-142-29/+129
| | | | | | | | | | | | | | | | | | | 2000-06-14 Chris Toshok <toshok@helixcode.com> * e-tree-example-1.c (print_tree): new function, to generate postscript so i can test tree printing. (create_tree): add print button. * e-cell-tree.c (ect_print_height): implement function (in a broken way for the time being, heh). (ect_print): implement function to draw tree controls and offset the subcell's printing. icons aren't printed yet, just lines. (ect_draw): remove old unnecessary comments. only draw the horizontal line in specific instances (well, add a test so a lone root node doesn't get the horizontal line.) (e_cell_tree_class_init): add print/print_height methods. svn path=/trunk/; revision=3565
* Request the value of e_table_is_cell_editable of the model_col instead ofChristopher James Lahey2000-06-142-7/+7
| | | | | | | | | | | 2000-06-14 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Request the value of e_table_is_cell_editable of the model_col instead of the view_col. * e-table-item.h: Slight style fixup. svn path=/trunk/; revision=3564
* Clip the contained text.Christopher James Lahey2000-06-133-5/+393
| | | | | | | | | | | | | | | 2000-06-13 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Clip the contained text. * e-table-group-container.c: Did a first pass at grouped printing. This works, but there's no fancy boxes or headers around the groups. * e-table-item.c: Added will_fit function and added quantize function to _height. svn path=/trunk/; revision=3552
* Removed the freeze/thaw stuff for the model. As Chris wisely pointed out,Federico Mena Quintero2000-06-1313-134/+39
| | | | | | | | | | | | | | | | | | | | | | 2000-06-12 Federico Mena Quintero <federico@helixcode.com> * e-table-model.[ch]: Removed the freeze/thaw stuff for the model. As Chris wisely pointed out, having freeze/thaw on the model makes its state inconsistent from the perspective of the views. * e-table-sorted-variable.c: Do not check for a frozen model. * e-table-subset.c: Likewise. * e-table-subset-variable.c: Likewise. * e-table-example-1.c: Removed the ETableModel thaw handler. * e-table-example-2.c: Likewise. * e-table-simple.c: Likewise. * e-table-size-test.c: Likewise. * test-check.c: Likewise. * test-cols.c: Likewise. * test-table.c: Likewise. svn path=/trunk/; revision=3543
* supply the pixbufs here.Chris Toshok2000-06-113-19/+34
| | | | | | | | | | | | | | | 2000-06-10 Chris Toshok <toshok@helixcode.com> * e-tree-example-1.c (create_tree): supply the pixbufs here. * e-cell-tree.h: change pixbuf names to open_pixbuf/closed_pixbuf. * e-cell-tree.c (e_cell_tree_construct): take open/closed pixbuf parameters, and don't #include the .xpm files directly here. (e_cell_tree_new): same. (ect_draw): use the pixbufs from the ECellTree. svn path=/trunk/; revision=3522
* offset events before passing them to our subcell view.Chris Toshok2000-06-111-4/+17
| | | | | | | | | 2000-06-10 Chris Toshok <toshok@helixcode.com> * e-cell-tree.c (ect_event): offset events before passing them to our subcell view. svn path=/trunk/; revision=3520
* change things so we focus the cell and select the row, and also dispatchChris Toshok2000-06-119-416/+832
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-06-10 Chris Toshok <toshok@helixcode.com> * e-table-item.c (eti_event): change things so we focus the cell and select the row, and also dispatch the event to that row/cell. This fixes the problem with the tree where you had to click twice to activate the tree controls. * Makefile.am (libetable_a_SOURCES): remove e-tree-gnode.* and add e-tree-simple.* (icons): add tree-expanded.xpm and tree-unexpanded.xpm * e-cell-tree.c (ect_enter_edit): defer to subcell's view. (ect_leave_edit): defer to subcell's view. (visible_depth_of_node): visual depth, taking into account that the root node of the model might not be displayed. (offset_of_node): return the offset used to shift the subcell over. (ect_draw): don't draw vertical lines if we're the leftmode node (a visual root node). also, don't shift x2 by the subcell offset, so we get ellipses like we're supposed to. (ect_event): remove GDK_BUTTON_RELEASE from the list of events that we care about. * e-tree-example-1.c: lots of changes, a more dynamic UI so we can test tree model api stuff. * e-tree-gnode.c, e-tree-gnode.c: removed files, since their guts have been rolled into e-tree-model.c * e-tree-model.c, e-tree-model.h: substantially changed. too much to really describe here. this should really be considered the first revision of these files :) * e-tree-simple.c, e-tree-simple.h: analogous to e-table-simple, a subclass that allows the use of function pointers. svn path=/trunk/; revision=3519
* Small syntactic changes.Christopher James Lahey2000-06-112-12/+21
| | | | | | | | | | 2000-06-11 Christopher James Lahey <clahey@helixcode.com> * e-table-model.c: Small syntactic changes. * e-table.c: Moved the table header into the scrolled view. svn path=/trunk/; revision=3517
* Make ETable use EScrollFrame instead of GtkScrolledWindow.Ettore Perazzoli2000-06-111-7/+13
| | | | svn path=/trunk/; revision=3515
* Added $(GNOME_PRINT_LIBS) to all of the LDADDs.Christopher James Lahey2000-06-1112-60/+420
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-06-10 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(GNOME_PRINT_LIBS) to all of the LDADDs. * e-cell-text.c: Added printing of text cells. * e-cell.c, e-cell.h: Added print and print_height methods. * e-table-field-chooser.glade: Added a minimum size. * e-table-group-container.c: Fixed a rectangle sizing bug. * e-table-group-leaf.c: Implemented get_printable. * e-table-group.c, e-table-group.h: Added a get_printable method to return an EPrintable. * e-table-item.c, e-table-item.h: Added a get_printable function to return an EPrintable. * e-table.c, e-table.h: Added a get_printable function to return an EPrintable. svn path=/trunk/; revision=3511
* New files. A tree model using a GNode structure to store it's info.Chris Toshok2000-06-0910-0/+1350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-06-08 Chris Toshok <toshok@helixcode.com> * e-tree-gnode.c, e-tree-gnode.h: New files. A tree model using a GNode structure to store it's info. * e-tree-model.c, e-tree-model.h: New files. A proxy model sitting between a table model and the real tree model (of which ETreeGNode is an example). * e-cell-tree.c, e-cell-tree.h: New files. A cell renderer capable of wrapping up a subcell and drawing the tree controls for expanding/collapsing trees. * tree-expanded.xpm, tree-unexpanded.xpm: New files. the standard + and - icons. * e-tree-example-1.c: New file, giving a (pretty poor :) example of using ETreeGNode. * Makefile.am: at the tree stuff to the build, and build tree-example-1. * .cvsignore: ignore tree-example-1. svn path=/trunk/; revision=3483
* The field chooser works now.Christopher James Lahey2000-06-085-32/+27
| | | | | | | | | | | | | | | | | | | | 2000-06-08 Christopher James Lahey <clahey@helixcode.com> * The field chooser works now. * e-table-field-chooser-dialog.c: Make the dialog resizable. * e-table-field-chooser-item.c: Requested a reflow on realization. Made the correct column get dragged. * e-table-field-chooser.c: Set the height correctly. * e-table-field-chooser.glade: Replace the GnomeCanvas with an ECanvas. * e-table-header-item.c: Receive drags from the new dialog. svn path=/trunk/; revision=3476
* More work on the Field Chooser. Not quite done yet.Christopher James Lahey2000-06-088-42/+271
| | | | | | | | | | | | 2000-06-08 Christopher James Lahey <clahey@helixcode.com> * e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h, e-table-field-chooser-item.c, e-table-field-chooser.c, e-table-field-chooser.glade, e-table-field-chooser.h, e-table-header-item.c, e-table.c: More work on the Field Chooser. Not quite done yet. svn path=/trunk/; revision=3475
* Added e-table-field-chooser*.Christopher James Lahey2000-06-0811-158/+1279
| | | | | | | | | | | | | | | | | | | 2000-06-07 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added e-table-field-chooser*. * e-table-defines.h: Moved some things to here. * e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h, e-table-field-chooser-item.c, e-table-field-chooser-item.h, e-table-field-chooser.c, e-table-field-chooser.glade, e-table-field-chooser.glade.h, e-table-field-chooser.h: New dialog to drag extra fields from. (Not yet finished.) * e-table-header-item.c, e-table-header-item.h: Changed to accommodate e-table-field-chooser. svn path=/trunk/; revision=3473
* Added a right click signal.Christopher James Lahey2000-06-069-26/+127
| | | | | | | | | | | | 2000-06-06 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, e-table.c, e-table.h: Added a right click signal. * e-table-sorted-variable.c: Fixed a buffer overrun. svn path=/trunk/; revision=3437
* Fixed the multiple copies of rows in ETable bug.Christopher James Lahey2000-06-021-1/+1
| | | | | | | | | 2000-06-02 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Fixed the multiple copies of rows in ETable bug. svn path=/trunk/; revision=3386
* two more pastosDan Winship2000-06-022-2/+2
| | | | | | | * e-table-group.c (e_table_group_key_press): * e-table.c (group_key_press): two more pastos svn path=/trunk/; revision=3370
* Copy and paste error.Christopher James Lahey2000-06-022-11/+4
| | | | | | | | | | 2000-06-01 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Copy and paste error. * e-table-item.c: Mixed up parity on eti->editing. svn path=/trunk/; revision=3368
* Added a "key_press" signal.Christopher James Lahey2000-06-028-3/+94
| | | | | | | | | | 2000-06-01 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, e-table.c, e-table.h: Added a "key_press" signal. svn path=/trunk/; revision=3366
* Remove an offending *.Dan Winship2000-06-021-1/+1
| | | | | | * e-cell-text.h: Remove an offending *. svn path=/trunk/; revision=3359
* Made the sort when inserting a signal row be syncronous.Christopher James Lahey2000-06-021-5/+44
| | | | | | | | | 2000-06-01 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Made the sort when inserting a signal row be syncronous. svn path=/trunk/; revision=3358
* Added "text_filter" argument that takes a const void * and returns anChristopher James Lahey2000-06-022-24/+43
| | | | | | | | | 2000-06-01 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c, e-cell-text.h: Added "text_filter" argument that takes a const void * and returns an allocated char *. svn path=/trunk/; revision=3356
* Accidental commit fix.Chris Lahey2000-06-021-3/+9
| | | | svn path=/trunk/; revision=3354
* Copy and paste error.Christopher James Lahey2000-06-023-4/+21
| | | | | | | | 2000-06-01 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Copy and paste error. svn path=/trunk/; revision=3353
* Added e_table_get_selected_view_row.Christopher James Lahey2000-06-027-4/+62
| | | | | | | | | | 2000-06-01 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.c, e-table.h: Added e_table_get_selected_view_row. svn path=/trunk/; revision=3351
* Added bold column's to ECellText.Christopher James Lahey2000-05-312-44/+146
| | | | | | | | 2000-05-30 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c, e-cell-text.h: Added bold column's to ECellText. svn path=/trunk/; revision=3291
* Make sure that the cursor is always shown when the selection changes.Christopher James Lahey2000-05-311-2/+27
| | | | | | | | | 2000-05-30 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Make sure that the cursor is always shown when the selection changes. svn path=/trunk/; revision=3290
* Fixed a bunch of selection bugs. Removed "spreadsheet" argument (for now.)Christopher James Lahey2000-05-3013-109/+399
| | | | | | | | | | | | | | 2000-05-30 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, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h, e-table.c, e-table.h, test-check.c, test-cols.c, test-table.c: Fixed a bunch of selection bugs. Removed "spreadsheet" argument (for now.) Added "cursor_mode" argument. Added "cursor_change" signal. Temporarily removed "selection_mode" argument. svn path=/trunk/; revision=3277
* Fixed setting of arguments.Christopher James Lahey2000-05-291-3/+3
| | | | | | | | 2000-05-28 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c: Fixed setting of arguments. svn path=/trunk/; revision=3256
* Added double click handling.Christopher James Lahey2000-05-288-6/+101
| | | | | | | | | | 2000-05-28 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, e-table.c, e-table.h: Added double click handling. svn path=/trunk/; revision=3238
* Added "strikeout_column" argument.Christopher James Lahey2000-05-272-2/+75
| | | | | | | | 2000-05-26 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c, e-cell-text.h: Added "strikeout_column" argument. svn path=/trunk/; revision=3224
* Made "drawgrid", "drawfocus", "spreadsheet", and "length_threshold"Christopher James Lahey2000-05-277-40/+199
| | | | | | | | | | | | | | 2000-05-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, e-table.c, e-table.h: Made "drawgrid", "drawfocus", "spreadsheet", and "length_threshold" arguments set from the ETable effect all the end ETableItems. * e-table-header.c: Made column resize a bit less bumpy. svn path=/trunk/; revision=3223
* Account for extra pixel at right end of ETable.Christopher James Lahey2000-05-263-4/+7
| | | | | | | | | | | | | 2000-05-25 Christopher James Lahey <clahey@helixcode.com> * e-table-header.c: Account for extra pixel at right end of ETable. * e-table-item.c: Make grid less intrusive. * e-table.c: Make scrollbars disappear when appropriate. svn path=/trunk/; revision=3206
* Made dragging columns work.Christopher James Lahey2000-05-261-27/+27
| | | | | | | | 2000-05-25 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Made dragging columns work. svn path=/trunk/; revision=3205
* Fixed the remove column callback.Christopher James Lahey2000-05-241-1/+2
| | | | | | | | 2000-05-23 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Fixed the remove column callback. svn path=/trunk/; revision=3187
* Added right click menus to the table header items.Christopher James Lahey2000-05-242-19/+182
| | | | | | | | | | | 2000-05-23 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Added right click menus to the table header items. * e-table-sort-info.c: Fixed a small bug. svn path=/trunk/; revision=3184
* Make scrollbar arrow buttons work.Christopher James Lahey2000-05-231-0/+4
| | | | | | | | 2000-05-23 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Make scrollbar arrow buttons work. svn path=/trunk/; revision=3176
* Added initialize_value and value_is_empty callbacks.Christopher James Lahey2000-05-2011-84/+323
| | | | | | | | | | | | | | | | 2000-05-19 Christopher James Lahey <clahey@helixcode.com> * e-table-example-1.c, e-table-example-2.c, e-table-simple.c, e-table-simple.h, e-table-size-test.c, test-check.c, test-cols.c, test-table.c: Added initialize_value and value_is_empty callbacks. * e-table-model.c, e-table-model.h: Added initialize_value and value_is_callback virtual functions to the ETableModel class. * e-table-subset.c: Perpetuate the initialize_value and value_is_empty methods. svn path=/trunk/; revision=3138
* From a patch by Iain Holmes <ih@csd.abdn.ac.uk>Christopher James Lahey2000-05-192-2/+14
| | | | | | | | | | | | 2000-05-19 Christopher James Lahey <clahey@helixcode.com> From a patch by Iain Holmes <ih@csd.abdn.ac.uk> * e-table-config.c, e-table.c: Fixed getting text content from a node in the case of a non string based content field in the xml library. svn path=/trunk/; revision=3133
* Fixed a memory leak.Christopher James Lahey2000-05-161-0/+2
| | | | | | | | 2000-05-16 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Fixed a memory leak. svn path=/trunk/; revision=3089
* Changed sorting to be at priority level 30.Christopher James Lahey2000-05-162-3/+3
| | | | | | | | | | | | | 2000-05-16 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Changed sorting to be at priority level 30. * e-table.c: Changed rebuild of the table to be at priority level 20. This gives it an advantage over pretty much everything, including e-table-sorted-variable sorting and canvas redraw. svn path=/trunk/; revision=3082
* Removed a memory leak here.Christopher James Lahey2000-05-164-27/+4
| | | | | | | | | | | | | 2000-05-16 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c: Removed a memory leak here. * e-table-group-leaf.c: Added a ref/sink pair. * e-table-group.c, e-table-header-item.c: Removed some unused code. svn path=/trunk/; revision=3079
* Fixed a FIXME comment.Christopher James Lahey2000-05-163-27/+102
| | | | | | | | | | | | | | | | | | 2000-05-16 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Fixed a FIXME comment. * e-table-header.c, e-table-header.h: Added code to put off size calculation to the idle loop. Added code to not resize columns with 0 expansion. Removed the set_width function; it's been replaced with a Gtk+ arg. * Makefile.am: Added e-table-defines.h to the Makefile.am. * e-table-defines.h: A new file containing some #defines for use in ETable. svn path=/trunk/; revision=3077
* From widgets/e-table/ChangeLogChristopher James Lahey2000-05-1424-819/+510
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-05-14 Christopher James Lahey <clahey@helixcode.com> * Implemented the feature where the ETable columns automatically fill the given space. * e-cell-text.c, e-cell-text.h: Moved #include e-text-event-processor.h from the .h to the .c. * e-table-col.c, e-table-col.h: Added an expansion variable, and made it so that width isn't set by the programmer but instead by the e-table-header. * e-table-example-1.c, e-table-example-2.c, e-table-size-test.c, test-check.c, test-cols.c, test-table.c: Fixed to handle new ETable column resizing. * e-table-group-container.c, e-table-group-container.h, e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h: Fixed these to do a proper canvas reflow/update loop. Changed them to take a minimum width and return a width and a height. * e-table-header-item.c, e-table-header-item.h: Made this so that it depends on e-table-header.c for deciding the actual size of columns during resize (it was making incorrect decisions on its own.) * e-table-header.c, e-table-header.h: Changed this to make sure that the sum of the widths of the columns was always as close as possible to the width of the window. This is done by taking a full width and having each of the columns have an "expansion" field. This field is what makes each column have approximately the same portion of its part of the screen that it used to. * e-table.c: Changed this to set the width on the ETableHeader as well as set the proper minimum width on the ETableGroup and get the width and height it reports. From addressbook/ChangeLog 2000-05-14 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/Makefile.am: Added libeutil for e-card's support for categories. * backend/ebook/e-card-list.c, backend/ebook/e-card-list.h: Added a function to get the length. * backend/ebook/e-card.c, backend/ebook/e-card.h: Added categories support (accessible either as "categories" or "category_list".) * contact-editor/Makefile.am: Added e-table and all of the categories files. * contact-editor/categories.glade, contact-editor/categories-strings.h, contact-editor/e-contact-editor-categories.c, contact-editor/e-contact-editor-categories.h: * contact-editor/contact-editor.glade, contact-editor/e-contact-editor-strings.h: Rearranged this dialog. * contact-editor/e-contact-editor.c: Rearranged dialog a bit. Added opening of categories dialog. * gui/component/Makefile.am: Rearranged libraries so that libetable would be available for the contact editor categories dialog. * gui/component/addressbook.c: Fix for new ETable resizing. Make contact editor dialog resizable. * gui/minicard/Makefile.am: Added libetable contact editor categories dialog. * gui/minicard/e-minicard.c: Make contact editor dialog resizable. From mail/ChangeLog 2000-05-14 Christopher James Lahey <clahey@helixcode.com> * message-list.c: Updated to work with new ETable resizing. svn path=/trunk/; revision=3027
* *** empty log message ***Miguel de Icaza2000-05-122-1/+30
| | | | svn path=/trunk/; revision=3001
* Fixed etssv_remove.Christopher James Lahey2000-05-101-2/+11
| | | | | | | | 2000-05-09 Christopher James Lahey <clahey@helixcode.com> * e-table-subset-variable.c: Fixed etssv_remove. svn path=/trunk/; revision=2951
* Make multi-line texts display properly. Fixed some mem leaks.Christopher James Lahey2000-05-081-10/+6
| | | | | | | | | 2000-05-08 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Make multi-line texts display properly. Fixed some mem leaks. svn path=/trunk/; revision=2911
* free cell.starting_text here to avoid a memory leak.Chris Toshok2000-05-081-0/+1
| | | | | | | * e-cell-text.c (ect_draw): free cell.starting_text here to avoid a memory leak. svn path=/trunk/; revision=2898
* Add a horizontal scrollbar.Christopher James Lahey2000-05-081-1/+1
| | | | | | | | 2000-05-07 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Add a horizontal scrollbar. svn path=/trunk/; revision=2892
* Handle row_inserted and row_deleted signals properly.Christopher James Lahey2000-05-088-37/+126
| | | | | | | | | | | | | | | 2000-05-07 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table-item.h, e-table.c, e-table.h: Handle row_inserted and row_deleted signals properly. * e-table-model.c, e-table-model.h: Created the row_inserted and row_deleted signals. * e-table-sorted-variable.c, e-table-subset-variable.c: Emit the row_inserted and row_deleted signals as appropriate. svn path=/trunk/; revision=2879
* only to set_value_at if the value is indeed different. (ect_stop_editing):Chris Toshok2000-05-071-3/+9
| | | | | | | | | | * e-cell-text.c (ect_accept_edits): only to set_value_at if the value is indeed different. (ect_stop_editing): free edit->cell.starting_text (build_current_cell): initialize edit->cell.starting_text as a copy of the initial text. svn path=/trunk/; revision=2858
* Killed some warnings.Christopher James Lahey2000-05-072-3/+0
| | | | | | | | 2000-05-06 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table.c: Killed some warnings. svn path=/trunk/; revision=2836
* ignore the .pure directoryChris Toshok2000-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | * addressbook/backend/ebook/.cvsignore, addressbook/contact-editor/.cvsignore, addressbook/gui/component/.cvsignore, addressbook/gui/minicard/.cvsignore, addressbook/printing/.cvsignore, calendar/cal-client/.cvsignore, calendar/gui/.cvsignore, calendar/pcs/.cvsignore, filter/.cvsignore, mail/.cvsignore, shell/.cvsignore, tests/.cvsignore, widgets/e-table/.cvsignore, widgets/e-text/.cvsignore, widgets/meeting-time-sel/.cvsignore, widgets/shortcut-bar/.cvsignore, wombat/.cvsignore: ignore the .pure directory svn path=/trunk/; revision=2812
* use rows here instead of E_TABLE_SUBSET(etsv)->n_map, since the table canChris Toshok2000-05-051-1/+1
| | | | | | | | | * e-table-sorted-variable.c (etsv_sort): use rows here instead of E_TABLE_SUBSET(etsv)->n_map, since the table can be populated by the gtk_main_iteration above. otherwise the vals_closure may not be fully populated. svn path=/trunk/; revision=2809
* Add an e_table_group_add_all function and implement it in the differentChristopher James Lahey2000-05-059-15/+117
| | | | | | | | | | | | | | | | | | | | | 2000-05-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: Add an e_table_group_add_all function and implement it in the different ETableGroup classes. * e-table-sort-info.c: Make set_nth not call changed twice if it needs to allocate more space. * e-table-sorted-variable.c, e-table-subset-variable.c, e-table-subset-variable.h: Add and implement an e_table_subset_variable_add_all command. * e-table.c: Use e_table_group_add_all as appropriate. Fix ETable grouping xml to work if there is a text element at the bottom of the grouping tree. svn path=/trunk/; revision=2806
* Sped up e_cell_text's get_height function.Christopher James Lahey2000-05-051-16/+19
| | | | | | | | 2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Sped up e_cell_text's get_height function. svn path=/trunk/; revision=2803
* Added a height_cache idle loop so that the height_cache will be validatedChristopher James Lahey2000-05-042-2/+40
| | | | | | | | | 2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table-item.h: Added a height_cache idle loop so that the height_cache will be validated in the idle loop. svn path=/trunk/; revision=2794
* Load all the data to be sorted by before actually doing the sort.Christopher James Lahey2000-05-041-17/+47
| | | | | | | | | 2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Load all the data to be sorted by before actually doing the sort. svn path=/trunk/; revision=2793
* Fix author information.Christopher James Lahey2000-05-044-16/+43
| | | | | | | | | | | | | | | 2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c, e-cell-text.h: Fix author information. * e-table-group-leaf.c: Set a length threshold of 200. * e-table-item.c: Height cache is now actually a map. Made "length_threshold" argument work. If over the length threshold, use the height cache to get a better estimate so that once the height cache is full, height estimate is perfect. svn path=/trunk/; revision=2791
* Add back in main loop calls during sorting.Christopher James Lahey2000-05-041-0/+2
| | | | | | | | | 2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c (qsort_callback): Add back in main loop calls during sorting. svn path=/trunk/; revision=2788
* Replace insert sort completely with a qsort.Christopher James Lahey2000-05-042-77/+63
| | | | | | | | | 2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Replace insert sort completely with a qsort. svn path=/trunk/; revision=2786
* Changed the insert sort to be binary instead of linear.Christopher James Lahey2000-05-041-29/+52
| | | | | | | | | 2000-05-04 Christopher James Lahey <clahey@helixcode.com> * e-table-sorted-variable.c: Changed the insert sort to be binary instead of linear. svn path=/trunk/; revision=2784
* Made this more reentrant.Christopher James Lahey2000-05-015-10/+67
| | | | | | | | | | | | | | 2000-04-30 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Made this more reentrant. * e-table-sorted-variable.c, e-table-sorted-variable.h: Does a proper resort when the sorting info changes. * e-table.c, e-table.h: Made it so that ETable doesn't destroy and recreate the entire table when sorting info changes. svn path=/trunk/; revision=2704
* Fixed some warnings.Christopher James Lahey2000-04-287-8/+10
| | | | | | | | | | 2000-04-27 Christopher James Lahey <clahey@helixcode.com> * arrow-down.xpm, arrow-up.xpm, e-cell-text.c, e-cell-toggle.c, e-table-col.c, e-table-config.c, e-table-header-item.c: Fixed some warnings. svn path=/trunk/; revision=2659
* Added a missing include.Christopher James Lahey2000-04-261-0/+1
| | | | | | | | 2000-04-26 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Added a missing include. svn path=/trunk/; revision=2637
* Add argument handling here.Miguel de Icaza2000-04-2611-499/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-04-24 Miguel de Icaza <miguel@helixcode.com> * e-table.c (e_table_class_init): Add argument handling here. * e-table-group-leaf.c (e_table_group_apply_to_leafs): New method. Enables us to walk all the children of an ETableGroup. * e-table.c (et_get_arg, et_set_arg): Implement ::get and ::set methods. (e_table_construct_from_spec_file): Now we return the etable. (e_table_construct): ditto. (et_real_construct): Now we return the ETable. Returns NULL on construct failure. (e_table_new): ditto. (e_table_new_from_spec_file): ditto. * (et_build_grouping_spec): Removed vestige code that still contained references to the etable->specification XML code. Dumped all the ifdefed out code. * e-table.h: Removed ETable->specification finally. svn path=/trunk/; revision=2632
* Fixed a warning.Christopher James Lahey2000-04-252-2/+1
| | | | | | | | | | 2000-04-25 Christopher James Lahey <clahey@helixcode.com> * e-table-size-test.c: Fixed a warning. * e-table-item.c: Removed the unnecessary gnome_canvas_update_bbox. svn path=/trunk/; revision=2598
* Made the tooltip show up in the correct place and configuration when usingChristopher James Lahey2000-04-241-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2000-04-24 Christopher James Lahey <clahey@helixcode.com> * widgets/e-text/e-text.c: Made the tooltip show up in the correct place and configuration when using the "max_lines", "anchor" (untested), or "justification" arguments. From a patch by Iain Holmes <ih@csd.abdn.ac.uk> * widgets/e-text/e-text-event-processor-emacs-like.c, widget/e-text/e-text-event-processor-types.h, widgets/e-text/e-text.c, widgets/e-text/e-text.h: Changed C-w and C-y to control the X clipboard. Added double and triple click events. From widgets/e-table/: 2000-04-24 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Fixed some warnings. svn path=/trunk/; revision=2581
* Calculate the width of the table from the width of all the columns, andIain Holmes2000-04-241-2/+11
| | | | | | | | | | 2000-04-23 Iain Holmes <ih@csd.abdn.ac.uk> * e-table-item.c (eti_bounds): Calculate the width of the table from the width of all the columns, and update the eti->width field as appropiate. (eti_update): Update the bbox. svn path=/trunk/; revision=2572
* add table-size-testChris Toshok2000-04-176-27/+269
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (noinst_PROGRAMS): add table-size-test * .cvsignore: add table-size-test. * e-cell-text.c (ect_ecent): use e_table_model_is_cell_editable instead of E_CELL_EDITABLE. * e-cell-toggle.c (etog_event): same. * e-cell.c (e_cell_init): don't call e_cell_set_editable. that info comes from the model. (e_cell_set_editable): removed function. * e-cell.h: remove the E_CELL_EDITABLE flag. that should be retrieved from the model. also, remove the prototype for e_cell_set_editable. * e-table-size-test.c: new file, for a stress test of sorts, of a large, uneditable e-table. svn path=/trunk/; revision=2468
* Propagate mouse wheel events upwards.Anders Carlsson2000-04-172-13/+17
| | | | | | | | | | | | 2000-04-16 Anders Carlsson <andersca@gnu.org> * e-table-item.c (eti_event): Propagate mouse wheel events upwards. * e-table.c (et_real_construct): Use a GtkScrolledWindow here instead of a GtkScrollbar, since it makes mouse wheel scrolling much easier. svn path=/trunk/; revision=2463
* + * addressbook/gui/component/addressbook.cMatthew Loper2000-04-161-0/+13
| | | | | | | | | | | | | | | | + (search_entry_activated): New function. Gets called when the quick + search entry is called on to perform a search. + (make_quick_search_widget): New function; returns a "quick search" + widget. + (control_activate): During the construction of the toolbar, a + "quick search" widget is included. + + * e-table.c (et_xml_to_header): sanity-check our parameters. + (et_grouping_xml_to_sort_info): same. + (et_real_construct): Bail if we couldn't get the children we + wanted. svn path=/trunk/; revision=2455
* Added a row height cache.Christopher James Lahey2000-04-152-2/+62
| | | | | | | | 2000-04-14 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table-item.h: Added a row height cache. svn path=/trunk/; revision=2443