2003-09-12  Richard Hult  <richard@imendio.com>

	Release 0.10.
	
	* configure.in: Bump version.
	* mrproject.spec.in: Fix.

	* src/plugins/html-output/Makefile.am:
	* src/plugins/sql/Makefile.am: Add -module and -avoid-version.

2003-09-12  Richard Hult  <richard@imendio.com>

	* src/views/gantt/mg-relation-arrow.c: (relation_arrow_finalize),
	(mg_relation_arrow_set_predecessor),
	(mg_relation_arrow_set_successor, relation_arrow_finalize): Fix
	warnings with GCC 3.3.
	
2003-09-11  Richard Hult  <richard@imendio.com>

	* configure.in: 
	* src/views/Makefile.am: Remove timetable view for now.

	* data/mime/mrproject.keys.in: Fix description and category.

	* src/app/mg-main-window.c: (mg_main_window_open): Set the MIME
	type explicitly as a work-around since GnomeVFS won't recognize
	our XML files.

2003-09-11  Richard Hult  <richard@imendio.com>

2003-09-08  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>

	* configure.in: Added "sk" in ALL_LINGUAS.

2003-09-02  Richard Hult  <richard@imendio.com>

	* src/views/gantt/mg-gantt-chart.c:
	(gantt_chart_tree_node_at_path): Workaround to fix CF-bug
	#681 for now. Needs a proper fix later.

2003-09-01  Metin Amiroff  <metin@karegen.com>

	configure.in: Added "az" in ALL_LINGUAS.

2003-08-16  Tõivo Leedjärv  <toivo@linux.ee>

	* configure.in: Added "et" to ALL_LINGUAS.

2003-06-22  Samúel Jón Gunnarsson  <sammi@techattack.nu>

	* configure.in: Added "is" to ALL_LINGUAS.

2003-06-05  Wang Jian  <lark@linux.net.cn>

	* configure.in: Added "zh_CN" to ALL_LINGUAS.

2003-05-30  Danilo Šegan  <dsegan@gmx.net>

	* configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.

2003-05-18  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-scale-utils.c: Set a unit for the lowest zoom
	level, fixes infinite loop when printing at that level.

	Fix #611, #631, #651.
	
	* src/dialogs/task-dialog/mg-task-dialog.glade: Set hscroll policy
	to auto for the notes text view. Resolve mnemonics conflict.

	* src/dialogs/resource-dialog/mg-resource-dialog.glade: Resolve
	mnemonics conflict.

	* src/app/mg-main-window.c (main_window_print_preview_cb):
	Implement.

	* src/app/GNOME_MrProject_MainWindow.ui: Add print preview item
	and fix typo in print item.

	* configure.in: 
	* src/views/Makefile.am: Build time-table conditionally.

2003-05-09  Richard Hult  <rhult@codefactory.se>

	* configure.in:
	* src/views/time-table: New view from Benjamin BAYART 
	<benjamin@sitadelle.com>.

2003-05-07  Hasbullah Bin Pit  <sebol@ikhlas.com>
                                                                                
        * configure.in(ALL_LINGUAS): Added "ms".

2003-04-25  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mg_task_tree_unlink_task): Work
	on a copy of the relations list while we traverse it, removing
	elements.

	* src/views/gantt/mg-gantt-row.c (mg_gantt_row_set_visible): Fix
	style.

	* src/views/gantt/mg-gantt-model.c (traverse_remove_subtree):
	Disconnect notify signal for the whole subtree, not just the top
	level parent when removing tasks.
	(gantt_model_task_removed_cb): Check if the task is already
	removed, happens if we select a whole subtree and remove first the
	top level task and then try to remove it's children.
	(mg_gantt_model_get_path_from_task): Add precondition to help
	debugging.

2003-04-25  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-chart.c:
	(gantt_chart_row_deleted), (gantt_chart_insert_task),
	(gantt_chart_tree_node_remove), (gantt_chart_tree_node_dump_do):
	Disconnect from relation_added/removed so we don't get two
	emissions after indenting. Clean up the debug output while at it.

2003-04-23  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c: Apply patch from
	benjamin@sitadelle.com to use enum instead of hardcoded numbers.

2003-04-11  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (main_window_do_save): Handle
	MRP_ERROR_SAVE_FILE_CHANGED.

	* src/plugins/sql/mg-sql-plugin.c: Remove confirmation dialog and
	the revision checking code, it's done elsewhere now.

	* src/app/mg-main-window.c (main_window_do_save_as): Don't show
	the file sel, gtk_dialog_run does it for us.

2003-04-10  Richard Hult  <rhult@codefactory.se>

	* src/plugins/sql/GNOME_MrProject_SQLPlugin.ui: Tweak the labels.

	* src/plugins/sql/mg-sql-plugin.c
	(sql_plugin_retrieve_project_id): Don't make the OK button
	sensitive if there are no projects to open. 

	* src/plugins/sql/mg-sql-plugin.c: Remove the SQL code, move it to
	libmrproject. Lots of other changes to adapt to this.

2003-04-08  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-model.c
	(gantt_model_connect_to_task_signals): Use g_signal_connect_object
	to disconnect when the model goes away. Exposed by the SQL
	storage.
	(gantt_model_finalize): Destroy the hash table and tree to plug
	leak and help debugging.

2003-04-10  Mikael Hallendal  <micke@codefactory.se>

        * src/plugins/html-output/mg-html-output.glade:
	- Make non-local check button unsensitive for now
	* src/plugins/html-output/mrproj.css: removed

2003-04-10  Mikael Hallendal  <micke@codefactory.se>

	* configure.in: removed HTML_ pkg-config variables
	
	* src/plugins/html-output/Makefile.am:
	* src/plugins/html-output/html1_css.xsl:
	* src/plugins/html-output/html1_gantt.xsl:
	* src/plugins/html-output/html1_resources.xsl:
	* src/plugins/html-output/html1_tasks.xsl: 
	* src/plugins/html-output/mrproject2html.xsl: 
	- removed, moved to libmrproject
	  
	* src/plugins/html-output/mg-html-output-plugin.c:
	(html_output_plugin_do_local_export): Use mrp_project_export instead.

2003-04-07  Mikael Hallendal  <micke@codefactory.se>

        * configure.in: Added chinese translation.

2003-04-04  Richard Hult  <rhult@codefactory.se>

	* src/plugins/sql/database.sql: (user) instead of (user()).

	* src/plugins/sql/README: Update a bit.

2003-04-03  Mikael Hallendal  <micke@codefactory.se>

	* src/plugins/html-output/mg-html-output-plugin.c:
	* src/plugins/sql/mg-sql-plugin.c:
	- Use BONOBO_UI_VERB_END...

2003-03-28  Yuriy Syrota  <rasta renome.rovno.ua>

	* configure.in: Added "uk" (Ukrainian) to ALL_LINGUAS

2003-03-26  Mikael Hallendal  <micke@codefactory.se>

	* configure.in: s/SQL_CFLAGS/HTML_CFLAGS/
	* src/plugins/html-output/Makefile.am: same.

2003-03-24  Mikael Hallendal  <micke@codefactory.se>

	* Release 0.10pre

	* configure.in:
	- updated for 0.10pre
	- moved xslt deps to just html export plugin

	* mrproject.spec.in: somewhat updated for 0.10pre, needs more work
	  and some moving of plugin stuff.

	* src/plugin/sql/Makefile.am: Add files to EXTRA_DIST.
	
2003-03-23  Mikael Hallendal  <micke@codefactory.se>

	* src/plugins/sql/mg-sql-plugin.c:
	(sql_plugin_retrieve_project_id): added, displays a dialog letting
	  the user choose a project from a list of available projects in
	  the database.
	(selection_changed_cb): added, sets OK-button to insensitive if no
	  project is selected.
	(sql_plugin_read_project): take proj_id instead of project name. 
	(sql_plugin_load_project): retrieve id and set it as data on
	  main_window.

2003-03-23  Richard Hult  <rhult@codefactory.se>

	* src/plugins/html-output/Makefile.am (stylesheet_DATA): Add
	files.

	* src/plugins/html-output/mg-html-output-plugin.c
	(html_output_plugin_ok_button_clicked): Remove debug spew, show
	dialog if a directory is selected instead of a file.

	* src/plugins/html-output/mg-html-output.glade: Set history id for
	the file entry, change labels to say file instead of directory.

2003-03-22  Mikael Hallendal  <micke@codefactory.se>

	* src/plugins/sql/mg-sql-plugin.c:
	(sql_plugin_load_project): use name, server, login and password
	 submitted through UI.
	(sql_plugin_save_project): same

2003-03-21  Richard Hult  <rhult@codefactory.se>

	* src/plugins/sql/mg-sql-plugin.c (sql_plugin_write_project):
	Reuse project id when re-saving.

2003-03-18  Richard Hult  <rhult@codefactory.se>

	* src/plugins/sql/mg-sql-plugin.c (is_field): Make more robust.

2003-03-21  Mikael Hallendal  <micke@codefactory.se>

	* src/plugins/html-output/mrproject2html.xsl: updated.

	* src/plugins/html-output/mrproj.css: updated

	* src/plugins/html-output/mg-html-output-plugin.c
	(html_output_plugin_export): set parent window.
	(html_output_plugin_ok_button_clicked): handle when file exists.
	(html_output_plugin_do_local_export): added some xml stuff I don't
	  know if it's needed. And call exsltRegisterAll which apparently
	  is. :)

	* configure.in: link with libexslt (needed for the html plugin).

2003-03-19  Guntupalli Karunakar  <karunakar@freedomink.org>

	* configure.in: Added "ml" to ALL_LINGUAS

2003-03-17  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-print.c (mg_gantt_print_data_new):
	Make sure we don't try to print 0 rows or columns of pages. Fixes
	a crash.
	(mg_gantt_print_do): Actually print the middle of summary tasks,
	fixes #592.

2003-03-14  Mikael Hallendal <micke@codefactory.se>

	* Updated for API change in libmrproject
	
2003-03-14  Richard Hult  <rhult@codefactory.se>

	* src/views/resources/mg-resource-view.c
	(resource_view_property_value_edited)
	(resource_view_property_added, resource_view_property_data_func):
	* src/views/gantt/mg-task-tree.c (task_tree_property_data_func)
	(task_tree_property_value_edited, task_tree_property_added):
	* src/dialogs/property-dialog/mg-property-model.c
	(property_model_property_added_cb)
	(mg_property_model_new):
	* src/dialogs/project-dialog/mg-project-properties.c
	(mpp_property_value_data_func): Update for API change.

2003-03-10  Mikael Hallendal  <micke@codefactory.se>

	* src/plugins/html-output/mg-html-output-plugin.c
	(html_output_plugin_do_local_export): more work. gets a couple of
	  errors I don't get when running with xsltproc. need to look into 
	  this more.

2003-03-10  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-print.c (mg_gantt_print_data_new):
	Apply parts of the patch in #552.

2003-03-09  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (gantt_row_connect_all_resources) 
	(gantt_row_disconnect_all_resources): Free list.

2003-03-07  Richard Hult  <rhult@codefactory.se>

	* src/plugins/Makefile.am: Build sql plugin conditionally.

	* configure.in: Check for postgresql.

	* src/plugins/sql/mg-sql-plugin.c: Test code. 

2003-03-06  Richard Hult  <rhult@codefactory.se>

	* src/plugins/sql/mg-sql-plugin.c: Work in progress...

	* src/app/mg-main-window.c (mg_main_window_get_application):
	Implement.

	* src/app/GNOME_MrProject_MainWindow.ui: Add placeholder for
	import/open actions.

	* src/plugins/Makefile.am: 
	* configure.in: 
	* src/plugins/sql/mg-sql-plugin.c: Start of sql thingy.

2003-03-06  Mikael Hallendal  <micke@codefactory.se>

	* src/plugins/html-output/mg-html-output-plugin.c: compiles,
	  time to start making something happen.

	* src/plugins/html-output/GNOME_MrProject_HtmlOutputPlugin.ui: 
	- use place holder

	* src/plugins/html-output/Makefile.am: fixes

	* src/Makefile.am (SUBDIRS): include plugins

2003-03-05  Mikael Hallendal  <micke@codefactory.se>

	* src/plugins/html-output/GNOME_MrProject_HtmlOutputPlugin.ui:
	* src/plugins/html-output/mg-html-output-plugin.c: added

2003-03-03  Richard Hult  <rhult@codefactory.se>
 
	* src/dialogs/task-dialog/mg-task-dialog.c: 
	* src/dialogs/task-dialog/mg-assignment-model.c: Update for
	scheduling enum change in libmrproject.

2003-03-01  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mg_task_tree_unlink_task):
	- don't free relations

	* src/views/gantt/mg-gantt-print.c:
	(gantt_print_get_relations): don't free predecessor list.
	(mg_gantt_print_do): free relations list
	(gantt_print_get_allocated_resources_string): 
	- don't free assignments list

	* src/plugins/resource-limit-plugin/mg-project-resource-limit-plugin.c:
	(project_assignment_at_time): don't free assignments list.

	* src/dialogs/task-dialog/mg-predecessor-model.c
	(mg_predecessor_model_new): don't free predecessor list.

2003-02-28  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-model.c (gantt_model_get_value): 
	* src/views/gantt/mg-gantt-row.c (gantt_row_event): Update for
	change in mrp_project_calculate_work API.

2003-02-28  Mikael Hallendal  <micke@codefactory.se>

	*src/views/resources/mg-resource-view.c
	(resource_view_project_loaded_cb): don't free resource list.

	src/plugins/resource-limit-plugin/mg-project-resource-limit-plugin.c:
	(project_assignments_check): copy the list. Seems pretty busted
	  anyway. 

	* src/dialogs/task-dialog/mg-assignment-model.c
	(mg_assignment_model_new): don't free resource list.

	* src/dialogs/resource-input-dialog/mg-resource-input-dialog.c
	(resource_input_dialog_setup_groups): don't free group list.

	* src/dialogs/resource-dialog/mg-resource-dialog.c
	(mg_resource_dialog_new): don't free group list

	* src/dialogs/group-dialog/mg-group-model.c:
	(mg_group_model_new): don't free group list

2003-02-28  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-model.c (mg_gantt_model_new) 
	(gantt_model_setup_task_tree, traverse_setup_tree): Implement and
	use mg_gantt_model_setup_task_tree, instead of having a similar
	function in libmrproject.

2003-02-28  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	(main_window_open_cb, mg_main_window_open_recent): 
	- mrp_project_is_untouched -> mrp_project_is_empty:

