0.9.5: 2006-02-13 Murray Cumming * glom/data_structure/layout/layoutitem_button.cc: * glom/data_structure/layout/layoutitem_button.h: Added get/set_script(). * glom/document/document_glom.cc: load_after_layout_group(), save_before_layout_group(): Load/Save the scripts for buttons. * glom/utility_widgets/buttonglom.cc: * glom/utility_widgets/flowtablewithfields.cc: * glom/utility_widgets/flowtablewithfields.h: * glom/mode_data/box_data_details.cc: * glom/mode_data/box_data_details.h: Handle button clicks and run the python code. * glom/glom.glade: Add a script editing dialog. * glom/mode_data/dialog_layout_details.cc: * glom/mode_data/dialog_layout_details.h: on_button_edit(): Allow editing of buttons and start editing of the title column if the item is a group. * glom/mode_design/Makefile.am: * glom/mode_design/dialog_buttonscript.cc: * glom/mode_design/dialog_buttonscript.h: Added button script editing dialog. * glom/python_embed/glom_python.cc: * glom/python_embed/glom_python.h: Added glom_execute_python_function_implementation() because we buttons do not care about the result. * examples/example_smallbusiness.glom: Add a Test Button to the Contacts layout, with a pygtk hello world script behind it. 2006-02-13 Murray Cumming * glom/data_structure/layout/layoutitem_button.cc: * glom/data_structure/translatable_item.cc: * glom/data_structure/translatable_item.h: Give it a translatable item type and name so it shows up properly in the translations list. * glom/document/document_glom.cc: save_before_layout_item_field(): Load the sequence number of child items. It was pure luck that this worked sometimes without this. * glom/document/document_glom.h: * glom/mode_data/dialog_layout_details.cc: on_button_*(): Set m_modified, so that all changes are always saved. I am surprised that this worked before. on_cell_data_name(): Mark buttons as such. on_cell_data_title(): Allow button titles to be edited. * glom/utility_widgets/flowtablewithfields.cc: add_button_at_position(): Set the button title and really show the widget. 2006-02-12 Murray Cumming * po/POTFILES.in: * glom/Makefile.am: * glom/data_structure/layout/Makefile.am: * glom/data_structure/layout/layoutitem_button.cc: * glom/data_structure/layout/layoutitem_button.h: Add Button layout item. * glom/glom.glade: Details Layout: Put the Add buttons vertically at the right-hand side Add an Add Button button. * glom/mode_data/treestore_layout.cc: * glom/mode_data/treestore_layout.h: * glom/mode_data/dialog_layout_details.h: * glom/mode_data/dialog_layout_details.cc: Use the LayoutItems only in the model, simplifying this dramatically, and making it easier to add new types of layout items. * glom/utility_widgets/Makefile.am: * glom/utility_widgets/buttonglom.cc: * glom/utility_widgets/buttonglom.h: Add a (not yet useful) button widget. 2006-02-10 Murray Cumming * glom/application.cc: on_document_load(): When saving from an example, do not open the Save As dialog box in the examples directory, because it is usually read-only and it is not a wise place to put your own stuff. Also see the latest Bakery 2.3.17 for fixes to prevent Save As in read-only paths.