aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
Commit message (Collapse)AuthorAgeFilesLines
* Do most of the work to get Grouping working, by reusing massive ammountsMiguel de Icaza2001-01-191-107/+253
| | | | | | | | | | | | | | | | | | 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
* Keep track of the valid column names (not used right now).Miguel de Icaza2001-01-191-36/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* New function. (update_sort_config_dialog): Massive update to thisMiguel de Icaza2001-01-181-18/+212
| | | | | | | | | | | | | | | | | | | | 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
* Removed #inclusion of e-table-config-field.h.Dave Camp2001-01-171-1/+0
| | | | | | | | 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
* This fixes translations of library messages compared to applicationMiguel de Icaza2001-01-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Simplify column grabbing code and drop item layout code.Miguel de Icaza2001-01-171-34/+52
| | | | | | | | | | | | 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
* Load frames.Miguel de Icaza2001-01-171-110/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Added a bit of documentation. (config_sort_config_show,Christopher James Lahey2001-01-171-3/+19
| | | | | | | | | | | | | | | | | | 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
* Rename from Helix Code -> XimianMiguel de Icaza2001-01-161-4/+5
| | | | svn path=/trunk/; revision=7520
* Document all entry points. (e_table_specification_save_to_file): ChangeMiguel de Icaza2001-01-161-44/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make output pretier by using newlines when there is a lot of informationMiguel de Icaza2001-01-161-36/+42
| | | | | | | | | | | | 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
* Make output pretier by using newlines when there is a lot of informationMiguel de Icaza2001-01-151-3/+16
| | | | | | | | | | | | 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
* Work on the ETableConfigurator. Pick up where Chris left.Miguel de Icaza2001-01-151-198/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Added e-table-config-field.lo.Christopher James Lahey2000-10-141-189/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Changed these to match the new ETable system.Christopher James Lahey2000-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Moved files, fixed header files and paths - FedericoFederico Mena Quintero2000-09-201-3/+3
| | | | svn path=/trunk/; revision=5513
* Fixed e-table #includes so that it would compile.Chris Lahey2000-09-181-3/+3
| | | | svn path=/trunk/; revision=5482
* Added some g_return_if_fails and g_return_val_if_fails.Christopher James Lahey2000-08-261-2/+19
| | | | | | | | | | 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
* From a patch by Iain Holmes <ih@csd.abdn.ac.uk>Christopher James Lahey2000-05-191-1/+7
| | | | | | | | | | | | 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 some warnings.Christopher James Lahey2000-04-281-1/+2
| | | | | | | | | | 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
* Add argument handling here.Miguel de Icaza2000-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Love, part 3Miguel de Icaza2000-04-011-7/+19
| | | | svn path=/trunk/; revision=2273
* Love realizationMiguel de Icaza2000-04-011-0/+4
| | | | svn path=/trunk/; revision=2272
* More loveMiguel de Icaza2000-04-011-12/+17
| | | | svn path=/trunk/; revision=2271
* More workMiguel de Icaza2000-03-311-2/+166
| | | | svn path=/trunk/; revision=2266
* Add so I can go to the chillout hack roomMiguel de Icaza2000-03-311-0/+41
svn path=/trunk/; revision=2264