Commit Graph

774 Commits

Author SHA1 Message Date
660118fcbe Call the parent function after doing all the internal work so that when
2002-03-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table-memory-store.c (e_table_memory_store_insert,
	e_table_memory_store_insert_adopt, e_table_memory_store_remove):
	Call the parent function after doing all the internal work so that
	when the changed signal goes out, our work is already done.

svn path=/trunk/; revision=16245
2002-03-25 19:22:25 +00:00
46c0e7a054 +2002-03-20 Christopher James Lahey <clahey@ximian.com>
+
+	* e-table-header-item.c: Adjust this to handle the new EPopupMenu
+	API.
+

svn path=/trunk/; revision=16223
2002-03-21 20:14:26 +00:00
88a322f15d Check for a style_set signal on all the contained GnomeCanvasItems.
2002-03-15  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-canvas.c (e_canvas_style_set): Check for a
	style_set signal on all the contained GnomeCanvasItems.

From gal/e-table/ChangeLog:

2002-03-15  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-toggle.c: Clear the pixmap cache in e_cell_style_set.

	* e-cell.c, e-cell.h (e_cell_style_set): Added this virtual
	method.

	* e-table-item.c, e-table-item.h: Call e_cell_style_set in out
	style_set signal.

svn path=/trunk/; revision=16180
2002-03-15 23:16:01 +00:00
95c4e2623b Add a GdkPixmap * cache of rendered toggle images. This should
2002-03-15  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-toggle.c: Add a GdkPixmap * cache of rendered toggle
	images.  This should considerably speed up over the wire
	performance of ECellToggle.

svn path=/trunk/; revision=16177
2002-03-15 21:51:06 +00:00
a17d29d26c New function that returns the total minimum width of all the columns.
2002-03-15  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header.c, e-table-header.h (e_table_header_min_width):
	New function that returns the total minimum width of all the
	columns.

	* e-table.c, e-table.h (set_header_width): Call
	e_table_header_min_width here instead of total_width.
	(et_size_request): Override the size_request method instead of
	doing set_usize.

svn path=/trunk/; revision=16175
2002-03-15 20:36:07 +00:00
eafda9ba48 Implemented capitalization keybindings.
2002-03-14  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c: Implemented capitalization keybindings.

	* e-tree.c (item_key_press): Added parentheses to the default case
	here.

svn path=/trunk/; revision=16168
2002-03-14 21:50:06 +00:00
4f298eab9e Made this return a boolean that returns whether the ETableSearch used the
2002-03-14  Christopher James Lahey  <clahey@ximian.com>

	* e-table-search.c, e-table-search.h (e_table_search_backspace):
	Made this return a boolean that returns whether the ETableSearch
	used the backspace at all.

	* e-table.c (group_key_press), e-tree.c (item_key_press): Used the
	new return value from e_table_search_backspace.

svn path=/trunk/; revision=16166
2002-03-14 20:40:21 +00:00
87c61411fa Don't search if any modifier but SHIFT or LOCK is pressed.
* e-tree.c (item_key_press): Don't search if any modifier but
SHIFT or LOCK is pressed.

* e-table.c (group_key_press): Don't search if any modifier but
SHIFT or LOCK is pressed.

svn path=/trunk/; revision=16161
2002-03-14 19:18:39 +00:00
6db2753145 Added selected_column, focused_column, and unselected_column.
2002-03-13  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-pixbuf.c, e-cell-pixbuf.h (pixbuf_draw): Added
	selected_column, focused_column, and unselected_column.

svn path=/trunk/; revision=16149
2002-03-13 22:10:23 +00:00
84d68e4955 Added this function.
2002-03-13  Christopher James Lahey  <clahey@ximian.com>

	* e-table-search.c, e-table-search.h (e_table_search_backspace):
	Added this function.

	* e-table.c, e-tree.c: Call the new function on backspace.

svn path=/trunk/; revision=16145
2002-03-13 20:51:44 +00:00
abd6567ea0 Replaced e_marshal_BOOL__STRING with this since the function it was used
2002-03-13  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c, gal/util/e-util.h
	(e_marshal_BOOL__STRING_INT): Replaced e_marshal_BOOL__STRING with
	this since the function it was used for has been modified.

From gal/e-table/ChangeLog:

