1. 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.
      7df0fdad
  2. 31 Jul, 2009 1 commit
  3. 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
      in place of GLOM_EXAMPLES_DIR.  Remove GLOM_EXAMPLES_DIR_ALTERNATIVE.
      
      * 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.
      1c5e87d3
  4. 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.
      b6e97d1b
  5. 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
      52b3ee97
    • 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.[h|cc]:
      * 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 
      dlers.
      
      * 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
      66d86ee5