0.8.13: 2005-03-10 Murray Cumming * examples/example_small_business.glom: Invoices Lines: Lookup up the product name and price from the products table. 2005-03-10 Murray Cumming * glom/utility_widgets/flowtable_withfields.[h|cc]: Use a list of field info instead of a map, and search through it all instead of using the map key, so we can have the same field more than once in a group. Otherwise, people change a field and see it disappear if it is already there. 2005-03-10 Murray Cumming * glom/mode_data/box_data_details.cc: on_flowtable_layout_changed(): Update the data as well as the structure, because updating the structure clears the widgets. 2005-03-10 Murray Cumming * glom/mode_data/entry_glom.[h|cc]: Show a Choose Field context menu when in developer mode, and signal to the DataWidget when it has been selected. * glom/mode_data/dialog_choose_field.[h|cc]: set_document(): Select the current field at the start. Make double-click choose a field. 2005-03-09 Murray Cumming * glom/mode_data/datawidget.[h|cc]: Attempt to add a context menu to choose the field. Not working yet. Some EventBox problem maybe. 2005-03-08 Murray Cumming * examples/example_small_business.glom: Invoices table: Make the contact name lookup a name from the contacts table. 2005-03-08 Murray Cumming * glom/mode_data/: More use of the stored primary key fields instead of getting them from the list of fields via their index. This means that the primary key can still be used when it is not shown. * glom/mode_data/box_data_list_related.cc: Set the foreign key value even if it is not shown. This means that related records portals no longer need to show the primary key or the foreign key, both of which are uninteresting to most operators. 2005-03-08 Murray Cumming * glom/utility_widgets/db_adddel/db_adddel.[h|cc]: Remove as_value from method names because they are all by value. Added get/set_key_field() so it is easy to know the primary key for the table. * glom/utility_widgets/db_adddel/glom_db_treemodel.[h|cc]: create() now takes a list of fields - one for each column. This should allow us to construct a SQL query from the model itself in future. * glom/mode_data/box_data_list.[h|cc]: Store the primary key field in the AddDel. * glom/mode_data/box_data_details.[h|cc]: Store the primary key field in a member variable, instead of iterating for it every time. 2005-03-08 Murray Cumming * glom/utility_widgets/flowtable_withfields.cc: get_portals(): Actually add relevant portals to the list. * glom/mode_data/box_data_list_related.cc: on_record_added(): When the to_field key is not auto-generated, really set it to the foreign key value, not to null. This makes adding of related records work, but so far only when all key fields are shown in the layout. 2005-03-07 Murray Cumming * glom/utility_widgets/adddel/adddel.cc, db_adddel/db_adddel.cc: on_treeview_button_press_event(): Test the bool return from TreeView::get_path_at_pos to avoid using an invalid path. This stops the warning when right clicking where there is no row. 2005-03-07 Murray Cumming * glom/mode_design/box_db_table_relationship.[h|cc]: Show/edit the relationship titles here too. * glom/mode_data/box_data_list_related.cc: on_dialog_layout_hide(): Update the relationship title in case it has changed. 2005-03-07 Murray Cumming * glom/Document/document_glom.[h.cc]: Load/save relationship titles. * glom/data_structure/Relationship.[h|cc]: Added get/set_title() and get_title_or_name(). * glom/mode_data/dialog_layout_list_related.[h|cc]: Actually choose fields from the related table. 2005-03-06 Murray Cumming * glom/mode_data/box_data_list_related.cc: Constructor: Set a new layout name, so that the portals layouts are not confused with the standard layouts for those tables in the document. Use the new layout dialog. * glom/mode_data/: Add dialog_layout_list_related.[h|cc]. * glom/glom.glade: Define the new dialog. 2005-03-06 Murray Cumming * glom/mode_data/box_db_list.cc: on_adddel_user_requested_delete(): Ask the user whether he really wants to delete the record. * glom/utilities/db_adddel.[h|cc]: Add a layout item to the right click menu, so that people can right click to edit list layouts and related records layouts. Still need to give related records layouts an id other than their underlying table. 2005-03-04 Murray Cumming * glom/application.cc: on_document_load(): Warn if the user recreates a database using a read-only installed example file. * glom/frame_glom.cc: on_menu_userlevel_Developer(): If developer mode is not possible then warn the user and set it back to operator mode.