aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-collection.c
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagGNOME_LIBS_1_4_1_4nobody2001-05-231-578/+0
| | | | | | 'GNOME_LIBS_1_4_1_4'. svn path=/tags/GNOME_LIBS_1_4_1_4/; revision=9929
* Translate the title as we read it.Christopher James Lahey2001-04-111-1/+5
| | | | | | | | | 2001-04-10 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c (load_single_file): Translate the title as we read it. svn path=/trunk/; revision=9217
* Fix headers. Ditto. Ditto. Ditto. Ditto.Kjartan Maraas2001-04-041-2/+5
| | | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * gal-define-views-dialog.h: Fix headers. * gal-define-views-model.c: Ditto. * gal-view-collection.c: Ditto. * gal-view-etable.c: Ditto. * gal-view-new-dialog.h: Ditto. svn path=/trunk/; revision=9166
* Ahem, free the xmlDoc. (load_single_dir): Free the filename if we returnFederico Mena Quintero2001-04-031-1/+3
| | | | | | | | | | 2001-04-02 Federico Mena Quintero <federico@ximian.com> * gal-view-collection.c (load_single_dir): Ahem, free the xmlDoc. (load_single_dir): Free the filename if we return immediately due to not being able to parse the file. svn path=/trunk/; revision=9121
* Ahem, free the xmlDoc.Federico Mena Quintero2001-04-031-0/+1
| | | | | | | | 2001-04-02 Federico Mena Quintero <federico@ximian.com> * gal-view-collection.c (load_single_dir): Ahem, free the xmlDoc. svn path=/trunk/; revision=9119
* New changed signal.Christopher James Lahey2001-03-061-2/+33
| | | | | | | | | 2001-03-05 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c, gal-view-collection.h (gal_view_collection_changed): New changed signal. svn path=/trunk/; revision=8555
* Create the local directory when saving if it doesn't exist already.Christopher James Lahey2001-02-071-1/+2
| | | | | | | | | 2001-02-06 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c (gal_view_collection_save): Create the local directory when saving if it doesn't exist already. svn path=/trunk/; revision=8043
* Fixed a number of small bugs in how we were saving and loading viewChristopher James Lahey2001-02-061-4/+22
| | | | | | | | | | | | | 2001-02-05 Christopher James Lahey <clahey@helixcode.com> * gal-view-collection.c: Fixed a number of small bugs in how we were saving and loading view collections. * gal-view-etable.c (config_changed): Send the changed signal properly. (gal_view_etable_construct): Duplicate the spec's state here. svn path=/trunk/; revision=7986
* Actually implement this function.Christopher James Lahey2001-01-241-2/+17
| | | | | | | | | 2001-01-24 Christopher James Lahey <clahey@helixcode.com> * gal-view-collection.c (gal_view_collection_get_view_item): Actually implement this function. svn path=/trunk/; revision=7774
* Made GalViewCollectionItem a public type. (load_single_file): Made it soChristopher James Lahey2001-01-241-18/+7
| | | | | | | | | | | | | 2001-01-23 Christopher James Lahey <clahey@helixcode.com> * gal-view-collection.c, gal-view-collection.h: Made GalViewCollectionItem a public type. (load_single_file): Made it so that the filename does not get saved with the directory structure. (gal_view_collection_get_view_item): Added this function to return a certain GalViewCollectionItem. svn path=/trunk/; revision=7773
* Initialize collection field to NULL. Set the collection on the model asChristopher James Lahey2001-01-221-3/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-22 Christopher James Lahey <clahey@helixcode.com> * gal-define-views-dialog.c, gal-define-views-dialog.h (gal_define_views_dialog_init): Initialize collection field to NULL. Set the collection on the model as soon as we create it. (gal_define_views_dialog_new): Add a GalViewCollection argument to this function. This just makes this dialog a bit easier to use through the API. (gal_define_views_dialog_set_arg): When we set the collection, set it on the dialog->model. * gal-define-views-model.c, gal-define-views-model.h: Rewrote this object to use a GalViewCollection to store the information instead of an array of GalViews. * gal-view-collection.c, gal-view-collection.h: Added gal_view_collection_get_count, gal_view_collection_get_view, gal_view_collection_append, gal_view_collection_delete_view, and gal_view_collection_copy_view. (view_changed, load_single_file): Connect to the "changed" signal on the views. (load_single_dir): Survive loading if there's no xml file. * gal-view-etable.c: Implemented get_type_code method. * gal-view-factory-etable.c: Implemented get_type_code method. * gal-view.c, gal-view.h: Added gal_view_get_type_code and "changed" signal. svn path=/trunk/; revision=7699
* Use the new gal_view_set_title function.Christopher James Lahey2001-01-211-5/+201
| | | | | | | | | | | | | | | | | | | | | 2001-01-21 Christopher James Lahey <clahey@helixcode.com> * gal-define-views-model.c (gdvm_set_value_at): Use the new gal_view_set_title function. * gal-view-collection.c, gal-view-collection.h: Implemented this. Added gal_view_collection_save and gal_view_collection_load. * gal-view-etable.c: Implemented save, load, and set_title methods for this class. * gal-view-factory.c: Implemented gal_view_factory_get_type_code. * gal-view.c, gal-view.h: Replaced gal_view_save_to_node with gal_view_save. Replaced gal_view_load_from_node with gal_view_load. Added gal_view_set_title. svn path=/trunk/; revision=7676
* Added a collection argument to this to set the GalViewCollection.Christopher James Lahey2001-01-181-7/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-17 Christopher James Lahey <clahey@helixcode.com> * gal-define-views-dialog.c, gal-define-views-dialog.h: Added a collection argument to this to set the GalViewCollection. Connected up the modify, delete, and copy buttons. Documented. * gal-define-views-model.c, gal-define-views-model.h: Added gal_define_views_model_get_view, gal_define_views_model_delete_view, and gal_define_views_model_copy_view methods. Documented. * gal-view-collection.c: Documented. * gal-view-etable.c, gal-view-etable.h: Documented. Implemented edit and clone methods of GalView. Initialized state to a non-NULL value. Added a name parameter to gal_view_etable_new. * gal-view-factory-etable.c: Documented. Added the name argument to gal_view_etable_new. * gal-view-factory.c: Fixed the g_return_val_if_fails to check for GalViewFactory as the type instead of GalView. * gal-view.c, gal-view.h: Added the clone method. svn path=/trunk/; revision=7599
* Added gal-view-collection.c, gal-view-etable.c, gal-view-factory-etable.c,Christopher James Lahey2000-12-071-0/+128
2000-12-06 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added gal-view-collection.c, gal-view-etable.c, gal-view-factory-etable.c, gal-view-factory.c, gal-view-collection.h, gal-view-etable.h, gal-view-factory-etable.h, and gal-view-factory.h. * gal-define-views-dialog.c, gal-define-views-dialog.h: Rewrote this to take a GalViewCollection. This now passes its collection to the new view dialog but still doesn't get its list of views from the collection. * gal-define-views-model.c: Changed this to use the gal_view_get_title function instead of the "title" gtk argument. * gal-define-views.glade, gal-define-views.glade.h: Changed this dialog to be a bit cleaner. * gal-view-collection.c, gal-view-collection.h: A collection of views and view factories. * gal-view-etable.c, gal-view-etable.h: An implementation of the view class. This stores an ETableSpecification and the current ETableState. * gal-view-factory-etable.c, gal-view-factory-etable.h: An implementation of the view factory class. This stores an ETableSpecification and creates GalViewEtables when requested. * gal-view-factory.c, gal-view-factory.h: A new virtual class. Its primary job is to return new GalViews. * gal-view-new-dialog.c, gal-view-new-dialog.h: Added a collection argument to the new function here so that it can get a list of factories to choose from. * gal-view-new-dialog.glade, gal-view-new-dialog.glade.h: Added a CList for the list of factories to choose from. * gal-view.c, gal-view.h: Changed this to be a virtual class. svn path=/trunk/; revision=6811