0.9.2: 2006-01-18 Murray Cumming * docs/website/screenshots/glom_data_details.png: * docs/website/screenshots/glom_data_details_related.png: * docs/website/screenshots/glom_data_list.png: Updated. * examples/example_smallbusiness.glom: Added more example data, and added a Position field to the Staff table. 2006-01-18 Murray Cumming * glom/application.cc: init_menu_file(): Make the Save As Example menu item only available in Developer mode, to avoid confusing operators. 2006-01-18 Murray Cumming * glom/Makefile.am: * glom/application.cc: * glom/glom.glade: * glom/dialog_progress_creating.cc: * glom/dialog_progress_creating.h: Try to show a pulsing progress dialog while recreating the example database, but it does not show up until the end. * glom/frame_glom.cc: alert_no_table(): Correct the message. It is about a lack of tables, not of databases, and it is not an error. 2006-01-18 Murray Cumming * glom/application.cc: offer_new_or_existing(): Tell the document and the connection about the actually-used database name. * glom/base_db.cc: add_standard_tables(): Set the title from the document, if the document already has a database title. * glom/frame_glom.h: * glom/frame_glom.cc: set_databases_selected(): Show the database title when showing a new database. create_database(): Re-connect to the new database, instead of staying in template1, before creating the glom system tables. Set the title as provided in a function parameter. 2006-01-18 Murray Cumming * NEWS: * glom/application.cc: offer_new_or_existing(): When creating a new file, discover and use an unused database name, based on the title. * glom/utils.cc: * glom/utils.h: Added create_name_from_title(). * glom/dialog_new_database.cc: * glom/dialog_new_database.h: * glom/glom.glade: When creating a new file/database, do not ask the user for a database name - just guess one based on the human-readable title. 2006-01-17 Murray Cumming * glom/exception.[h|cc]: Make what() const and throw(), so that it really overrides std::exception::what() so we get real text in the error dialogs. * glom/frame_glom.cc: create_database(): Call add_standard_tables() and add_standard_groups() to avoid the error/crash when adding a record to a new table in a new database. 2006-01-17 Murray Cumming * glom/data_structure/field.cc: sql(): Move text escaping code into glom_escape_text() so it can be reused. For IMAGE fields, assume that get_binary() is already the escaped binary format, but escape it again as text, so we get the \\ needed for SQL commands. * glom/data_structure/glomconversions.cc: get_escaped_binary_data(): Use one \, not \\ to separate byte numbers, because that's the format used by get/set_binary() in libgda at the moment. * glom/utility_widgets/imageglom.cc: get_value(): Use GlomConversions::get_escaped_binary_data() before set_binary() because Glom must assume elsewhere that it is escaped in all GdaValues. This workaround will all be unnecessary in libgda-2.0, which properly unescapes binary buffers. Images are now saved properly into examples, and inserted properly into the new databases that are created when examples are opened. 2006-01-17 Murray Cumming * glom/utility_widgets/imageglom.cc: on_menupopup_activate_clear(): Emit the signal to actually update the database. on_menupopup_activate_paste(): Prevent crash when the received pixbuf is NULL. on_menupopup_activate_copy(): Prevent crash when the pixbuf is NULL. 2006-01-17 Murray Cumming * glom/frame_glom.cc: export_data_to_*(): Use specified table name, not the current table name, so that all tables are properly exported. * glom/base_db.[h|cc]: Add recalculate_next_auto_increment_value(), which does a SELECT MAX() on the table. * glom/application.cc: recreate_database(): Recalculate next auto-increment values, and create glom system tables and groups before adding data. 2006-01-16 Murray Cumming * glom/frame_glom.cc: * glom/frame_glom.h: * glom/application.cc: on_menu_file_save_as_example(): Put the example data in a string instead of a stringstream, because it was somehow truncating the data. * glom/base_db.cc: insert_example_data(): Really return true for success. 2006-01-16 Murray Cumming * glom/application.cc: * glom/dialog_connection.cc: * glom/dialog_connection.h: * glom/document/document_glom.cc: * glom/frame_glom.cc: * glom/frame_glom.h: When opening example documents, always save a copy and always create a database, choosing a new unused database name. Mark documents explicitly as examples. * glom/glom.glade: Rename Open Example button to New From Example. 2006-01-15 Murray Cumming * glom/application.cc: * glom/application.h: * glom/base_db.cc: * glom/base_db.h: * glom/document/document_glom.cc: * glom/document/document_glom.h: * glom/frame_glom.cc: * glom/frame_glom.h: Added half-working File / Save As Example menu item, which stores the data in the .glom file, for use when creating the database from an example. 2006-01-15 Murray Cumming * glom/mode_data/dialog_layout.cc: * glom/mode_data/dialog_layout_export.cc: * glom/mode_data/dialog_layout_export.h: * glom/glom.glade: Remove formatting button, so we _always_ export in iso format. * glom/filechooser_export.cc: * glom/filechooser_export.h: The Define Data Format button now works, though it opens in the background. It now exports only the requested fields. 2006-01-14 Murray Cumming * glom/frame_glom.cc: * glom/frame_glom.h: Add a File/Export menu item, for exporting the found set as comma-separated text. * glom/base_db.cc: * glom/base_db.h: * glom/box_db_table.cc: * glom/box_db_table.h: * glom/data_structure/glomconversions.cc: * glom/data_structure/layout/layoutitem_field.h: * glom/filechooser_export.cc: * glom/filechooser_export.h: * glom/mode_data/Makefile.am: * glom/mode_data/box_data.cc: * glom/mode_data/box_data.h: * glom/mode_data/box_data_details.cc: * glom/mode_data/box_data_list.cc: * glom/mode_data/box_data_list_related.cc: * glom/mode_data/notebook_data.cc: * glom/mode_data/notebook_data.h: * glom/base_db.cc: * glom/base_db.h:Moved various folders into Base_DB so that Frame_Glom can use them. * glom/Makefile.am: * glom/mode_data/dialog_layout_export.cc: * glom/mode_data/dialog_layout_export.h: New layout UI for export field sequences, not yet finished or used. 2006-01-13 Murray Cumming * glom/frame_glom.cc: * glom/frame_glom.h: * glom/base_db.cc: * glom/base_db.h: Move get_find_where_clause_quick() from Frame_Glom to Base_DB so we can use it in Dialog_ChooseID. * glom/glom.glade: * glom/utility_widgets/dialog_choose_id.cc: * glom/utility_widgets/dialog_choose_id.h: Add the Quick Find feature to this dialog too. 2006-01-13 Murray Cumming * examples/example_smallbusiness.glom: Contacts: Add the web site field to the layout, and change it to text. * glom/mode_data/dialog_layout_details.cc: enable_buttons(): Properly enable/disable Up and Down for the first and last _child_ items. * glom/mode_data/dialog_layout_list.cc: enable_buttons(): Properly enable/disable Up and Down when adding fields. 2006-01-12 Murray Cumming * glom/utility_widgets/db_adddel/db_adddel.cc: * glom/utility_widgets/db_adddel/db_adddel.h: * glom/utility_widgets/db_adddel/glom_db_treemodel.cc: * glom/utility_widgets/db_adddel/glom_db_treemodel.h: Define the placeholder row as the last row, whose existance we cause just by increasing the number of rows, so that iter_next_vfunc() gives one more row, instead of marking a boolean. This simplifies things and prevents extra placeholder rows being generated. * glom/base_db.cc: * glom/frame_glom.cc: * glom/mode_data/box_data.cc: * glom/mode_data/box_data.h: * glom/mode_data/box_data_details.cc: * glom/mode_data/box_data_details.h: * glom/mode_data/box_data_list.cc: * glom/mode_data/box_data_list_related.cc: * glom/mode_data/box_data_list_related.h: * glom/mode_data/notebook_data.cc: * glom/mode_find/box_data_list_find.cc: * glom/utility_widgets/flowtablewithfields.cc: * glom/utility_widgets/imageglom.cc: Adapt to new API. And some changes to ensure that find results are shown in the appropriate view depending on whether there are >1 records found. 2006-01-11 Murray Cumming * glom/frame_glom.cc: * glom/frame_glom.h: * glom/glom.glade: Added widgets at bottom-right to show the number of total and found records, with a Find All button when appropriate. * glom/mode_data/notebook_data.cc: * glom/mode_data/notebook_data.h: Added get_record_counts(). * glom/utility_widgets/db_adddel/glom_db_treemodel.cc: * glom/utility_widgets/db_adddel/glom_db_treemodel.h: Added get_record_counts(). 2006-01-11 Murray Cumming * glom/frame_glom.cc: Connect explicitly to the activate signal of the quick find entry, instead of using default widgets. 2006-01-11 Murray Cumming * glom/frame_glom.cc: * glom/frame_glom.h: * glom/glom.glade: Add a Quick Find entry and button, only shown when in Find mode. It is probably inefficient, because it just ORs over all the fields. 2006-01-10 Murray Cumming * .cvsignore: * Makefile.am: * autogen.sh: * configure.in: * docs/user-guide/.cvsignore: * docs/user-guide/C/Makefile.am: * docs/user-guide/C/glom-C.omf: * docs/user-guide/C/glom.xml: * docs/user-guide/Makefile.am: * docs/user-guide/de/de.po: * docs/user-guide/glom-C.omf.in: * gnome-doc-utils.make: Convert to the new gnome-doc-utils (xml2po) system, with a dummy de translation, though I get warnings about the path to the images in figures.