2002-03-13  Christopher James Lahey  <clahey@ximian.com>

	* e-table-extras.c (e_string_search): Check for a NULL haystack
	here.

	* e-table-search.c, e-table-search.h: Added a parameter to the
	search signal here to pass in flags.  Specifically, added the
	E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST flag.  Improved the search
	behavior here.

	* e-table.c, e-tree.c: Handle the new signature for the search
	signal here.

svn path=/trunk/; revision=16139
2002-03-13 07:10:22 +00:00
e03e086323 Added ETableSearch support.
2002-03-13  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c: Added ETableSearch support.

svn path=/trunk/; revision=16138
2002-03-13 06:02:36 +00:00
5020c3bd9a Added support for E_TABLE_MEMORY_STORE_OBJECT which represents a column
2002-03-12  Christopher James Lahey  <clahey@ximian.com>

	* e-table-memory-store.c, e-table-memory-store.h: Added support
	for E_TABLE_MEMORY_STORE_OBJECT which represents a column storing
	a GtkObject.

svn path=/trunk/; revision=16132
2002-03-12 22:14:56 +00:00
d882e4e420 Give the correct height to the subcells instead of overlapping them.
2002-03-12  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-vbox.c (ecv_draw): Give the correct height to the
	subcells instead of overlapping them.

	* e-table-header.c, e-table-header.h (e_table_header_move,
	eth_calc_widths): Emit the dimension_changed signal with the width
	of the header.

	* e-table-memory-store.c (duplicate_value, etms_free_value):
	Handle NULL pixbufs here.

	* e-table.c, e-table.h: Connect to the dimension_changed signal
	and call set_header_width.  Did a bit of refactoring here.

svn path=/trunk/; revision=16128
2002-03-12 21:24:34 +00:00
fd4ffbd38c Added e-table-search.lo.
2002-03-12  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added e-table-search.lo.

	* gal/util/e-util.c, gal/util/e-util.h (e_marshal_BOOL__STRING):
	Added this marshal function.

From gal/e-table/ChangeLog:

2002-03-12  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (libetable_la_SOURCES): Added e-table-search.c.
	(libetableinclude_HEADERS): Added e-table-search.h.

	* e-cell.h: Added ETableSearchFun here.

	* e-table-col.h: Added search here.

	* e-table-column-specification.c, e-table-column-specification.h:
	Added search here.

	* e-table-extras.c, e-table-extras.h (e_table_extras_add_search):
	Added ETableSearchFuncs here.

	* e-table-memory-store.c (e_table_memory_store_insert,
	e_table_memory_store_insert_adopt): Handle row == -1 here.

	* e-table-search.c, e-table-search.h: New class to reusably handle
	the semantics of searching for a string.

	* e-table-simple.c, e-table-simple.h: Added a bunch of simple
	functions here for if your table is all strings.  Should be
	reusable.

	* e-table-utils.c (et_col_spec_to_col): Added support for searches
	here.

	* e-table.c, e-table.h: Added an ETableSearch here.

svn path=/trunk/; revision=16119
2002-03-12 14:30:53 +00:00
3994c3b9c0 Proxy request_collapse signals.
2002-03-11  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c (ets_proxy_node_request_collapse): Proxy
	request_collapse signals.

svn path=/trunk/; revision=16116
2002-03-12 00:52:06 +00:00
abed3a2d41 Added e-cell-vbox.lo.
2002-03-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added e-cell-vbox.lo.

From gal/e-table/ChangeLog:

2002-03-11  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (libetable_la_SOURCES): Added e-cell-vbox.c.
	(libetableinclude_HEADERS): Added e-cell-vbox.h.

	* e-cell-vbox.c, e-cell-vbox.h: New ECell to take multiple other
	ECells and use them all in a vertical series.

svn path=/trunk/; revision=16110
2002-03-11 23:10:02 +00:00
732d4c40a0 Added this function to take a ... list of column data. The expected number
2002-03-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table-memory-store.c (e_table_memory_store_insert_list): Added
	this function to take a ... list of column data.  The expected
	number of parameters in the ... is the number of columns in the
	table.

svn path=/trunk/; revision=16109
2002-03-11 23:05:34 +00:00
e94b86c4b5 Added a pixbuf column type.
2002-03-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table-memory-store.c, e-table-memory-store.h
	(E_TABLE_MEMORY_STORE_PIXBUF): Added a pixbuf column type.

	* e-table-specification.c, e-table-specification.h: Added
	horizontal-resize attribute.

	* e-table.c, e-table.h: Handle horizontal_resize.