2003-02-27  Richard Hult  <rhult@codefactory.se>

	* src/*: Adapt to the API changes in the libmrproject.

2003-02-24  Mikael Hallendal  <micke@codefactory.se>

 	* configure.in: 
 	- Bumped version to 0.9.1
 	- libmrproject dependency on 0.9.1

2003-02-24  Richard Hult  <rhult@codefactory.se>

	* src/plugins/html-output/mg-html-output.glade: Add file so we can
	start working on this.

	* src/app/mg-main-window.c (main_window_about_cb): Add documentors
	and translators to about box.

2003-02-24  Evandro Fernandes Giovanini <evandrofg@ig.com.br>

	* configure.in: Added Brazilian Portuguese (pt_BR) to ALL_LINGUAS.

2003-02-21  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (recalc_bounds): Bounding box for
	milestone tasks is of fixed width.
	(gantt_row_get_bounds): Don't pad the bbox more than we need.

2003-02-21  Mikael Hallendal  <micke@codefactory.se>

	* Fixes #401 and #402 in cf-bugzilla

	* src/views/*/*-view.c:
	- Added the get_menu_label function

	* src/plugins/html-output/*: 
	- Added, the start of the html-ouput plugin.

	* src/app/mg-view.c (mg_view_get_menu_label): 
	- added. Used to read the menu label from the view.

	* src/app/mg-view-loader.c (mvl_load): map get_menu_label.

	* src/app/mg-main-window.c (main_window_populate): 
	- get the menu label to get a label with mnemonic from the view

	* src/views/gantt/GNOME_MrProject_GanttView.ui: 
	* src/views/gantt/GNOME_MrProject_TaskView.ui: 
	* src/views/resources/GNOME_MrProject_ResourcesView.ui: 
	* src/app/GNOME_MrProject_MainWindow.ui: 
	- Updated to make life easier to translators
	- More HIGified
	- Everything from the toolbar is in the menu
	- Mnemonics on all menu items.
	- Added a couple of shortcuts.

2003-02-21  Roozbeh Pournader  <roozbeh@sharif.edu>

	* configure.in: Added "fa" to ALL_LINGUAS.

2003-02-20  Dmitry G. Mastrukov  <dmitry@taurussoft.org>

	* configure.in: Added Belarusian to ALL_LINGUAS.

2003-02-20  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-view.c (gantt_view_tree_style_set_cb):
	Fix jerkyness on startup.

2003-02-19  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (gantt_row_event): Don't allow
	dragging the duration for milestone tasks.

        Fix #546:	
	* src/views/gantt/mg-gantt-view.c
	(gantt_view_update_row_and_header_height): Don't do this in
	realize callback, do it in style_set callback.
	(gantt_view_tree_style_set_cb): Impl.

	* src/views/gantt/mg-gantt-header.c (gantt_header_class_init):
	Remove unused "model" property.
	(gantt_header_set_property): Invalidate when the height changes.

	* src/views/gantt/mg-gantt-chart.c (gantt_chart_style_set): Use
	the style from the chart widget, not the canvas. Use PANGO_SCALE
	instead of a number, and tweak the base factor to make a day
	slightly wider.

	* src/dialogs/calendar-dialog/mg-working-time-dialog.c
	(working_time_dialog_apply): Handle invalid intervals, and be a
	bit smarter about interpreting the time strings. Update entries
	with the sorted and validated ones after applying, for #413.

	* src/util/mg-table-print-sheet.c
	(table_print_sheet_add_row_of_pages): Initialize variable, spotted
	by dolphy.

2003-02-18  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (gantt_row_update_resources): Get
	the resources in the same order as when we built the link position
	array. Fixes #542.

2003-02-17  Mikael Hallendal  <micke@codefactory.se>

	* libegg/recent-files/Makefile.am (libeggrecent_la_SOURCES): 
	- added egg-recent-vfs-utils.[ch]
	- Pass $(GNOMEUI_UNSTABLE) to INCLUDES.

	* libegg/recent-files/gnome-recent-vfs-utils.[ch]: Added

	* configure.in: depend on gnome-vfs

	* mrproject.spec.in: depend on gnome-vfs

	* Release 0.9

	* configure.in: Bumped to 0.9

2003-02-14  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/project-dialog/mg-phase-dialog.c: Update for
	libmrproject changes.

	* src/dialogs/project-dialog/mg-project-properties.c
	(mpp_setup_phases): Don't use a custom property for this.
	(mpp_setup_properties_list): Don't filter out phases anymore.

2003-02-13  Mikael Hallendal  <micke@codefactory.se>

	* src/util/mg-table-print-sheet.c (mg_table_print_sheet_new): make
	  sure that we don't report one page even if there are no rows in 
	  the table. Fixes #526

	* configure.in: 
	- added libegg/Makefile, libegg/recent-files/Makefile to output

	* libegg/*: Moved the recent-files here and updated. Fixes #532

	* src/app/egg*: Removed from here, cleaning up after ac :)
	
2003-02-07  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/property-dialog/mg-property-dialog.c: disabled all
	  property types except string, int and float.

	* src/dialogs/project-dialog/mg-project-properties.c: 
	- Added support for custom properties on projects.

	* configure.in: depend on libmrproject-0.9pre.

2003-02-07  Pablo Saratxaga  <pablo@mandrakesoft.com>

	* configure.in: Added Catalan (ca), Hungarian (hu),
	Polish (pl) and Russian (ru) to ALL_LINGUAS

2003-02-07  Richard Hult  <rhult@codefactory.se>

	* mrproject.spec.in: Add.

	* configure.in: Bump version to 0.9pre.

	* Makefile.am: Add spec file.

2003-02-06  Duarte Loreto <happyguy_pt@hotmail.com>

        * configure.in: Added "pt" to ALL_LINGUAS.

2003-02-06  Mikael Hallendal  <micke@codefactory.se>

	* mrproject.desktop.in (Categories): added a ; at the end of
	  Categories line, reported by jrb.

2003-02-05  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-view.c
	(resource_view_property_added): use the property as user-data for
	  the data_func.
	(resource_view_property_value_edited): now works.

	* src/views/gantt/mg-task-tree.c (task_tree_property_added): set
	the column to be resizable.

	* src/util/mg-table-print-sheet.c (mg_table_print_sheet_new): 
	- Don't print if the column isn't visible.

	* src/views/resources/mg-resource-view.c
	(resource_view_property_added): made to work.
	(resource_view_edit_custom_props_cb): added, fixes #517

2003-02-05  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_setup_resource_list): Don't set editable directly,
	use the editable column.

	* src/dialogs/task-dialog/mg-assignment-model.c (mam_get_value)
	(mam_get_column_type): Add units_editable column, return TRUE when
	we don't have fixed duration.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_update_sensitivity): Make milestone and fixed
	checkbuttons insensitive for summary tasks.

	* src/dialogs/print-dialog/mg-print-dialog.c
	(mg_print_dialog_new): Reword to make more sense.

	* src/views/gantt/mg-gantt-print.c
	(gantt_print_get_allocated_resources_string): Make the resource
	string look the same as it does in the gantt chart.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.glade: Fix typo.

	* src/views/gantt/mg-task-tree.c (mg_task_tree_insert_subtask):
	Set initial duration. 
	(mg_task_tree_insert_task): Likewise.

	* src/views/gantt/mg-gantt-row.c (gantt_row_update_resources):
	Take unit label in account when calculating text width for the
	resource links. Only draw the units when they differ from
	100%.
	(gantt_row_assignment_added, gantt_row_assignment_removed) 
	(gantt_row_assignment_units_changed): Handle change in units. 
	(gantt_row_event): Update for libmrproject API change.

	* src/views/gantt/mg-gantt-model.c (gantt_model_get_value): Update
	for libmrproject API change.
	
	* src/dialogs/task-dialog/mg-task-dialog.glade: Rework general
	page and make padding more consistant over the notebook pages.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_connect_to_task): Handle fixed duration mode.
	(task_dialog_task_sched_changed_cb, task_dialog_fixed_toggled_cb):
	Implement, handles the fixed duration mode.
	(task_dialog_task_work_changed_cb): Prevent div by zero.
	(task_dialog_task_duration_changed_cb): Impl.
	(task_dialog_duration_changed_cb): Impl.
	(task_dialog_setup_widgets): Setup fixed duration widgets.
	(task_dialog_calendar_changed_cb): Update duration field.
	(task_dialog_update_sensitivity): Update duration widgets.
	(mg_task_dialog_new): Rework general page.

2003-02-05  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-task-tree.c (task_tree_property_added): 
	- make the new column resizable.

	* src/views/gantt/mg-task-view.c (task_view_edit_custom_props_cb):
	  fixefd typo and marked title string for translation.

	* src/util/mg-table-print-sheet.c (table_print_sheet_foreach_row):
	  don't add row if it isn't visible. Fixes #505

	* src/views/gantt/mg-task-tree.c:
	(task_tree_name_data_func, task_tree_start_data_func) 
	(task_tree_finish_data_func, task_tree_duration_data_func) 
	(task_tree_cost_data_func, task_tree_work_data_func) 
	(task_tree_slack_data_func, task_tree_add_column): 
	- Fixes #507
	- Moved the "weight" and "editable" fields into the data funcs.

2003-02-04  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-view.c:
	(resource_view_resource_removed_cb): 
	- Fixes #508
	- No wonder this didn't work, I had commented it out complete. Now
	  it works though :) 
	(resource_view_resource_notify_cb): This one should also work
	  correctly now.
	(resource_view_find_resource): added.
	(resource_view_foreach_find_resource_func): added.
	(resource_view_free_find_resource_data): added.

2003-02-04  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_setup_resource_list): Change "rate" to "units".

	* src/views/gantt/mg-gantt-print.c (mg_gantt_print_do): Use
	mg_print_job_finish_page.
	Remove obsolete commented code.

	* src/util/mg-print-job.c (mg_print_job_finish_page): Draw
	optional border.
	(mg_print_job_begin_next_page): Don't draw border, only clip.

	* src/util/mg-table-print-sheet.c (table_print_sheet_print_page):
	Update for change in _finish_page.

2003-02-03  Richard Hult  <rhult@codefactory.se>

	* src/util/mg-print-job.c: Include config.h.
	(mg_print_job_new): Handle paper orientation.
	(mg_print_job_begin_next_page): Handle upside down orientations.

	* src/app/mg-main-window.c (main_window_print_cb): Create a
	GnomePrintJob and pass it to the print dialog and our print job,
	fixes paper size selection etc.
	
	* src/dialogs/print-dialog/mg-print-dialog.c
	(mg_print_dialog_new): Take a GnomePrintJob argument.

	* src/util/mg-print-job.c (mg_print_job_new): Don't hardcode file
	backend, and take a GnomePrintJob argument.

	* src/views/gantt/mg-gantt-view.c (print_init): Pass along the
	treeview.

	* src/views/gantt/mg-gantt-print.c: Clean up a bit and namespace
	functions. 

	* src/views/gantt/mg-gantt-print.c
	(gantt_print_get_visible_tasks): Rewrite to use the treeview
	instead of libmrproject so we know what tasks are expanded.

	* src/dialogs/print-dialog/mg-print-dialog.c
	(print_dialog_create_page): Split out markup from translatable
	string.

2003-02-01  Mikael Hallendal  <micke@codefactory.se>

	* src/util/Makefile.am (libutil_la_SOURCES): 
	- Another rename :) 

	* src/util/mg-table-print.[ch]:
	- Renamed to mg-table-print-sheet.[ch]

	* src/util/mg-table-print-sheet.[ch]:
	- Wow I managed to write the code for printing the task view and
	  the resource view twice today... 
	- Now it's a master piece (as if!)... seriously, really happy with
	  this rewrite (and it draws a tree too! :)

	* src/view/resources/mg-resource-view.c:
	- Readded the cost field

2003-01-31  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/print-dialog/mg-print-dialog.c: Comment out project
	summary checkbutton and rework the gnome-print dialog hack to be
	more robust if the dialog changes.

2003-01-31  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-print.c: Shade non-working intervals.

2003-01-31  Mikael Hallendal  <micke@codefactory.se>

	* src/util/mg-table-print.c:
	- Set the variables before starting to use them!
	- Also look for "user-data" data on each column. This is used to
	  pass to the data_func callback. 

	* src/views/gantt/mg-task-tree.c:
	- Made name column use a data-func to be able to print it.
	- splitted start and finish into two different data_funcs, this
	  was before I realized that I was going to have to do the thing 
	  with sending the user-data with the column.

	* src/views/gantt/mg-task-view.c:
	- Added print support.

	* src/util/mg-table-print.[ch]:
	* src/views/resources/mg-table-print.[ch]: 
	- moved to utils directory since it'll be used by both the
	  resource view ant the task view.

	* src/views/resources/mg-table-print.c:
	- Think I got it now, time to test on the task table :)
	- more work on getting the table printing in place. Pretty much
	  there now, just have to switch so we print pages column-first
	  instead of row-first. 
	  
2003-01-30  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-print.c: Update for MgPrintJob changes.

	* src/views/resources/mg-table-print.c (print_draw_header): Update
	for changes in MgPrintJob.

	* src/util/mg-print-job.c (mg_print_job_show_clipped): Measure the
	string using the currently used font.
	Change the API slightly for setting the font.

	* src/dialogs/print-dialog/mg-print-dialog.c
	(print_dialog_create_page): Enable all views.

	* src/views/gantt/mg-gantt-model.c (gantt_model_get_value): Don't
	make milestone tasks uneditable (ideally the work field should be
	uneditable though).
	(gantt_model_get_value): Don't try to calculate negative slack (we
	don't support that yet).

	* src/util/mg-print-job.c (print_job_init): Use 10 points font by
	default.

2003-01-29  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-print.c: Print allocated resource
	names, and decrease the indentation level for subtasks. The
	resource names need a bit more work, since they are simply clipped
	right now if they don't fit the page.

2003-01-29  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/*: 
	- Moved mg-resource-print.[ch] -> mg-table-print.[ch]
	- Now reads the data from the model.
	- Calculates column widths based on widest string in column.
	
2003-01-29  Anders Carlsson  <andersca@codefactory.se>

	* src/app/GNOME_MrProject_MainWindow.ui: Add print toolbutton.

2003-01-29  Mikael Hallendal  <micke@codefactory.se>

	* src/util/mg-print-job.c:
	(mg_print_job_finish_page): added, so that we use MgPrintJob both
	  for starting a page and finish it.

	* src/dialogs/print-dialog/mg-print-dialog.c:
	(print_dialog_create_page): added rhult temp hack for Resources
	  into print dialog... :)

	* src/views/resources/mg-resource-model.[ch]: removed

	* src/views/resources/mg-resource-print.[ch]: added, will be moved
	  to some place else and used by Task View aswell.

	* srv/views/resources/mg-resource-view.c:
	- Use a GtkListStore instead of freaky wicked MgResourceModel.
	- Disabled some weird hack on the cost stuff ...

2003-01-29  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-print.c (print): Handle relation arrows
	that point upwards, still needs some work to handle arrows that
	span several pages though.
	(mg_gantt_print_data_new): Only highlight critical tasks if they
	are shown in the gantt chart.
	(print): Arrow spanning pages should be working now.

2003-01-28  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-print.c (print_table_header): Use bold
	font for the header.
	(print_task): Fill normal tasks as well, and draw the outline
	after filling. Use newpath and closepath.
	(print): Fix alignment of relation arrows.

	* src/util/mg-print-job.c (mg_print_job_show_clipped): Don't print
	anything if the text starts outside the clip rect.

	* src/views/gantt/mg-gantt-view.c (print_init):
	* src/views/gantt/mg-gantt-print.c (mg_gantt_print_data_new): Sync
	the zoom and detail level from the gantt chart.
	(print_time_header): Use zoom and detail level here.

	* src/util/mg-print-job.c (mg_print_job_show_clipped): Make this
	print the text ellipsized.

	* src/views/gantt/mg-gantt-chart.c
	(mg_gantt_chart_get_zoom_level): Add.
	Include config.h.

2003-01-27  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-print.c (print_time_header): Implement.
	(print): ...and use it here.

	* src/util/mg-print-job.c (mg_print_job_show_clipped): Implement.

	* src/views/gantt/mg-gantt-print.c (print_table_header): Use
	show_clipped.
	(print_table_tasks): Likewise.

2003-01-26  Daniel Yacob <locales@geez.org>

	* configure.in: Added am to ALL_LINGUAS.

2003-01-25  Takeshi AIHANA <aihana@gnome.gr.jp>

	* configure.in: Added ja to ALL_LINGUAS.

2003-01-24  Richard Hult  <rhult@codefactory.se>

	* src/util/mg-print-job.c (print_job_init): Use a slightly smaller
	default font.

	* src/views/gantt/mg-gantt-print.c (mg_gantt_print_data_new): Fix
	bug when there are no tasks.
	(mg_gantt_print_get_n_pages): Add precondition.
	(mg_gantt_print_data_free): Likewise.

	* src/app/mg-main-window.c (main_window_print_cb): Invoke print
	methods on the selected views.
	(main_window_print_cb): Hook up preview and print buttons
	correctly.

	* src/views/gantt/mg-gantt-view.c (print_get_n_pages) 
	(print_cleanup, print, print_init): Implement.

	* src/views/gantt/mg-gantt-print.[ch]: Implement gantt printing.

2003-01-23  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-view-loader.c (mvl_load): Set up get_n_pages, init,
	cleanup methods.

	* src/util/mg-print-job.c (print_job_class_init): Set up parent
	class.
	(print_job_finalize): Chain up finalizer.
	(mg_print_job_new): Return a MgPrintJob, not a GnomePrintContext.

2003-01-23  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-view.c (mg_view_get_nr_of_pages): added

	* src/util/mg-print-page.[ch]: more work

	* src/util/Makefile.am (libutil_la_SOURCES): 
	- added mg-print-page.[ch]

	* src/app/mg-main-window.h: Use glib stuff for macros instead of
	  GTK+
	
	* src/app/mg-application.[ch]: Updated to use coding standard and
	  glib stuff instead of gtk.

	* configure.in: changed libgnomeprintui version

2003-01-23  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-view-loader.c (mvl_load): Set up print method.

	* src/dialogs/print-dialog/Makefile.am: Fix typo.

	* src/app/mg-view.c (mg_view_print): Add.

	* src/app/mg-main-window.c (main_window_print_cb): Work in
	progress on a print dialog.

	* configure.in: Add gnome-print dependency.

	* src/app/mg-main-window.c (main_window_ui_component_event):
	Remove unused calendar switching code.
	(main_window_populate): Likewise.

2003-01-21  Richard Hult  <rhult@codefactory.se>

	* src/app/GNOME_MrProject_MainWindow.ui: Remove unused entries,
	tweak the wording of some and make print sensitive.

2003-01-21  Mikael Hallendal  <micke@codefactory.se>

	* Release 0.8

	* configure.in: Bumped version

2003-01-16  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (gantt_row_draw): Clean up
	milestone and summary drawing a bit.

	* src/views/gantt/mg-scale-utils.c (mg_scale_format_time): Fix
	typo in comment.

2003-01-15  Mikael Hallendal  <micke@codefactory.se>

	* src/widgets/sidebar/mg-sidebar.c (sidebar_button_toggled_cb): 
	- Don't toggle the button if we click several times on the same
	  button. Fixes #422.

2003-01-09  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (gantt_row_update_resources): Do
	a few style fixes and change the resource assignment string
	slightly.

2003-01-07  Xavier Ordoquy  <xordoquy@wanadoo.fr>

	* src/dialogs/task-dialog/mg-assignment-model.c:
	(mam_get_column_type), (mam_get_value):
	Added a resource column in the model.

	* src/dialogs/task-dialog/mg-task-dialog.c:
	(task_dialog_resource_units_cell_edited): callback when the
	units cell is edited.
	(task_dialog_setup_resource_list): Added the units assignement
	column.
	
	* src/views/gantt/mg-gantt-row.c:
	(gantt_row_update_resources): adds the unit assigned
	after the resource name.

2003-01-07  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (task_tree_work_data_func): Make
	work blank for milestone tasks.

	* src/views/gantt/mg-gantt-model.c (gantt_model_get_value): Make
	milestones not editable.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_type_toggled_cb)
	(task_dialog_update_sensitivity): Take milestone status in
	consideration.

	* src/views/gantt/mg-gantt-row.c (gantt_row_get_bounds): Expand
	the bbox to cover the milestone shape.
	(gantt_row_draw): Draw milestones.

	* src/dialogs/task-dialog/mg-task-dialog.c (mg_task_dialog_new):
	Align milestone checkbutton with the other widgets.

	* src/views/gantt/mg-task-tree.c (task_tree_work_data_func):
	(task_tree_slack_data_func): 
	Assume 8 hour working day if we have an empty calendar. Stop gap
	measure for #427.

2003-01-02  Anders Carlsson  <andersca@codefactory.se>

	* mrproject.desktop.in (Categories): Add ProjectManagement
	to the list of categories.

2002-12-30  Christian Neumair  <chris@gnome-de.org>

	* src/app/mg-main-window.c: Don't mark the copyright notice for
	translation, escape the (C) character.
	* src/app/mg-main.c: Don't mark "MrProject" for translation.

2002-12-20  Richard Hult  <rhult@codefactory.se>

	* configure.in: Bump version.

	* src/views/gantt/mg-gantt-background.c
	(gantt_background_realize): Make the lines a bit lighter to be
	less annoying until the shade drawing is fixed for real.
	(gantt_background_draw): Fix #376, don't spill nonworking time all
	over the place.

	* src/views/gantt/mg-task-tree.c: 
	* src/views/gantt/mg-gantt-model.c: Add slack column that displays
	free slack.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_setup_default_calendar): Remove.
	(cal_dialog_new_dialog_run): Don't set up default, it's handled in
	the calendar now.

	* src/dialogs/calendar-dialog/mg-default-week-dialog.c
	(default_week_dialog_update_labels): Fix #419, default week dialog
	shows no working time for use-base days on child calendar.

2002-12-19  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-background.c
	(gantt_background_set_calendar): Disconnect the old calendar, not
	the new.

	* src/dialogs/calendar-dialog/mg-working-time-dialog.c
	(working_time_dialog_apply): Implement, go through the intervals
	and set them for the selected day.  Only make apply button
	sensitive after changes and if a day is selected.

2002-12-18  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (main_window_init): Use connect_object
	for the ui_event signal so we don't get it after the window is
	closed.

	* src/dialogs/calendar-dialog/mg-default-week-dialog.c:
	* src/dialogs/project-dialog/mg-phase-dialog.c:
	* src/dialogs/calendar-dialog/mg-calendar-dialog.c:
	* src/dialogs/calendar-dialog/mg-day-type-dialog.c:
	Destroy when the main window goes away.

	* src/views/gantt/mg-gantt-background.c
	(gantt_background_set_calendar)
	(gantt_background_set_property): Refactor updating the calendar
	and use both when changing project and calendar.
	(gantt_background_realize): Make nonworking time a bit lighter.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_new_dialog_run): Initialize calendar to defaults when
	created.

	* src/views/gantt/mg-gantt-background.c
	(gantt_background_set_property): Don't set the project if we
	already have the same.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_selection_changed_cb): Don't allow the last calendar
	to be removed.

	* src/app/GNOME_MrProject_MainWindow.ui: Create new project menu
	and move project properties, project phases, calendar editor and
	day type editor items there.

2002-12-17  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_update_day_widgets): Block/unblock the signals of the
	widgets we are changing.
	Update the apply button sensitivity whenever something is changed.

	* src/views/resources/mg-resource-view.c
	(resource_view_property_removed): Only remove column if it was
	found. Fixes criticals when removing property from another owner
	than self.

	* src/views/gantt/mg-task-tree.c (task_tree_property_removed):
	Likewise.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_update_calendar_widgets): Change name from _widget,
	and take care of all per-calendar widgets.

	* src/dialogs/calendar-dialog/mg-working-time-dialog.c: Handle
	setting working time here.

	* src/app/egg-recent-util.c: 
	* src/app/Makefile.am (INCLUDES): 
	* configure.in: Fix build with stable libgnomeui.

	* src/app/GNOME_MrProject_MainWindow.ui: Add "edit day types"
	item.

	* src/app/mg-main-window.c (main_window_edit_day_types_cb): Add.

	* src/dialogs/calendar-dialog/mg-day-type-dialog.c: Fully
	implement, and remove working time interval editing from here and
	put in its own dialog. Welcome to dialog hell.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_new_dialog_run): Make copy/derive buttons insensitive
	if no calendar is selected.

	* src/dialogs/calendar-dialog/mg-calendar-selector.c
	(cal_selector_create_model): Use connect_object so we don't get
	signals after the dialog is closed.

	* src/app/mg-main.c (main): Don't intercept any signals, at least
	for now.

	* src/views/gantt/mg-gantt-header.c (gantt_header_class_init): Use
	the same min value for the scale param as the gantt row.

	* src/app/mg-main-window.c (main_window_recent_tooltip_func): Show
	the filename.
	(main_window_populate): Set tooltip func.

	* src/views/gantt/mg-gantt-background.c (gantt_background_draw):
	More #397 fixage.

	* src/app/mg-main-window.c (main_window_confirm_exit_run): Strip
	out markup from translatable message, for #397.

	* src/dialogs/calendar-dialog/mg-default-week-dialog.c
	(default_week_dialog_update_entries): Don't mark markup as
	translatable, fix #397.

2002-12-16  Anders Carlsson  <andersca@codefactory.se>

	* src/views/resources/mg-resource-view.c:
	(resource_view_button_press_event):
	Don't make insert resource insensitive

	* src/dialogs/project-dialog/mg-project-properties.glade:
	Small tweaks.
	
2002-12-16  Richard Hult  <rhult@codefactory.se>

	* configure.in: Add third argument to AC_DEFINE commands.

	* acconfig.h: Remove.

	* src/dialogs/project-dialog/mg-phase-dialog.c: New dialog for
	editing the project phases.

	* src/app/GNOME_MrProject_MainWindow.ui: Add phase dialog.

	* src/app/mg-main-window.c (main_window_edit_phases_cb): Add.

	* src/views/gantt/mg-task-tree.c
	(task_tree_property_value_edited): Revert part of working day
	length fixes, since I won't have the time to do it properly now.
	(task_tree_property_data_func): Likewise.

2002-12-16  Anders Carlsson  <andersca@codefactory.se>

	* src/app/GNOME_MrProject_MainWindow.ui:
	* src/app/Makefile.am:
	* src/app/egg-recent-item.c: (egg_recent_item_new),
	(egg_recent_item_free), (egg_recent_item_ref),
	(egg_recent_item_unref), (egg_recent_item_new_from_uri),
	(egg_recent_item_set_uri), (egg_recent_item_get_uri),
	(egg_recent_item_peek_uri), (egg_recent_item_get_uri_utf8),
	(egg_recent_item_get_uri_for_display),
	(egg_recent_item_set_mime_type), (egg_recent_item_get_mime_type),
	(egg_recent_item_set_timestamp), (egg_recent_item_get_timestamp),
	(egg_recent_item_get_groups), (egg_recent_item_in_group),
	(egg_recent_item_add_group), (egg_recent_item_remove_group),
	(egg_recent_item_set_private), (egg_recent_item_get_private),
	(egg_recent_item_get_type):
	* src/app/egg-recent-item.h:
	* src/app/egg-recent-model.c: (egg_recent_model_string_match),
	(egg_recent_model_write_raw), (egg_recent_model_delete_from_list),
	(egg_recent_model_add_new_groups), (egg_recent_model_update_item),
	(egg_recent_model_read_raw), (parse_info_init), (parse_info_free),
	(push_state), (pop_state), (peek_state), (start_element_handler),
	(list_compare_func_mru), (list_compare_func_lru),
	(end_element_handler), (text_handler), (error_handler),
	(egg_recent_model_enforce_limit), (egg_recent_model_sort),
	(egg_recent_model_group_match), (egg_recent_model_filter),
	(egg_recent_model_monitor_list_cb),
	(egg_recent_model_monitor_list),
	(egg_recent_model_changed_timeout), (egg_recent_model_monitor_cb),
	(egg_recent_model_monitor), (egg_recent_model_set_limit_internal),
	(egg_recent_model_read), (egg_recent_model_write),
	(egg_recent_model_open_file), (egg_recent_model_lock_file),
	(egg_recent_model_unlock_file), (egg_recent_model_finalize),
	(egg_recent_model_set_property), (egg_recent_model_get_property),
	(egg_recent_model_class_init), (egg_recent_model_limit_changed),
	(egg_recent_model_expiration_changed), (egg_recent_model_init),
	(egg_recent_model_new), (egg_recent_model_add_full),
	(egg_recent_model_add), (egg_recent_model_delete),
	(egg_recent_model_get_list), (egg_recent_model_set_limit),
	(egg_recent_model_get_limit), (egg_recent_model_clear),
	(egg_recent_model_set_filter_mime_types),
	(egg_recent_model_set_filter_groups),
	(egg_recent_model_set_filter_uri_schemes),
	(egg_recent_model_set_sort), (egg_recent_model_changed),
	(egg_recent_model_remove_expired_list),
	(egg_recent_model_remove_expired), (egg_recent_model_get_type):
	* src/app/egg-recent-model.h:
	* src/app/egg-recent-util.c: (egg_recent_util_escape_underlines),
	(path_represents_svg_image), (load_pixbuf_svg), (scale_icon),
	(load_icon_file), (egg_recent_util_get_icon),
	(egg_recent_util_get_unique_id):
	* src/app/egg-recent-util.h:
	* src/app/egg-recent-vfs-utils.c: (make_valid_utf8),
	(istr_has_prefix), (str_has_prefix), (uri_is_local_scheme),
	(handle_trailing_slashes), (make_uri_canonical),
	(format_uri_for_display), (egg_recent_vfs_format_uri_for_display),
	(is_valid_scheme_character), (has_valid_scheme),
	(escape_high_chars), (make_uri_from_input_internal),
	(egg_recent_vfs_make_uri_from_input),
	(make_uri_canonical_strip_fragment), (uris_match),
	(egg_recent_vfs_uris_match), (egg_recent_vfs_get_uri_scheme):
	* src/app/egg-recent-vfs-utils.h:
	* src/app/egg-recent-view-bonobo.c: (egg_recent_view_bonobo_clear),
	(egg_recent_view_bonobo_menu_cb),
	(egg_recent_view_bonobo_menu_data_destroy_cb),
	(egg_recent_view_bonobo_set_list), (model_changed_cb),
	(egg_recent_view_bonobo_get_model),
	(egg_recent_view_bonobo_set_model),
	(egg_recent_view_bonobo_set_property),
	(egg_recent_view_bonobo_get_property),
	(egg_recent_view_bonobo_finalize),
	(egg_recent_view_bonobo_class_init), (egg_recent_view_init),
	(show_menus_changed_cb), (theme_changed_cb),
	(egg_recent_view_bonobo_init), (egg_recent_view_bonobo_show_icons),
	(egg_recent_view_bonobo_show_numbers),
	(egg_recent_view_bonobo_set_ui_component),
	(egg_recent_view_bonobo_set_ui_path),
	(egg_recent_view_bonobo_get_ui_component),
	(egg_recent_view_bonobo_get_ui_path),
	(egg_recent_view_bonobo_set_tooltip_func),
	(egg_recent_view_bonobo_new), (egg_recent_view_bonobo_get_type):
	* src/app/egg-recent-view-bonobo.h:
	* src/app/egg-recent-view.c: (egg_recent_view_get_type),
	(egg_recent_view_get_model), (egg_recent_view_set_model):
	* src/app/egg-recent-view.h:
	* src/app/mg-application.c: (mga_class_init), (mga_init),
	(mga_finalize), (mg_application_exit),
	(mg_application_get_recent_model):
	* src/app/mg-application.h:
	* src/app/mg-main-window.c: (mg_main_window_open_recent),
	(main_window_populate), (mg_main_window_open):
	* src/app/update-from-egg.sh:
	Add support for recent files.
	
2002-12-15  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_new_dialog_run): Don't make "new" insensitive if there
	are no calendars.

	* src/views/gantt/mg-gantt-row.c (gantt_row_event): Start adding
	popup menu for gantt bars.

	* src/views/gantt/mg-task-tree.c (task_tree_duration_data_func):
	Don't hardcode working day length.
	(task_tree_property_data_func): Likewise.
	(task_tree_parse_time_string): Likewise.

	* mrproject.desktop.in (_Name): Remove GenericName, since it's not
	in the desktop file spec.

	* src/dialogs/task-dialog/mg-task-dialog.glade: Add an item,
	"days", to the unit option menu to clarify a little (we need to
	hook it up or remove it really). Add a small hack, an extra vbox
	around the general page to get both homogenous and non-expand
	behavior working correctly.

	* src/widgets/sidebar/mg-sidebar.c (mg_sidebar_set_active): Add.
	Make the buttons toggle buttons. Remove the possibility to have
	mnemonics since it's not HIG-gy anyway.

	* src/app/mg-main-window.c (main_window_view_selected): Set the
	active toggle on the sidebar.

2002-12-15  Anders Carlsson  <andersca@codefactory.se>

	* mrproject.desktop.in:
	Add StartupNotify=true
	
2002-12-15  Richard Hult  <rhult@codefactory.se>

	* Merge in from calendar-work branch.
	
2002-12-15  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_lag_data_func): Convert lag to hours.

2002-12-14  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_pred_cell_edited)
	(task_dialog_new_pred_ok_clicked_cb): Get/set lag in hours instead
	of seconds. Probably need to fix this to accept the same units as
	the task tree later.
	(task_dialog_seconds_per_day): Remove.

	* src/views/gantt/mg-gantt-view.c (activate): Don't disable
	critical path highlighting.

	* src/views/gantt/mg-gantt-row.c (gantt_row_event): Get the
	duration as the difference between the real start and end, not the
	work start and end.

2002-12-13  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mg_task_tree_insert_task): *
	src/views/gantt/mg-gantt-row.c (gantt_row_event): MRP_DAY_foo =>
	mrp_day_get_foo().
	(recalc_bounds): Get the "work-start" time of the task instead of
	the start time. Fixes #370.

	* src/views/resources/mg-resource-model.c (mrm_resource_added_cb):
	Use connect_object so we don't get signals after the model is
	finalized. Fixes weird crashes with GTK+ 2.1.x.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_update_day_widgets): Fix #349, make "use working
	time..." insensitive when operating on base calendars..

2002-12-13  Mikael Hallendal <micke@codefactory.se>

	* *.c: Use mrp_day_get* instead of MRP_DAY_*.
	
2002-12-13  Richard Hult  <rhult@codefactory.se>

	* src/views/resources/mg-resource-model.c
	(mrm_resource_notify_cb): Add g_return_if_fail to help debugging.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_destroy_cb): Disconnect the calendar_changed handler
	as well, fixes #378.

	* src/dialogs/calendar-dialog/mg-day-type-dialog.c
	(day_type_dialog_selection_changed_cb): Make remove button
	insensitive if no day is selected.
	(day_type_dialog_type_removed_cb, day_type_dialog_type_added_cb):
	Refactor a bit to make the code simpler.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_project_day_added_cb)
	(cal_dialog_project_day_removed_cb): Update the option menu when
	day types are added or removed.
	(cal_dialog_destroy_cb): Disconnect.

2002-12-12  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mg_task_tree_insert_subtask):
	Make subtasks get the default length when inserted.
	(mg_task_tree_insert_task): Use real working day work instead of
	hardcoded 8 hours.

	* src/views/gantt/mg-gantt-row.c (gantt_row_event): Use
	mrp_project_get_task_work.
	(gantt_row_event): Get the real amount of work hours instead of
	hardcoding it to 8.

	* src/dialogs/resource-dialog/mg-resource-dialog.c
	(resource_dialog_create_calendar_model): Use connect_object.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_create_model): Use connect_object, so we don't get the
	callback after the dialog is closed.

2002-12-12  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_new_dialog_run): updated for new API.

2002-12-12  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/resource-dialog/mg-resource-dialog.c
	(resource_dialog_edit_calendar_clicked_cb): Show the calendar
	editor dialog.
	(resource_dialog_setup_calendar_tree_view): Select the current
	calendar for the resource.
	(foreach_find_calendar, resource_dialog_find_calendar): Implement.
	(resource_dialog_resource_calendar_changed_cb): Toggle the radio
	button when a calendar is selected.

	* src/app/mg-main-window.c (mg_main_window_show_calendar_dialog):
	Add, shows the calendar editor uniquely once per project.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.glade: Remove
	separator.

	* src/dialogs/resource-dialog/mg-resource-dialog.glade: Add
	calendar page and increase row spacing in the first page to make
	it consistant with the task dialog.

	* src/dialogs/calendar-dialog/mg-default-week-dialog.c
	(default_week_dialog_setup_day_option_menu): Make "use base" type
	insensitive when there is no base.
	(default_week_dialog_update_entries): Show the actual intervals of
	the selected type, instead of the ones currently in the used
	calendar.

2002-12-11  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/calendar-dialog/mg-default-week-dialog.c: Use labels
	instead of entries to display the working time, since it's not
	editable in this context.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.glade: Rearrange
	the "new calender" dialog, add "create empty" option.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_new_dialog_run): Rearrange slightly.

	* src/views/gantt/mg-gantt-background.c
	(gantt_background_set_property): Listen to notifications on the
	project calendar property.
	(gantt_background_project_calendar_notify_cb): Redraw.

	* src/dialogs/project-dialog/mg-project-properties.c
	(mpp_select_calendar_clicked_cb): Pop up calendar selector.
	(mpp_project_calendar_notify_cb): Handle calendar changes.
	Change *_changed_cb to *_notify_cb.

	* src/dialogs/project-dialog/mg-project-properties.glade: Add
	calendar selector button.
	
	* src/dialogs/calendar-dialog/mg-calendar-selector.[ch]: New
	dialog, for selecting a calendar.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_selection_changed_cb): Update the day options (day
	types option menu, radiobuttons) when a calendar is selected.

2002-12-10  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_create_model): Handle changes to the calendar
	hierarchy.  

	* src/dialogs/calendar-dialog/mg-calendar-dialog.glade: First cut
	at yet another dialog, for selecting a calendar.

2002-12-10  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-gantt-background.c:
	* src/views/gantt/mg-gantt-row.c:
	- More build fixes.

	* src/dialogs/calendar-dialog/mg-default-week-dialog.c: 
	* src/dialogs/calendar-dialog/mg-calendar-dialog.c:
	- Build fix and update to latest libmrproject API.

2002-12-09  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(cal_dialog_update_day_widgets)
	(cal_dialog_update_calendar_widget, cal_dialog_apply_clicked_cb)
	(cal_dialog_new_dialog_run, mg_calendar_dialog_new): Implement
	more of the calendar features, update widgets when the calendar
	changes, update the calendar on apply, other small updates and
	cleanups to the code.

2002-12-02  Alvaro del Castillo <acs@barrapunto.com>
	* src/plugins/report-plugin/Makefile.am 
	* src/plugins/report-plugin/project_abw.xsl 
 	* src/plugins/report-plugin/project_html.xsl 
	* src/plugins/bugzilla-plugin/Makefile.am 
	* src/plugins/resource-limit-plugin/Makefile.am 
	* src/plugins/test-plugin/Makefile.am:
	Plugins directories and XSL files for the report plugin

2002-12-02  Alvaro del Castillo <acs@barrapunto.com>

	* po/es.po: Updated and convert to UTF8 by juanjesus.ojeda@hispalinux.es

2002-11-29  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/calendar-dialog/mg-default-week-dialog.c
	(default_week_dialog_get_selected_type)
	(default_week_dialog_get_selected_day) Implement those.

        * src/app/mg-main.c: Remove obsolete include, spotted by Murray
        Cumming.

2002-11-27  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/calendar-dialog/mg-calendar-dialog.glade: More work
	on the dialogs.

2002-11-26  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/calendar-dialog/mg-calendar.[ch]: Cut'n'paste from
	GTK+, and start to bend into shape. Will need more work.

	* src/dialogs/calendar-dialog/mg-calendar-dialog.c
	(mg_calendar_dialog_new): Use MgCalendar.

2002-11-25  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (main_window_test_calendar_cb): Test
	code for the calendar dialog.

	* src/dialogs/Makefile.am (SUBDIRS): Add calendar dialog.

	* configure.in: Add calendar dialog.

2002-11-24  Alvaro del Castillo <acs@barrapunto.com>

	* src/plugins/mg-project-bugzilla-plugin.c:
	The bugs are now loaded in a thread
	The progress bar doesn't update yet :(
	* src/plugins/mg-project-cost-plugin.c:
	Little correction to support the default
	work unit of 1 hour

2002-11-23  Alvaro del Castillo <acs@barrapunto.com>

	* src/plugins/mg-project-bugzilla-plugin.c
	* src/plugins/mpp-bugzilla.glade: 
	Added the progress bar and a check to let the
	user only import the bugs in New state.

2002-11-22  Alvaro del Castillo <acs@barrapunto.com>

	* src/plugins/mg-project-bugzilla-plugin.c:
	Now we import also the resources, but we need to take
	care not to import the same resource several times.
	The plugin also make the assignments :-)

2002-11-21  Alvaro del Castillo <acs@barrapunto.com>

	* src/plugins/mg-project-bugzilla-plugin.c
	* src/plugins/mpp-bugzilla.glade:
	Now the plugin can download a range of bugs and
	create tasks with the name equal to the short
	description for the bug. Next thing that it can
	also create resources and assign the tasks to
	the resources.

2002-11-19  Alvaro del Castillo <acs@barrapunto.com>

	* src/plugins/Makefile.am
	* src/plugins/mg-project-bugzilla-plugin.c
	* src/plugins/mpp-bugzilla.glade:
	Now the plugin can download, parse and insert tasks
	in a Project. We only need now to define the mapping
	between bugzilla fields and mrproject objects.

2002-11-18  Mikael Hallendal  <micke@codefactory.se>

	* Release 0.7

	* configure.in: 
	- Bumped to 0.7
	- Require libmproject 0.7

	* NEWS: Updated for 0.7

	* omf-install/mrproject-C.omf: updated for 0.7

2002-11-15  Richard Hult  <rhult@codefactory.se>

	* docs/user-guide: Update user guide from Kurt Maute.

2002-11-12  Richard Hult  <rhult@codefactory.se>

	* configure.in: Added russion translation from Vitaly Lipatov.

2002-11-07  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/Makefile.am (INCLUDES): 
	* src/views/gantt/Makefile.am (INCLUDES): 
	* src/plugins/Makefile.am (INCLUDES): 
	* src/app/Makefile.am (INCLUDES): 
	- don't use MRP_PLUGINDIR and MRP_VIEWDIR.

	* configure.in: Don't set MRP_PLUGINDIR and MRP_VIEWDIR here.

2002-11-06  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c:
	* src/dialogs/resource-dialog/mg-resource-dialog.c:
	Use ISO time format, fixes #290.

	* src/app/mg-main-window.c (mg_main_window_new): Small cosmetic fix.

2002-11-05  Richard Hult  <rhult@codefactory.se>

	* configure.in: Bump version.
	Require new libmrproject.

	* src/views/gantt/mg-relation-arrow.c
	(mg_relation_arrow_set_predecessor): Add weak pointer so we don't
	try to access the gantt row when it's gone.
	(mg_relation_arrow_set_successor): Ditto. Fixes #283.
	(relation_arrow_finalize): Remove weak pointers.

	* src/app/mg-main.c (main): Fix window icon path.

2002-11-04  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (main_window_do_save_as): Don't prepend
	mrproject-1: to the filename, the new file modules use plain
	filenames.
	(main_window_get_name): Don't try to remove mrproject-1: prefix.

2002-11-04  Thomas Vander Stichele <thomas at apestaart dot org>

        * src/models/Makefile.am: Remove -I$(includedir)
	* po/es.po: fixed double entry in spanish file

2002-11-01  Christian Neumair  <chris@gnome-de.org>

	* src/app/mg-main.c: Add a default window pixmap.

2002-10-29  Alvaro del Castillo <acs@barrapunto.com>

        * src/plugins/GNOME_MrProject_BugzillaPlugin.ui
        * src/plugins/Makefile.am
        * src/plugins/mg-project-bugzilla-plugin.c
        Added the bugzilla import plugin. It is in alpha state
        so use it only for play. It core dumps in some situations yet.

        * configure.in: added Spanish (es) to ALL_LINGUAS.        

2002-10-19  Mikael Hallendal  <micke@codefactory.se>

	* configure.in: added Italian (it) to ALL_LINGUAS.

2002-10-02  Peteris Krisjanis <peteris.krisjanis@os.lv>

	* configure.in: Added Latvian (lv) to ALL_LINGUAS.

2002-10-01  Stanislav Brabec  <sbrabec@suse.cz>

	* configure.in: Added cs to ALL_LINGUAS.

2002-09-18  Kjartan Maraas  <kmaraas@gnome.org>

	* configure.in: Added Norwegian to ALL_LINGUAS.
	
2002-09-03  Richard Hult  <rhult@codefactory.se>

	* src/views/resources/mg-resource-view.c
	(resource_view_update_ui): Set sensitivity for "Edit resource"
	command. Fixes #261.

	* src/app/mg-main.c (termination_handler): Terminate nicely on
	C-c. Fixes #201.
	(main): Hook up signal handler.

	* src/app/mg-main-window.c (main_window_delete_event_cb): Rename
	from main_window_window_delete_cb and use a correct signature
	(return a boolean). Call mg_main_window_close instead of handling
	it ourselves. Fixes #267.
	(main_window_about_cb): Add back the contribute link now when the
	page is up-to-date again.

	* src/views/gantt/mg-task-tree.c (task_tree_work_data_func):
	Remove weird comment.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_update_title): Don't put the name in there twice.

	* src/dialogs/resource-dialog/mg-resource-dialog.c
	(resource_dialog_update_title): Likewise.

2002-09-02  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c: mrp_project_new
	  now wants a reference to the MrpApplication instead of a string
	  to reprecent the primary storage module.

2002-09-02  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c
	(mg_task_tree_get_selected_tasks): Reverse the list so we get the
	selected tasks in the right order.
	(mg_task_tree_indent_task): 
	(mg_task_tree_unindent_task): Make indenting several selected
	tasks at once work, based on a patch from Roberto Perez
	<hylian@jazzfree.com>.

2002-08-30  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c: 
	* src/views/gantt/mg-relation-arrow.c: Remove affine
	transformations.

	* src/views/gantt/mg-gantt-row.c (gantt_row_event): Use a hand
	mouse cursor when the pointer is over resource name links. 

	* src/views/gantt/mg-task-tree.c (task_tree_parse_time_string):
	Don't use default to days unless it's the first part of the
	string.
	(task_tree_get_unit_from_string): Fall back to untranslated unit
	names if we don't find a match.

	* src/views/gantt/mg-gantt-row.c (gantt_row_event): Fetch the work
	day length from the calendar instead of hard coding to 8 hours.

	* src/util/mg-format.c (mg_format_duration): Format durations as
	"1d 4h" etc instead of a decimal number.

	* src/views/gantt/mg-task-tree.c (task_tree_work_edited): Use the
	new time parsing here.

2002-08-29  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (task_tree_parse_time_string):
	Implement, handles combinations of time units entered by the user.

	* src/widgets/sidebar/mg-sidebar.c: Tweak the style setting a bit
	more to make it work better when swithing themes and look a bit
	better. Clean up while at it.

	* src/app/mg-application.c (mga_class_init): Use G_N_ELEMENTS.

	* src/widgets/sidebar/mg-sidebar.c: Use the theme's dark color
	instead of darkening the default color ourselves, and don't try to
	be smart about the brightness of that color since pixmap themes
	break that anyway. Fixes #263.

	* src/views/gantt/mg-gantt-model.c (gantt_model_iter_n_children):
	Handle iter == NULL like the tree view docs say we should.
	(gantt_model_iter_children): Handle iter == NULL (to fix a11y),
	even though the docs doesn't say we need to.
	(gantt_model_iter_nth_child): Handle iter == NULL.
	Also set iter->user_data to NULL everywhere when returning invalid
	iters to help debugging.

2002-08-28  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_calendar_changed_cb): Update work field when the
	calendar changes.
	(task_dialog_seconds_per_day): Add, use this instad of a hardcoded
	value.
	(task_dialog_task_work_changed_cb): Use it here, and fix rounding
	error.
	(task_dialog_work_changed_cb): And here.

	* configure.in: Disable building of static libraries.

	* src/cell-renderers/Makefile.am:
	* src/models/Makefile.am: 
	* src/widget/Makefile.am: Build shared libs. This should fix the
	FreeBSD problems.

	* src/dialogs/task-dialog: Fix padding and wmclass/wmname. Don't
	set a title in the glade file, generate it dynamically.

	* src/dialogs/resource-dialog: Add resource notes support. Fix
	wmclass/wmname. Don't set title in the glade file, generate it
	dynamically.

2002-08-28  Christophe Merlet  <christophe@merlet.net>

	* configure.in: Added fr to $ALL_LINGUAS.

2002-08-27  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c
	(task_dialog_setup_widgets): Make everything but the name
	insensitive for summary tasks.
	(task_dialog_update_sensitivity): Update when children are
	added/removed.

	* src/dialogs/task-dialog/mg-task-dialog.glade: Remove the
	advanced tab until it does anything(?).

	* src/views/gantt/mg-gantt-row.c (gantt_row_event): Ungrab before
	showing the error dialog. Fixes stuck pointer grab reported by
	Jonathan.

	* src/util/Makefile.am (util_LTLIBRARIES): Build shared lib.

	* src/dialogs/task-dialog/mg-task-dialog.c: Clean up.
	(mtd_note_stamp_cb): Don't insert a newline unless necessary.

	* src/views/gantt/mg-gantt-view.c: 
	* src/views/gantt/mg-task-view.c: 
	* src/views/gantt/mg-task-tree.c: Simplify up task dialog
	launching code.
	
	* src/dialogs/resource-dialog/mg-resource-dialog.c
	(mg_resource_dialog_new): Small cleanup.

	* src/views/gantt/mg-gantt-view.c
	(gantt_view_gantt_resource_clicked_cb): Show resource dialog when
	resources are clicked.

	* src/views/gantt/mg-gantt-chart.c
	(mg_gantt_chart_resource_clicked): Add.

	* src/views/gantt/Makefile.am (libgantt_view_la_LIBADD): Link with
	the resource dialog.

	* src/dialogs/task-dialog/Makefile.am: Build a shared lib. 

	* src/views/resources/mg-resource-view.c: Remove the hash table
	that kept us from getting more than one dialog per resource...

	* src/dialogs/resource-dialog/mg-resource-dialog.c: ...and move it
	here. Fix coding style and clean up, plug some leaks.

	* src/dialogs/resource-dialog/Makefile.am
	(libresourcedialog_la_LDFLAGS): Build a shared lib.

2002-08-26  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c: Fix coding style, implement
	mouse-over higlighting for assigned resources.

	* src/views/gantt/mg-gantt-chart.c:
	* src/views/gantt/mg-gantt-model.c:
	* src/views/gantt/mg-gantt-row.c: Remove unnecessary casts.

2002-08-23  Richard Hult  <rhult@codefactory.se>

	Add comments above tricky translatable string and don't mark
	certain strings for translation, thanks to Jochen Hein
	<jochen@jochen.org> for providing the original patch.
	
	* src/app/mg-main-window.c (main_window_confirm_exit_run): Change
	to be HIG compliant.

	* src/dialogs/task-input-dialog/mg-task-input-dialog.glade:
	* src/dialogs/resource-input-dialog/mg-resource-input-dialog.glade: 
	Reorder buttons.

2002-08-22  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/resource-dialog/mg-resource-dialog.c
	(mrd_resource_cost_changed_cb, mrd_connect_to_resource): Connect
	to the custom property changed signal for cost, makes the cost
	update when it's changed elsewhere.

	* src/app/mg-main-window.c (main_window_ui_component_event):
	Handle enabling/disabling the calendar.

	* src/views/gantt/mg-task-tree.c: Don't hardcode the day length,
	fetch it from the calendar.

	* src/views/gantt/mg-gantt-background.c: Redraw when the calendar
	changes.

	* src/views/resources/GNOME_MrProject_ResourcesView.ui: Remove
	spurios menu separator.

	* src/app/Makefile.am: Don't link with things we
	don't need here.

	* src/views/gantt/Makefile.am: Link with task input dialog.

	* configure.in: 
	* src/views/resources/Makefile.am:
	* src/dialogs/Makefile.am (SUBDIRS): 
	* src/dialogs/resource-input-dialog: Add resource input dialog.	

	* src/views/gantt/mg-task-tree.c (mg_task_tree_insert_tasks): Try
	setting the transient of the dialog to the main window.

2002-08-22  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main.c (main): don't call mrp_init, not used anymore.

	* src/app/mg-application.h: inherit MrpApplication instead of
	  GObject.

2002-08-21  Christian Neumair  <christian-neumair@web.de>

	* configure.in (ALL_LINGUAS): Added German (de).

2002-08-21  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/group-dialog/mg-group-dialog.c: Clean up a bit.

	* README: Fix up.

	* configure.in: Add new dialog.

	* src/app/Makefile.am (mrproject_LDADD): Link with the dialog. 

	* src/views/gantt/GNOME_MrProject_TaskView.ui:
	* src/views/gantt/GNOME_MrProject_GanttView.ui: Add "insert task"
	and "insert tasks".

	* src/views/gantt/mg-task-view.c (task_view_insert_tasks_cb):
	* src/views/gantt/mg-gantt-view.c (gantt_view_insert_tasks_cb):
	Use the new dialog.

	* src/dialogs/task-input-dialog/mg-task-input-dialog.c: New dialog
	for adding lots of tasks easily.

2002-08-21  Mikael Hallendal  <micke@codefactory.se>

	* src/app/GNOME_MrProject_MainWindow.ui: 
	- added Help->Help, fixes #181.

	* src/app/mg-main-window.c (main_window_help_cb): added.

	* omf-install/Makefile.am: added

	* configure.in: Generate 
	- omf-install/Makefile,
	- docs/user-guide/C/Makefile

	* xmldocs.make: added

	* Makefile.am:
	(SUBDIRS): added omf-install
	(EXTRA_DIST): added xmldocs.make

2002-08-20  Mikael Hallendal  <micke@codefactory.se>

	* docs/getting-started-hacking.xml: updated information about
	  moving to GNOME CVS.

	* Moved to GNOME CVS.
	
2002-08-19  Richard Hult  <rhult@codefactory.se>

	* src/plugins/mg-project-cost-plugin.c
	(project_cost_resource_cost): Fix build and get work instead of
	duration.

2002-08-17  Mikael Hallendal  <micke@codefactory.se>

	* docs/getting-started-hacking.xml: 
	- fixed a bug reported by Malcolm
	- fixed a few issues when using in new web site.

2002-08-14  Richard Hult  <rhult@codefactory.se>

	* src/views/resources/mg-resource-view.c: Style fixes.

	* configure.in: Bump version to 0.6 and require libmrproject 0.6.

	* autogen.sh: Use automake-1.4 and aclocal-1.4 and update ftp
	links for automake and libtool.

2002-08-14  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_event): Change the drag
	color to match the not-so-new blue gantt bar color.

2002-08-13  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/resource-dialog/mg-resource-dialog.c
	(mrd_resource_group_changed_cb): Eek, don't g_free a group! Select
	the right group in the option menu.
	(mrd_resource_type_changed_cb): Select the right type in the
	option menu.
	(mrd_resource_type_changed_cb): Resource type is not an int, it's
	MrpResourceType.
	(mg_resource_dialog_new): Likewise.
	(mg_resource_dialog_new): Switch the ordering so that work comes
	before material, makes more sense.

	* src/dialogs/task-dialog/mg-task-dialog.c: Use work instead of
	duration, make it say 1 day for 8 hours. 

	* src/dialogs/resource-dialog/mg-resource-dialog.c: Comment out
	overtime cost for now.
	(mrd_setup_option_groups): Don't hide the optionmenu if we don't
	have groups. We should make it insensitive, and listen to
	notification when the groups change and update the list.
	(mg_resource_dialog_new): Fix leak.
	(mrd_option_menu_get_group_selected): Don't use MRP_GROUP, we can
	have NULL here (meaning no group). Fixes crash.
	Fix style here and there.
	(mg_resource_dialog_new): Set the right type and group initially.

2002-08-13  Mikael Hallendal  <micke@codefactory.se>

	* docs/user-guide: Updated version from Kurt Maute.
	
2002-08-06  Mikael Hallendal  <micke@codefactory.se>

	* Release 0.5.94

	* configure.in: 
	- Bumped version to 0.5.94
	- Updated libmrproject dep to 0.5

2002-08-05  Mikael Hallendal  <micke@codefactory.se>

	* mrproject.desktop.in: Fixelifix.

	* src/dialogs/property-dialog/mg-property-dialog.c:
	(property_dialog_add_cb): fixed to work with new definition of
	  mrp_project_add_property. 

	* src/app/mg-main-window.c: changed to work with new signal name
	  needs_saving_changed in libmrproject.

2002-08-05  Richard Hult  <rhult@codefactory.se>

	* src/plugins/mg-project-cost-plugin.c: Remove debug output and
	comment out overtime cost stuff for now.

2002-07-30  Richard Hult  <rhult@codefactory.se>

	* src/cell-renderers/mg-cell-renderer-popup.c (mcrp_start_editing):
	* src/cell-renderers/mg-popup-entry.c (mg_popup_entry_set_text):
	Set to "" if NULL.

2002-08-05  Jonathan Blandford  <jrb@redhat.com>

	* mrproject.desktop.in: Fixed a few issues.

2002-07-30  Alvaro del Castillo <acs@andago.com>

        * src/dialogs/resource-dialog/mg-resource-dialog.c:
        formatting corrections (thanks rhult form pointing it)        
        * src/views/resources/mg-resource-view.c: resource editor
        is now shown

2002-07-30  Alvaro del Castillo <acs@andago.com>

        * src/dialogs/resource-dialog:
        the resource dialog hits the repository. This afternoon
        will be shown from the resource popup in the resource view.

2002-07-30  Alvaro del Castillo <acs@andago.com>

	* data/icons/24_edit_resource.png
	* data/icons/Makefile.am: new icon to edit resources. 
	The icon needs to be created because currently it is a
	copy of 24_insert_resource.png
	* src/views/resources/GNOME_MrProject_ResourcesView.ui: added
	resource edit entries
	* src/views/resources/mg-resource-view.c: created the popup menu.
	It lacks the implementation of edit callback but I have it
        at home. This afternoon I will commit it.
        
2002-07-09  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/project-dialog/mg-project-properties.c
	(mg_project_properties_new): Close the dialog when the close
	button is pressed. Patch from Xavier.

2002-07-08  Alvaro del Castillo <acs@andago.com>

	* src/dialogs/task-dialog/mg-assignment-model.c
	* src/plugins/mg-project-cost-plugin.c
	* src/views/resources/mg-resource-model.c
	changed cost-std for cost and cost-ovt for
	cost-overtime. 

2002-07-06  Alvaro del Castillo <acs@andago.com>

	* src/dialogs/task-dialog/mg-assignment-model.[ch]: modify
        to the new cost custom properties

        * src/plugins/mg-project-cost-plugin.c: modify
        to the new cost custom properties

        * src/views/gantt/mg-gantt-model.[ch]: added to the model the
        new cost column

        * src/views/gantt/mg-task-tree.c: added function to display
        the cost formatted and added the new cost column

        * src/views/gantt/mg-task-view.c: added the new cost column

2002-07-02  Alvaro del Castillo <acs@andago.com>

	* src/views/gantt/mg-task-tree.c: be carefull with new property type cost

	* src/views/resources/mg-resource-view.c: added support and view for
	the cost custom properties

	* src/dialogs/property-dialog/mg-property-dialog.c: added support for
	property cost and some formating

2002-06-28  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-view.c (get_widget): Use work column
	instead of duration to minimize confusion for now.

2002-06-25  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_draw): Optimize slightly.
	Only draw with nonworking style when appropriate.

	* src/views/gantt/mg-gantt-background.c (gantt_background_draw):
	Only draw intervals that are at least as long as the limit for the
	current zoom level.

	* src/views/gantt/mg-scale-utils.c (mg_scale_time_next): 
	(mg_scale_time_prev): Make START_OF_WEEK work again.
	Put the scale unit configuration struct here to make it usable
	from other places (e.g. the gantt row).
	Add lower limits for deciding which nonworking time intervals to
	draw.

	* src/app/GNOME_MrProject_MainWindow.ui: Add a placeholder for
	future use.

	* src/views/gantt/mg-gantt-row.c (mgr_draw): Use a real calendar
	and remove the fake one.

	* src/app/mg-plugin-loader.c (mpl_load_dir): Don't free the
	plugin, free the filename.

	* src/app/mg-view-loader.c (mg_view_loader_load, mvl_load_dir):
	Use g_build_path instead of g_strconcat.

	* src/plugins/Makefile.am:
	* src/app/mg-plugin-loader.c (mg_plugin_loader_load): 
	* src/app/Makefile.am (INCLUDES): 
	* src/views/resources/Makefile.am (viewdir): 
	* src/views/gantt/Makefile.am (viewdir): 
	- Use MRP_PLUGINDIR and MRP_VIEWDIR everywhere.

	* configure.in: 
	- Remove gtk-doc setup, we don't use it and probably never will. 
	- Define MRP_PLUGINDIR and MRP_VIEWDIR here instead of everywhere
	else.

2002-06-25  Mikael Hallendal  <micke@codefactory.se>

	* docs/getting-started-hacking.xml: 
	- updated requirements and version number
	
2002-06-25  Malcolm Tredinnick <malcolm@commsecure.com.au>

	* docs/getting-started-hacking.xml: 
	- Small typographical fixes.

2002-06-24  Mikael Hallendal  <micke@codefactory.se>

	* configure.in:
	- Updated to 0.5.93
	- Updated libmrproject deps
	- Updated gnome/glib/gtk deps
	- Removed src/plugins/Makefile from AC_OUTPUT, breaks distcheck

	* src/views/gantt/Makefile.am*
	(libgantt_view_la_SOURCES): fixed distcheck error

2002-06-24  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_event): Don't reset state if
	we release a button, other than 1. Fixes a recently introduced
	stuck pointer grab.

	* src/views/gantt/mg-gantt-view.c (activate): Turn off critical
	path highlighting for now.

2002-06-24  Alvaro del Castillo <acs@andago.com>

        * src/plugins/mg-project-resource-levelling-plugin.c: add
        critical path checking. If we need to move a critical path task
        we forget to try not to move critical tasks because deadlocks
        can appear in this case. Need now some cleaning from messages and
        a computing progress bar. This plugin could be a nice example.

2002-06-23  Alvaro del Castillo <acs@andago.com>

        * src/plugins/mg-project-resource-levelling-plugin.c: improved
        the algorithm and remove the critical path checking because
        it makes deadlock the algorithm. Need to think more about it.

2002-06-20  Alvaro del Castillo <acs@andago.com>

        * src/plugins/mg-project-resource-levelling-plugin.c: corrected some
        core dump when no task to move is found. I want to do the resource
        expanding and then create the new constraints, but it doens't work as
        I expect :( 

2002-06-20  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-task-tree.c:
	- Fixes #174
	(mg_task_tree_indent_task): don't lose selection
	(mg_task_tree_unindent_task): same

2002-06-20  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c: Snap to quarters instead of
	hours when dragging duration.

	* src/views/gantt/mg-gantt-background.c:
	(gantt_background_draw): Use a real calendar, but only draw
	nonworking blocks that are equal to or larger than a day.

	* src/views/gantt/mg-gantt-chart.c: Rename static functions as per
	style guide.
	(mg_gantt_chart_set_model): Set "project" on background.

	* src/views/gantt/mg-gantt-background.c
	(mg_gantt_background_get_type): s/gtk/g/. 

2002-06-19  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_event): Use
	mrp_task_duration_to_work to get the work needed for the duration
	that is dragged.

	* src/util/mg-format.c (mg_format_duration): Add day_length
	parameter. 

	* src/views/gantt/mg-gantt-row.c (mgr_event):
	* src/views/gantt/mg-task-tree.c: Update accordingly.

2002-06-19  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-task-tree.c: 
	- fixed internal function names to conform with style guide
	- added "relation-added" and "relation-removed" signals.
	- listen to those signals on all tasks and proxy them to the
	  views.
	(task_tree_task_added_cb): added, connect to relation_added and
	  relation_removed signal.
	(task_tree_task_removed_cb): added, disconnect from signals
	connected to in task_added_cb.

	* src/views/gantt/mg-task-view.c: 
	- fixed internal function names to conform with style guide.
	- Fixed #187
	(task_view_selection_changed_cb): call update_ui
	(task_view_relations_changed_cb): added, call update_ui
	(task_view_update_ui): code from selection_changed_cb, used by 
	selection_changed_cb and relations_changed_cb.

	* src/views/gantt/mg-gantt-view.c:
	- fixed internal function names to conform with style guide
	- Fixed #187
	(gantt_view_selection_changed_cb): call update_ui
	(gantt_view_relations_changed_cb): added, call update_ui
	(gantt_view_update_ui): code from selection_changed_cb, used by
	  selection_changed_cb and relations_changed_cb.

	* src/views/gantt/mg-gantt-model.c:
	- added "task-added" and "task-removed" signals
	- fixed internal function names to conform with style guide
	- cleaned up some
	(gantt_model_task_inserted_cb): emit "task-added"
	(gantt_model_task_removed_cb): emit "task-removed"

	* src/util/mg-marshal.list: added VOID:OBJECT

2002-06-19  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c: Hardcode 8 hour work day for
	now. 

	* src/util/mg-format.c (mg_format_duration): Hardcode 8 hour work
	day for now.

2002-06-19  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	- Fixes #54
	(main_window_exit_cb): 
	- just call mg_application_exit instead of doing a gtk_main_quit.
	(main_window_close_cb): call mg_main_window_close.
	(mg_main_window_close): added, broke the code from close_cb into
	  it's own function. Called by mg_application_exit.

	* src/app/mg-application.c:
	(mg_application_exit): added, this is called when a user presses
	  exit. It will cycle through all windows and close them one at a
	  time.

2002-06-19  Alvaro del Castillo <acs@andago.com>

	* src/plugins/mg-project-resource-levelling-plugin.c: now the
	algorithm try before without using critical path tasks.

2002-06-19  Alvaro del Castillo <acs@andago.com>

	* src/plugins/mg-project-resource-levelling-plugin.c: adapted
        to the new mrp-time type.

        * examples/test-resource-levelling.mrproject: minor changes

2002-06-18  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_event): Get the calculated
	duration from the task, so that we don't include nonworking time
	when dragging the duration.

	* src/views/gantt/mg-gantt-view.c (mgv_create_widget): Turn off
	the work column.

2002-06-17  Richard Hult  <rhult@codefactory.se>

	* Update mrptime usage everywhere.

2002-06-11  Richard Hult  <rhult@codefactory.se>

	* configure.in: Beautify the pkg-config check output.

2002-06-10  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt: Add a work column for testing purposes. Add
	work property to the gantt model and implement data funcs and
	edited callbacks for work.

	HIG-ification:

	* src/dialogs/task-dialog/mg-task-dialog.glade: Remove accels from
	notebook labels.

	* src/views/resources/mg-resource-view.c (get_label):
	* src/views/gantt/mg-task-view.c (get_label): 
	* src/views/gantt/mg-gantt-view.c (get_label): Remove accel.
	(mgv_create_widget): Try and remove the start column to make
	things less cluttered.

	* src/views/gantt/mg-gantt-view.c (mgv_selection_changed_cb):
	Add commented code for updating unlink button
	sensitivity. Half-way through fixing #187.

	* src/views/gantt/mg-task-tree.c (mg_task_tree_has_relation): Add.

	* src/app/GNOME_MrProject_MainWindow.ui: Add placeholder for
	selection items, and view specific items.

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Put items in view
	specific placeholder.

	* src/views/gantt/GNOME_MrProject_TaskView.ui: Likewise.

	* src/views/resources/mg-resource-view.c
	(resource_view_select_all_cb): Impl.

	* src/views/resources/GNOME_MrProject_ResourcesView.ui: Add edit
	menu and a select all item.

	* src/views/gantt/GNOME_MrProject_TaskView.ui: Add select all.

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Add select all
	command/item. 

	* src/views/gantt/mg-task-tree.c (mg_task_tree_select_all): Impl.

	* src/views/gantt/mg-gantt-view.c (mgv_select_all_cb): Impl. 

	* src/views/gantt/mg-task-view.c (mtv_select_all_cb): Impl.

	* src/views/gantt/mg-gantt-view.c (activate): Set initial
	highlight menu item state.

	* src/dialogs/project-dialog/mg-project-properties.c: Style
	fixes.
	(mg_project_properties_new): Destroy the dialog when the main
	window goes away. Free the dialog data when the dialog is
	destroyed. Return the dialog instead of running	it.
	
	* src/app/mg-main-window.c (main_window_project_props_cb): Just
	present the project properities dialog if we already have one,
	keep a weak pointer to it. Fixes #139.

	* src/views/gantt/mg-task-tree.c (mg_task_tree_edit_task): Just
	raise the dialog if we already have one opened for this task.
	(mtt_task_dialog_destroy_cb): Remove the dialog from our hash
	table.
	(mtt_init): Create task_dialog hash table. The above fixes #170.
	(mtt_finalize): Destroy the hash table.

	* src/app/mg-main-window.c (main_window_about_cb): Copyright
	should be 2001-2002.
	(main_window_init): Listen to changes to the project name. Set the
	title.
	(main_window_update_title): Add, set the title from the project
	name or filename.
	(main_window_get_name): Get a presentable name, either the project
	name, filename or "Unnamed", in that order.
	The above fixes #204 and #210.
	
	* src/views/gantt/mg-gantt-row.c: Add some code to draw a
	milestone but ifdef it out.

2002-06-09  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_draw): Dont' get and
	calculate critical and completion values for summary tasks.
	Remove obsolete FIXME comment.

2002-06-08  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-relation-arrow.c (mg_relation_arrow_new):
	Don't lower the arrows, now that they don't get drawn across gantt
	bars. Inherit from GnomeCanvasItem instead of GnomeCanvasLine, and
	take care of the drawing ourselves. Make the arrows look better
	than the ones for GnomeCanvasLine (i.e. symmetric) and support
	drawing FS relations without drawing all over gantt bars
	etc. Probably needs a bit more work, and we need to implement
	support for the other relation types.

2002-06-07  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mg_gantt_row_get_geometry):
	Change to return the geometry of the drawn actual rectangle, not
	the bounds of the item.

	* configure.in (GETTEXT_PACKAGE): Use prefix/${DATADIRNAME}/locale
	instead of prefix/share/locale, needed to work on e.g. Solaris
	appearantly.

2002-06-08  Alvaro del Castillo <acs@andago.com>

        * src/plugins/mg-project-resource-levelling-plugin.c: use 
        mrp_task_get_finish (mrp_project_get_root_task (project)) 
        to take the project finish time (as rhult said me)

2002-06-08  Alvaro del Castillo <acs@andago.com>

        * src/plugins/Makefile.am: added the cost and resource levelling
        plugins.

        * src/plugins/GNOME_MrProject_CostPlugin.ui: cost plugin UI

        * src/plugins/mg-project-cost-plugin.c: cost plugin implementation

        * src/plugins/GNOME_MrProject_ResourceLevellingPlugin.ui: resource
        levelling UI.

        * src/plugins/mg-project-resource-levelling-plugin.c: resource 
        levelling implementation.

        * examples/test-resource-levelling.mrproject: an example to test
        resource levelling.

2002-06-06  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_destroy): Don't access priv
	if it's freed. Fixes a recently introduced crash.

	* src/views/gantt/mg-relation-arrow.c (relation_arrow_finalize):
	Add, free priv struct.

	* src/views/gantt/mg-relation-arrow.[ch]: Prepare for cleanup, use
	private struct, add properties, fix style.

	* src/plugins/mg-test-plugin.c: Test plugin from Alvaro, slightly
	modified.

	* configure.in: Add src/plugins directory.

	* src/app/mg-plugin-loader.c (mpl_load): Prefix the library
	symbols with plugin_.

	* src/views/gantt/mg-gantt-chart.c (mgc_init): Remove call to
	mgc_set_adjustments, we always get adjustments from the gantt view
	anyway.

	* src/views/gantt/mg-gantt-view.c (mgv_create_widget): Set the
	step and page increment values on the gantt chart's
	hadjustment. Fixes #195.

	* src/views/gantt/mg-gantt-chart.c (mgc_set_adjustments):
	s/gtk_object_ref/g_object_ref/ and clean up stylewise.

2002-06-05  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Add zoom items and
	critical highlighting item.

	* src/app/GNOME_MrProject_MainWindow.ui: Add View menu with
	placeholders for views and view specific items.

	* src/app/mg-main-window.c (main_window_ui_component_event): Add,
	activate the view that is selected from the menu.
	(main_window_init): Listen to ui events.
	(main_window_view_selected): Update the ui (select the right view
	in the view menu).
	(main_window_add_view_menu_item): New function, adds a view to the
	view menu.

	* src/views/gantt/mg-gantt-row.c: Fix break stipple.
	(mgr_draw): Decrease the filled area to so it doesn't include the
	frame. This makes the break stipple more clear.

	* src/util/mg-format.c (mg_format_duration): Use one decimal for
	durations.

	* src/util/Makefile.am: Add test-format but commented.

	* src/util/test-format.c: Add.

	* src/util/mg-format.c (mg_format_duration): Zero days, not zero
	day. Make this work with negative duration (not really
	necessary).
	(mg_format_float): Format negative numbers correctly. Oh, and
	while at it, make formatting positive numbers work correctly as
	well.

	* src/views/gantt/mg-gantt-row.c (mgr_event): Never let duration
	be negative.

2002-06-04  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_canvas_scroll): Add.
	(mgr_destroy): Remove autoscroll timeout.
	(mgr_scroll_timeout_cb): Implement, scrolls if needed.
	(mgr_event): Add autoscroll timeout on button press.
	(mgr_event): Remove timeout on button release.
	(mgr_create_frame_gc): Create frame/highlight GCs on demand
	instead of in realize.
	(mgr_draw): Draw dotted lines over non-working time.
	(mgr_calendar_get_working_time): Fake calendar for now.

2002-06-03  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-background.c (mgb_draw): Plug leak.

2002-06-02  Alvaro del Castillo  <acs@andago.com>

	* src/views/gantt/mg-task-tree.c: make non-editable finish date column.
        Fixes #169.

2002-06-01  Alvaro del Castillo  <acs@andago.com>

	* src/views/gantt/mg-task-tree.c: a date custom property initially
        takes the value of the task start time. Fixes #182.

2002-06-01  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-scale-utils.c (mg_scale_next_tick): Add a day
	and normalize, instead of adding lots of seconds. Fixes #198.

	* src/views/gantt/mg-gantt-header.c (gantt_header_expose_event):
	Round properly everywhere. Finally fixes the ugly off-by-one
	pixels here and there, yay!

	* src/views/gantt/mg-gantt-background.c (mgb_draw): Retrofit to
	use MrpTime and draw real non-working time intervals. Also
	pixel-tweak a bit, should make things look better.

2002-05-31  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-background.c (mgb_init): Use
	mrp_time_new_from_local_time_t since we want the current time
	local time displayed not current UTC.
	Remove the temporary MrpTimeInterval2 and use MrpTimeInterval.

2002-05-31  Mikael Hallendal  <micke@codefactory.se>

	* docs/getting-started-hacking.xml: fixed errors, thanks kenneth

2002-05-31  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-background.c (mgb_realize): Set the
	alignment of the pango layout here instead of every time we use
	it.

	* src/views/gantt/mg-gantt-row.c (mgr_event): Remove question
	marks from the status bar messages. Snap duration to whole hours.
	Only accept duration drag when the pointer is inside the gantt bar
	vertically. 
	(mgr_point): Include the text width, and calculate a real point
	value.

	* src/views/gantt/mg-gantt-background.c: Include config.h so
	translations works.

	* src/cell-renderers/mg-cell-renderer-date.c (mcrd_day_selected):
	Use mg_format_date here as well.

	* src/util/mg-format.c (mg_format_duration): Take rounding in
	consideration when deciding on whether to output "day" or "days".

	* src/views/gantt/mg-task-tree.c: Use mg-format.

	* src/util/mg-format.[ch]: Break out some formatting functions
	from the task tree to be used in other places.

	* src/views/gantt/mg-gantt-view.c (mgv_create_widget): Listen to
	status changes in the gantt chart.
	(mgv_gantt_status_updated_cb): Update the status bar.

	* src/views/gantt/mg-gantt-background.c (mgb_draw): Draw a line at
	the project start. Draw a label with the project start to the left
	of the start line. Add project start property.

	* src/views/gantt/mg-gantt-row.c (mgr_event): Use a darker shade
	for the transparent duration drag rectangle. Display duration and
	predecessor information in the status bar while dragging. Don't
	set x1 and y1 for the shaded rectangle, since they never change.

	* src/views/gantt/mg-gantt-chart.c (mgc_project_start_changed):
	Set project start for the background item.
	(mg_gantt_chart_set_model): Likewise.

2002-05-30  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-scale-utils.c: Fix style.

	* src/views/gantt/mg-gantt-header.c: Remove obsolete comment.

2002-05-30  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	- Fixed to conform with style guide.
	(mgwm_open_cb): 
	- if load failed, don't show the new window, just destroy it.
	  Fixes #180
	(mg_main_window_open): return a bool saying if open succeeded

2002-05-30  Alvaro del Castillo <acs@andago.com>

	* src/views/resources/mg-resource-view.c:
	- make the UI state be checked when the view is activated
	- Fixes: #125

2002-05-30  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/eel-canvas-rect.[ch]: Steal from eel for the
	duration drag rectangle.

	* src/views/gantt/mg-gantt-row.c (mgr_event): Clean up a bit.
	First cut at setting duration by dragging.

	* src/views/gantt/mg-task-tree.c: Initialize date cell to use
	constraints for start cell, and not for other cells.

	* src/cell-renderers/mg-cell-renderer-date.c: Make the constraint
	section optional.

	* src/cell-renderers/Makefile.am: Don't build test program.

	* src/cell-renderers/mg-cell-renderer-date.c (mcrd_day_selected):
	Use same date format as the views (this sucks).

2002-05-27  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c: 
	- fixed include of the project dialog.

	* src/views/resources/mg-resource-view.c: 
	- fixed include of the group dialog

	* src/views/resources/Makefile.am:
	- Don't build and install glade file.
	(libresources_view_la_SOURCES): removed mg-group-*
	(libresources_view_la_LIBADD): link with libgroupdialog.la

	* src/views/resources/mg-group-*:
	- moved to src/dialogs/group-dialog

	* src/dialogs/project-dialog/mg-project-properties.h:
	- full path to mg-main-window.h

	* src/dialogs/project-dialog/Makefile.am: added

	* src/dialogs/group-dialog/Makefile.am: added

	* src/dialogs/Makefile.am (SUBDIRS): 
	- added group-dialog and project-dialog.

	* src/app/mg-project-properties.*: 
	- moved to src/dialogs/property-dialog. 
	
	* src/app/Makefile.am:
	- Don't build and install glade file.
	(mrproject_SOURCES): removed project properties dialog sources.
	(mrproject_LDADD): link with project properties dialog library.

	* configure.in: output Makefiles in the new group-dialog and
	  project-dialog locations.

2002-05-27  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mg_task_tree_indent_task) 
	(mg_task_tree_unindent_task, mg_task_tree_move_task_up) 
	(mg_task_tree_move_task_down): Block/unblock around these since we
	don't want selection changed signals in those cases. This helps
	fixing #200.
	(mtt_unblock_selection_changed): Impl.
	(mtt_block_selection_changed): Impl.
	(mg_task_tree_get_selected_tasks): Move here from the task/gantt
	view and share the code.

	* src/views/gantt/mg-gantt-view.c (mgv_create_widget): Connect to
	the new selection-changed signal.
	(mgv_selection_changed_cb): Change the signature to match the new
	signal.

	* src/views/gantt/mg-task-view.c (get_widget): Connect to
	selection-changed on the tree.
	(mtv_selection_changed_cb): Change the signature to match the
	new selection-changed signal.
	(mtv_get_selected_func, mtv_tree_selection_get_list): Remove.	

	* src/views/gantt/mg-task-tree.c (mg_task_tree_insert_task): Set
	cursor to the newly inserted task.
	(mg_task_tree_insert_subtask): Likewise.
	(mtt_row_inserted): Don't set the cursor here, we only want that
	done when the user explicitly inserted a task (not when moving or
	anything that emits a row_inserted).
	(mtt_selection_changed_cb): Impl, we proxy the selection changed
	signal so that we can gain more control over it.
	(mtt_setup_tree_view): Connect to selection-changed.
	(mtt_class_init): New signal to emit when the selection is
	changed.

	* src/views/gantt/mg-gantt-model.c (mgm_task_inserted_cb): We must
	emit has_child_toggled before row_inserted. Part of fixing #200.

	* src/views/gantt/mg-gantt-row.c (mgr_draw): Include the text
	padding when deciding whether to draw text or not.

	* src/views/gantt/mg-relation-arrow.c (mg_relation_arrow_new):
	Make sure arrows are put underneath gantt bars.

	* src/views/gantt/mg-gantt-row.c (mgr_draw): Prepare for critical
	path visualization.
	(mgr_realize): Likewise.

	* src/app/mg-main.c (main): Fix style.

	* src/app/GNOME_MrProject_MainWindow.ui: Fix some strings.

2002-05-25  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (mgwm_populate): Remove call to
	bonobo_ui_engine_config_set_path, we don't want right-click config
	stuff, just use the system setting for less crack.

2002-05-24  Richard Hult  <rhult@codefactory.se>

	* src/cell-renderers/mg-cell-renderer-popup.c (mcrp_init): Connect
	to style_set so that we can invalidate the button width cache on
	theme changes.

	* src/views/gantt/mg-gantt-chart.c: Fix up reflow logic so we
	never reflow when we are not visible (i.e. when another view is
	showing), and cut off some unnecessary reflows. This should
	accelerate the gantt view somewhat.

	* src/views/gantt/mg-gantt-model.c: Clean up slightly.
	
	* src/cell-renderers/mg-cell-renderer-popup.c (mcrp_get_size):
	Cache the button width, it's REALLY expensive to calculate like
	it's currently done.

2002-05-23  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-chart.c (mgc_map): Impl, reflow after
	we are mapped.
	(mgc_reflow_now): Only reflow if we are mapped.
	(mgc_reflow): Ditto.
	(mg_gantt_chart_set_model): Remove realized check here, we never
	reflow when we are not mapped now.
	(mgc_reflow_now): Don't set height_changed here. Most of the time,
	we don't want it, so make the exceptions set it instead.
	(mg_gantt_chart_set_model): Only reflow if we have a new model and
	also set height_changed here.
	(mgc_row_has_child_toggled): Remove, since we don't need it (the
	gantt row item updates it self).
	(mg_gantt_chart_set_model): Don't connect to has_child_toggled.

	* src/views/gantt/mg-gantt-row.c (mgr_draw): Draw summary tasks
	slightly lower.

	* src/views/gantt/mg-task-tree.c (mtt_format_date): Format the
	date as "Jan 22" for C locale. Spice up the comment for
	translators.

	* src/views/gantt/mg-task-view.c (get_widget): Create the model
	here and pass it to the task tree.
	(mtv_project_loaded_cb): Remove code and call
	mg_task_tree_set_model instead. 

	* src/views/gantt/mg-task-tree.c (mg_task_tree_insert_subtask):
	Grab focus, part of fixing #149.
	(mg_task_tree_insert_task): Likewise.
	(mg_task_tree_new): Add model argument so we don't need to create
	and destroy extra models when we start up.
	(mtt_setup_tree_view): Removed code and call _set_model instead.
	(mg_task_tree_set_model): Added, move some shared code here.
	(mtt_date_data_func): Use mtt_format_date.
	(mtt_row_inserted): Set the tree view cursor to the newly inserted
	row.
	
	* src/views/gantt/mg-gantt-view.c (mgv_create_widget): Create the
	model here, and pass it to the task tree so we don't create a
	model and then immediately destroy it just to create another
	one. Also use mg_gantt_chart_new_with_model so we don't need to
	set it later.
	(mgv_project_loaded_cb): Don't expand the tree, this is handled by
	the task tree. Set the model on the gantt chart and the task tree.
	(mgv_row_inserted): Remove. We handle this in the task tree.
	(mgv_set_model): Remove.
	
2002-05-22  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mtt_setup_tree_view): Remove
	commented code and an extra gtk_tree_view_set_model that somehow
	got in there.

	* src/views/gantt/mg-gantt-row.c (mgr_set_property): Only connect
	to "notify" instead of to all the "notify::...".
	(mgr_draw): Rewrite again, this time keep the crack pipe far
	away. Should fix the rendering problems and as a bonus should be a
	lot faster. Use the canvas' text style gc for drawing the resource
	names.

2002-05-23  Mikael Hallendal  <micke@codefactory.se>

	* examples/mrproject-0.5.93.mrproject: added Fran

	* examples/mrproject-0.5.93.mrproject: added example file for
	  MrProject 0.5.93. Please fill this in with real time estimates.

	* src/dialogs/property-dialog/mg-property-dialog.c:
	(property_dialog_add_cb): activating DATE and DURATION properties.

2002-05-22  Richard Hult  <rhult@codefactory.se>

	* configure.in: Bump version to 0.5.92.
	Update libmrproject requirement to 0.3.

	* data/icons/Makefile.am (EXTRA_DIST): Fix typo.

	* src/views/gantt/mg-task-tree.c (mtt_format_duration): Apply
	patch from Alvaro.

2002-05-21 Alvaro del Castillo <acs@andago.com>

	* src/views/gantt/mg-task-tree.c: added new functions
	to format dates and durations ans use them in the code

2002-05-21  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-group-dialog.c:
	- Fixes #135
	- Changed static functions names to conform with style guide.
	(group_dialog_close_editor_cb): 
	- free priv struct and unref project.
	(group_dialog_create): don't set selection mode here.
	(group_dialog_setup_tree_view): set selection mode MULTIPLE.
	(group_dialog_remove_group_cb): support for removing mulitple
	  groups at once.
	(group_dialog_selection_changed_cb): support for multiple
	  selection mode.
	(group_dialog_selection_get_list): added/impl.
	(group_dialog_get_selected_func): added/impl.

	* src/views/resources/mg-resource-view.c: 
	- changed internal names to conform with style guide.
	(resource_view_remove_resource_cb): 
	- support removal of multiple resource at a time, fixes #134.
	(resource_view_selection_changed_cb): work when multiple selection
	  is supported.
	(resource_view_get_selected_func): added/impl.
	(resource_view_selection_get_list): added/impl.

2002-05-21 Alvaro del Castillo <acs@andago.com>

	* src/views/gantt/mg-task-tree.c: fixed duration
	rendering so it is as same as in the Gantt view.

2002-05-21  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/property-dialog/mg-property-dialog.c:
	(property_dialog_add_cb): 
	- Popup a dialog if you try to add a custom property with name
	  starting with non-alpha. Fixes #185
	- Disable Date and Duration properties since they are not finished
	  and we are trying to get the app ready for release.

	* src/dialogs/task-dialog/mg-task-dialog.c:
	(mtd_task_combo_select_child_cb): removed printout.
	(mtd_setup_widgets): 
	- first set the initial values and then connect to the signals,
	  otherwise you'll get a signal when setting the values. Fixes
	  #183

2002-05-21 Alvaro del Castillo <acs@andago.com>

	* src/dialogs/property-dialog/mg-property-dialog.c: added new
	  custom properties MRP_PROPERTY_DATE/DURATION 

	* src/views/gantt/mg-task-tree.c: support for the new custom 
	  properties MRP_PROPERTY_DATE/DURATION 

2002-05-21  Richard Hult  <rhult@codefactory.se>

	* src/cell-renderers/mg-cell-renderer-date.c: Remove unnecessary
	include. 

	* src/views/gantt/: Revert the commit for fixing fix #175, it
	contaied a mysterious bug that I couldn't find.
	
	* src/views/gantt/mg-task-tree.c (mtt_property_added): Use the
	tree view instead of the model, and get the model from the view
	later, since the model can change but the view not. Fixes #175 in
	a simpler way.

2002-05-18  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-view.c (mgv_create_widget): Only set
	the model once.

	* src/views/gantt/mg-task-view.c (get_widget): Set the tree
	model.

2002-05-15  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mtt_property_added): Add
	"weight" attribute to make the cells for custom properties bold
	for summary task, just like for ordinary cells.

2002-05-14  Richard Hult  <rhult@codefactory.se>

	* data/icons/Makefile.am (EXTRA_DIST): Add pixmaps_DATA. Thanks to
	Xavier for noticing.

	* src/app/mg-main-window.c: Fix #146, output number of
	hours/minutes since last save.

	Fixes #175:

	* src/views/gantt/mg-task-view.c (mtt_project_loaded_cb): Call
	mg_task_tree_set_project() instead of settting up the view
	manually. 

	* src/views/gantt/mg-gantt-view.c (mgv_project_loaded_cb):
	Likewise.

	* src/views/gantt/mg-task-tree.c (mtt_property_data_func): Remove
	extra float argument, fixes a crash.
	(mg_task_tree_set_project): New function to set a project for the
	tree, to share between the task view and gantt view. Adds custom
	properties if appropriate.
	(mg_task_tree_new): Don't setup the tree here.

2002-05-13  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/property-dialog/mg-property-dialog.c: Don't crash if
	name is not set.
	(property_dialog_label_changed_cb): Try to fill in the name entry
	if it's not already edited (use the same as the label).

	* src/dialogs/property-dialog/mg-new-property.glade: Add label entry.

	* src/cell-renderers/mg-cell-renderer-popup.c (mcrp_editing_done):
	s/gtk_signal/g_signal/.
	(mcrp_start_editing): Add a weak pointer so that we know if the
	editable is destroyed.
	(mcrp_hide_popup): Check if editable is nulled out before
	accessing it. Fixes #162.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(mtd_cell_type_show_popup): Change back to short names (FS
	etc). Make variable names more consistant, remove unnecessary
	cast.
	
	* src/app/mg-main.c (main): If MRP_G_FATAL_WARNINGS is set, run
	with g-fatal-warnings.

	* src/dialogs/task-dialog/mg-task-dialog.c (mtd_note_date_cb):
	Scroll to after the inserted stamp.
	(mtd_precessor_dialog_new): Change the strings to "Finish to
	start (FS)" etc. Also make them translatable.
	(mtd_cell_type_show_popup): Change the string from FS to Finish to
	start (FS) etc.
	(mtd_new_pred_ok_clicked_cb): Fix indentation.
	(mtd_predecessor_dialog_new): Rename from mtd_precessor_... Plug
	leak.
	(mtd_new_pred_ok_clicked_cb): Plug leak.
	(mtd_setup_option_menu): Add convenience function (should be put
	in utils/).
	(mtd_predecessor_dialog_new): Cut down on code size by using the
	above mentioned function here.
	(mtd_setup_task_combo): Convenience function for handling a
	combo.
	(mtd_task_combo_select_child_cb): Likewise.
	(mtd_new_pred_ok_clicked_cb): Remove unnecessary casts.

	* src/dialogs/task-dialog/mg-add-predecessor.glade: Change widget
	names to be more consistent.

	* src/dialogs/task-dialog/mg-task-dialog.glade: Add buttons for
	adding/removing predecessors. Make padding more consistent
	between tabs.

2002-05-13  Alvaro del Castillo  <acs@andago.com>

	(mtd_note_changed_cb): Block the changed signal on the task, not
	the buffer. Fixes #165.

2002-05-13  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c: Fix indentation.
	(mtd_note_date_cb): Scroll to the end after insterting time
	stamp. Don't update the task, it's done in the changed signal
	handler of the buffer. Fixes part of #165.

	* src/views/gantt/mg-task-tree.c (mtt_property_removed): Impl.
	(mtt_property_added): Add column to property->column hash table.
	(mtt_format_float): Add.
	(mtt_strip_trailing_zeroes): Add.
	(mtt_get_n_chars): Add.
	(mtt_duration_data_func): Format the float nicely.
	(mtt_property_data_func): Likewise.
	(mtt_property_value_edited): Fix editing of ints and floats.

2002-05-08  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mtt_setup_tree_view): Only
	connect to property signals if the tree is using them.

	* src/views/gantt/mg-gantt-view.c (mgv_create_widget): Don't use
	custom properties.

	* src/views/gantt/mg-task-view.c (get_widget): Use custom
	properties.

	* src/views/gantt/mg-task-tree.c (mg_task_tree_new): Take an
	argument specifying whether to use custom properties or not.
	(mtt_property_value_edited): Handle editing of custom properties.
	(mtt_property_added): Setup editing.

2002-05-07  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/property-dialog/mg-property-dialog.c
	(property_dialog_add_cb): Get the type names from libmrproject
	instead of hard coding them here.

	* src/dialogs/property-dialog/mg-property-model.c
	(property_model_property_added_cb): Use our type name instead of
	the GType name.
	(mg_property_model_new): Likewise.

	* src/dialogs/property-dialog/mg-property-dialog.c
	(property_dialog_add_cb): Support for adding properties with
	different types, not just string.
	(property_dialog_setup_option_menu, property_dialog_get_selected):
	Add conveniece API for option menu to make it actually usable.

	* src/views/gantt/Makefile.am: Link with the property dialog
	library.

	* src/dialogs/property-dialog/Makefile.am: Add all the files to
	the library.

	* src/dialogs/Makefile.am (SUBDIRS): Build the property-dialog.

	* src/views/gantt/GNOME_MrProject_TaskView.ui: Add edit custom
	properties verb/menu item.

	* src/dialogs/property-dialog/mg-property-dialog.c: Adapt to
	API changes in libmrproject and GType instead of MrpObject to
	determine which properties to display. Clean up the dialog to be
	usable from other places (like the task tree).

	* src/dialogs/task-dialog/mg-add-predecessor.glade: Tweak a
	bit. Use a table instead of vbox, make it scale properly, don't
	use a horizontal scrollbar and only use a vertical when
	necessary.

	* autogen.sh: Check for intltool and run intltoolize.

2002-05-07  Alvaro del Castillo  <acs@andago.com>

	* src/dialogs/task-dialog/mg-add-predecessor.glade:
	change GtkTreeView for GtkOptionMenu for Type Predecessor
	in the add predecessor dialog

	* src/dialogs/task-dialog/mg-task-dialog.c:
	change GtkTreeView for GtkOptionMenu for Type Predecessor
        in the add predecessor dialog. Fixes #159.

2002-05-06  Roberto  <HYLIAN-81@terra.es>

	* src/views/gantt/mg-task-tree.c (mg_task_tree_move_task_up):
	Reselect the task after it's moved.
	(mg_task_tree_move_task_down): Likewise. Fixes #152.

2002-05-06  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/property-dialog/mg-property-dialog.c:
	(property_dialog_value_data_func): use value from the property.
	(property_dialog_value_edited): added/impl.
	(property_dialog_setup_list): set value field as editable.

2002-05-06  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-background.c (mgb_draw): Don't draw a
	line between Saturday and Sunday. Avoid rounding errors.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(mtd_cell_type_show_popup): Don't put an empty string in the list
	(and don't mark it for translation because that gets the po header
	;).
	(mtd_cell_type_show_popup): Fix style.
	(mtd_pred_cell_edited): Fix style.
	(mtd_pred_cell_edited): Don't use an int for the type, we have a
	type for that (MrpRelationType).
	(mtd_pred_cell_edited): Remove unnecessary cast.
	(mtd_cell_name_show_popup): Fix style and remove unneeded cast.
	(mtd_cell_name_show_popup): Don't free the name here, it's still
	in the list.

	* src/dialogs/property-dialog/test-dialog.c: Add some code to
	start testing adding/removing (custom property) columns.

	* src/views/gantt/mg-gantt-chart.c (mgc_set_zoom): Always set the
	zoom. Fixes problem with incorrect dates at first display.
	(mgc_realize): Set zoom after we've been realized.
	(mgc_get_center): Impl.
	(mgc_set_center): Impl.
	(mg_gantt_chart_zoom_in): Make sure we center the same spot after
	zooming. Fixes #142.
	(mg_gantt_chart_zoom_out): Likewise.

2002-05-05  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-header.c (gantt_header_set_property):
	Remove debug output.

	* src/views/gantt/mg-gantt-chart.c: Remove TODO comment.

	* src/views/gantt/mg-gantt-view.c: Remove all zoom combo related
	code.
	(activate): Update zoom sensitivity state.

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Remove zoom combo
	related stuff.

	* src/views/gantt/mg-gantt-view.c (activate): Remove commented
	zoom combo code.

	* src/views/gantt/mg-gantt-chart.c (mgc_style_set): Handle style
	changes and adapt to the new font size.

	* src/views/gantt/mg-scale-utils.c:
	* src/views/gantt/mg-scale-utils.h: New files that contain some
	scale utilities to be shared by the gantt files.
 
	* src/views/gantt/mg-gantt-header.c: Set up configurations for the
	header scale units/formats at different zoom levels.
	(gantt_header_expose_event): Rewrite to use MrpTime fully and also
	use the header scale configuration.

	* src/views/gantt/Makefile.am (libgantt_view_la_SOURCES): Add
	scale util files and remove the zoom combo.

2002-05-04  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-chart.c (mgc_init): Turn off centering
	on set_scroll_region.

2002-05-05  Alvaro del Castillo <acs@andago.com>
            
        * docs/user-guide/mrproject.xml: update the guide to
	cover the last work in MrProject. 

2002-05-02  Alvaro del Castillo <acs@andago.com>
            
        * src/views/gantt/mg-task-tree.c: unselect all rows
        when you use the right button to access the popup menu
        - Fixes #157    

2002-05-02  Alvaro del Castillo <acs@andago.com>

	* src/dialogs/task-dialog/mg-add-predecessor.glade:
	- ups, I forget to add the glade file

2002-05-02  Alvaro del Castillo <acs@andago.com>

        * src/dialogs/task-dialog/Makefile.am: new
	mg-add-predecessor.glade file for the insert predecessor
	dialog

        * src/dialogs/task-dialog/mg-task-dialog.c:
	(mtd_precessor_dialog_new): dialog to add a predecessor
	(mtd_pred_new_ok_clicked_cb): callback to get the
	dialog data and create a new predecessor
	(mtd_pred_new_cancel_clicked_cb): callback to cancel
	the dialog to add a new predecessor
	- This closes #80

2002-05-03  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/property-dialog/mg-property-model.c:
	(property_model_property_changed_helper): added/impl.
	(property_model_property_changed_cb): added/impl.
	(mg_property_model_new): connect to property_changed.

	* src/dialogs/property-dialog/mg-property-dialog.c:
	(property_dialog_label_edited): set the new label.

2002-05-02  Alvaro del Castillo <acs@andago.com>

        * src/dialogs/task-dialog/mg-task-dialog.c: popup
        menu to insert and remove predecessors. Insert needs
	a new dialog that it isn't implemented yet.

	* src/views/gantt/mg-gantt-row.c: converted int to gint

2002-05-02  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/property-dialog/mg-property-dialog.c: 
	- updated after remove mrp_object_{add,remove}_property functions.
	
	* src/dialogs/property-dialog/mg-property-model.c: 
	* src/dialogs/property-dialog/mg-property-dialog.c: 
	- include mrproject/mrp-property.h
	- use MrpProperty instead of GParamSpec.

2002-05-02  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-header.c: Fix style issues.

	* src/views/gantt/mg-gantt-chart.c (mgc_get_width) 
	(mg_gantt_chart_zoom_to_fit): Don't try to zoom to infinity if we
	don't have any tasks.

2002-05-01  Richard Hult  <rhult@codefactory.se>

	* autogen.sh: Use our own autogen.sh instead of the one from
	gnome-common.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(mtd_connect_to_relation): Remove, since it's unused.

	* configure.in: Use MRP_COMPILE_WARNINGS instead of the one from
	gnome-common.

2002-05-02  Alvaro del Castillo <acs@andago.com>

	* src/dialogs/task-dialog/mg-task-dialog.c: 
	(mtd_pred_cell_edited): Now you
	can change the predecessor from the predecessor dialog.
	Need to check some core dumps and resolve some
	design decissions (task name key) before close #80.
	Now, time to create add/remove predecessor. It is
	c&p some code from the new code added.

2002-04-30  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-chart.c (mgc_class_init): Remove the
	hscale property.
	(mg_gantt_chart_zoom_in, mg_gantt_chart_zoom_out) 
	(mg_gantt_chart_zoom_to_fit): Impl zooming interface.
	(mgc_set_property): Remove hscale property.
	(mgc_get_property): Likewise.
	Rework zooming/scale stuff to be cleaner and calculate the scale
	from the zoom level. 
	(mgc_set_zoom): Impl.

	* src/dialogs/property-dialog/mg-property-model.c: 
	* src/dialogs/property-dialog/mg-property-model.h: Put the
	list store code in its own set of files.

	* src/dialogs/property-dialog/mg-property-dialog.c
	(property_dialog_remove_cb): Ask if the property really should go.
	(property_dialog_add_cb): Pop up add dialog.

	* src/dialogs/property-dialog/mg-new-property.glade: Dialog for
	adding a property.

2002-04-29  Anders Carlsson  <andersca@gnu.org>

	* Makefile.am:
	* data/icons/Makefile.am:
	* data/icons/gnome-mrproject.png:
	* data/icons/mrproject.png:
	* mrproject.desktop.in:
	Add desktop file. 
	
2002-04-29  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_init): Init scale.
	
	* src/views/gantt/mg-task-tree.c (mg_task_tree_move_task_down):
	Style fix.
	(mg_task_tree_move_task_up): Style fix.

2002-04-29  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/property-dialog/mg-property-dialog.c: More work.

2002-04-28  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c (mtd_pred_cell_edited):
	Free path.

	* src/dialogs/task-dialog/mg-predecessor-model.c (mpm_get_value):
	Remove unused variable.

	* src/dialogs/task-dialog/mg-task-dialog.c (mtd_pred_cell_edited):
	Style fixes.

2002-04-28  Roberto Perez Cubero  <HYLIAN-81@terra.es>

	* Fixes #141

	* src/views/gantt/mg-gantt-view.c:
	(mgv_selection_changed_cb): set the up/down buttons sensitivity.
	(mgv_move_task_up_cb): added/impl.
	(mgv_move_task_down_cb): added/impl.

	* src/views/gantt/mg-task-view.c:
	(mtt_selection_changed_cb): set the up/down buttons sensitivity.
	(mtt_move_task_up_cb): added/impl.
	(mtt_move_task_down_cb): added/impl.

	* src/views/gantt/mg-task-tree.c:
	(mg_task_tree_move_task_up): added/impl.
	(mg_task_tree_move_task_down): added/impl.

	* src/views/gantt/GNOME_MrProject_TaskView.ui: 
	* src/views/gantt/GNOME_MrProject_GanttView.ui: 
	- Added move task up/down.
	
2002-04-28  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-task-tree.c:
	- follow the style guide.
	
	* src/app/mg-application.c: 
	- added mg-stock-move-task-down and mg-stock-move-task-up stock
	  items.

	* data/icons/Makefile.am (images_DATA): 
	- added 24_task_up.png and 24_task_down.png from MrProject 0.5

	* configure.in: added requirement on libbonoboui (bump this after
	  next release).

2002-04-25  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/property-dialog: First cut at custom properties
	dialog, does nothing yet.

	* src/app/mg-main-window.c (mgmw_init): Move container/component
	assignments here and don't create a container, just get the one
	from the BonoboWindow.
	(mg_main_window_new): Don't run bonobo_window_construct, not
	needed anymore.

	* configure.in: Add property-dialog.

2002-04-24  Richard Hult  <rhult@codefactory.se>

	* src/cell-renderers/mg-cell-renderer-list.h: Remove unused
	include.

2002-04-24  Alvaro del Castillo  <acs@barrapunto.com>

	* src/dialogs/task-dialog/mg-predecessor-model.c:
	(mg_predecessor_model_new): connect to relations changes
	(mpm_predecessor_changed_cb): update relations views
	(mpm_connect_to_relation): follow relation properties changes
	
2002-04-24  Alvaro del Castillo  <acs@barrapunto.com>

	* src/dialogs/task-dialog/mg-task-dialog.c:
	- predecessor task dialog work: editing can be done
	- we need to respond from some extrenal changes also
 
	* src/dialogs/task-dialog/mg-predecessor-model.c:
	(mpm_get_value): return now correct values 

2002-04-23  Mikael Hallendal  <micke@codefactory.se>

	* docs/getting-started-hacking.xml: 
	- updated
	- added

2002-04-23  Alvaro del Castillo  <acs@barrapunto.com>
	* src/dialogs/task-dialog/mg-task-dialog.c:
	- predecessor task dialog work (not finished yet)

2002-04-23  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-predecessor-model.c: 
	* src/views/gantt/mg-gantt-chart.c: 
	* src/views/gantt/mg-task-tree.c: Update for new relation object.

2002-04-22  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-model.c (mgm_format_date): Remove
	unused function.

2002-04-22  Mikael Hallendal  <micke@codefactory.se>

	* docs/hacking.txt: added. currently only the directory structure.

	* src/views/resources/mg-group-dialog.c: 
	- use mrp_object_get/set instead of g_object_get/set
	
	* src/views/resources/mg-resource-view.c: same.

	* src/views/resources/mg-resource-model.c: same.

	* src/views/resources/mg-group-model.c: same.

2002-04-22  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-tree.c (mg_task_tree_new): Use va args
	to setup columns.

	* src/views/gantt/mg-gantt-view.c: Use mg-task-tree and pass on
	callbacks there.

	* src/views/gantt/mg-task-view.c: Implement all the callbacks. 

2002-04-19  Anders Carlsson  <andersca@gnu.org>

	* data/icons/tasks.png: New tasks icon.

2002-04-18  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-task-view.c:
	* src/views/gantt/mg-task-view.h: Safety commit, doesn't do much
	yet.

	* src/views/gantt/mg-task-tree.c:
	* src/views/gantt/mg-task-tree.h: Split out version of the task
	tree to be shared by gantt view and task table view. Doesn't work
	yet.

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Comment out the
	zoom control.

	* src/app/mg-plugin-loader.c:
	* src/app/mg-plugin-loader.h:
	* src/app/mg-plugin.c:
	* src/app/mg-plugin.h: Plugin support.

	* src/app/mg-main-window.c (mgwm_populate): Simplify and load
	plugins as well.

	* src/app/mg-view-loader.c (mvl_load_dir): Simplify a bit.

2002-04-18  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c (mgwm_confirm_exit_run): print number
	  of minutes since last save in confirm-exit-dialog. Crack-feature
	  of the month.

	* src/views/gantt/mg-gantt-model.c: style change.

2002-04-17  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt: First cut at a zoom combo for the
	toolbar. Doesn't work yet.

2002-04-16  Mikael Hallendal  <micke@codefactory.se>"

	* Release 0.5.91
	
	* configure.in: updated to 0.5.91

	* src/views/resources/mg-resource-view.c:
	* src/views/resources/mg-group-dialog.c:
	- fix the sorting a bit

	* src/views/resources/mg-group-dialog.c:
	- don't connect to clicked on header table headers.
	- use GtkTreeModelSort for sorting.
	(mggd_column_compare_func): removed.
	(mggd_column_sort): removed.
	
	* src/views/resources/mg-resource-view.c: 
	- don't connect to clicked on header table headers.
	- use GtkTreeModelSort for sorting.
	(mrv_compare_char): removed.
	(mrv_compare_number): removed.
	(mrv_column_compare_func): removed.
	(mrv_column_sort): removed.

	* src/models/mg-list-model.c: remove sortable stuff.

	* src/app/mg-project-properties.c:
	(mg_project_properties_run): remove warning.

2002-04-15  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-chart.c (mgc_set_hscale): Impl.
	(mgc_class_init): Add property for hscale.
	(mgc_set_property): Handle it here...
	(mgc_get_property): ...and here.

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Ditto.

	* src/app/GNOME_MrProject_MainWindow.ui: Add commented out view
	menu.

	* src/app/mg-main-window.c (mgwm_about_cb): Add home page link.

	* src/views/gantt/mg-gantt-chart.c
	(mgc_task_moved_task_traverse_func): Remove code that was
	commented out.

	* src/cell-renderers/mg-cell-renderer-date.c (mcrd_day_selected):
	Time is UTC.

	* src/cell-renderers/mg-cell-renderer-popup.c (mcrp_show_popup):
	Get rid of some flicker by moving the window off-screen.

	* src/cell-renderers/mg-popup-entry.c (mg_popup_get_button_width):
	Use gtk_widget_size_request.

	* src/cell-renderers/mg-cell-renderer-popup.c (mcrp_show_popup):

	* src/views/gantt/mg-gantt-model.c: #ifdef out dnd code.

	* src/cell-renderers/mg-popup-entry.c (mg_popup_get_button_width):
	Even uglier hack than before. Create a button and measure it.

	* src/cell-renderers/mg-cell-renderer-list.c (mcrl_show_popup):
	Set size request to the width of the cell.

	* src/cell-renderers/mg-cell-renderer-popup.c (mcrp_show_popup):
	Show the popup before moving it to make it position correctly.

	* src/views/gantt/mg-gantt-view.c: Don't use stock items for new
	task and new subtask, since they add accels which we don't want
	here. Also change a string slightly.
	(mgv_unindent_task_cb): Arguments were swapped.

2002-04-15  Mikael Hallendal  <micke@codefactory.se>

	* src/models/mg-list-model.c: 
	- moved the data_list into the priv-struct. Fixes #69.
	(mg_list_model_get_data): added/impl.
	(mg_list_model_set_data): added/impl.

	* src/dialogs/task-dialog/mg-assignment-model.c:
	(mg_assignment_model_new): use mg_list_model_set_data and don't
	  ref the objects here.

	* src/views/resources/mg-group-model.c:
	(mg_group_model_new): same.

	* src/views/resources/mg-resource-model.c:
	(mg_resource_model_new): same.

	* src/dialogs/task-dialog/mg-predecessor-model.c:
	(mg_predecessor_model_new): same.

2002-04-15  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-background.c: Change destroy to
	finalize, remove the idle in finalize.
	(mgb_update_timeline): Add, update timeline.
	(mgb_realize): Add timeout to update timeline every 60 seconds.
	(mgb_init): Init the timeline time.

	* src/views/gantt/mg-gantt-view.c (mgv_indent_task_cb): Check for
	errors and display a message dialog.

	* src/views/gantt/mg-gantt-background.c (mgb_realize): Use a
	thinner, dashed line for the timeline. 

	* src/views/gantt/mg-gantt-view.c (mgv_unindent_task_cb): Add
	error argument.
	(mgv_indent_task_cb): Add error argument.

2002-04-15  Mikael Hallendal  <micke@codefactory.se>

	* src/util/Makefile.am (NULL): hopefully it builds correctly now.

	* src/util/mg-marshal-main.c: added.

2002-04-13  Alvaro del Castillo <acs@andago.com>

	* src/app/mg-project-properties.c: clean some
	g_warning I forgot to remove before commit.

2002-04-12  Alvaro del Castillo <acs@andago.com>

	* src/app/mg-project-properties.c: connect project
	properties to libmrproject project properties.
	- Fixes #79

	* src/dialogs/task-dialog/mg-task-dialog.c: sync
	control missed in updating task note property

	* src/app/mg-project-properties.glade: button OK
	changed to CLOSE 

2002-04-12  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c:
	(mtd_task_name_changed_cb): set window title to task name.
	(mtd_name_changed_cb): same.

2002-04-11  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c (mgwm_about_cb): added Alvaro in
	  about-box.

2002-04-11  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-header.c (mgh_set_property): Don't try
	to set a negative width.

	* src/views/gantt/mg-gantt-chart.c (mgc_project_start_changed):
	Reflow immediately.

	* src/views/gantt/mg-gantt-background.c (mgb_realize): Draw a time
	line at the current time.

	* src/views/gantt/mg-relation-arrow.c (mra_update_item): Unref
	points.

	* src/views/gantt/mg-gantt-row.c (mgr_get_resources_string): Free
	the name.

	* src/views/gantt/mg-relation-arrow.c
	(mra_predecessor_geometry_changed): Unref points.

	* src/dialogs/task-dialog/mg-predecessor-model.c
	(mg_predecessor_model_new): Free list.

	* src/views/gantt/mg-relation-arrow.c
	(mg_relation_arrow_set_predecessor): Remove the weak refs, they
	just messed things up.

	* src/views/gantt/mg-gantt-chart.c (mgc_reflow_idle): Do reflow in
	an idle since it seems to stop a bit of flickering. Not sure I
	want to keep it this way though.
	(mgc_realize): No need to reflow here.
	(mgc_size_allocate): Force reflow to make things smoother.
	(mgc_add_signal, mgc_disconnect_signals): Convenience functions to
	keep track of connected signals and remove them at once.
	(mg_gantt_chart_set_model): Use them here.

2002-04-10  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-relation-arrow.c (mg_relation_arrow_set_predecessor) 
	(mg_relation_arrow_set_successor): Refactor to avoid code duplication.
	Hide arrow when either task goes away. Show when both are set.

	* src/views/gantt/mg-gantt-chart.c (mgc_remove_children): Free the
	root of the subtree as well.
	(mgc_row_deleted): Don't free the root here.

	* src/views/gantt/mg-relation-arrow.h (mg_relation_arrow_new):
	s/item/successor/. 

2002-04-09  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main.c (main): Unref the application.

	* src/views/gantt/mg-gantt-view.c (mgv_selection_changed_cb): Set
	sensitivity for edit task menu item.

	* src/views/gantt/mg-gantt-model.c (mgm_get_value):
	* src/views/gantt/mg-gantt-chart.c (mg_gantt_chart_set_model,
	(mgc_build_tree):
	(mgc_root_finish_changed): Plug leaks.

	* src/views/resources/GNOME_MrProject_ResourcesView.ui: Shorten
	toolbar button labels.

	* src/views/resources/mg-resource-view.c
	(mrv_selection_changed_cb): Freeze/thaw. 

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Clean up, shorten
	toolbar button labels.

	* src/app/GNOME_MrProject_MainWindow.ui: Clean up, remove
	unnecessary verb names, change some labels to be more consistent
	with other GNOME projects.

	* src/views/gantt/mg-gantt-view.c (mgv_selection_changed_cb): Set
	sensitivity state for indent/unindent/reset constraint. Freeze and
	thaw the ui component.

2002-04-09  Anders Carlsson  <andersca@gnu.org>

	* Makefile.am:
	* configure.in:
	* data/Makefile.am:
	* data/icons/Makefile.am:
	* data/mime/mrproject.applications:
	* data/mime/mrproject.keys:
	* data/mime/mrproject.keys.in:
	* data/mime/mrproject.mime:
	* intltool-extract.in:
	* intltool-merge.in:
	* intltool-update.in:
	Add gnome-vfs mime support so we can open MrProject files from
	nautilus.
	
2002-04-09  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-model.c
	(mg_gantt_model_get_indent_task_target): Add, returns the target
	parent for indenting.

	* src/views/gantt/mg-gantt-view.c (mgv_unindent_task_cb): Impl.
	(mgv_indent_task_cb): Impl.

	* data/icons/Makefile.am (images_DATA): Add indent/unindent
	icons.

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Add
	indent/unindent menu and toolbar items.

	* src/views/gantt/mg-gantt-view.c (init): Add indent/unindent
	stock icons.

	* src/app/mg-application.c: Add indent/unindent stock icons.

2002-04-08  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-model.c: Emit has_child_toggled if
	needed when moving tasks.

	* src/views/gantt/mg-gantt-model.c:
	(mgm_reattach_subtasks)
	(mgm_unlink_subtree_cb)
	(mgm_unlink_subtree_recursively)
	(mgm_task_moved_cb): Connect to moved signal and rearrange the
	tasks at the new position.
	(mgm_get_value): Use the model's copy of the tree and not the
	original tree.

2002-04-03  Richard Hult  <rhult@codefactory.se>

	* src/cell-renderers/mg-cell-renderer-date.c
	(mcrd_constraint_activated_cb): Grab focus on the popup again when
	the optionmenu is activated.

2002-04-02  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_event): Don't do anything
	unless we're dragging with the right button.

	* src/views/gantt/mg-gantt-model.c: Rework to keep a copy of the
	task tree instead of working directly with the tree in
	MrpProject.

	* src/views/gantt/mg-gantt-row.c (mgr_set_property): Use
	g_signal_connect_object to fix crash when removing linked tasks.

2002-04-01  Alvaro del Castillo <acs@andago.com>

	* docs/user-guide/mrproject.xml
	- some words for the community section and introduction

2002-04-01  Alvaro del Castillo <acs@andago.com>

	* docs/user-guide/mrproject.xml
	- some words for the resource and group editor

2002-04-01  Alvaro del Castillo <acs@andago.com>

	* docs/user-guide/mrproject.xml
	* docs/user-guide/img/resource-editor-sorted.png
	* docs/user-guide/img/resource-editor.png
	* docs/user-guide/img/resource-group-editor.png
	- Start working in the resources dialog doc

2002-04-01  Alvaro del Castillo <acs@andago.com>

	* docs/user-guide/mrproject.xml
	* docs/user-guide/img/task-edit-advanced.png
	* docs/user-guide/img/task-edit-note.png
	* docs/user-guide/img/task-edit-predecessors.png
	* docs/user-guide/img/task-edit-resource-assigned.png
	* docs/user-guide/img/task-edit-resources.png
	- Finished the task section in the user guide

2002-03-27  Richard Hult  <rhult@codefactory.se>

	* Released 0.5.90.

2002-03-27  Richard Hult  <rhult@codefactory.se>

	* src/cell-renderers/mg-cell-renderer-date.c (mcrd_start_editing):
	Fix warning.

	* configure.in: Require exactly 0.1 of libmrproject.

	* src/cell-renderers/mg-cell-renderer-date.c (mcrd_start_editing):
	Impl, set editing_canceled to TRUE, we don't support changing the
	date by typing in the cell (yet).

	* src/cell-renderers/mg-cell-renderer-popup.c
	(mcrp_key_press_event): Set editing_canceled to FALSE is return is
	pressed.

	* src/app/mg-project-properties.glade: Use OK button instead of
	Close.

2002-03-27  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-view.c (mrv_setup_tree_view): 
	- set min width's on name and email.

	* src/cell-renderers/mg-popup-entry.c (mg_popup_get_button_width): 
	- added hardcoded button width, this should be fixed (#111).

	* src/cell-renderers/mg-cell-renderer-popup.c: 
	- cleaned up the declarations a bit.
	- override get_size.
	(mcrp_get_size): added. calls parent_class's get_size and adds the
	  width of the button to it.

2002-03-27  Richard Hult  <rhult@codefactory.se>

	* configure.in: Set version to 0.5.90.

	* src/views/resources/mg-group-dialog.c (mggd_add_columns): Set
	column minimum widths.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(mtd_setup_predecessor_list): Set column minimum widths.

2002-03-27  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-model.c:
	(mrm_resource_notify_cb): added/impl.
	(mrm_resource_added_cb): connect to notify-signal on resource.
	(mrm_resource_removed_cb): disconnect from notify-signal.

	* src/views/resources/mg-group-model.c: 
	- renamed static functions to use the same naming scheme as the
	  rest of the functions.
	- Moved the static functions to be listed before the non-static.
	(mgm_group_notify_cb): added/impl.
	(mgm_group_added_cb): connect to notify-signal on group.
	(mgm_group_removed_cb): disconnect from notify-signal.

	* src/models/mg-list-model.c (mg_list_model_get_path): added/impl.

2002-03-27  Alvaro del Castillo  <acs@andago.com>

	* docs/user-guide/mrproject.xml: added more tasks info to the 
    user guide: properties, dependecies and constraints.

    * docs/user-guide/Makefile.am: removed topics.dat
    
    * docs/user-guide/img/task-constraints.png
    * docs/user-guide/img/task-edit.png
    * docs/user-guide/img/task-properties-dialog.png
    more images for the tasks guide section

2002-03-27  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-view.c (mgv_setup_tree_view): Set min
	width for columns.

	* src/views/resources/mg-resource-view.c (mrv_cell_group_edited):
	Don't try to change group if none was selected.

	* Makefile.am: Add docs makefiles to extra dist until the dirs are
	built (needed for make dist).

	* configure.in: Add docs makefiles.

2002-03-27  Alvaro del Castillo  <acs@andago.com>

	* docs/user-guide/mrproject.xml
	only use PNG images

	* docs/user-guide/img/gantt-view.jpg
	* docs/user-guide/img/new-project.jpg
	* docs/user-guide/img/several-projects.jpg
	removed from CVS

2002-03-26  Richard Hult  <rhult@codefactory.se>

	* src/cell-renderers/mg-cell-renderer-date.c (mcrd_day_selected):
	Reset fields.

	* src/app/mg-main.c (main): Hm how did this happen :) Show the
	main window on startup.

	* src/app/mg-main-window.c (mg_main_window_check_version): Tweak
	the message.

	* src/app/mg-main.c (main): Don't check the version here,
	otherwise we'll get two dialogs.

	* src/views/gantt/mg-gantt-view.c (mgv_setup_tree_view): Make
	start column only editable for non-summary tasks.

	* configure.in: Up version to 0.5.99.  Add back maximum to compile
	warnings.  Remove doc makefiles since they don't work. Add back
	when they do.

	* src/util/Makefile.am (EXTRA_DIST): Fix typo.

2002-03-26  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	(mgwm_open_cb): 
	- moved the actual load and error-dialog to mg_main_window_open
	  where it belongs. 
	- Check if the project has been touched, if it has, open a new
	  window and load the project in that window instead. Fixes #101.
	(mg_main_window_open): load the project here and display error
	  dialog if it fails.

2002-03-26  Alvaro del Castillo <acs@andago.com>

	* docs/user-guide/img/group1-subtask-dialog.png
	* docs/user-guide/img/group1-subtasks.png
	* docs/user-guide/img/group1-task-linked.png
	* docs/user-guide/img/group1-task-linking.png
	* docs/user-guide/img/group1-task.png
	* docs/user-guide/img/group1-tasks-linked.png
	screenshots to document the subtasks and task linking
	they aren't inserted in the user guide at the moment

2002-03-26  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	(mgwm_open_cb): show the error message from the storage module if
	  loading fails. Fixes #100
	(mgwm_do_save): return a boolean telling if it was saved or not.
	(mgwm_do_save_as): same.
	(mgwm_confirm_exit_run): use the return from mgwm_do_save in order
	  to know if we are to exit or not. Fixes #91

2002-03-26  Richard Hult  <rhult@codefactory.se>

	* src/cell-renderers/mg-cell-renderer-popup.c
	(mcrp_button_press_event): Don't use gdk_event_get_root_coords,
	since it contains a bug that is fixed in gtk+ cvs.

	* src/app/mg-main-window.c (mgwm_do_save_as): Handle
	GTK_RESPONSE_DELETE_EVENT.

	* docs/user-guide/Makefile.am (XML_FILES): Remove trailing
	backslash.

	* configure.in: Remove gnome-vfs and libxml reqs since we don't
	use them directly. Remove GNOME_COMMON_INIT and the parameter to
	GNOME_COMPILE_WARNINGS, I couldn't run configure with those.

	* src/views/resources/mg-resource-view.c (mrv_cell_type_edited) 
	(mrv_cell_type_show_popup, mrv_cell_group_edited) 
	(mrv_cell_group_show_popup): Hook up type and group cells to use
	list cell.

	* src/views/gantt/mg-gantt-view.c: 
	(mgv_start_show_popup, mgv_start_edited): Hook up the date popup.

	* src/cell-renderers/mg-cell-renderer-list.c: Use
	show/hide_popup. Select the right index.

	* src/cell-renderers/mg-cell-renderer-date.c: Support constaints
	and use show/hide_popup to select the right date/constraint
	type. Mark the selected day.

	* src/cell-renderers/mg-cell-renderer-popup.c: Rework how this
	works, make show_popup/hide_popup signals.

2002-03-26  Alvaro del Castillo <acs@andago.com>

	* docs/user-guide/img/gantt-view.png
	* docs/user-guide/img/new-project.png
	* docs/user-guide/img/several-projects.png
	After reading GNOME Documentation Style Guide it is
	clear we must use DocBook PNG Variant V1.1 in the
	documents and also the PNG images so I add then to
	the CVS. We must change also the actual DTD used.

2002-03-26  Alvaro del Castillo <acs@andago.com>

	* docs/user-guide/mrproject.xml
	* docs/user-guide/img/gantt-view.jpg
	* docs/user-guide/img/new-project.jpg
	* docs/user-guide/img/several-projects.jpg
	Added Peter work and modified the document structure
	to be a book and not an article. I will like to use
	PNG as images, but DocBook 3.1 doesn't support it. There
	are some variants like 
	"-//GNOME//DTD DocBook PNG Variant V1.1//EN" used in eog doc
	but then the user need this DTD to build the doc	

2002-03-26  Alvaro del Castillo <acs@andago.com>

	* configure.in: change doc directory for docs directory

2002-03-25  Mikael Hallendal  <micke@codefactory.se>

	* src/models/mg-list-model.c: fixes some compile warnings.

	* src/app/mg-main-window.c:
	(mgwm_do_save):
	- use the GError to get information about errors while saving.
	- popup error dialog if something goes wrong.
	(mgwm_do_save_as): 
	- use the GError to get information about errors while saving.
	- if file exists, ask user if he wants to overwrite it. Fixes: #89

2002-03-25  Alvaro del Castillo <acs@andago.com>

	* docs/user-guide/mrproject.xml:
	first index try - peter will be working on this

2002-03-25  Alvaro del Castillo <acs@andago.com>

	* docs/Makefile.am
	* docs/user-guide/Makefile.am
	* docs/user-guide/mrproject.xml:
	welcome to the MrProject user guide

	* configure.in: add docs directories to build the doc

2002-03-25  Alvaro del Castillo <acs@andago.com>

	* src/dialogs/task-dialog/mg-task-dialog.c: added gnome-i18n header

2002-03-25  Richard Hult  <rhult@codefactory.se>

	* src/util/mg-marshal.list (POINTER): Updated marshallers.

	* src/cell-renderers/mg-cell-renderer-list.c: Update ::show for
	new signature.

	* src/cell-renderers/mg-cell-renderer-popup.c: Changed signature
	of ::show to pass the path of the cell.

	* src/cell-renderers/mg-cell-renderer-date.c
	(mcrd_setup_option_menu): Impl.
	Update ::show for new signature.

	* src/views/gantt/mg-gantt-view.c (mgv_start_get_constraint):
	Impl.

	* src/*/*: Add config.h, gnome-i18n.h, mark strings for
	translation, add comments for translators.

	* Makefile.am (SUBDIRS): Add po.

	* configure.in: Setup i18n correctly.

	* src/widgets/resource-table: Remove.

