Commit Graph

170 Commits

Author SHA1 Message Date
85e4486c1c Fixed the multiple copies of rows in ETable bug.
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
2000-06-02 08:14:47 +00:00
59165ac430 two more pastos
* e-table-group.c (e_table_group_key_press):
	* e-table.c (group_key_press): two more pastos

svn path=/trunk/; revision=3370
2000-06-02 03:48:43 +00:00
ce38de5189 Copy and paste error.
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
2000-06-02 03:28:00 +00:00
f9b79bb0f6 Added a "key_press" signal.
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
2000-06-02 02:57:39 +00:00
b42e523e9a Remove an offending *.
* e-cell-text.h: Remove an offending *.

svn path=/trunk/; revision=3359
2000-06-02 01:53:19 +00:00
2b418bb61a Made the sort when inserting a signal row be syncronous.
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
2000-06-02 01:52:27 +00:00
f5916a12a6 Added "text_filter" argument that takes a const void * and returns an
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
2000-06-02 00:45:24 +00:00
9b20ec31fa Accidental commit fix.
svn path=/trunk/; revision=3354
2000-06-02 00:29:48 +00:00
abac1b7524 Copy and paste error.
2000-06-01  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c: Copy and paste  error.

svn path=/trunk/; revision=3353
2000-06-02 00:27:34 +00:00
0a898d1c96 Added e_table_get_selected_view_row.
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
2000-06-02 00:18:00 +00:00
fb9c7055d9 Added bold column's to ECellText.
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
2000-05-30 20:58:10 +00:00
ff0ab8680f Make sure that the cursor is always shown when the selection changes.
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
2000-05-30 19:33:28 +00:00
a076f5b58f Fixed a bunch of selection bugs. Removed "spreadsheet" argument (for now.)
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
2000-05-30 13:19:32 +00:00
fb320bf9da Fixed setting of arguments.
2000-05-28  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-group-container.c: Fixed setting of arguments.

svn path=/trunk/; revision=3256
2000-05-29 00:27:41 +00:00
f91435fc0c Added double click handling.
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
2000-05-28 04:25:22 +00:00
3d1cadd580 Added "strikeout_column" argument.
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
2000-05-26 21:03:23 +00:00
628ca43584 Made "drawgrid", "drawfocus", "spreadsheet", and "length_threshold"
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
2000-05-26 20:38:49 +00:00
60f52f5eae Account for extra pixel at right end of ETable.
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
2000-05-25 19:27:46 +00:00
d306c29328 Made dragging columns work.
2000-05-25  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Made dragging columns work.

svn path=/trunk/; revision=3205
2000-05-25 18:44:55 +00:00
735213b4cd Fixed the remove column callback.
2000-05-23  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Fixed the remove column callback.

svn path=/trunk/; revision=3187
2000-05-23 23:38:11 +00:00
4670021197 Added right click menus to the table header items.
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
2000-05-23 18:38:21 +00:00
4faccb2891 Make scrollbar arrow buttons work.
2000-05-23  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Make scrollbar arrow buttons work.

svn path=/trunk/; revision=3176
2000-05-23 08:00:55 +00:00
46f211579d Added initialize_value and value_is_empty callbacks.
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
2000-05-19 18:47:16 +00:00
8139ba9425 From a patch by Iain Holmes <ih@csd.abdn.ac.uk>
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
2000-05-19 04:35:12 +00:00
54c5a28100 Fixed a memory leak.
2000-05-16  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c: Fixed a memory leak.

svn path=/trunk/; revision=3089
2000-05-16 13:01:57 +00:00
1a38235e40 Changed sorting to be at priority level 30.
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
2000-05-16 10:51:33 +00:00
93d002705c Removed a memory leak here.
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
2000-05-16 09:53:16 +00:00
18fa92ee1d Fixed a FIXME comment.
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
2000-05-16 09:06:26 +00:00
32471accad From widgets/e-table/ChangeLog
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
2000-05-14 14:31:22 +00:00
f4e98799fd *** empty log message ***
svn path=/trunk/; revision=3001
2000-05-12 00:47:42 +00:00
ac7def3e9d Fixed etssv_remove.
2000-05-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-subset-variable.c: Fixed etssv_remove.

svn path=/trunk/; revision=2951
2000-05-09 17:17:34 +00:00
eb8d567158 Make multi-line texts display properly. Fixed some mem leaks.
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
2000-05-08 06:54:46 +00:00
87eebb44a1 free cell.starting_text here to avoid a memory leak.
* e-cell-text.c (ect_draw): free cell.starting_text here to avoid
        a memory leak.

svn path=/trunk/; revision=2898
2000-05-08 03:35:52 +00:00
0216552439 Add a horizontal scrollbar.
2000-05-07  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Add a horizontal scrollbar.

svn path=/trunk/; revision=2892
2000-05-08 00:53:26 +00:00
56f9196ac4 Handle row_inserted and row_deleted signals properly.
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
2000-05-07 20:49:02 +00:00
cca467781c only to set_value_at if the value is indeed different. (ect_stop_editing):
* 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
2000-05-07 05:03:53 +00:00
85a334557f Killed some warnings.
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
2000-05-06 21:27:35 +00:00
1b8139c995 ignore the .pure directory
* 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
2000-05-05 11:46:46 +00:00
4a6a526998 use rows here instead of E_TABLE_SUBSET(etsv)->n_map, since the table can
* 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
2000-05-05 06:49:40 +00:00
ccd8e1fedd Add an e_table_group_add_all function and implement it in the different
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
2000-05-05 00:10:32 +00:00
edd558cdd8 Sped up e_cell_text's get_height function.
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
2000-05-04 22:24:10 +00:00
55b79db1f4 Added a height_cache idle loop so that the height_cache will be validated
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
2000-05-04 08:52:04 +00:00
cb7c636a65 Load all the data to be sorted by before actually doing the sort.
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
2000-05-04 08:28:36 +00:00
e6f93efbad Fix author information.
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
2000-05-04 06:49:31 +00:00
8e733f8305 Add back in main loop calls during sorting.
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
2000-05-04 03:31:30 +00:00
1f89b12d0b Replace insert sort completely with a qsort.
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
2000-05-04 01:36:06 +00:00
f4204133d9 Changed the insert sort to be binary instead of linear.
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
2000-05-04 00:59:10 +00:00
eb5dc08dc9 Made this more reentrant.
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
2000-05-01 04:01:05 +00:00
917d28e2df Fixed some warnings.
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
2000-04-27 17:18:51 +00:00
04195ce9da Added a missing include.
2000-04-26  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Added a missing include.

svn path=/trunk/; revision=2637
2000-04-26 15:15:24 +00:00