0.8.34: 2005-07-15 Murray Cumming * examples/example_smallbusiness.cc: Contacts table: Made the ID autoincrement again and added choice for Title. This got lost somehow. Changed database name again to avoid clash with already- created examples. * glom/utility_widgets/imageglom.cc: * glom/utility_widgets/imageglom.h: Added a Clear context menu item. 2005-07-15 Murray Cumming * glom/base_db.cc: Comment out the debug query output on stdout, because it slows us down when we use lots of image data. * glom/data_structure/glomconversions.cc: Tried to use PQescapeBytea() instead of my custom (slow) encoding code, without success, so left that code commented-out. * glom/utility_widgets/imageglom.cc: * glom/utility_widgets/imageglom.h: Implemented copy/paste. 2005-07-14 Murray Cumming * glom/mode_data/box_data_details.cc:on_flowtable_field_edited(): Special case to avoid calling set_value() with a _correct_ GdaValue, because we expect the current broken binary GdaValue. * glom/utility_widgets/datawidget.cc: * glom/utility_widgets/imageglom.cc: * glom/utility_widgets/imageglom.h: Images show up again after loading, and after retrieval from database. Nifty. 2005-07-14 Murray Cumming * glom/utility_widgets/imageglom.cc: * glom/utility_widgets/imageglom.h: Put the Gtk::Image in a Gtk::Frame so we can see it when it is empty. Added a context menu for user mode, and restricted the file chooser to pixbuf types. 2005-07-14 Murray Cumming * glom/data_structure/field.cc: sql(): Handle TYPE_IMAGE fields. * glom/data_structure/glomconversions.cc: * glom/data_structure/glomconversions.h: Add get_escaped_binary_data() and parse_escaped_binary_data(), using a a copy of the PQunescapeBytea() function from Postgres, because gda_value_get_binary() does not unescape the data yet. * glom/utility_widgets/datawidget.cc: Connect to the LayoutWidgetField signals for the ImageGlom widget. * glom/utility_widgets/imageglom.cc: * glom/utility_widgets/imageglom.h: set_value(): Use our copy of PQunescapeBytea(). * glom/utility_widgets/layoutwidgetfield.cc: * glom/utility_widgets/layoutwidgetfield.h: Added get_has_original_data() for later optimisation. 2005-07-12 Murray Cumming * glom/data_structure/field.h: Document the IMAGE type as always being stored as PNG. * glom/utility_widgets/imageglom.cc: * glom/utility_widgets/imageglom.h: Implement set_value(), though I'm still not sure how to get/set it in SQL. 2005-07-12 Murray Cumming * glom/utility_widgets/imageglom.cc: * glom/utility_widgets/imageglom.h: Scale images down to fit the allocated size of the Image widget. 2005-07-12 Murray Cumming * glom/utility_widgets/Makefile.am: * glom/utility_widgets/datawidget.cc: * glom/utility_widgets/imageglom.cc: * glom/utility_widgets/imageglom.h: Use a derived Image widget so we can catch button_press_events on it. 2005-07-12 Murray Cumming * glom/data_structure/field.cc: * glom/data_structure/field.h: - Added map of possible field conversions, and get_conversion_possible(). - Added TYPE_IMAGE, which maps to "bytea" in SQL and Gnome::Gda::Value::TYPE_BINARY. * glom/mode_design/fields/box_db_table_definition.cc: Don't cast the data if it is not possible. * glom/utility_widgets/datawidget.cc: Constructor: Create a Gtk::Image widget for image fields. 2005-07-11 Daniel Holbach * glom/main.cc: Pass G_PARAM_NONE to gnome_program_init() to avoid a crash at startup.