2002-03-25  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c: (mgwm_confirm_exit_run): set the name
	  of the project in the exit-dialog. 

2002-03-25  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (mg_main_window_check_version): Add
	really long blurb about constraints.
	(mgwm_populate): Change gconf key to s/-/_/. 

	* src/views/gantt/mg-gantt-model.h: Add editable column.

	* src/views/gantt/mg-gantt-model.c (mgm_get_value): Add editable
	column, so that we can make summary tasks not editable.
	(mgm_get_column_type): Add editable column.

	* src/views/gantt/mg-gantt-view.c (mgv_reset_all_constraints_cb): Impl.

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Add reset
	constraint and reset all constraints.

	* src/views/gantt/mg-gantt-view.c (mgv_reset_constraint_cb): Impl.

	* src/dialogs/task-dialog/mg-task-dialog.glade: Remove optionmenu
	contents and make it insensitive for now.

	* src/app/mg-main.c (main): Init libmrproject.

2002-03-24  Alvaro del Castillo  <acs@barrapunto.com>

	* src/dialogs/task-dialog/mg-task-dialog.c:
	(mtd_task_note_changed_cb): implemented
	- Fixes #78

2002-03-24  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.glade: Use a stock icon
	for time stamp button.

	* src/dialogs/task-dialog/mg-task-dialog.c
	(mtd_task_note_changed_cb): Add, need to implement.
	(mtd_connect_to_task): Connect to notify::note.

	* src/dialogs/task-dialog/mg-task-dialog.glade: Tweak the notes
	tab a bit.

	* src/dialogs/task-dialog/mg-task-dialog.c (mtd_note_date_cb):
	note should not be const.
	(mtd_task_complete_changed_cb): The property is called
	"percent-complete", not "complete".
	(mtd_note_date_cb): Convert date to utf8.

