Commit Graph

27 Commits

Author SHA1 Message Date
707cce7733 Added a "changed" signal.
2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-config.c, e-table-config.h (dialog_apply): Added a
	"changed" signal.

	* e-table-sort-info.c, e-table-sort-info.h
	(e_table_sort_info_duplicate): Added this function.

	* e-table.c (e_table_set_state_object): Duplicate the state's
	sort_info object here.

svn path=/trunk/; revision=7985
2001-02-05 21:16:13 +00:00
337910e031 Do most of the work to get Grouping working, by reusing massive ammounts
Do most of the work to get Grouping working, by reusing massive
ammounts of code from the sorting pieces.

2001-01-19  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (group_entry_changed, group_ascending_toggled):
	New methods.
	(configure_group_dialog): New function, sets up the group GUI.
	(e_table_config_construct): Populate column names here and use in
	configure_group_dialog and configure_sort_dialog

	(sort_entry_changed, sort_ascending_toggled): renamed from
	entry_changed, ascending_toggled.

svn path=/trunk/; revision=7637
2001-01-19 06:39:31 +00:00
a35fff26e8 Keep track of the valid column names (not used right now).
2001-01-18  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (configure_sort_dialog): Keep track of the
	valid column names (not used right now).
	(config_destroy): release column names
	(entry_changed): Handle invalid input to mean "Next entry is
	grayed out".

	* e-table-header-item.c (ethi_popup_customize_view): Hook up to
	the "apply" signal on the dialog box to apply the changes.
	(apply_changes): New function to apply the changes from the
	ETableConfig object.

	* e-table-sort-info.c (e_table_sort_info_load_from_node): Notify
	of sort info changes.

	* e-table-header-item.c: Swapped the way arrows were done, so that
	they actually match the sorting that its expected.

	* e-table.c: Added inline documentation for a few methods.

	* e-table-config.h: Dropped ::spec, and temp_spec, we always use
	::source_spec, as we never modify this variable.

svn path=/trunk/; revision=7633
2001-01-19 04:48:04 +00:00
cca1d258d3 New function. (update_sort_config_dialog): Massive update to this
2001-01-18  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (find_model_column_by_name): New function.
	(update_sort_config_dialog): Massive update to this function, it
	is almost complete now, it just needs a few cosmetic touchups.
	(config_sort_config_show): Get the main interaction working as
	well.
	(config_group_info_update): Beautify.
	(entry_changed): Do all the magic for the GUI for entries.
	(ascending_toggled): Implement callback.
	(configure_sort_dialog): Do also descending.
	(configure_sort_dialog): Hook up changed/toggled.

	* e-table-config.h: Put all the configuration stuff for sorting
	into its own structure to pass around funny functions.

svn path=/trunk/; revision=7617
2001-01-18 06:47:07 +00:00
7d2dc658f8 Removed #inclusion of e-table-config-field.h.
2001-01-17  Dave Camp  <dave@ximian.com>

	* e-table-config.c: Removed #inclusion of e-table-config-field.h.

svn path=/trunk/; revision=7568
2001-01-17 09:30:56 +00:00
02c4a82a7f This fixes translations of library messages compared to application
This fixes translations of library messages compared to application messages.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* po/POTFILES.in: update.

	* gal/widgets/color-palette.c: use e-i18n.h

	* gal/util/e-i18n.h: Avoid inclussion of the GNOME i18n file as we
	provide our own.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* e-table-header-item.c: Use e-i18n.h here.

	* e-table.c (et_col_spec_to_col): Use gettext here.
	(et_real_construct): Use gettext too.
	(et_col_spec_to_col): Use gettext here.

	* e-cell-date.c: Use e-i18n.h here.

	* e-table-config.c (config_sort_info_update): Simplify column
	grabbing code and drop item layout code.
	(config_group_info_update): ditto.

	* e-table-config.c: Get correct translation setup working.

2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* e-group-bar.c: Use e-i18n.h

svn path=/trunk/; revision=7565
2001-01-17 07:59:19 +00:00
8063555853 Simplify column grabbing code and drop item layout code.
2001-01-17  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (config_sort_info_update): Simplify column
	grabbing code and drop item layout code.
	(config_group_info_update): ditto.

	* e-table-config.c: Get correct translation setup working.

svn path=/trunk/; revision=7564
2001-01-17 07:41:23 +00:00
d645d1f236 Load frames.
2001-01-16  Miguel de Icaza  <miguel@gnu.org>

	* e-table-config.c (configure_sort_dialog): Load frames.

	* Kill e-table-config-field.c

	* e-table-specification.c (e_table_specification_save_to_file):
	Specify version to xmlNewDoc.

	* e-table-state.c (e_table_state_save_to_string): Specify version
	to xmlNewDoc.

	* e-table-config.c (config_destroy): Destroy the copies.  Unref
	the originals.
	(e_table_config_construct): Duplicate values of configuration
	here.
	(configure_sort_dialog): New function that populates the sort gtk
	combo boxes.

	* e-table.c (et_col_spec_to_col): Fixup use of title here.  Do the
	actual translation here.

	* e-table-column-specification.c: Remove title_, it is now called
	title.  Translation needs to take place elsewhere, not here

	* e-table-specification.c (e_table_specification_duplicate): Add
	preconditions here.
	(e_table_specification_save_to_node): ditto.
	(e_table_specification_save_to_string): ditto.
	(e_table_specification_save_to_file): ditto.

	* e-table-state.c (e_table_state_duplicate): Implement.

	* e-table-config.glade (dialog_sort): Change drop down menus to
	use GtkComboText widgets.

	* e-table-config.c (configure_dialog): New function, used to set
	up dialogs.