svn path=/trunk/; revision=16108
2002-03-11 22:51:50 +00:00
9c939e7a99 Handle a collapse request by marking all descendents of that node as
2002-03-08  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-memory.c (etmm_node_request_collapse): Handle a collapse
	request by marking all descendents of that node as needing their
	children recomputed.

	* e-tree-model.c, e-tree-model.h
	(e_tree_model_node_request_collapse): Added this signal to request
	that the view of your tree collapse this node.

	* e-tree-selection-model.c (etsm_selected_count): Pass the root of
	the sorted model here instead of the root of the base model.

	* e-tree-table-adapter.c (etta_proxy_node_request_collapse):
	Handle a collapse request by collapsing the node in the tree.

svn path=/trunk/; revision=15990
2002-03-08 21:45:03 +00:00
8e3b9f653a Added a fill_in_children signal.
2002-03-08  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-memory.c, e-tree-memory.h (check_children): Added a
	fill_in_children signal.

svn path=/trunk/; revision=15988
2002-03-08 06:55:26 +00:00
f6f3d8d543 Re-disable tooltips since they're (still) fantastically obnoxious with
* e-table-item.c: Re-disable tooltips since they're (still)
	fantastically obnoxious with focus-follows-mouse. (OKed by Ettore).

svn path=/trunk/; revision=15927
2002-03-05 21:13:00 +00:00
09ab532c39 only call the cell's print method if it has one. Avoids crashing for
2002-03-04  Damon Chaplin  <damon@ximian.com>

	* e-cell.c (e_cell_print): only call the cell's print method if it has
	one. Avoids crashing for unimplemented print methods.

svn path=/trunk/; revision=15903
2002-03-04 19:30:31 +00:00
4f122d673c Added e-table-memory-store.lo.
2002-02-21  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added
	e-table-memory-store.lo.

From gal/e-table/ChangeLog:

2002-02-21  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (libetable_la_SOURCES): Added
	e-table-memory-store.c.
	(libetableinclude_HEADERS): Added e-table-memory-store.h.

	* e-table-config-no-group.glade, e-table-config.glade: Updated
	these.

	* e-table-config.c, e-table-config.h: Updated this to have a
	working field list editor.

	* e-table-memory-store.c, e-table-memory-store.h: New ETableModel
	that is a complete store of all the data in your table.  No
	callbacks at all.

	* e-table-subset-variable.c, e-table-subset-variable.h
	(e_table_subset_variable_clear): Added this simple function

	* e-table-subset.c (etss_get_save_id): Made this return the row
	number g_strdup_printfed if the source model doesn't support save
	ids.

2002-02-20  Christopher James Lahey  <clahey@ximian.com>

	* e-table-sorter.c, e-table-sorter.h: Connect to the
	model_rows_inserted, model_rows_deleted, and group_info_changed
	here.

svn path=/trunk/; revision=15783
2002-02-21 19:02:32 +00:00
7f2dde8abd Initialize frozen_count to 0.
2002-02-19  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c (e_tree_selection_model_init):
	Initialize frozen_count to 0.

svn path=/trunk/; revision=15765
2002-02-19 20:03:44 +00:00
650dfce65f Make the defalut for tooltips be on.
2002-02-13  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Make the defalut for tooltips be on.

svn path=/trunk/; revision=15719
2002-02-13 22:26:40 +00:00
3ab71d1974 Cancel tooltip timeouts here.
2002-02-12  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_unrealize): Cancel tooltip timeouts here.

svn path=/trunk/; revision=15686
2002-02-12 19:56:10 +00:00
88b0c8138a Call scroll_off and in e-tree.c hover_off.
2002-02-08  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (et_unrealize), e-tree.c (et_unrealize): Call
	scroll_off and in e-tree.c hover_off.

svn path=/trunk/; revision=15618
2002-02-08 19:22:41 +00:00
2819f70ff2 *** empty log message ***
svn path=/trunk/; revision=15588
2002-02-07 10:05:45 +00:00
a3bd2634b1 Made this function much more readable. Got rid of all the gotos. Fixed a
2002-01-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-model.c (e_tree_model_node_find): Made this function much
	more readable.  Got rid of all the gotos.  Fixed a case where
	going backwards during a root search checked the root node first.
	(e_tree_model_node_real_traverse): Made backwards traversals be
	postorder, as they should be, instead of preorder.

	* e-tree.c (find_next_callback): Use an extra callback function
	here to go from sorted path to model path.