2002-03-24  Alvaro del Castillo  <acs@barrapunto.com>

	* src/dialogs/task-dialog/mg-task-dialog.c:
	(mtd_note_changed_cb): control task note changes
	(mtd_note_date_cb): control data insert in task note
	(mtd_setup_widgets): new widget with task note
        
	* src/dialogs/task-dialog/mg-task-dialog.glade:
	- new widgets for task notes

2002-03-23  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (mgwm_confirm_exit_run): Handle
	GTK_RESPONSE_DELETE_EVENT. Use stock defines instead of strings.
	Grab focus on the save button.
	(mgwm_confirm_exit_run): Add mnemonics to buttons.
	(mgwm_create_dialog_button): Support mnemonics.
	(mgwm_create_dialog_button): Use an alignment to center the
	button's child.

2002-03-23  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	- Fixes #90
	(mgwm_do_save): taken from mgwm_save_cb. 
	(mgwm_do_save_as): taken from mgwm_save_as_cb.
	(mgwm_save_as_cb): most of the contents is moved to _do_save_as.
	(mgwm_save_cb): most of the contents is moved to _do_save.
	(mgwm_exit_cb): if project unsaved, ask if user really wants to
	  close it.
	(mgwm_close_cb): same.
	(mgwm_confirm_exit_run): added/impl.