svn path=/trunk/; revision=7563
2001-01-17 06:56:04 +00:00
c1c5688c54 Added a bit of documentation. (config_sort_config_show,
2001-01-16  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-config.c: Added a bit of documentation.
	(config_sort_config_show, config_group_config_show):
	gnome_dialog_set_parent on the config->dialog_toplevel instead of
	the config.

	* e-table-specification: Pass "1.0" instead of NULL to xmlNewDoc
	here.

	* e-table-state.c, e-table-state.h: Pass "1.0" instead of NULL to
	xmlNewDoc here.  Make sure that sort_info is never NULL if this
	object exists.  Added ETableStateDuplicate.

svn path=/trunk/; revision=7542
2001-01-16 20:45:56 +00:00
ac063e3d36 Rename from Helix Code -> Ximian
svn path=/trunk/; revision=7520
2001-01-15 23:32:09 +00:00
feccdbccfb Document all entry points. (e_table_specification_save_to_file): Change
2001-01-15  Miguel de Icaza  <miguel@gnu.org>

	* e-table-specification.c: Document all entry points.
	(e_table_specification_save_to_file): Change prototype to return
	the number of bytes written.
	(e_table_specification_duplicate):
	Implement a function to duplicate nodes.
	(e_table_specification_save_to_node): Implement missing function.
	(e_table_specification_save_to_file): Enable.
	(e_table_specification_save_to_string): Enable.
	(e_table_specification_load_from_node): Just load the normal
	version of the click-to-add-message version, let other code
	translate it.
	(e_table_specification_load_from_string): Alter prototype to
	return success code.

	* e-table-specification.h: Do not store the translated version,
	store the plain version, so we can restore this later during the
	saving routines.

	* e-table.c (et_real_construct): Translate click to add message here.


	* e-table-header-item.c: Destroy config object if we are
	destroyed.

svn path=/trunk/; revision=7518
2001-01-15 23:25:42 +00:00
c152134378 Make output pretier by using newlines when there is a lot of information
2001-01-15  Miguel de Icaza  <miguel@ximian.com>

	* e-table-config.c (config_fields_info_update): Make output
	pretier by using newlines when there is a lot of information to
	display.
	(config_group_info_update): ditto.
	(config_sort_info_update): ditto.

svn path=/trunk/; revision=7517
2001-01-15 23:21:40 +00:00
8da5139f16 Make output pretier by using newlines when there is a lot of information
2001-01-15  Miguel de Icaza  <miguel@ximian.com>

	* e-table-config.c (config_fields_info_update): Make output
	pretier by using newlines when there is a lot of information to
	display.
	(config_group_info_update): ditto.
	(config_sort_info_update): ditto.

svn path=/trunk/; revision=7497
2001-01-15 07:57:36 +00:00
cff9059380 Work on the ETableConfigurator. Pick up where Chris left.
Work on the ETableConfigurator.  Pick up where Chris left.

A lot more changes to come in the short future.

2001-01-15  Miguel de Icaza  <miguel@ximian.com>

	* e-table-config.c (config_group_info_update): Simplify
	signature.
	(config_sort_info_update): Simplify signature.
	(config_fields_info_update): Implement.
	(e_table_config_construct): Hook up field change spec.

	* e-table-header-item.c (config_destroyed): Add new utility
	function.

	* e-table-config.c (config_group_info_update): Simpify routine by
	using g_string.  Show a message if there is no grouping.

	* e-table-config.c: Made e-table-config dialog be a
	GnomePropertyBox.

	* e-table-header-item.c (ethi_popup_customize_view): Use the new
	api.

	* e-table-config.c (config_sort_info_update): Simplify this
	routine.  Fix bug that was not showing "unsorted" state.
	(setup_gui): Load XML user interface here.
	(config_init): Use Glade instead of manually coded user interface.
	(e_table_config_raise): New api call.

2001-01-14  Miguel de Icaza  <miguel@ximian.com>

	* e-table-config.h: Change parent to be a GtkObject from
	GnomeDialog.

svn path=/trunk/; revision=7495
2001-01-15 07:34:27 +00:00
c144d20918 Added e-table-config-field.lo.
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
2000-10-13 18:53:51 +00:00
e16e25daa7 Changed these to match the new ETable system.
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
2000-10-11 08:16:37 +00:00
a3de274f7c Moved files, fixed header files and paths - Federico
svn path=/trunk/; revision=5513
2000-09-19 22:57:58 +00:00
8c99725b91 Fixed e-table #includes so that it would compile.
svn path=/trunk/; revision=5482
2000-09-17 20:29:14 +00:00
20925d94eb Added some g_return_if_fails and g_return_val_if_fails.
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
2000-08-26 09:15:32 +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
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
3c1ddb743e Add argument handling here.
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
2000-04-26 14:47:10 +00:00
cd8753df96 Love, part 3
svn path=/trunk/; revision=2273
2000-03-31 22:42:04 +00:00
1c3d76dfbd Love realization
svn path=/trunk/; revision=2272
2000-03-31 22:28:38 +00:00
df75a67ff6 More love
svn path=/trunk/; revision=2271
2000-03-31 22:06:02 +00:00
bf794358e2 More work
svn path=/trunk/; revision=2266
2000-03-31 04:49:36 +00:00
8078ec7c1f Add so I can go to the chillout hack room
svn path=/trunk/; revision=2264
2000-03-30 22:50:40 +00:00