1. 12 Jul, 2011 9 commits
    • Murray Cumming's avatar
      ImageGlom: Allow the user to choose any file. · 174c0dda
      Murray Cumming authored
      * glom/utility_widgets/imageglom.cc: However, we are still restricted to
      what GdkPixbuf can load.
    • Murray Cumming's avatar
      ImageGlom: Do not transform to PNG output when saving. · e1cbe6f1
      Murray Cumming authored
      * glom/utility_widgets/dialog_image_save_progress.[h|cc]: Replace set_pixbuf()
      with set_image_data().
      save(): Save the original data, instead of saving the data from the pixbuf.
      * glom/utility_widgets/imageglom.cc: Adapt.
      This means, for instance, that if the user loads the a JPG in then they will
      get exactly the same JPG out.
    • Murray Cumming's avatar
      Some minor signed type corrections. · b9ed12fd
      Murray Cumming authored
      	* glom/libglom/connectionpool_backends/postgres.cc:
      	* glom/xsl_utils.cc: Gio::FileOutputStream::write() returns a gssize, not a
    • Murray Cumming's avatar
      Remove debug output. · a72c2fc7
      Murray Cumming authored
    • Murray Cumming's avatar
      ImageGlom: Size request corrections. · adf07055
      Murray Cumming authored
      	* glom/utility_widgets/imageglom.cc: init(): Remove the set_size_request()
      	call which does not seem necessary.
      	Do not call set_image(original) after scale(), because scale() does that,
      	setting the scaled image.
      	This avoids the GtkImage being huge, because GtkImage re-requests the
      	bigger size again when the original is put in it.
      	This is still not ideal. It would be nicer if we could just say "do not
      	make the window bigger than the screen, or do not make this make the
      	window bigger."
    • Murray Cumming's avatar
      ImageGlom: Use AppInfo instead of gtk_show_uri() for Open. · ebdf9b09
      Murray Cumming authored
      * glom/utility_widgets/imageglom.cc: For the case that we have no AppInfo
      (not Open With), use the static AppInfo method, for consistency.
      This might work on Win32 too.
    • Murray Cumming's avatar
      Fix comment typo. · 1b193db8
      Murray Cumming authored
    • Murray Cumming's avatar
      Image fields: Add Open, Open With, and Save context menu items. · d47124d7
      Murray Cumming authored
      * glom/utility_widgets/dialog_image_save_progress.[h|cc]:
      * ui/operator/dialog_image_save_progress.glade:
      Added a progress dialog to do image saving, though it does not yet do
      async saving so the dialog is never shown.
      * Makefile.am:
      * Makefile_glom.am:
      * po/POTFILES.in: Mention the new files.
        * glom/utility_widgets/imageglom.[h|cc]: Add the new context menu items,
        using a temporary file for the Open and Open With features.
        Open With uses AppChooserDialog to offer a choice to the user.
        Bug #630057
    • Murray Cumming's avatar
      Rename Dialog_Image_Progress to DialogImageLoadProgress · 029b4ed8
      Murray Cumming authored
      	* glom/utility_widgets/dialog_image_progress.[h|cc]:
      	Rename to
      	* glom/utility_widgets/dialog_image_load_progress.[h|cc]:
      	* tests/test_glade_derived_instantiation.cc:
      	* ui/operator/dialog_image_progress.glade: Rename to
      	* ui/operator/dialog_image_load_progress.glade:
      	* glom/utility_widgets/imageglom.h:
      	* Makefile.am:
      	* Makefile_glom.am:
      	* po/POTFILES.in: Adapt.
      	I can then add a new dialog for saving.
  2. 11 Jul, 2011 4 commits
  3. 09 Jul, 2011 1 commit
  4. 08 Jul, 2011 4 commits
    • Murray Cumming's avatar
      Related Records: Show enough records. · e7253fc9
      Murray Cumming authored
      * glom/mode_data/db_adddel/db_adddel.[h|cc]: Added set_height_rows(), so
      we can set the minimum size based on the number of rows, though this
      currently hard-codes a size for the non-rows part of the GtkTreeView, such
      as the column headers.
      * glom/mode_data/box_data_portal.cc:
      * glom/mode_data/box_data_list_related.cc: Constructors: Remove unnecessary
      calls to set_size_request().
      Call set_height_rows() instead.
        The related records Gtk::TreeViews probably became too small since the port to
        gtkmm3. We now need to use Gtk::ScrolledArea::set_min_content_height().
        However, the number of rows should probably be something for the layout to
        specify per portal.
    • Murray Cumming's avatar
      Minor int->guint change. · 957b64f1
      Murray Cumming authored
      	* glom/mode_data/db_adddel/db_adddel.[h|cc]: get_fixed_cell_height():
      	Return a guint instead of an int.
    • Murray Cumming's avatar
      Details: Do not navigate past the last row. · ecf0ccc7
      Murray Cumming authored
      * glom/mode_data/datawidget/treemodel_db.[h|cc]: get_last_row():
      Document that this never returns the placeholder row, and make sure that it
      does not. There was a typo that --ed the wrong variable.
      * glom/mode_data/db_adddel/db_adddel.[h|cc]: get_last_row():
      Document that this never returns the placeholder row.
      get_is_placeholder_row(): Remove an illogical call to is_last_row().
      get_count(): Remove an illogical check to see whether the last row is the
      placeholder row.
      * glom/utility_widgets/adddel/adddel.h: get_last_row(): Document that this
        similarly-APIed widget has different behaviour.
        This stops the user from being taken to an empty record when clicking Last,
        or when clicking Next to the end.
        Bug #526115 comment #25 (Michael Hasselmann)
    • Murray Cumming's avatar
      DbAddDel: Remove unnecessary virtual keywords. · f1cc1e38
      Murray Cumming authored
      * glom/mode_data/db_adddel/db_adddel.h: These methods are not meant to
      be overridden by anything.
  5. 07 Jul, 2011 8 commits
  6. 06 Jul, 2011 3 commits
  7. 05 Jul, 2011 3 commits
  8. 04 Jul, 2011 2 commits
    • Murray Cumming's avatar
      Find: Make searching case-insensitive again. · 9c10c439
      Murray Cumming authored
      * glom/libglom/connectionpool_backends/postgres.cc:
      get_string_find_operator(): Use ILIKE, though this requires the lastest
      libgdamm from git master.
      Find has been case-sensitive since around glom 1.16, since we started
      using SqlBuilder.
    • Murray Cumming's avatar
      Backends: Slight reorganization. · fe555b87
      Murray Cumming authored
      * glom/libglom/connectionpool_backends/backend.h:
      * glom/libglom/connectionpool_backends/postgres.[h|cc]:
      * glom/libglom/connectionpool_backends/sqlite.[h|cc]: Move method
        implementations into the .cc files.
  9. 26 Jun, 2011 1 commit
  10. 23 Jun, 2011 5 commits
    • Murray Cumming's avatar
      Field::sql_find(): Do not quote the string. · c5a54460
      Murray Cumming authored
      * glom/libglom/data_structure/field.cc: SqlBuilder already takes
      care of quoting so this just changed the actual value.
      This makes Quick Find work again.
    • Murray Cumming's avatar
      Find: Use backend-specific LIKE or ILIKE operator instead of =. · 14b52a71
      Murray Cumming authored
      * glom/libglom/connectionpool.[h|cc]:
      * glom/libglom/connectionpool_backends/backend.h:
      * glom/libglom/connectionpool_backends/postgres.h:
      * glom/libglom/connectionpool_backends/sqlite.h:
      get_string_find_operator(): Return the Gnome::Gda operator enum
      instead of the operator as a string.
      * glom/libglom/data_structure/field.[h|cc]: sql_find_operator():
      Likewise, return the Gnome::Gda operator enum.
      * glom/libglom/utils.cc: get_find_where_clause_quick():
      * glom/mode_data/box_data.cc: get_find_where_clause():
      Use Field::sql_find_operator() and Field::sql_find(), as per
      the TODO comments.
      This was code that I forgot to change properly when porting to
      use Gnome::Gda::SqlBuilder, so this has been broken since
      Glom 1.16.
      Find still does not work.
    • Murray Cumming's avatar
      Frame: Rename a signal handler. · 963a655a
      Murray Cumming authored
      * glom/frame_glom.[h|cc]: Rename on_menu_Mode_Toggle() to
      on_menu_Edit_Find() because that is what it is now.
      * glom/application.cc: Adapted.
    • Daniel Mustieles García's avatar
      Updated Spanish translation · e92714c1
      Daniel Mustieles García authored
    • Murray Cumming's avatar
      Main window: Moved the Records/Found widgets to the top-right. · a68539d7
      Murray Cumming authored
      * ui/operator/window_main.glade: Remove the footer row of widgets.
      * glom/frame_glom.[h|cc]: Instead build them manually and add them (in a box)
      to the notebook at the right-hand side next to the tabs.