svn path=/trunk/; revision=15543
2002-01-31 20:23:00 +00:00
5ec116e6a9 Make this function take a bitfield of parameters instead of two bools.
2002-01-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c, e-tree.h (e_tree_find_next): Make this function take a
	bitfield of parameters instead of two bools.

svn path=/trunk/; revision=15538
2002-01-31 09:03:48 +00:00
6d22aa7bd1 Added this simple accessor function.
2002-01-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c, e-tree-selection-model.h
	(e_tree_selection_model_get_cursor): Added this simple accessor
	function.

	* e-tree.c, e-tree.h (e_tree_find_next): Searches from the cursor
	given the search parameters and moves the cursor if it ever
	matches.

svn path=/trunk/; revision=15537
2002-01-31 08:38:03 +00:00
e2defdb06f New function to do a search through a tree in one direction or the other.
2002-01-31  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-model.c, e-tree-model.h (e_tree_model_node_find): New
	function to do a search through a tree in one direction or the
	other.

svn path=/trunk/; revision=15536
2002-01-31 08:17:57 +00:00
a10b9d3aa1 Implement max_width_by_row.
2002-01-21  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c: Implement max_width_by_row.

	* e-cell-tree.c: Use max_width_by_row in max_width function.

	* e-cell.c, e-cell.h (e_cell_max_width_by_row): Added this new
	method to ECell.

svn path=/trunk/; revision=15418
2002-01-21 17:55:16 +00:00
af1b3098c2 new file, implements the ECellProgress object.
2002-01-16  Krisztian Pifko  <monsta@users.sourceforge.net>

	* e-cell-progress.c, e-cell-progress.h: new file, implements the
	ECellProgress object.

	* Makefile.am (libetable_la_SOURCES, libetableinclude_HEADERS):
	added e-cell-progress.c and e-cell-progress.h.

svn path=/trunk/; revision=15341
2002-01-16 17:26:54 +00:00
8dcab9df57 Added #include <libgnome/gnome-defs.h>.
2002-01-16  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-checkbox.h, e-cell-date.h, e-cell-float.h,
	e-cell-number.h, e-cell-size.h, e-cell-text.h, e-cell-toggle.h,
	e-cell-tree.h, e-cell.h, e-table-click-to-add.h,
	e-table-col-dnd.h, e-table-config-field.h, e-table-extras.h,
	e-table-field-chooser-item.h, e-table-group-container.h,
	e-table-group-leaf.h, e-table-group.h, e-table-header-item.h,
	e-table-item.h, e-table-scrolled.h, e-table-sorter.h,
	e-table-tooltip.h, e-table-tree.h, e-table-utils.h, e-table.h,
	e-tree-scrolled.h, e-tree-sorted-variable.h, e-tree.h: Added
	#include <libgnome/gnome-defs.h>.

svn path=/trunk/; revision=15339
2002-01-16 17:17:04 +00:00
1d68f8289f New functions for saving selection state and such.
2002-01-15  Christopher James Lahey  <clahey@ximian.com>

	* e-cell.c, e-cell.h (e_cell_save_state, e_cell_load_state,
	e_cell_free_state): New functions for saving selection state and
	such.

	* e-cell-text.c (ect_save_state): Implemented the new state
	functions.

	* e-table-item.c, e-table-item.h: Use the new cell state functions
	when focusing in or out.  Fixes Ximian bug #14968.

svn path=/trunk/; revision=15335
2002-01-15 22:33:13 +00:00
b70d7b0292 Made the header item here handle horizontal scrolling when adding a
2002-01-09  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c, e-table-header-item.h (scroll_timeout):
	Made the header item here handle horizontal scrolling when adding
	a column.

svn path=/trunk/; revision=15278
2002-01-09 23:31:06 +00:00
effefd2815 Bumped version number to 0.19.99.0. Bumped GAL_CURRENT. Reset
2002-01-09  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version number to 0.19.99.0.  Bumped
	GAL_CURRENT.  Reset GAL_REVISION.

From gal/e-table/ChangeLog:

2002-01-09  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c, e-table.h (scroll_timeout), e-tree.c
	(scroll_timeout): Made these handle horizontal scrolling during
	drags.