2002-03-23  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-predecessor-model.c
	(mpm_relation_added_cb): Ignore the signal emitted on the
	successor. 
	(mpm_relation_removed_cb): Ditto.
	(mpm_relation_removed_cb): Disconnect from notify.

2002-03-22  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c
	(mtd_setup_predecessor_list): Add.

	* src/dialogs/task-dialog/mg-task-dialog.glade: Add a tree view to
	the predecessor tab. Set horizontal scrollbar to never on resource
	tab.	

	* src/dialogs/task-dialog/mg-predecessor-model.h: New model for a
	predecessor list. 

	* src/views/gantt/mg-gantt-view.c: Fix moved include.

	* src/views/gantt/Makefile.am: Link with cell-renderers lib.
	Remove mg-cell-renderer*[ch], mg-popup-widget.[ch], and
	test-popup.c 

	* src/Makefile.am (SUBDIRS): Add cell-renderers.

	* configure.in: Add cell-renderers.

	* src/cell-renderers: Move cell renderers here from gantt view.

2002-03-22  Richard Hult  <rhult@codefactory.se>

	* src/util/mg-marshal.list: Add INT:VOID.

2002-03-22  Alvaro del Castillo  <acs@barrapunto.com>

	* src/dialogs/task-dialog/mg-task-dialog.glade:
	- First try with the task note dialog

