1. 19 Feb, 2006 3 commits
    • Murray Cumming's avatar
      on_menu_Mode_Find(): Start the Find mode on the same layout (Details or · d6e61bd9
      Murray Cumming authored
      2006-02-19  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/frame_glom.cc: on_menu_Mode_Find(): Start the Find mode
              on the same layout (Details or List) as the Data mode was in.
              Add a little hack to make sure that we go back into Data mode in List
              view at first, to make sure that the first result will show up
              properly in the Details mode.
              * glom/mode_data/notebook_data.cc:
              * glom/mode_data/notebook_data.h: Added set_current_view().
              * glom/mode_find/notebook_find.cc:
              * glom/mode_find/notebook_find.h: Added set_current_view().
      d6e61bd9
    • Murray Cumming's avatar
      scale(): Call Gtk::Image::get_storage_type() before · a56c4b1d
      Murray Cumming authored
      2006-02-19  Murray Cumming, <murrayc@murrayc.com>
      
              * glom/utility_widgets/imageglom.cc: scale(): Call Gtk::Image::get_storage_type()
              before Gtk::Image::get_pixbuf(), to avoid a critical warning.
      a56c4b1d
    • Murray Cumming's avatar
      Overried on_expose_event() so we can scale the image when we actually have · 7007f055
      Murray Cumming authored
      2006-02-19  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/utility_widgets/imageglom.cc:
              * glom/utility_widgets/imageglom.h: Overried on_expose_event() so we can
              scale the image when we actually have a real (>1) allocation.
              scale(): Do not call set_image() if the scaled pixbuf has exactly the same
              dimensions as the existing image. And do not try to scale the image if the
              allocation is very small, because this will generally fail. This fixes the
              disappearing image problem.
      7007f055
  2. 17 Jan, 2006 2 commits
    • Murray Cumming's avatar
      sql(): Move text escaping code into glom_escape_text() so it can be · 52975e2e
      Murray Cumming authored
      2006-01-17  Murray Cumming  <murrayc@murrayc.com>
      
              * 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.
      52975e2e
    • Murray Cumming's avatar
      on_menupopup_activate_clear(): Emit the signal to actually update the · d1152164
      Murray Cumming authored
      2006-01-17  Murray Cumming  <murrayc@murrayc.com>
      
              * 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.
      d1152164
  3. 14 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Add a File/Export menu item, for exporting the found set as · a42618c0
      Murray Cumming authored
      2006-01-14  Murray Cumming  <murrayc@murrayc.com>
      
              * 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.
      a42618c0
  4. 12 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Define the placeholder row as the last row, whose existance we cause just · 90c26844
      Murray Cumming authored
      2006-01-12  Murray Cumming   <murrayc@murrayc.com>
      
              * 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.
      90c26844
  5. 29 Jul, 2005 1 commit
  6. 25 Jul, 2005 1 commit
    • Murray Cumming's avatar
      Depend on latest libgdamm. · 5ab54a27
      Murray Cumming authored
      2005-07-25  Murray Cumming  <murrayc@murrayc.com>
      
              * configure.in: Depend on latest libgdamm.
              * glom/utility_widgets/imageglom.cc:
              * glom/data_structure/field.cc: Change for latest libgdamm
              API change.
              * glom/document/document_glom.cc:
              * glom/document/document_glom.h: Remove unused
              set_relationship_data_layout_groups().
              * glom/mode_data/box_data_details.cc: on_flowtable_layout_changed():
              Actually save the new layout in the document. For instance, really
              save portal layout changes.
      5ab54a27
  7. 18 Jul, 2005 1 commit
  8. 16 Jul, 2005 1 commit
  9. 15 Jul, 2005 3 commits
    • Murray Cumming's avatar
      0.8.34: · f510d286
      Murray Cumming authored
      2005-07-15  Murray Cumming  <murrayc@murrayc.com>
      
              * 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.
      f510d286
    • Murray Cumming's avatar
      Comment out the debug query output on stdout, because it slows us down · b9245218
      Murray Cumming authored
      2005-07-15  Murray Cumming  <murrayc@murrayc.com>
      
              * 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.
      b9245218
    • Murray Cumming's avatar
      Removed some debug warnings · 363e769f
      Murray Cumming authored
      363e769f
  10. 14 Jul, 2005 3 commits
    • Murray Cumming's avatar
      on_flowtable_field_edited(): Special case to avoid calling set_value() · 77c54b79
      Murray Cumming authored
      2005-07-14  Murray Cumming  <murrayc@murrayc.com>
      
              * 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.
      77c54b79
    • Murray Cumming's avatar
      Put the Gtk::Image in a Gtk::Frame so we can see it when it is empty. · 893e44ae
      Murray Cumming authored
      2005-07-14  Murray Cumming  <murrayc@murrayc.com>
      
              * 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.
      893e44ae
    • Murray Cumming's avatar
      sql(): Handle TYPE_IMAGE fields. · 693156f8
      Murray Cumming authored
      2005-07-14  Murray Cumming  <murrayc.com>
      
              * 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.
      693156f8
  11. 12 Jul, 2005 3 commits