1. 07 Jan, 2016 2 commits
  2. 05 Jan, 2016 1 commit
    • Murray Cumming's avatar
      Add and use find_exists(). · 792cc2ea
      Murray Cumming authored
      To replace lengthy use of
      std::find(container.begin(), container.end(), element) != container.end()).
      
      It looks like something like this will be in the standard C++ library
      at some point, but I don't want to wait.
      792cc2ea
  3. 18 Sep, 2015 1 commit
  4. 21 Aug, 2015 1 commit
  5. 07 Jul, 2015 1 commit
    • Murray Cumming's avatar
      C++11: range-based for loops: Don't get the container separately. · 12453ef5
      Murray Cumming authored
      Don't use an intermediate variable to get the container.
      Range-based for loops only evaluate the second part once so this is
      fine. This simplifies code by not making us think about whether the
      variable is used later in the method.
      
      This is only useful with containers that don't need to be
      const-iterated. We can const_cast<> the container, but that is
      lengthy and involves mentining the type.
      12453ef5
  6. 06 Jul, 2015 2 commits
  7. 03 Jul, 2015 1 commit
  8. 02 Jul, 2015 2 commits
  9. 01 Jul, 2015 1 commit
  10. 30 Jun, 2015 1 commit
  11. 21 Nov, 2013 1 commit
  12. 29 Oct, 2013 1 commit
  13. 21 Oct, 2013 1 commit
  14. 25 Sep, 2013 4 commits
  15. 23 Sep, 2013 3 commits
  16. 22 Jul, 2013 1 commit
  17. 11 Mar, 2013 3 commits
  18. 12 Apr, 2012 1 commit
  19. 11 Apr, 2012 1 commit
  20. 14 Mar, 2012 1 commit
    • Murray Cumming's avatar
      Make sure that get_appwindow() overrides are const. · 6f234d74
      Murray Cumming authored
      	* glom/mode_data/buttonglom.[h|cc]:
      	* glom/mode_data/datawidget/checkbutton.[h|cc]:
      	* glom/mode_data/datawidget/combo.[h|cc]:
      	* glom/mode_data/datawidget/combo_as_radio_buttons.[h|cc]:
      	* glom/mode_data/datawidget/datawidget.[h|cc]:
      	* glom/mode_data/datawidget/entry.[h|cc]:
      	* glom/mode_data/datawidget/label.[h|cc]:
      	* glom/mode_data/datawidget/textview.[h|cc]:
      	* glom/utility_widgets/imageglom.[h|cc]:
      	* glom/utility_widgets/notebookglom.[h|cc]: get_appwindow(): This should
      	be const because the pure virtual function (that it is meant to override)
      	is const.
      	This fixes warnings found by clang++.
      6f234d74
  21. 13 Feb, 2012 2 commits
  22. 04 Nov, 2011 1 commit
    • Murray Cumming's avatar
      Handle GdaBlob in query results instead of just GdaBinary. · daed2f59
      Murray Cumming authored
      	* glom/libglom/data_structure/field.cc: to_file_format():
      	The Value might have a GdaBlob that needs to be read first, to get the
      	GdaBinary. This can happen with SQLite.
      	* glom/libglom/python_embed/pygdavalue_conversions.cc:
      	glom_pygda_value_as_boost_pyobject(): Handle GdaBlob too, though neither
      	this or the GdaBinary case use the data length, so this code is doomed
      	if it is ever used. I need to find out if Python can really represent
      	binary data, or if this should just not be handled here.
      	* glom/utility_widgets/imageglom.cc: get_binary(): Handle GdaBlob
      	too in the original data.
      	* tests/test_selfhosting_new_then_image.cc: Handle GdaBlob in the
      	data that is read back, for SQLite. Uncomment the SQLite test, fixing
      	make check with the latest libgda.
      daed2f59
  23. 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.
      25562202
  24. 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
      includes.
      Among other things, this might let us avoid the annoying warning about
      deprecated GThread functions.
      a9513ff7
  25. 24 Oct, 2011 1 commit
  26. 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.
      2e970052
  27. 19 Sep, 2011 1 commit
  28. 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.
      e4e655db
  29. 20 Jul, 2011 1 commit