0.8.2: 2004-06-18 Murray Cumming * glom/mode_data/box_data_details.cc fill_from_database(): Make auto-increment fields non-editable. 2004-06-18 Murray Cumming * glom/utility_widgets/adddel.cc add_column(Field): Make the column non-editable if it is an auto-increment field, because the user should never change or create those values. * glom/glom.glade: Create a HIG information dialog. Use it in glom/frame_glom.cc show_ok_dialog(). * glom/mode_design/box_db_tabledefinition.cc: on_AddDel_del(): Correct for loop, so that we actually delete the field. * glom/base_db: get_fields_for_table(): Ignore any fields that are no longer in the database. Among other things, this makes the field definition window update correctly after deleting a field. * glom/frame_glom.cc: Update the data view when the fields window is closed, because the structure might have changed. * glom/data_structure/glomconversions.cc: parse_value(): When parsing a string as a number, create a GdaNumeric-based GdaValue instead of a float, because that is the numeric type that we are using eveywhere. Actually, maybe it's not the best type. * All over the place: Fixed lots of primary_key arguments to be Gnome::Gda::Values rather than strings, and therefore made sure that Field::sql() was used with them. 2004-06-17 Murray Cumming * glom/document/document_glom.[h|cc]: Added get_default_table(). * glom/frame_glom.cc: on_Box_Databases_selected(): open the default table instead of showing the list of tables, if there is a default table. 2004-06-17 Murray Cumming * glom/glade.glom, glom/mode_design/fields/dialog_fielddefinition.cc: Moved Default Value into its own Notebook tab, with new Lookup widgets. * glom/mode_data/box_data_list.cc: Make the rows have alternating colors when the theme does that. Among other things, this makes the data list look different to the field list. * The lookup details are not actually used yet to do any lookups. 2004-06-15 Murray Cumming * glom/utility_widgets/adddel/adddel.[h|cc]: Simplifified the code for the placeholder row a bit. * glom/navigation/box_db_tables.cc, glom/mode_design/fields/box_table_field_definitions.cc: Fixed some odd focus errors (hopefully) caused by rebuilding the TreeModel in a CellRenderer signal handler. * glom/mode_design/fields/box_table_field_definitions.cc: get_field_definition(): Store the field title in the result, not in the temporary field instance, so that new titles are really saved. 2004-06-15 Murray Cumming * glom/navigation/box_tables.cc: on_AddDel_changed(): Implement renaming of tables. 2004-06-15 Murray Cumming * glom/mode_data/box_data_list.cc: Corrected problems with the AddDel changes: Adding a record works again, and editing a list record shows the correct record in the Details view. 2004-06-15 Murray Cumming * glom/utility_widgets/adddel.[h|cc]: add_item(), remove_item(), get_row() now use a key value instead of the value in the first column. This is a hidden TreeModel column. There is also a bool placeholder column, used to mark the blank row that is for the user to add a new row. This scheme should make it easier to handle reorderered rows, and it allows us to get a unique identifier for a changed row even when responding to a change an it is the first row (such as a field name) that has changed. 2004-06-14 Murray Cumming * glom/utility_widgets/adddel.[h|cc]: The API now uses Gtk::TreeModel iterators instead of integer indexes. The previous API was an abstraction layer that is no longer required now that we have Gtk::TreeView and plan to keep using it. * other files: Adapted accordingly.