Commit Graph

438 Commits

Author SHA1 Message Date
4715c96fb6 Made clicking choose the right character even if show_borders is on.
2000-08-02  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Made clicking choose the right
	character even if show_borders is on.

svn path=/trunk/; revision=4492
2000-08-02 22:49:04 +00:00
5fbcc4828e Add a handler for "model_pre_change" and properly stop editing.
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
2000-08-02 16:56:26 +00:00
2e8ac028ee Changed the API for the append_row function. Now accepts a model to copy
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
2000-08-02 10:44:28 +00:00
1ad76125ef Added an argument to set a column so that you can't sort by that column.
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
2000-07-31 22:32:36 +00:00
08f83c6fcf Made enter key destroy and recreate the ETableItem.
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
2000-07-29 20:06:54 +00:00
d5ae7c6cf0 Remove the idle handler before destroying the data it operates on.
* e-table-header.c (eth_destroy): Remove the idle handler before
	destroying the data it operates on.

svn path=/trunk/; revision=4407
2000-07-28 21:33:25 +00:00
967c830626 Fixed up the table behavior so that it's not always in an edit mode.
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
2000-07-27 16:33:11 +00:00
1da0c533d3 Fix silly error of not chaining destructor for canvas.
svn path=/trunk/; revision=4390
2000-07-27 16:25:43 +00:00
46f952b2a5 Added a comment.
2000-07-27  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-selection-model.c: Added a comment.

svn path=/trunk/; revision=4387
2000-07-27 15:34:58 +00:00
a25046c091 Fixed shift click selections.
2000-07-27  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-selection-model.c: Fixed shift click selections.

svn path=/trunk/; revision=4386
2000-07-27 15:27:06 +00:00
5f04bddb8e Allocate correctly in the insert method.
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
2000-07-27 15:07:47 +00:00
86b1bd7f21 Grab focus properly.
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
2000-07-27 14:50:04 +00:00
9d1dafcffb Clear the selection model when activating.
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
2000-07-27 08:44:20 +00:00
5e3f91d87b Fixed a reference.
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
2000-07-27 01:36:20 +00:00
d1cc23165d Added an ETableSelectionModel so this won't crash.
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
2000-07-26 23:22:08 +00:00
0adf2e8584 Fixed the model/view row confusion.
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
2000-07-26 23:01:48 +00:00
cf874e6155 Uninitialized variable fix for e-table
svn path=/trunk/; revision=4367
2000-07-26 21:08:43 +00:00
490437a884 A few fixes to the ECanvas selection item a miniature cleanup of the event handler.
svn path=/trunk/; revision=4364
2000-07-26 21:00:52 +00:00
32c3d29bbc Added "table_selection_model" argument. Removed foreach function and
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
2000-07-26 20:33:39 +00:00
6602e01493 Made foreach call the callback in top to bottom order.
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
2000-07-25 21:59:29 +00:00
20e7e5d650 Replaced get_selection_list with foreach.
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
2000-07-25 21:56:06 +00:00
d6c66f72e7 Added e-table-selection-model.c and e-table-selection-model.h.
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
2000-07-25 21:30:25 +00:00
120687c8a8 Added comments to the bit field code.
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
2000-07-25 20:55:07 +00:00
cbaec94596 More fixes.
2000-07-25  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-selection-model.c: More fixes.

svn path=/trunk/; revision=4328
2000-07-25 20:46:49 +00:00
4ab46c1b63 Fixed up the bit manipulation a bit here.
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
2000-07-25 20:17:59 +00:00
384b3e38f2 New files for doing a selection model. Not finished yet and thus not in
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
2000-07-25 20:05:29 +00:00
516b594aa9 new widget and canvas item to replace GtkCalendar. Not quite finished yet.
2000-07-25  Damon Chaplin  <damon@helixcode.com>

	* e-calendar-item.h:
	* e-calendar.[hc]: new widget and canvas item to replace GtkCalendar.
	Not quite finished yet.

svn path=/trunk/; revision=4322
2000-07-25 19:45:47 +00:00
126807f8aa Implemented some of the drag & drop code. Drops all report as being on row
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
2000-07-25 08:20:21 +00:00
171288a34a added a color_column where the color can be specified as a string, e.g.
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
2000-07-23 11:03:28 +00:00
931953de1f Made focus in not change your selection position.
2000-07-21  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Made focus in not change your selection
	position.

