1. 02 Nov, 2011 1 commit
    • Murray Cumming's avatar
      Add and use utility functions for creating temporary files. · 25562202
      Murray Cumming authored
      * glom/libglom/utils.[h|cc]: Added get_temp_file_uri(),
      get_temp_file_path(), get_temp_directory_uri() and
      get_temp_directory_path(), using the correct awkward code that
      avoids overwriting existing files.
      * glom/application.cc:
      * glom/libglom/connectionpool_backends/postgres_self.cc:
      * glom/libglom/report_builder.cc:
      * glom/utility_widgets/imageglom.cc:
      * tests/import/utils.cc:
      * tests/test_document_autosave.cc:
      * tests/test_selfhosting_new_empty.cc:
      * tests/test_selfhosting_utils.cc: Use these functions instead
      of repeating the same stuff badly.
      * Makefile_tests.am: Link to libglom so the import tests can use
      the new utility functions.
  2. 25 Oct, 2011 1 commit
    • Murray Cumming's avatar
      Change #includes for the latest glibmm. · a9513ff7
      Murray Cumming authored
      Add individual includes instead of general giomm.h, glibmm.h or gtkmm.h
      Among other things, this might let us avoid the annoying warning about
      deprecated GThread functions.
  3. 24 Oct, 2011 1 commit
  4. 10 Oct, 2011 1 commit
    • Murray Cumming's avatar
      Use gdk_window_get_device_position() instead of gdk_window_get_pointer(). · 2e970052
      Murray Cumming authored
      * glom/mode_data/box_data_calendar_related.cc:
      * glom/mode_data/buttonglom.cc:
      * glom/mode_data/datawidget/checkbutton.cc:
      * glom/mode_data/datawidget/combo.cc:
      * glom/mode_data/datawidget/combo_as_radio_buttons.cc:
      * glom/mode_data/datawidget/datawidget.cc:
      * glom/mode_data/datawidget/entry.cc:
      * glom/mode_data/datawidget/label.cc:
      * glom/mode_data/datawidget/textview.cc:
      * glom/mode_data/db_adddel/db_adddel.cc:
      * glom/mode_data/flowtablewithfields.cc:
      * glom/utility_widgets/adddel/adddel.cc:
      * glom/utility_widgets/imageglom.cc:
      * glom/utility_widgets/notebooklabelglom.cc: A fairly simple search/replace.
  5. 19 Sep, 2011 1 commit
  6. 08 Sep, 2011 1 commit
    • Murray Cumming's avatar
      Remove the Mameo UI. · e4e655db
      Murray Cumming authored
      * Makefile.am:
      * Makefile_glom.am:
      * configure.ac:
      * glom/*.[h|cc]: Remove the --enable-maemo option and the ifdefs in the code.
      Unforunately, the platform is dead so that Hildon API will never be available
      to us in the real world.
  7. 20 Jul, 2011 1 commit
  8. 19 Jul, 2011 1 commit
  9. 15 Jul, 2011 3 commits
  10. 14 Jul, 2011 8 commits
  11. 13 Jul, 2011 5 commits
    • Murray Cumming's avatar
      ImageGlom: Remove hard-coded mentions of PNG file formats. · 1dec7b19
      Murray Cumming authored
      * glom/utility_widgets/imageglom.cc: Open With: Use the actual (sniffed)
      mime type.
      Clipboard: Try to use the actual mime type, though this does not seem to
      work for any mime type now.
    • Murray Cumming's avatar
      ImageGlom: Show the missing image icon again. · 01af8b7c
      Murray Cumming authored
      * glom/utility_widgets/imageglom.cc: set_value(): Clear the data, not the
      show_image_data(): Check for empty data and show the missing icon if so.
    • Murray Cumming's avatar
      ImageGlom: Make the context-menu work with the EvView. · fa52b8d0
      Murray Cumming authored
      * glom/utility_widgets/imageglom.cc: Connect to the widget's own signal.
    • Murray Cumming's avatar
      ImageGlom: Loading/Saving: Add more FileChooser filters. · 49a5c131
      Murray Cumming authored
      * glom/utility_widgets/imageglom.cc: set_file_filter_images():
      Use ev_document_factory_add_filters().
    • Murray Cumming's avatar
      Image fields: Support PDF (and other types supported by evince) · f62ccd27
      Murray Cumming authored
      * configure.ac: Depend on evince-view-3.0, which is a library installed by
      evince. It is packaged separately from evince by distros.
      * glom/main.cc: Call ev_init().
      * glom/utility_widgets/dialog_image_load_progress.[h|cc]: Remove
      get_pixbuf() and do not use Gdk::PixbufLoader here.
      * glom/utility_widgets/imageglom.[h|cc]: Create the pixbuf here, from
      the data from the dialog.
      Add an EvView, and use that instead of the Gtk::Image when the mime type is
      supported by EvView. We use g_content_type_guess() to sniff the mime type
      from the actual data, but this will probably not always work. We should
      store the mime type (and the filename) too.
      The context menu doesn't work with the EvView yet.
  12. 12 Jul, 2011 8 commits
    • Murray Cumming's avatar
      ImageGlom: Saving is now mostly async. · dd8e0287
      Murray Cumming authored
      * glom/utility_widgets/dialog_image_save_progress.[h|cc]: Doing the actual
      writing in callbacks, like in the loader.
      * glom/utility_widgets/imageglom.cc: Show the dialog, so we can use the
      idle callbacks, and give user feedback.
    • 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
      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
      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.
  13. 28 Jan, 2011 1 commit
    • Murray Cumming's avatar
      Adapt to the gtkmm 3 change to using vectors. · 02ecae85
      Murray Cumming authored
      * glom/mode_data/datawidget/cellrenderer_dblist.cc:
      * glom/mode_data/db_adddel/db_adddel.cc:
      * glom/mode_design/layout/dialog_choose_field.cc:
      * glom/mode_design/print_layouts/print_layout_toolbar_button.cc:
      * glom/mode_design/print_layouts/window_print_layout_edit.h:
      * glom/utility_widgets/imageglom.cc:
      * glom/utility_widgets/layouttoolbarbutton.cc: Use std::vector instead of
      * glom/dialog_existing_or_new.cc: This one even used the intermediate type
      directly, showing how necessary this API change was.
  14. 29 Sep, 2010 1 commit
    • Murray Cumming's avatar
      Fix the build with the latest gtkmm 3 API. · beb349bc
      Murray Cumming authored
      * glom/application.cc:
      * glom/dialog_existing_or_new.cc:
      * glom/frame_glom.cc:
      * glom/mode_design/translation/window_translations.cc:
        Use FileFilter via RefPtr.
      * glom/bakery/app_withdoc_gtk.cc: Use RecentFilter via RefPtr.
      * glom/mode_data/db_adddel/db_adddel.cc:
      * glom/mode_data/placeholder-glom[h|cc]:
      * glom/utility_widgets/flowtable[h|cc]:
      * glom/utility_widgets/imageglom.[h|cc]: Change use of get_size() to
        get_preferred_size() and change on_expose_event() to on_draw().
  15. 21 Jun, 2010 1 commit
  16. 20 Jun, 2010 1 commit
  17. 12 Apr, 2010 1 commit
  18. 10 Apr, 2010 1 commit
    • Murray Cumming's avatar
      Glade instantiation: Simplify, make more robust, and test. · 8364855d
      Murray Cumming authored
        * glom/glade_utils.h: get_glade_widget_derived_with_warning():
        Don'te an ID. This requires the class to have a static glade_id member and
        glade_developer (bool) member, telling us what file and what ID to use.
        This associates the IDs and filenames with the class, instead of being in other files,
        to avoid duplication and to avoid using the wrong ones.
        This allows us to remove get_glade_developer_widget_derived_with_warning().
        * Many files: Use these new methods, to avoid mentioning glade IDs.
        * tests/test_glade_derived_instantiation.cc: Try to instantiate all the known
        derived glade dialogs.
  19. 08 Apr, 2010 1 commit
    • Murray Cumming's avatar
      ImageGlom: Move scale_keeping_ratio() somewhere more sensible. · eefed4f2
      Murray Cumming authored
      * glom/utility_widgets/imageglom.[h|cc]: Move scale_keeping_ratio() to
      glom/utils_ui.[h]cc] as Utils::image_scale_keeping_ratio().
      * glom/utility_widgets/canvas/canvas_image_movable.cc:
      * glom/utility_widgets/db_adddel/db_adddel.cc:
      * glom/utility_widgets/flowtable_dnd.cc: Adapted.
  20. 28 Feb, 2010 1 commit