1. 13 Oct, 2011 1 commit
    • Murray Cumming's avatar
      Use Glib::ustring::compose() instead of concatenation for translatable strings. · b0a17083
      Murray Cumming authored
      * glom/bakery/dialog_offersave.cc:
      * glom/import_csv/dialog_import_csv.cc:
      * glom/mode_design/fields/dialog_fieldcalculation.cc:
      * glom/mode_design/layout/combobox_relationship.cc:
      * glom/mode_design/layout/dialog_layout_details.cc:
      * glom/mode_design/layout/layout_item_dialogs/dialog_buttonscript.cc:
      * glom/navigation/box_tables.cc:
      * glom/utils_ui.cc: Let translators arrange built strings.
  2. 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.
  3. 14 Jul, 2011 1 commit
    • Murray Cumming's avatar
      ImageGlom: Remove limits so we always scale, and use on_size_allocate(). · 58e42d6d
      Murray Cumming authored
      * glom/utility_widgets/imageglom.[h|cc]: Use on_size_allocate() instead of
      on_draw(), which is slightly wiser.
      Remove the hard-coded checks for minumum and maximum sizes, because
      we get an initial allocation of 1, and because the max was arbitrarily small.
      This works now, but we still need to make the window get smaller when
      the GtkImage requests less space.
  4. 11 Oct, 2010 2 commits
    • David King's avatar
      Change some uses of long to more appropriate types · b4f16b8c
      David King authored
      * glom/libglom/python_embed/py_glom_record.[cc|h]:
      * glom/libglom/python_embed/py_glom_related.[cc|h]:
      * glom/libglom/python_embed/py_glom_relatedrecord.[cc|h]:
      * glom/libglom/utils.cc:
      * glom/utility_widgets/db_addel/glom_db_treemodel.cc:
      * glom/utils_ui.cc: Use other types than long where appropriate.
    • David King's avatar
      Use array notation where appropriate · 5d9839eb
      David King authored
      * glom/dialog_connection.[cc|h]:
      * glom/dialog_existing_or_new.[cc|h]:
      * glom/dialog_invalid_data.[cc|h]:
      * glom/libglom/connectionpool_backends/postgres.cc:
      * glom/libglom/connectionpool_backends/postgres_self.cc:
      * glom/libglom/connectionpool_backends/sqlite.cc:
      * glom/utils_ui.cc: Use array notation when initializing constant
      character arrays.
  5. 19 Aug, 2010 1 commit
    • David King's avatar
      Include the correct config.h · 7f3b5078
      David King authored
      * glom/application.cc:
      * glom/bakery/app_withdoc.cc:
      * glom/bakery/app_withdoc_gtk.cc:
      * glom/bakery/app_withdoc_gtk.h:
      * glom/bakery/dialog_offersave.cc:
      * glom/bakery/dialog_offersave.h:
      * glom/libglom/connectionpool_backends/postgres.cc:
      * glom/libglom/document/bakery/document.cc:
      * glom/libglom/gst-package.c:
      * glom/main.cc:
      * glom/mode_design/translation/window_translations.cc:
      * glom/python_embed/glom_python.cc:
      * glom/python_embed/python_module/py_glom_module.cc:
      * glom/utils_ui.cc: Be sure to include the local config.h.
  6. 20 Jun, 2010 1 commit
  7. 19 Jun, 2010 1 commit
    • Daniel Borgmann's avatar
      Set default icon instead of individual window icons. · 04685925
      Daniel Borgmann authored and Murray Cumming's avatar Murray Cumming committed
      * glom/application.cc: Set default window icon.
      * glom/dialog_existing_or_new.cc:
      * glom/filechooser_export.cc:
      * glom/frame_glom.cc:
      * glom/glade_utils.h:
      * glom/mode_design/script_library/dialog_script_library.cc:
      * glom/mode_design/translation/window_translations.cc:
      * glom/mode_design/users/dialog_groups_list.cc:
      * glom/utility_widgets/filechooserdialog_saveextras.cc:
      * glom/utils_ui.cc:
      * glom/window_boxholder.cc:
      Don't call set_icon_name() on individual windows.
  8. 03 May, 2010 1 commit
    • Daniel Borgmann's avatar
      Set default icon instead of individual window icons. · ccafe3ad
      Daniel Borgmann authored
      * glom/application.cc: Set default window icon.
      * glom/dialog_existing_or_new.cc:
      * glom/filechooser_export.cc:
      * glom/frame_glom.cc:
      * glom/glade_utils.h:
      * glom/mode_design/script_library/dialog_script_library.cc:
      * glom/mode_design/translation/window_translations.cc:
      * glom/mode_design/users/dialog_groups_list.cc:
      * glom/utility_widgets/filechooserdialog_saveextras.cc:
      * glom/utils_ui.cc:
      * glom/window_boxholder.cc:
      Don't call set_icon_name() on individual windows.
  9. 01 May, 2010 1 commit
    • Murray Cumming's avatar
      Move some more methods from Base_DB. · 0b50bb06
      Murray Cumming authored
      * glom/base_db.[h|cc]: Move show_warning_no_records_found() to utils_ui.[h|cc].
      get_find_where_clause_quick(): Move to utils.[h|cc].
      * glom/frame_glom.cc: Adapted.
      * glom/mode_design/layout/layout_item_dialogs/box_formatting.h:
      * glom/mode_design/layout/layout_item_dialogs/dialog_buttonscript.[h|cc]:
      * glom/mode_data/datawidget/dialog_choose_id.[h|cc]: Don't derive from Base_DB
      because that is no longer necessary after adapting.
  10. 10 Apr, 2010 2 commits
  11. 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.
  12. 31 Mar, 2010 1 commit
  13. 06 Mar, 2010 1 commit
  14. 14 Dec, 2009 1 commit
  15. 30 Oct, 2009 1 commit
    • Murray Cumming's avatar
      List views and related records portals: Enough space for titles. · fb690e8b
      Murray Cumming authored
      * glom/utils_ui.[h|cc]: get_suitable_field_width_for_widget():
      Optionally calculate enough space for the title too, for TreeView
      * glom/utility_widgets/db_adddel/db_adddel.cc: treeview_append_column():
      When choosing a default column width, make sure there's enough for the
      title too.
  16. 13 Oct, 2009 1 commit
  17. 28 Sep, 2009 3 commits
  18. 21 Sep, 2009 1 commit
    • Murray Cumming's avatar
      xport: Use .csv file extension to match the filter when importing. · 7df0fdad
      Murray Cumming authored
      * glom/utils_ui.[h]cc]: Added get_filepath_with_extension() to add
      (if necessary) a specified file extension to a filepath.
      * glom/frame_glom.cc: on_menu_file_export(): Add a .csv file
      extension if not already specified, so we automatically see the
      export file in the file chooser when importing.
  19. 07 Sep, 2009 1 commit
  20. 31 Jul, 2009 1 commit
  21. 23 Jul, 2009 1 commit
    • Daniel Elstner's avatar
      Switch to non-recursive build process · 1c5e87d3
      Daniel Elstner authored
      * macros/mm-pkg.m4: New file, defining the MM_PKG_CONFIG_SUBST macro.
      * macros/mm-python.m4: New file, defining the MM_CHECK_MODULE_PYTHON
      macro to replace the old and messy AM_CHECK_PYTHON_HEADERS.
      * acinclude.m4: Remove file which defined AM_CHECK_PYTHON_HEADERS.
      * Makefile.am: Merge the contents of the Makefile.am files from all
      subdirectories into a single top-level Makefile.am, with the exception
      of docs/user-guide/Makefile.am.  Add the full subdirectory prefix to
      all listed files and change the Automake variable names accordingly.
      Get rid of the intermediate static libraries previously created for
      each source subdirectory, and list the source files directly in the
      toplevel target's SOURCES variable.  Overall, refactor and modernize
      the build rules and organization.
      * **/Makefile.am: Except for docs/user-guide/Makefile.am, remove the
      Makefile.am files recursively from all subdirectories.
      * config.h.in: Remove file, and use autoheader to generate it.
      * autogen.sh: Replace with a modern minimalistic script which lets
      autoreconf do the bulk of the work.
      * configure.ac: Massive refactoring.  Adapt to the new non-recursive
      build organization.  Modernize the M4 and shell code, and make use of
      newer Autoconf and Automake constructs to simplify many checks.  Also
      make minor corrections to a number of tests and definitions.
      * glom/application.cc: Remove the need for GLOM_ICON_DIR by setting
      the window icon by name instead of loading the image file directly.
      Use PACKAGE_VERSION in place of VERSION.
      * glom/dialog_existing_or_new.cc: Use a subdirectory of GLOM_DOCDIR
      * glom/utils_ui.cc: Replace DATADIR by GLOM_DATADIR.
      * glom/libglom/connectionpool.cc: Remove GLOM_SAVE_DATADIR hack, which
      is not necessary anymore as DATADIR is not globally defined anymore.
      * glom/libglom/connectionpool_backends/postgres_self.cc: ditto,
      * glom/libglom/spawn_with_feedback.cc: ditto,
      * glom/main.cc: ditto. Also replace LOCALEDIR by GLOM_LOCALEDIR, and
      output PACKAGE_STRING instead of VERSION in response to the --version
      command-line option.  Replace PACKAGE and VERSION by their modern
      Automake equivalents.
      * glom/xsl_utils.cc: Remove GLOM_SAVE_DATADIR hack, and replace
      GLOM_XSLTDIR with a subdirectory of GLOM_PKGDATADIR.
      * glom/mode_data/box_data_calendar_related.cc: Replace GLOM_GLADEDIR
      by a combination of GLOM_PKGDATADIR and a subdirectory name.
      * glom/mode_design/print_layouts/print_layout_toolbar_button.cc: Use
      a subdirectory of GLOM_PKGDATADIR in place of GLOM_ICON_DIR.
      * glom/utility_widgets/layouttoolbar.cc: ditto,
      * glom/utility_widgets/layouttoolbarbutton.cc: ditto.
      * glom/python_embed/glom_python.cc: Include generated config.h for the
      definition of GLOM_ABI_VERSION_UNDERLINED.
      * glom/python_embed/python_module/py_glom_module.cc: ditto.
  22. 05 May, 2009 1 commit
    • Armin Burgmeier's avatar
      Image loading speedup · b6e97d1b
      Armin Burgmeier authored
      	* glom/libglom/sharedptr.h: Added operator!=.
      	* glom/mode_data/flowtablewithfields.h:
      	* glom/mode_data/flowtablewithfields.cc: Added set_other_field_value
      	which is the same as set_field_value except that it does not set the
      	value for widget that belongs to the passed layout item's widget
      	itself. This can be used if that very widget already contains the new
      	value to avoid setting it again. Especially when dealing with large
      	images this brings an essential speedup.
      	* glom/mode_data/box_data_details.cc (on_flowtable_field_edited): Use
      	set_other_field_value, so that we don't set the value for the field
      	which the user already changed again.
      	* glom/utility_widgets/imageglom.h:
      	* glom/utility_widgets/imageglom.cc: Store the original data of the
      	image file, and return it in get_value(), instead of creating a PNG
      	from the raw image data, to speed up loading a large image file.
      	* glom/utils_ui.cc (get_pixbuf_for_gda_value): When loading images
      	from the database, allow all image types, not just PNGs.
      	* glom/xsl_utils.cc: Include gtk/gtk.h to fix the build for me.
  23. 30 Mar, 2009 2 commits
    • Murray Cumming's avatar
      Remove the gtkmm dependency from libglom. · 52b3ee97
      Murray Cumming authored
      2009-03-30  Murray Cumming  <murrayc@murrayc.com>
      * configure.ac: Remove the gtkmm dependency from libglom.
      * glom/libglom/Makefile.am:
      * glom/bakery/Makefile.am:
      * glom/libglom/busy_cursor.[h|cc]: Moved this to glom/bakery/.
      * glom/libglom/data_structure/glomconversions.[h|cc]:
      Moved get_pixbuf_for_gda_value() to glom/utils_ui.[h|cc].
      * glom/libglom/*.[h|cc]: Adapted, and removed any gtkmm or gdkmm headers.
      svn path=/trunk/; revision=2035
    • Murray Cumming's avatar
      Added missing file to fix the build. · 66d86ee5
      Murray Cumming authored
      2009-03-30  Murray Cumming  <murrayc@murrayc.com>
      * glom/glade_utils.cc: Added missing file to fix the build.
      * glom/Makefile.am:
      * glom/libglom/Makefile.am:
      * glom/libglom/utils.cc:
      * glom/libglom/utils.h: Moved some of these functions to new 
      glom/utils_ui.[h|cc] files to avoid having the UI stuff in libglom.
      *.cc: Adapted.
      * glom/libglom/connectionpool_backends/backend.[h|cc]:
      * glom/libglom/connectionpool_backends/postgres.[h|cc]:
      * glom/libglom/connectionpool_backends/postgres_self.[h|cc]: 
      initialize(): Return an enum instead of a bool, to report errors, instead of 
      showing a UI warning here.
      Added set_avahi_publish_callbacks() to avoid showing that UI here.
      * glom/frame_glom.[h|cc]: Adapt to the new API, showing UI here instead of 
      in libglom.
      * glom/libglom/spawn_with_feedback.cc: Disconnect the progress timeout 
      * glom/libglom/data_structure/layout/layoutitem_image.[h|cc]: Removed 
      get_image_as_pixbuf() to avoid a gtkmm dependency in libglom. Made m_image 
      public instead, to avoid performance problems with copying lots of binary 
      data via a get*() method.
      * glom/libglom/document/document_glom.cc: Adapted.
      * glom/libglom/data_structure/print_layout.[h|cc]: Use a string instead of a 
      Gtk::PrintLayout, using the Glib::KeyFile format, to avoid depending on gtkmm 
      in libglom.
      * glom/mode_design/print_layouts/canvas_layout_item.cc:
      * glom/mode_design/print_layouts/canvas_print_layout.cc: Adapted.
      svn path=/trunk/; revision=2034