svn path=/trunk/; revision=15272
2002-01-09 06:49:52 +00:00
e5d02e7ed1 Collapse nodes that were opened during a drag, unless the drop site is a
2002-01-09  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (collapse_drag): Collapse nodes that were opened during
	a drag, unless the drop site is a child node.  Fixes Ximian bug
	#4965.

svn path=/trunk/; revision=15271
2002-01-09 05:40:32 +00:00
4f77fa6396 Merging changes:
2001-12-17  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-toggle.c (etog_set_value): Don't queue a redraw here.
	the value changed signal will do that automatically.

svn path=/trunk/; revision=15160
2001-12-18 21:10:42 +00:00
78406c4d1c Merging changes:
2001-12-12  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (ect_stop_editing): Change to not editing before
	committing values.  Then commit the values.

svn path=/trunk/; revision=15104
2001-12-17 07:54:10 +00:00
4ca3db91ac Merging changes:
2001-12-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-canvas.c (e_canvas_unrealize): Turn off idle
	handling in the unrealize function instead of the destroy
	function.

From gal/e-table/ChangeLog:

2001-12-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c: Turn off idle handling in the unrealize function
	instead of the destroy function.

svn path=/trunk/; revision=15102
2001-12-17 07:50:20 +00:00
3e70bbe666 unregister ETableHeaderItem widget as a drag target when unrealizing it.
2001-12-11  Gustavo Giráldez  <gustavo.giraldez@gmx.net>

	* gal/e-table/e-table-header-item.c (ethi_unrealize): unregister
	ETableHeaderItem widget as a drag target when unrealizing it.

svn path=/trunk/; revision=14996
2001-12-11 22:20:31 +00:00
a014ee4309 Merging files:
2001-12-06  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c, e-table-config.h (setup_gui): Set the title of
	the window here.

	* e-table-header-item.c (ethi_popup_customize_view): Use a useful
	string for the header here.

svn path=/trunk/; revision=14975
2001-12-11 10:10:02 +00:00
dc83cb0331 Merging changes:
2001-12-06  Christopher James Lahey  <clahey@ximian.com>

	* e-table-subset.c (etss_get_view_row): Removed incorrect calls to
	e_table_model_row_changed here.

svn path=/trunk/; revision=14973
2001-12-11 10:02:27 +00:00
ef46478b1c Merging changes:
2001-12-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c (ethi_find_col_by_x,
	ethi_find_col_by_x_nearest): Made these return 0 to the left of
	all columns and ethi_find_col_by_x return cols - 1 if to the right
	of all columns.  Fixes Ximian bug #14414.

svn path=/trunk/; revision=14971
2001-12-11 09:56:14 +00:00
a1725df2bb Merging changes:
2001-12-04  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c (e_tree_selection_model_change_cursor):
	Unset selection->old_selection here.

svn path=/trunk/; revision=14912
2001-12-06 20:21:51 +00:00
410f3bc629 Merging changes:
2001-12-04  Christopher James Lahey  <clahey@ximian.com>

	* configure.in (GAL_CURRENT): Bumped version number to 0.18.99.0
	and CURRENT to 19.

2001-11-21  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c, gal/widgets/e-reflow.h: Handle
	selection_row_changed signal.

	* gal/widgets/e-selection-model-array.c,
	gal/widgets/e-selection-model-array.h: Properly send
	selection_row_changed signals if changing from a single row
	selected to a single other row selected or if moving the
	selection_end by a single row.

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Added selection_row_changed
	signal.
	(e_selection_model_select_as_key_press): Fixed the case statement
	here to make MULTIPLE and EXTENDED the same as BROWSE instead of
	as SINGLE.

From gal/e-table/ChangeLog:

2001-11-21  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c, e-table-item.h: Handle selection_row_changed
	signal.  Keep track of the old cursor row so that we only redraw
	two rows when the cursor changes.

	* e-table.c, e-tree.c: Handle selection_row_changed signal.

	* e-tree-selection-model.c: Properly send selection_row_changed
	signals if changing from a single row selected to a single other
	row selected or if moving the selection_end by a single row.

svn path=/trunk/; revision=14870
2001-12-04 21:03:28 +00:00
4b74a42adf Merging changes:
2001-11-28  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (context_destroyed), e-tree.c (context_destroyed):
	Check for et being destroyed here before doing anything.  Fixes
	Ximian bug #15728.

svn path=/trunk/; revision=14864
2001-12-04 12:11:16 +00:00