2002-03-22  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	- Fixes #44
	(mgmw_init): connect to needs_saving on project.
	(mgwm_project_needs_saving): added/impl.

	* src/app/GNOME_MrProject_MainWindow.ui: 
	- set FileSave insensitive.

2002-03-22  Alvaro del Castillo  <acs@andago.com>

	* src/views/resources/mg-resource-view.c
	(mrv_compare_number): implemented really the compare func

2002-03-22  Alvaro del Castillo  <acs@andago.com>

	* src/models/mg-list-model.c:
	- GtkTreeSortable interface is now implemented by MgListModel

2002-03-22  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-gantt-row.c:
	- Fixes #66
	(mgr_set_property): 
	- connect and disconnect all assigned resources.
	- added a priv-variable for easier access the priv-struct.
	(mgr_assignment_changed): removed
	(mgr_update_assignment_string): added/impl.
	(mgr_assignment_added): added/impl.
	(mgr_assignment_removed): added/impl.
	(mgr_resource_name_changed): added/impl.
	(mgr_connect_all_resources): added/impl.
	(mgr_disconnect_all_resources): added/impl.

2002-03-22  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/test-popup.c (start_edited, start_data_cb): 
	* src/views/gantt/mg-cell-renderer-date.c (mcrd_day_selected):
	* src/views/gantt/mg-gantt-header.c (mgh_expose_event):
	* src/views/gantt/mg-gantt-model.c (mgm_format_date): Use
	mrp_time_{month,day}_name. 