svn path=/trunk/; revision=4268
2000-07-21 21:06:11 +00:00
161076affa Added some unused declarations for drag and drop work.
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
2000-07-21 20:48:43 +00:00
3eed7c0e0e Fix the function to set the ETitleBar's text so that it correctly uses
the EClippedLabel function instead of the GtkLabel one.

svn path=/trunk/; revision=4256
2000-07-21 10:03:23 +00:00
b825d32537 *** empty log message ***
svn path=/trunk/; revision=4188
2000-07-17 06:30:33 +00:00
4c3eaff412 new files implementing a simple model for the shortcuts, so we can have
2000-07-16  Damon Chaplin  <damon@helixcode.com>

	* e-shortcut-model.[hc]: new files implementing a simple model for
	the shortcuts, so we can have multiple views.

	* Makefile.am (libshortcut_bar_a_SOURCES): added e-shortcut-model.[hc]

	* e-shortcut-bar.[hc]: updated to use the model.

	* e-icon-bar.c (e_icon_bar_item_pressed): set mouse_over_item_num as
	well as pressed_item_num to fix bug.

svn path=/trunk/; revision=4186
2000-07-17 06:22:18 +00:00
057b88f12e g_free things we g_malloc.
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
2000-07-14 18:29:13 +00:00
1be3f59a27 Changed the background color of the header.
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
2000-07-13 19:23:22 +00:00
86236d0687 Made scroll wheel work properly in header.
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
2000-07-12 23:03:39 +00:00
e10afbe355 Tried rearranging the casts to try for a more correct computation.
2000-07-12  Christopher James Lahey  <clahey@helixcode.com>

	* e-scroll-frame.c: Tried rearranging the casts to try for a more
	correct computation.

svn path=/trunk/; revision=4107
2000-07-12 04:34:19 +00:00
4cd310350f Removed some debugging printfs.
2000-07-11  Christopher James Lahey  <clahey@helixcode.com>

	* e-canvas-vbox.c: Removed some debugging printfs.

	* e-canvas.c (e_canvas_unrealize): Call parent unrealize method.

svn path=/trunk/; revision=4102
2000-07-12 01:16:42 +00:00
86f093cfb2 Added a missing variable initialization. (That code would have
crashed badly in any circumstance.)

svn path=/trunk/; revision=4066
2000-07-10 22:58:18 +00:00
0b7919fc13 Make sure the ETable is constructed properly, by setting the
arguments in the parent EScrollFrame class.

svn path=/trunk/; revision=4063
2000-07-10 22:57:03 +00:00
cc36af075b Warning cleanup: `#if 0' an unused function and add a missing public
function prototype.

svn path=/trunk/; revision=4060
2000-07-10 22:53:41 +00:00
01e53b8aea Fix a typbraino in the ETableScrolled header file.
svn path=/trunk/; revision=4043
2000-07-10 19:26:19 +00:00
23ca256b7d Add e-table-scrolled.c and e-table-scrolled.h.
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
2000-07-10 11:04:18 +00:00
a9cc8f7c2d Put back e_cell_event sometimes when we're not editing.
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
2000-07-09 16:03:21 +00:00
14f210e058 Don't draw quite as large a "flat_box". If draw_borders is TRUE, cause the
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Don't draw quite as large a "flat_box".
	If draw_borders is TRUE, cause the cursor to change even if not
	editing.

svn path=/trunk/; revision=4017
2000-07-09 14:43:39 +00:00
eae083de33 Set the dnd_code to something non-null for the ETableHeaderItem.
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
2000-07-09 14:27:57 +00:00
80206f6b32 Removed some border padding and set the "draw_borders" argument of the
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-entry.c: Removed some border padding and set
	the "draw_borders" argument of the contained GtkText.

	* widgets/e-text/e-text.c, widget/e-text/e-text.h: Added a
	"draw_borders" argument which, if set, makes the EText look more
	like a GtkEntry.

svn path=/trunk/; revision=4011
2000-07-09 12:38:16 +00:00
26279f186a Set header canvas scroll region correctly.
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Set header canvas scroll region correctly.

svn path=/trunk/; revision=4010
2000-07-09 12:36:07 +00:00
af3c0ca939 Several contacts list bugfixes.
svn path=/trunk/; revision=4008
2000-07-09 11:54:25 +00:00