2002-03-22  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-view.c:
	(mrv_compare_char): don't segfault if resource doesn't belong to a
	  group (ie. group == NULL)
	(mrv_compare_group): commented out for now.
	(mrv_compare_number): removed unused variables.
	(mrv_column_compare_func): initialize comp_val, fixes warning.

2002-03-22  Alvaro del Castillo  <acs@andago.com>

	* src/views/resources/mg-resource-view.c: 
	- sort the group the same as name/email 

	* src/views/resources/mg-resource-view.c: column sorting need to
	implement some type sorting yet.
 
2002-03-22  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-project-properties.c (mg_project_properties_run): Set
	label mnemonic for start label.

	* src/app/mg-project-properties.glade: Remove markup, set
	wmclass/name, use underline for labels.

	* src/dialogs/task-dialog/mg-task-dialog.glade: Set wmclass/name
	and add "not implemeted" labels to the unimplemented tabs.

	* src/views/resources/mg-group-dialog.glade: Use SHADOW_IN for the
	treeview, and make it non-scrollable horizontally. Set
	wmclass/name.

	* src/views/resources/mg-group-model.c
	(mg_default_group_changed_cb): Add. Emit row-changed when the
	default group changes.
	(mg_group_model_new): Connect to default-group-changed.

	* src/views/gantt/mg-gantt-row.c (mgr_event): Tweak error message.

	* src/views/gantt/mg-gantt-view.c (mgv_selection_changed_cb): Set
	senisitivity state for UnlinkTask command as well.
	(activate): Set initial sens. state.
	(mgv_remove_task_cb): Plug leak.
	(mgv_edit_task_cb): Likewise.
	(mgv_unlink_task_cb): Likewise.
	(mgv_remove_task_cb): Remove all the selected tasks.
	(mgv_create_widget): Set selection mode to MULTIPLE.
	(mgv_unlink_task_cb): Unlink all selected tasks.
	(mgv_tree_selection_get_list): New helper function.
	Use it everywhere where we need to get the selected tasks. 

	* src/views/gantt/mg-cell-renderer-popup.c (mcrp_arrow_clicked):
	Deselect the entry when the popup is shown.

	* src/views/gantt/mg-cell-renderer-popup.c (mcrp_show): Grab
	pointer as well. Ungrab on failure.
	(mcrp_hide): Don't need to ungrab since we close the window.

2002-03-21  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-cell-renderer-popup.c (mcrp_show): Grab
	keyboard so that we get focus.
	(mcrp_hide): Ungrab focus.

2002-03-21  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-gantt-view.c:
	- Fixes: #76
	(mgv_selection_changed_cb): added/impl.
	(mgv_create_widget): connect to selection changed.

	* src/views/gantt/GNOME_MrProject_GanttView.ui: 
	- set task remove button insensitive.

	* src/views/resources/mg-resource-view.c:
	- Fixes #73
	(get_widget): connect to selection changed.
	(mrv_selection_changed_cb): added/impl.

	* src/views/resources/GNOME_MrProject_ResourcesView.ui: 
	- set remove button insensitive.

	* src/views/resources/mg-group-dialog.c: 
	- put private data in priv-struct. 
	- moved setup_tree_view-function to be in correct order with
	  declarations.
	- Fixes #74
	(mggd_setup_tree_view): connect to changed on selection.
	(mggd_selection_changed_cb): added/impl.

2002-03-21  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-project-properties.glade:
	* src/app/mg-project-properties.c (mg_project_properties_run): Add
	support for name, manager, organization.

	* src/views/gantt/mg-gantt-view.c (mgv_tree_view_popup_menu): Add,
	popup the menu on "popup-menu" signal as well.

	* src/app/GNOME_MrProject_MainWindow.ui: Remove stock icon from
	project properties item and move it to file menu.

	* src/views/gantt/mg-gantt-chart.c (mgc_relation_added): Add
	relation to hash table with the relation arrow.
	(mgc_relation_removed): Impl.
	(mgc_build_relations): Insert relation in hash table.

	* src/views/gantt/mg-gantt-view.c (mgv_popup_unlink_task_cb):
	Impl. 
	(mgv_unlink_task_cb): Impl.

	* src/app/mg-application.c: Add unlink stock icon.

	* src/views/gantt/mg-gantt-view.c (init): Add unlink stock icon.

	* src/views/gantt/mg-gantt-row.c (mgr_event): Error dialog should
	have OK button, not Close.

2002-03-21  Alvaro del Castillo  <acs@andago.com>

	* src/models/mg-list-model.(ch):
	- work with GtkTreeViewColumn and not gint column cause we need
	  more data to sort up/down 

	* src/views/resources/mg-group-dialog.c:
	(mggd_column_compare_func): sorts up/down using the column data
	(mggd_column_sort): shows the arrows in sort columns

2002-03-20  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (mgwm_open_cb): Check version.

	* src/app/mg-main.c (main): Add popt support, so that
	opening files from the command line works correctly with
	--g-fatal-warnings. Also add --geometry as a bonus :)

	* src/app/mg-main-window.c (mg_main_window_check_version): Add,
	checks if the opened file is a G1 file, and shows a message
	dialog if so.

	* src/app/mg-main.c (main): Check if the opened file was a G1
	file.

2002-03-20  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/task-dialog/mg-assignment-model.c
	(mam_resource_notify_cb): added/impl. (Fixes #3).
	(mam_resource_added_cb): connect to notify on new resource.
	(mg_assignment_model_new): connect to notify on all resources.

	* src/views/resources/mg-resource-view.c:
	- #75
	(mrv_cell_edited_name): use mg_list_model_get_object instead of
	  using internals in iter.
	(mrv_cell_edited_email): same.

	* src/views/resources/mg-group-dialog.c:
	- #75
	(mggd_remove_group_cb): use mg_list_model_get_object instead of
	  using internals in iter.
	(mggd_cell_edited): same.
	

	* src/views/gantt/mg-gantt-view.c:
	- #75
	(mgv_name_edited): get the task with gtk_tree_model_get instead of
	  using internals of iter.
        (mgv_duration_edited): same.
	
	* src/views/resources/mg-group-dialog.c:
	(mggd_column_compare_func): the compare callback should take a
	  gpointer as it's third argument. using GINT_TO_POINTER and
	  GPOINTER_TO_INT to pass the column.
	(mggd_column_compare_func): free the strings.
	(mggd_column_sort): cast the compare function to get rid of
	  warning.

	* src/models/mg-list-model.c:
	(mg_list_model_sort): iterate with list->next instead of i <
	  list_len. 
	(mg_list_model_sort): assign the newly sorted list.

2002-03-20  Alvaro del Castillo  <acs@barrapunto.com>

	* src/models/mg-list-model.(ch):
	(mlm_list_model_sort): new method to sort MgListModel

	* src/views/resources/mg-group-dialog.c:
	(mggd_strcmp_compare_func): new method to compare MgGroupModel
	(mggd_column_sort): callback to process a sort user query
	(mggd_add_column): some columns can be sorted
 
	* src/views/resources/mg-group-model.c:
	- use g_signal_connect_object to auto disconnect signals on object
	  die

2002-03-20  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-view.c:
	(mrv_remove_resource_cb): don't crash if no selection.

	* src/views/resources/mg-group-model.c:
	(mrgm_get_value): use mg_list_model_get_object to get the group
	  instead of accessing the internals of the iter directly.

	* src/views/resources/mg-group-dialog.c:
	(mggd_remove_group_cb): same

	* src/views/resources/mg-resource-model.c (mrm_get_value): same.
	
	* src/models/mg-list-model.[ch]:
	(mg_list_model_get_object): added/impl.

2002-03-20  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-view.c: 
	(mgv_get_selected_func): Don't poke at private iter->user_data.

	* src/views/gantt/mg-gantt-model.c: 
	* src/views/gantt/mg-gantt-model.h: Move column enum to .h-file
	and use it instead of numbers (eek). Make start and duration be
	MrpTime and integer types, and convert to text in a tree view data
	func callback. Format and parse duration as a float instead of
	integer.

	* src/views/gantt/mg-gantt-row.c (mgr_event): Don't add scroll
	offsets here, fixes #4.

	* src/views/gantt/mg-gantt-chart.c (mgc_init): Don't redraw on allocate.
	(mgh_init): Likewise.

2002-03-19  Mikael Hallendal  <micke@codefactory.se>

	* src/views/gantt/mg-gantt-row.c:
	(mgr_get_resources_string): updated to changes in libmrproject.

	* src/views/gantt/mg-cell-renderer-date.c: 
	- include gtkhseparator.h
	(mcrd_init): removed unused variable.

2002-03-18  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-cell-renderer-date.c (mcrd_init): Play around
	with constraint type UI.

	* src/views/gantt/mg-gantt-row.c (mgr_event): Remove some
	debugging output.
	(mgr_event): Display error dialog if relation can't be added.
	(mgr_event): Free error.

	* src/views/gantt/mg-gantt-view.c (mgv_insert_task_cb): Insert
	task below the selected.

	* src/views/gantt/mg-gantt-chart.c (mgc_tree_node_insert_path):
	Switch arguments to memmove, and don't use memmove when we
	append.

	* src/views/gantt/mg-gantt-view.c: Add popup menu and connect
	edit, insert, remove.

2002-03-15  Mikael Hallendal  <micke@codefactory.se>

	* src/Makefile.am (SUBDIRS): switch build order of models and
	  dialogs.

2002-03-15  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-relation-arrow.c (mra_class_init): Implement
	::point.

	* src/dialogs/task-dialog/mg-task-dialog.c (mtd_connect_to_task):
	Use g_signal_connect_object so that we don't get signals after the
	dialog is closed.

	* src/views/gantt/mg-canvas-line.[ch]: New item that inherits
	GnomeCanvasLine and never receives events. This is used to draw
	the dragging arrow.

	* src/views/gantt/mg-gantt-row.c: Add "hightlight" property and
	draw the frame dashed when it is true.
	(mgr_event): Set highlight on target rows when dragging.

	* src/views/gantt/mg-gantt-chart.c (show_hide_descendants): Use
	mg_gantt_row_set_visible. 

	* src/views/gantt/mg-gantt-row.c: Add visibility-changed signal
	and emit when visibility changes.
	(mg_gantt_row_set_visible): Function to show/hide gantt row.

	* src/views/gantt/mg-relation-arrow.c: Connect to
	visibility-changed and show/hide the arrow when the gantt rows get
	shown/hidden. 

2002-03-14  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c:
	(mtd_task_duration_changed_cb): added/impl.
	(mtd_duration_changed_cb): block the notify::duration signal from
	  task.
	(mtd_setup_widgets): set the initial duration in the spin button.
	(mtd_connect_to_task): connect to notify::duration.

2002-03-14  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-chart.c (mgc_relation_added): Impl.
	(mgc_insert_task): Connect to relation-added and -removed.

	* src/views/gantt/mg-gantt-model.c
	(mg_gantt_model_get_path_for_task): Rename and make public.

2002-03-14  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c:
	- forward declare all static functions.
	(mtd_task_name_changed_cb): added/impl.
	(mtd_name_changed_cb): block the notify::name signal from task.
	(mtd_task_complete_changed_cb): added/impl.
	(mtd_complete_changed_cb): block the notify::percent-complete
	  signal from task.
	(mtd_setup_widgets): set the initial value of the complete spin
	  button.
	(mtd_connect_to_task): added/impl.
	(mg_task_dialog_new): call mtd_connect_to_task in order to start
	  listening to signals from the task.

	(mtd_setup_widgets): renamed from mtd_connect_widgets since it's
	  now used for more than just connecting to signals. Set the
	  object_data "name_entry" and also set the initial name in the
	  entry.
	  

2002-03-14  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-row.c (mgr_event): Add, start to handle
	events. Add predecessor on drag.
	(mgr_event): Draw an arrow when dragging.

2002-03-14  Mikael Hallendal  <micke@codefactory.se>

	* src/models/mg-list-model.c (mg_list_model_update): added/impl.

	* src/dialogs/task-dialog/mg-task-dialog.c:
	(mtd_assignment_toggled_cb): added/impl.
	(mtd_setup_resource_list): connect to toggled on assign-cell

	* src/dialogs/task-dialog/mg-assignment-model.c:
	(mam_assignment_changed_cb): added/impl.
	(mg_assignment_model_new): connect to assignment_{added,removed}

2002-03-13  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.glade: Don't show
	scrollbars unless necessary and put the list in a frame with
	in-shadow.

	* src/views/gantt/mg-gantt-chart.c (mgc_remove_children): Remove
	children recursively.
	(mgc_row_deleted): Call mgc_remove_children.
	(mgc_tree_node_remove): Rename from ..._remove_path and take a
	task instead of a path.

2002-03-13  Mikael Hallendal  <micke@codefactory.se>

	* src/dialogs/task-dialog/mg-assignment-model.c:
	(mam_get_value): set the correct value if the resource is assigned
	  for this task or not.

	* src/views/gantt/mg-gantt-row.c:
	(mgr_get_resources_string): free the resources-list.

2002-03-13  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-view.c (mgv_insert_task_cb): Remove
	ugly cast.
	(mgv_row_inserted): Expand the parent when a new task is
	inserted.
	(mgv_set_model, mgv_project_loaded_cb, mgv_create_widget):
	Refactor those to share some more code.

	* src/views/gantt/mg-gantt-model.c (mgm_task_removed_cb): Don't
	bother with has_child_toggled here, we get a separate signal for
	that now.
	(mgm_connect_to_task_signals): Connect to child-added and
	child-removed.
	(mgm_task_child_added_cb): Emit has-child-toggled.
	(mgm_task_child_removed_cb): Likewise.

	* src/views/gantt/mg-gantt-chart.c (mgc_row_has_child_toggled):
	Update canvas item.

	* src/views/gantt/mg-gantt-view.c (mgv_edit_task_cb): Impl.
	(mgv_remove_task_cb): Don't bring up task dialog here.

2002-03-12  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-model.h: removed unused
	  includes.

	* src/views/resources/mg-group-dialog.c (mggd_create): don't set
	  rules hint here, do it in the glade-file.
	
	* src/dialogs/task-dialog/mg-task-dialog.glade: added resource
	  list.

	* src/dialogs/task-dialog/mg-task-dialog.c:
	(mtd_setup_resource_list): added/impl. create the cells/cols for
	  the resource assignment list.
	(mg_task_dialog_new): read the resource list from the glade file.

	* src/dialogs/task-dialog/mg-assignment-model.[ch]: 
	- added, tree view model for assigning resources to a task.

	* src/dialogs/task-dialog/Makefile.am:
	(libtaskdialog_la_SOURCES): added mg-assignment-model.[ch]

2002-03-12  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (mgwm_open_cb): Show a message when
	file can't be open.

2002-03-12  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-model.c:

	* src/views/resources/mg-resource-model.[ch]: 
	- inherit MgListModel instead of GObject.
	- Don't implement the GtkTreeModel interface (done in
	  MgListModel).
	- Override the three model functions from MgListModel.
	- lots of stuff removed, now in MgListModel.
	(mg_resource_model_new): connect_object instead, spent several
	  hours trying to understand what went wrong before rhult told me
	  I was a dufus :)

	* src/views/resources/mg-group-model.[ch]: 
	- inherit MgListModel instead of GObject.
	- Don't implement the GtkTreeModel interface (done in
	  MgListModel).
	- Override the three model functions from MgListModel.
	- lots of stuff removed, now in MgListModel.

	* src/views/resources/Makefile.am:
	(libresources_view_la_SOURCES): readd mg-resource-model.[ch]

	* src/models/mg-list-model.[ch]: 
	- added, this will be a base-class for list models (like resource
	  view model, group dialog model, ...)

	* src/models/Makefile.am (libmodels_la_SOURCES): 
	- Only have mg-list-model.[ch] here.

	* src/models/mg-resource-model.[ch]: 
	- moved back to views/resources/. (Should have thought before
	  doing that move :)

2002-03-12  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-chart.c: (mgc_build_tree): Build
	relations as well.

	* src/views/gantt/mg-relation-arrow.c: Listen to changes on the
	gantt rows.

	* src/views/gantt/mg-relation-arrow.h: Inherit the right class. 

	* src/views/gantt/mg-gantt-chart.c (mgc_build_tree_do):
	Refactor. Plug a leak.
	(mgc_build_relations): Add, create arrow items for relations.

	* src/views/gantt/Makefile.am (libgantt_view_la_SOURCES): Add
	relation arrow.

	* src/views/gantt/mg-relation-arrow.c:
	* src/views/gantt/mg-relation-arrow.h: First cut at relation arrow
	item.

2002-03-11  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-chart.c (mgc_reflow): Take the
	horizontal bounds in account when calculating the scroll
	region. Fixes #62.

	* src/views/gantt/mg-gantt-row.c (mgr_bounds): Get the real bounds
	here.

	* src/views/gantt/mg-gantt-view.c: Fix include paths.

	* src/views/gantt/Makefile.am (INCLUDES): Add missing \.

	* src/view/gantt/mg-cell-renderer-date.c (mcrd_init):
	Don't create window here. Connect to key-press-event here.

	* src/view/gantt/mg-cell-renderer-list.c (mcrl_init):
	Likewise. 

	* src/view/gantt/mg-cell-renderer-popup.c (mcrp_init):
	Create the popup window in the base class so that we can connect
	to signals etc here.

	* src/app/GNOME_MrProject_MainWindow.ui: Make label for new
	project toolbar button be just "New".

	* src/widgets/sidebar/mg-sidebar.c (ms_destroy): Fix warning.

	* src/views/gantt/: Move gantt chart widget files here from
	widgets/gantt-chart. 

	* src/widgets/Makefile.am (SUBDIRS): Remove gantt-chart.

	* configure.in: Remove gantt-chart.

	* src/widgets/gantt-chart/mg-cell-renderer-date.c: Simplify.

	* src/widgets/gantt-chart/mg-cell-renderer-popup.c: Move some code
	here from m-c-r-date.c and make it general so subclasses get
	simpler.

	* src/widgets/gantt-chart/test-popup.c: Test the combo cell.

	* src/widgets/gantt-chart/mg-cell-renderer-list.c:
	* src/widgets/gantt-chart/mg-cell-renderer-list.h: Initial
	implementation of combo cell. Needs to be moved later.

2002-03-11  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/Makefile.am (libresources_view_la_SOURCES): 
	- removed mg-resource-model.

	* src/views/resources/mg-resource-view.c: 
	- updated to include from new resource model location.

	* src/views/resources/mg-resource-model.[ch]: moved to src/models.

	* src/models/mg-resource-model.[ch]: 
	- moved from src/views/resources.

	* src/models/Makefile.am: added

	* src/Makefile.am (SUBDIRS): added models

	* configure.in: create src/models/Makefile

2002-03-08  Mikael Hallendal  <micke@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-row.c:
	(mgr_set_property): listen to notify::percent-complete.

2002-03-08  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_set_property): Use
	the same callback for start, duration, finish, percent-complete.
	(mgr_set_property): Connect to percent-complete changes.
	(mgr_notify_cb): Common callback for start, duration, finish,
	percent-complete.

	* src/widgets/gantt-chart/mg-gantt-model.c
	(mgm_connect_to_task_signals): New function, that is called for
	each inserted task.
	(mgm_task_inserted_cb): Call it here.
	(mg_gantt_model_new): And here.
	(mgm_task_notify_cb): Emit row-changed when a task has changed.
	(mgm_task_removed_cb): Disconnect when removed.

2002-03-08  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-group-dialog.glade: 
	- Don't put a hbox in the actionarea of the dialog.

	- removed the response_id property on the close and remove buttons
	  (where did that come from?)

2002-03-08  Richard Hult  <rhult@codefactory.se>

	* src/views/resources/mg-group-dialog.c: Hook up default group
	logic.

2002-03-07  Alvaro del Castillo  <acs@barrapunto.com>

        * src/views/resources/mg-group-dialog.c: 
	- clean code and make return the widget. 
	- Control that don't try to remove
	  wen there are no groups selected (the final solution is 
	  disable the remove button in this case).
	- Added close editor callback
	- Added the callback for toggle cell

	* src/views/resources/mg-group-model.c:
	- unref of groups when dialog is closed

	* src/views/resources/mg-resource-view.c:
	- group dialog close callback	
	
2002-03-08  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c (mtd_connect_widgets):
	Connect to changed events on the widgets.
	(mtd_complete_changed_cb): Impl.
	(mtd_duration_changed_cb): Impl.
	(mtd_name_changed_cb): Impl.
	(mtd_close_clicked_cb): Destroy the dialog.

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_draw): Get the real
	percent complete value from the task.

	* src/views/resources/mg-group-dialog.glade: Don't show scrollbars
	unless necessary.

	* src/views/resources/mg-resource-view.c: Add prototypes for
	exported view functions.

2002-03-07  Alvaro del Castillo  <acs@barrapunto.com>

	* src/views/resources/mg-group-dialog.c: toggle aren't editable

2002-03-07  Alvaro del Castillo  <acs@barrapunto.com>

	* src/views/resources/mg-group-dialog.c:
	- toggle aren't editable

2002-03-07  Richard Hult  <rhult@codefactory.se>

	* src/dialogs/task-dialog/mg-task-dialog.c:
	* src/dialogs/task-dialog/mg-task-dialog.h:
	Make this a non-object.

	* src/dialogs/task-dialog/mg-task-dialog.glade: Tweak.

2002-03-07  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-view.c (mrv_edit_groups_cb): 
	- call gtk_widget_show instead of mg_group_dialog_show.

	* src/views/resources/Makefile.am:
	(glade_DATA): renamed glade file to mg-group-dialog.glade.

	* src/views/resources/mg-group-dialog.[ch]:
	- Don't create this as an object.
	- LOTS of changes (to make it not be an object).

	* src/views/resources/mg-group-dialog.glade: 
	- renamed from mg-resource-group-dialog.glade

2002-03-07  Alvaro del Castillo  <acs@barrapunto.com>

	* src/views/resources/mg-group-dialog.c:
	(mggd_init): close dialog button has callback now changes in
	  variable name 
	(mggd_close_editor_cb): callback to close the editor
	(mggd_cell_edited): first approach to manage the group default
	  property 

	* src/views/resources/mg-group-model.c: store the project and
	  first try to manage the group default property

	* src/views/resources/mg-resource-group-dialog.glade: changes in
	  widget names 

2002-03-07  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/Makefile.am (libgantt_view_la_LIBADD): Link with
	the task dialog.

	* src/views/gantt/mg-gantt-view.c (mgv_remove_task_cb): Add some
	debugging code for task-dialog.

	* configure.in: Add new directories.

	* src/dialogs/: Add.
	* src/dialogs/task-dialog: Add some code for a task-dialog.

2002-03-07  Mikael Hallendal  <micke@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-row.c:
	- Fixes #5
	(mgr_set_property): don't connect to name change but instead
	  assignment changes.
	(mgr_ensure_layout): get the string from mgr_get_resource_string.
	(mgr_get_resources_string): added, creates a string from the names
	  of all assigned resources.
	(mgr_assignment_changed): added, change the string on the changed
	  task in the gantt-view.
	(mgr_name_changed): removed, we are not interested in the name of
	  the task for now.
	
	* src/views/gantt/mg-gantt-view.c: 
	- don't include mrp-engine.h (why did we anyway? :)

	* src/app/mg-main-window.c: 
	- don't include mrp-engine.h
	- removed MrpEngine from priv struct.
	(mgmw_init): call mrp_project_new instead of doing it through
	  engine object.
	
2002-03-07  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-model.c: Likewise.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Update to use
	mrp_project.

	* src/views/resources/mg-resource-view.c (mrv_project_loaded_cb):
	Remove cut'n'paste from gantt view.

	* src/views/gantt/mg-gantt-view.c: Add prototypes for the exported
	module functions and update to use mrp_project.

	* src/app/mg-main-window.c: Don't include mrp-task-manager.h.

	* src/widgets/gantt-chart/mg-popup-widget.c:
	* src/widgets/gantt-chart/mg-cell-renderer-popup.c:
	* src/widgets/gantt-chart/mg-cell-renderer-date.c: First try at
	date popup cell.

	* src/widgets/gantt-chart/test-popup.c: Add to make testing
	easier.

2002-03-07  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-view.c:
	(mrv_remove_resource_cb): Implemented. Partly fixes #33.

	* src/views/resources/mg-resource-model.c:
	(mrm_resource_added_cb): ref the resource.
	(mrm_resource_removed_cb): added/impl. Fixes #33
	(mg_resource_model_new): ref all groups and connect to
	  resource_removed on project.

	* src/views/resources/mg-group-model.c:
	(mg_group_removed_cb): unref the group.
	(mg_group_added_cb): ref the group.
	(mg_group_model_new): ref all groups.

	* src/views/resources/mg-group-dialog.c:
	(mggd_remove_group_cb): Call mrp_project_remove_group instead of
	  mrp_object_remove.

2002-03-06  Alvaro del Castillo  <acs@barrapunto.com>

	* src/views/resources/mg-group-dialog.c:
	- implemented group remove
	- cleanup signals

	* src/views/resources/mg-group-model.c
	- implemented group remove

	* src/views/resources/mg-resource-group-dialog.glade
	- button rename to "remove" instead of "delete"

2002-03-05  Richard Hult  <rhult@codefactory.se>

        * src/app/mg-main.c: Remove ENABLE_NLS, not supported with GNOME
	2.
	
	* src/app/mg-application.c:
	* src/app/mg-project-properties.c:
	* src/views/gantt/mg-gantt-view.c:
        * src/widgets/gantt-chart/mg-gantt-background.c:
        * src/widgets/gantt-chart/mg-gantt-chart.c:
        * src/widgets/gantt-chart/mg-gantt-header.c:
        * src/widgets/gantt-chart/mg-gantt-model.c:
        * src/widgets/gantt-chart/mg-gantt-row.c: Change to use new time API.

2002-03-05  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	(mgwm_close_cb): actually destroy the window too. Fix #51

	* src/views/resources/mg-resource-view.c: remove creation of stock
	  items to mg-application.c

	* src/views/gantt/mg-gantt-view.c: same.

	* src/app/mg-application.c: move the creation of stock items into
	  the class_init function of mg-application. This way we can be
	  sure it's only called once.

	* src/app/mg-main-window.c (mgwm_new_cb): I'm dumb, I'm dumb, ...
	  did I say I'm dumb?

	* src/app/GNOME_MrProject_MainWindow.ui: "New" -> "New Project"

	* src/app/mg-view.c: 
	- include bonobo/bonobo-ui-util.h
	(mg_view_new): removed, unused and not in header file.
	(mv_finalize): removed unused variable.

	* src/app/mg-main.c (main): open a file if it's submitted as
	  argument to mrproject.

	* src/app/mg-main-window.c (mg_main_window_open): open a
	  file. Used from mg-main.c to open a uri submitted on command
	  line. Fixes #49. 

	* src/app/mg-view.h: add all functions that should be used outside
	  the class to the header file.

	* src/widgets/sidebar/mg-sidebar.h: same.

	* src/app/mg-project-properties.c:
	(mg_project_properties_run): fixed warning.

	* src/app/mg-main.c: fixed warning.

	* src/app/mg-main-window.c: 
	- include mg-project-properties.h
	- add MgApplication to priv struct.
	(mg_main_window_new): take application as argument.
	(mgwm_new_cb): started to implement.

	* src/app/mg-application.c: 
	- include gtk/gtkmain.h
	(mg_application_new_window): call mg_main_window_new with
	  application as argument.

2002-03-04  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-group-model.c: 
	- Style fixes.

	* src/views/resources/mg-group-dialog.c: 
	- Style cleanups.
	- Made a priv struct which private data is put in instead of
	  static declared variables.
	- Removed old unused code which where giving lots of warnings.
	- Commented about some changes that probably should be done.

	* src/views/resources/Makefile.am:
	(libresources_view_la_SOURCES):
	  s/mg-resources-view/mg-resource-view/

	* src/views/resources/mg-resource-view.c: renamed from
	  mg-resources-view.c

2002-03-03  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-project-properties.c (mg_project_properties_run):
	Don't create the date edit with code now that it's in the glade
	file.

	* src/app/mg-project-properties.glade: Add date edit widget and
	requires tag for gnome.

	* src/views/resources/mg-resource-group-dialog.glade: Set a
	default size and add a close button (doesn't do anything yet).

2002-03-03  Alvaro del Castillo  <acs@barrapunto.com>

	* src/views/resources: Change MgResourceGroup to MgGroup etc.
	
2002-03-03  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (mgwm_populate): Set ui config path to
	something sane, i.e. /apps/mrproject/... 

2002-03-02  Alvaro del Castillo  <acs@barrapunto.com>
	
	* src/views/resources/mg-resource-group-dialog.c added
	Group editor
	* src/views/resources/mg-resource-group-dialog.h added
	Group editor
	* src/views/resources/mg-resource-group-model.c added
	Group model for GtkTreeView
	* src/views/resources/mg-resource-group-model.h added
	Group model for GtkTreeView
	* data/icons/Makefile.am: new icon
	* src/views/resources/GNOME_MrProject_ResourcesView.ui:
	new entry to call the group editor	
        * src/views/resources/Makefile.am: files for the group editor
	* src/views/resources/mg-resources-view.c: call to group editor
	
2002-03-01  Richard Hult  <rhult@codefactory.se>

	* src/views/resources/mg-resource-model.c (mrm_get_column_type):
	Return G_TYPE_INVALID in default case.
	(mg_resource_model_get_type_string): Quiet warning.
	Remove function prototype for functions that we don't implement.

2002-03-01  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-model.c:
	(mg_resource_model_get_type_enum): use RESOURCE_TYPE_NONE instead
	  of INVALID.
	(mg_resource_model_get_type_string): support RESOURCE_TYPE_NONE.

	* src/app/mg-main-window.c: removed revert

	* src/app/GNOME_MrProject_MainWindow.ui: removed revert

2002-02-28  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_draw): Avoid
	rounding error. Make sure we don't draw outside of the gantt bars,
	and fix a few other rendering bugs. This should hopefully be it.

	* src/widgets/gantt-chart/mg-cell-renderer-popup.c: Remove warnings.

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_ensure_layout):
	Break out from _update.
	(mgr_update): Use here.
	(recalc_bounds): And here.

2002-02-27  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-model.c: Fix warnings, use GMT.

	* src/widgets/gantt-chart/mg-gantt-header.c: Use GMT instead of
	local time to avoid DST trouble.

	* src/widgets/gantt-chart/mg-gantt-background.c: Use GMT instead of
	local time to avoid DST trouble.

	* src/widgets/gantt-chart/mg-gantt-row.c: Remove warnings.

	* src/widgets/gantt-chart/mg-gantt-header.c: Change properties
	first-time and last-time to x1, x2, since that's what they are.

	* configure.in: Actually use the warning flags.

	* src/widgets/gantt-chart/mg-gantt-background.c: Remove warnings.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Remove lots of
	warnings. 

	* src/widgets/gantt-chart/mg-gantt-header.c (mgh_expose_event):
	Handle coords > 16 bits, by only drawing to the exposed area and
	clipping outside it.
	Remove lots of warnings.

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_get_bounds): Only
	add TEXT_PADDING if there is text.
	Privatize all members. Cache the text width and don't draw the
	text if it's not exposed. Rewrote the _draw function to not use
	clipping and also be a bit more readable and fix a few rendering
	bugs.

2002-02-27  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-model.c: 
	- Start fixing #26
	- added project to priv-struct.
	(mrm_get_value): don't write "No Group" if group not set.
	(mrm_resource_added_cb): insert before last (which is the dummy
	  empty resource which only exist in the client).
	(mrm_empty_resource_changed_cb): insert the dummy resource which
	  was just edited in libmrproject and create a new dummy
	  resource. 
	(mg_resource_model_new): create a empty dummy resource which we
	  put last in the resource-list. When editing this row it is added 
	  to the project and a new empty resource is created. This gives
	  you the possibility to add resources by just editing without
	  having to click 'Insert resource' button.

2002-02-26  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-main-window.c (mgwm_project_props_cb): Add.

	* src/app/GNOME_MrProject_MainWindow.ui: Add project properties
	menu item.

	* src/app/mg-project-properties.c (mg_project_properties_run):
	First cut at this, doesn't do anything yet.

	* src/app/Makefile.am (glade_DATA): Add glade file for group
	editor from Alvaro.
	(glade_DATA): Add project-properties glade file.

2002-02-25  Richard Hult  <rhult@codefactory.se>

	* src/views/resources/mg-resource-model.c (mrm_get_value): Handle
	NULL name.

	* src/views/resources/mg-resources-view.c (get_widget): Fix
	compiler warning by casting.
	(mrv_insert_resource_cb): Don't set name to "New".

	* src/widgets/gantt-chart/mg-gantt-model.c (mgm_get_value): Handle
	NULL name.
	(mg_gantt_model_new): Use connect_object so that we don't try to
	do anything with dead objects.

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_update): Handle NULL
	name. 

	* src/views/gantt/mg-gantt-view.c (mgv_insert_task_cb): Make new
	tasks 1 day as default. Don't call them "New".

	* src/widgets/gantt-chart/mg-gantt-chart.c
	(mg_gantt_chart_set_model): Redraw the background.
	(mgc_reflow): Use project start instead of the first task.
	(mg_gantt_chart_set_model): Connect to project's project-start
	notify.

	* src/views/resources/mg-resources-view.c (get_widget): Unref the
	model after it's been set.
	(get_widget): Connect to loaded signal.
	(mrv_project_loaded_cb): Impl.
	(mrv_cell_edited_name): Pass tree view and get the model from it,
	since it will change when we load a project.
	(mrv_cell_edited_email): Likewise.
	(mrv_setup_tree_view): Pass tree view instead of model to edited
	signal. 

	* src/views/gantt/mg-gantt-view.c (mgv_name_edited): Get the model
	from the view since it might have been changed (if we opened a
	project e.g.).
	(mgv_duration_edited): Likewise.

	* src/widgets/gantt-chart/mg-gantt-chart.c (mgc_reflow): Don't try
	to set negative first/last_time values on the header.

	* src/views/gantt/mg-gantt-view.c (mgv_setup_tree_view): Make tree
	view column titles two rows heigh.

	* src/widgets/gantt-chart/mg-gantt-header.c (mgh_expose_event):
	Draw tick lines for each day. Draw two scaled, major and minor.

	* src/widgets/gantt-chart/mg-gantt-chart.c (mgc_reflow): Don't
	pad the scroll region if the whole project fits.

2002-02-23  Richard Hult  <rhult@codefactory.se>

	* configure.in: Add libglade to deps.

	* src/widgets/gantt-chart/Makefile.am: Add background item to
	sources.

2002-02-22  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_set_property): Only
	redraw the row if it changed.

	* src/widgets/gantt-chart/mg-gantt-background.[ch]: New files,
	containing a background item for the gantt chart. Started to
	implement working/non-working time drawing, needs more work.

	* src/widgets/gantt-chart/mg-gantt-chart.c
	(mg_gantt_chart_set_model): Get initial project range from the
	model. 
	(mgc_init): Don't hardcode project range.
	(mgc_reflow): Only set header range if we have a valid range.
	Remove PIXELS_PER_DAY hack and only use the real scale factor.

	* src/widgets/gantt-chart/mg-gantt-row.c: Update to use the fixed
	type macros.

	* src/widgets/gantt-chart/mg-gantt-row.h (MG_GANTT_IS_ROW_CLASS):
	Fix type macros.

2002-02-21  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-chart.c: Cache the height and
	don't do any height reflows when the height isn't changing.

2002-02-22  Alvaro del Castillo  <acs@barrapunto.com>

	* src/app/mg-main-window.c:
	mgwm_save_as_cb: implemented
	mgwm_save_cb: implemented

2002-02-19  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resources-view.c:
	(mrv_insert_resource_cb): do not set type.

2002-02-19  Richard Hult <rhult@codefactory.se>

	* src/views/resources/mg-resources-view.c:
	(mrv_insert_resource_cb): impl.

	* src/views/resources/mg-resource-model.c:
	(mg_resource_added_cb): added/impl.
	(mg_resource_model_new): connect to resource_added.

	* data/icons/24_{insert,remove}_resource.png: Add.

	* src/views/resources/mg-resources-view.c (init): Register stock
	icons.

	* src/views/resources/GNOME_MrProject_ResourcesView.ui: Use new
	stock icons here.

2002-02-19  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-model.c:
	- fixed type string to write it correctly.
	(mg_resource_model_get_type_string): added
	(mg_resource_model_get_type_enum): added
	(mrm_get_value): set the correct group name.

2002-02-18  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-header.c: Invalidate the header
	when the scale or range changes.
	(mgh_set_property): Only do something if things change, can be
	quite expensive.

	* src/widgets/gantt-chart/mg-gantt-header.c: Clean up a bit.

	* src/widgets/gantt-chart/mg-gantt-header.[ch]: Add, start to
	implement.

	* configure.in: Remove GNOME_PLATFORM_GNOME_2.

2002-02-16  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-chart.c (mgc_reflow): Fix one
	more scroll region bug.
	(mgc_size_request): Remove. 

	* src/views/gantt/mg-gantt-view.c: Don't use a scrolled window for
	the tree view, so that we can scroll without showing a vscrollbar
	for the tree, but one for both the tree and the gantt
	chart. Handle scroll-event.
	(mgv_tree_view_size_request_cb): Add, don't request a height.

	* src/views/resources/mg-resources-view.c (get_widget): Put the
	table in a frame.

2002-02-15  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-view.c (get_label): Add mnemonic.

	* src/views/resources/mg-resources-view.c (get_label): Add
	mnemonic. 

	* src/widgets/sidebar/mg-sidebar.c: Darken the bg color and use
	that, update on style set and add mnemonics to the labels.

2002-02-13  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resources-view.c:
	(mrv_cell_edited_name): added
	(mrv_cell_edited_email): added
	(mrv_setup_tree_view): connect to edited signal on name and email
	  cells.

	* src/app/mg-main-window.c (mg_main_window_new): removed unused
	  variable 'w'.

2002-02-13  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-view.c (mgv_duration_edited): Add.
	(mgv_setup_tree_view): Add duration field.

	* src/widgets/gantt-chart/mg-gantt-model.c (mgm_get_value): Add
	duration field.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Reflow when root node
	changes start/finish. Fix scroll region bugs. Add fixed padding
	around the project.

2002-02-12  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-chart.c (mgc_reflow):
	Initialize variable before use.

	* src/views/gantt/mg-gantt-view.c (mgv_setup_tree_view): Connect
	to edited signal.
	(mgv_name_edited): Add, update model.
	(mgv_remove_task_cb): Impl.

	* src/widgets/gantt-chart/mg-gantt-row.c: Remove x and width
	properties, use the start/finish times of the task. Listen to
	change notification on the task properties and update.
	(mgr_bounds): Impl.
	(mgr_update): Fix rendering bug (invalidate the old area and not
	the new).
	(mgr_set_property): Connect to notify::*.
	(recalc_bounds): Get coordinates from the task and scale factor.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Set the correct scroll
	region. Set scale for new items.

2002-02-12  Anders Carlsson  <andersca@gnu.org>

	* data/icons/about-logo.png:
	Remove white border.
	
	* data/icons/gnome-application-x-mrproject.png:
	Use new version.
	
	* src/app/mg-main-window.c: (mgwm_about_cb):
	Don't use the PACKAGE name as program name.

2002-02-12  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c:
	(mgwm_about_cb): show about-logo.

	* data/icons/Makefile.am (images_DATA): added about-logo.png

	* data/icons/about-logo.png: added

	* src/app/mg-application.c (mga_window_closed_cb): take the
	  correct arguments.

	* src/util/mg-marshal.list: added

	* src/util/Makefile.am: added, currently only marshal-list.

	* src/app/mg-main.c (main): don't connect to window-deleted. This
	  should be connected to from mg-main-window which will emit
	  closed-signal.

	* src/app/mg-main-window.c: start adding signals. Currently only
	  closed-signal.

	* src/app/mg-application.c:
	(mga_window_closed_cb): added
	(mg_application_new_window): add the new window to the list and
	  connect to the closed-signal from the window.

	* src/app/Makefile.am (mrproject_LDADD): link against libutil.la

	* src/Makefile.am (SUBDIRS): added util/

	* configure.in: added src/util/Makefile

2002-02-11  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main.c (main): create an application and use it to
	  get a window.

	* src/app/mg-application.c (mg_application_new_window): added.

	* src/app/mg-application.[ch]: added

	* src/app/mg-main-window.c (mgwm_about_cb): implemented.

2002-02-11  Richard Hult  <rhult@codefactory.se>

	* src/app/mg-view-loader.c (mvl_load_dir): Use g_dir_*.
	(mg_view_loader_load): Don't hard code the path.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Remove affines
	everywhere since libgnomecanvas is too buggy to be true.

	* Clean up makefiles a bit.

2002-02-02  Mikael Hallendal  <micke@codefactory.se>

	* src/widgets/sidebar/Makefile.am: removed test stuff.

2002-02-02  Richard Hult  <rhult@codefactory.se>

	* Change ui directory to .../gnome-2.0/ui.

	* src/app/mg-main-window.c (mgwm_open_cb): Popup a file selector
	and open the file (does not work yet).

2002-02-01  Richard Hult  <rhult@codefactory.se>

	* src/views/gantt/mg-gantt-view.c (mgv_insert_task_cb): Inherit
	start/finish from parent.

	* src/widgets/sidebar/mg-sidebar.c: Tweak.

	* src/app/mg-main-window.c (mgwm_populate): Use the sidebar.
	(mgwm_view_selected): Ditto.
	(mgwm_populate): Put things in a hbox instead of hpaned.

	* src/widgets/sidebar: New sidebar object, could be replaced later
	by something more advanced.

2002-02-01  Mikael Hallendal  <micke@codefactory.se>

	* src/views/resources/mg-resource-model.c (mrm_get_n_columns):
	  removed warning.

	* src/widgets/gantt-chart/mg-popup-widget.c:
	(mg_popup_widget_key_press_event): fix warning.

	* src/views/resources/mg-resources-view.c:
	(get_widget): create a resource model and a tree.
	(mrv_setup_tree_view): added, sets up the tree/table.

	* src/views/resources/mg-resource-model.[ch]:
	- added
	- tree model for resource-list.

	* src/views/resources/Makefile.am:
	(libresources_view_la_SOURCES): added mg-resource-model.[ch]

	* configure.in: added compile-warnings

2002-02-01  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-model.c
	(mg_gantt_model_insert): Remove.

	* src/views/gantt/mg-gantt-view.c (mgv_insert_task_cb): Start to
	implement.

	* src/app/mg-view.c (mg_view_activate_helper): Pass view as user
	data. 

	* src/views/gantt/GNOME_MrProject_GanttView.ui: Use stock icons.

	* src/views/gantt/mg-gantt-view.c: Add a tree view.
	(init): Register stock icons.

	* src/app/mg-main-window.c (mg_main_window_get_project): Add.
	(mgmw_init): Open a project for testing purposes.

	* src/views/resources/mg-resources-view.c (activate, deactivate):
	Use helper. 

	* src/views/gantt/mg-gantt-view.c (activate, deactivate): Use
	helper. 

	* src/app/mg-view.c (mg_view_activate_helper): Hide bonobo-ui
	here.
	(mg_view_deactivate_helper): And here.

	* src/app/mg-main-window.c (mgwm_view_selected): Don't crash if
	there is no view. 
	(mg_main_window_get_ui_component): Remove. 

2002-01-31  Richard Hult  <rhult@codefactory.se>

	* src/views/resources: Stub view.

	* src/app/mg-main-window.c (mgwm_populate): Add sidebar icons for
	the loaded views and activate the first one.
	(mgwm_view_selected): Activate/deactivate.

	* src/views/gantt/mg-gantt-view.c: Implement activating and
	deactivating, and merge menus.

	* src/app/mg-view.c: Add activate and deactivate methods.

	* src/app/mg-main-window.c (mgwm_populate): More work on loading
	views.

	* src/app/GNOME_MrProject_MainWindow.ui: Remove the progress bar
	and the bonobo ui configuration items, and a few other items that
	we don't need.

2002-01-29  Richard Hult  <rhult@codefactory.se>

        * Add view framework and a test view.
	
	* src/app/mg-main-window.c (mgmw_init): Recalc task manager.
	(mgwm_populate): Test view loading.

	* src/widgets/gantt-chart/mg-gantt-chart.c: More work on scrolling
	and test the sorting code in the task manager.

2002-01-28  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-chart.c: A bit of work on
	scaling and scrolling.

2002-01-25  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-model.c (mg_gantt_model_new):
	Listen to task-removed.
	(mg_task_removed_cb): Impl.

	* src/app/mg-main-window.c (mgwm_populate): No shadow on the view
	frame.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Finish support for
	inserting tasks.

	* src/widgets/gantt-chart/mg-gantt-row.c: Remove summary, name
	properties and use the task directly.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Start adding support for
	horizontal scrolling.

2002-01-24  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-model.c
	(mgm_get_path, mgm_get_path_for_task): Refactor get_path and add
	get_path_for_task.
	(mg_task_inserted_cb): Impl.
	(mg_gantt_model_new): Connect to task-inserted signal.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Add properties for row
	height and header height.
	Clean up.
	(mgc_reflow_do): Set default height if not set.
	(mgc_build_tree): Don't set y or height here, it will be reset in
	reflow anyway.
	(mgc_row_inserted): Start handling row-inserted signal.

	* src/widgets/gantt-chart/main.c: Add code to sync row and header
	heights between the tree view and gantt chart.

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_get_bounds): Convert
	the width to canvas coordinates so scaled items work. Also fix so
	that the gantt row height matches the tree view height.

2002-01-23  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/Makefile.am: Build a library. 

	* src/app/Makefile.am (mrproject_LDADD): Link with the gantt chart
	widget. 

	* src/app/mg-main-window.c (mgwm_exit_cb): Quit on quit cmd.
	(mgmw_init): Add a test gantt chart widget.

	* src/app/mg-main.c (main): Exit when window is deleted (needs
	changing when we can have multiple windows). Use bonobo_ui_main
	instead of bonobo_main.

	* src/widgets/gantt-chart/mg-gantt-chart.c:
	* src/widgets/gantt-chart/mg-gantt-row.c: Update the old 16/32
	bits coordinates work-around and start using the real task data.

2002-01-22  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart/mg-gantt-row.c (mgr_draw): Handle transformed
	items correctly, and draw the name.

	* src/widgets/gantt-chart/mg-gantt-chart.c: Remove GNode
	tree, rename functions to be consistant with the rest. Continue
	work on gantt stuff. Set the scroll region to show a month where
	the test project has tasks. Disable the scroll region update on
	size allocate for now.

2002-01-23  Mikael Hallendal  <micke@codefactory.se>

	* src/app/GNOME_MrProject_MainWindow.ui: don't use the labels with
	  _ in the toolbar.

	* src/app/mg-main-window.c:
	(mgwm_view_selected): added, used to select which view to show. 
	(mgwm_populate): 
	- use insert instead of append when adding icons to the
	  icon-list. 
	- connect to the "select-icon" signal in the icon-list.

2002-01-22  Mikael Hallendal  <micke@codefactory.se>

	* src/app/mg-main-window.c (mgwm_populate): icons in menues.

	* src/app/GNOME_MrProject_MainWindow.ui: 
	  updated.
	  set toolbar icons to stock.

	* src/app/mg-main-window.c: added callsbacks (unimpl.) for
	  ui-stuff

	* src/app/Makefile.am: added ui-stuff.

	* src/app/GNOME_MrProject_MainWindow.ui: 
	  added from g1-version (might, need some looking over).

	* src/app/mg-main-window.c: started to impl.

	* src/app/Makefile.am:
	(INCLUDES): added IMAGE_DIR
	(mrproject_SOURCES): added mg-main-window.[ch]

	* data/icons/*.png: added from old MrProject
	
	* data/icons/Makefile.am: added.

	* data/Makefile.am: added

	* configure.in: output data/Makefile and data/icons/Makefile

	* Makefile.am (SUBDIRS): added data

	* src/app/mg-main-window.[ch]: added.

	* src/app/mg-main.c: added

	* src/app/Makefile.am: added

	* src/Makefile.am (SUBDIRS): added app

	* configure.in: 
	- added libgnomeui to deps.
	- create src/app/Makefile

2002-01-21  Richard Hult  <rhult@codefactory.se>

	* src/widgets/gantt-chart: Put some code in there. 

2002-01-18  Richard Hult  <rhult@codefactory.se>

	* configure.in: Add requirements and new directories.

	* Makefile.am:
	* src/Makefile.am:
	* src/widgets/Makefile.am:
	* src/widgets/Makefile.am:
	* src/gantt-chart/Makefile.am: Add/fix makefiles.

	* src/widgets/gantt-chart: Add.

2002-01-18  Mikael Hallendal  <micke@codefactory.se>

	* src/widgets/resource-table/mg-resource-table.[ch]: added
	

