1. 21 Jun, 2010 3 commits
  2. 20 Jun, 2010 2 commits
    • Murray Cumming's avatar
      454850cb
    • Murray Cumming's avatar
      libglom: ConnectionPool: Simplify code. · 7f6b199d
      Murray Cumming authored
      * glom/libglom/connectionpool_backends/backend.[h|cc]:
      * glom/libglom/connectionpool_backends/postgres.[h|cc]:
      * glom/libglom/connectionpool_backends/postgres_central.[h|cc]:
      * glom/libglom/connectionpool_backends/postgres_self.[h|cc]:
      * glom/libglom/connectionpool_backends/sqlite.[h|cc]: Remove the
      query_execute(), create_server_operation(), perform_server_operation(),
      begin_transaction(), commit_transaction() and rollback_transaction()
      convenience methods, which just hide the no-exceptions ifdefs.
      But gtkmm-3.0 does not support that anyway, so we don't need it.
      Just call the libgdamm methods directly.
      add_column(), drop_column(), change_columns(), connect():
      Remove the error output parameters which were there for the same reason.
      Now they just throw.
      * glom/libglom/connectionpool.[h|cc]: Adapted code, hopefully making it
      simpler.
      7f6b199d
  3. 19 Jun, 2010 2 commits
  4. 15 Jun, 2010 2 commits
    • Murray Cumming's avatar
      Use SqlBuilder::add_field_id() to avoid ambiguity. · c03e8884
      Murray Cumming authored
      * glom/base_db.cc:
      * glom/base_db_table_data.cc:
      * glom/libglom/db_utils.cc:
      * glom/libglom/privs.cc:
      * glom/libglom/python_embed/py_glom_record.cc:
      * glom/libglom/python_embed/py_glom_relatedrecord.cc:
      * glom/libglom/utils.cc:
      * glom/mode_data/box_data.cc:
      * glom/mode_data/box_data_calendar_related.cc:
      * glom/mode_data/box_data_portal.cc:
      * glom/mode_design/dialog_database_preferences.cc:
      * glom/mode_design/fields/box_db_table_definition.cc:
      * glom/report_builder.cc: Replace use of add_id() with the new add_field_id(),
      which lets us specify the table too.
      c03e8884
    • Murray Cumming's avatar
      Adapt to latest libgdamm API. · d99aeefd
      Murray Cumming authored
      * glom/base_db.cc:
      * glom/libglom/db_utils.cc:
      * glom/libglom/python_embed/py_glom_relatedrecord.cc:
      * glom/libglom/utils.cc:
      * glom/utility_widgets/db_adddel/glom_db_treemodel.cc:
      SqlBuilder::add_field_id() was renamed to add_field_value_id(), though I now
      notice that no value is involved when it is used for SELECT queries.
      d99aeefd
  5. 13 Jun, 2010 4 commits
    • Murray Cumming's avatar
      Remove unnecessary gtk C includes. · 7d5cf9b5
      Murray Cumming authored
      	* glom/application.cc:
      	* glom/bakery/app_withdoc_gtk.cc:
      	* glom/libglom/data_structure/print_layout.cc:
      	* glom/libglom/document/document.cc:
      	* glom/libglom/gst-package.c:
      	* glom/mode_design/comboentry_currency.cc:
      	* glom/mode_design/fields/combo_fieldtype.cc:
      	* glom/mode_design/layout/combobox_fields.cc:
      	* glom/mode_design/layout/combobox_relationship.cc:
      	* glom/mode_design/layout/layout_item_dialogs/combo_summarytype.cc:
      	* glom/mode_design/layout/layout_item_dialogs/comboentry_borderwidth.cc:
      	* glom/mode_design/print_layouts/print_layout_toolbar.cc:
      	* glom/mode_design/translation/combobox_locale.cc:
      	* glom/utility_widgets/cellrendererlist/cellrendererlist.cc:
      	* glom/utility_widgets/combo_textglade.cc:
      	* glom/utility_widgets/db_adddel/cellrenderer_buttonimage.cc:
      	* glom/utility_widgets/db_adddel/cellrenderer_buttonimage.h:
      	* glom/utility_widgets/db_adddel/cellrenderer_buttontext.cc:
      	* glom/utility_widgets/db_adddel/cellrenderer_buttontext.h:
      	* glom/utility_widgets/db_adddel/db_adddel.cc:
      	* glom/utility_widgets/flowtable.cc:
      	* glom/utility_widgets/layouttoolbar.cc:
      	* glom/xsl_utils.cc: Remove now-unnecessary gtk+/gtk* includes,
      	replacing some with use of C++ API. These caused warnings due to GSEAL.
      7d5cf9b5
    • Murray Cumming's avatar
      Depend on avahi-ui-3.0 instead of avahi-ui, though it does not officially exist. · 105f5958
      Murray Cumming authored
      	* configure.ac: avahi-ui links to gtk-2.0, so depending on avahi-ui-3.0 is
      	better even if it currently only exists via my patch (emailed to d-d-l and
      	Lennart because I can't login to avahi.org's trac).
      105f5958
    • Murray Cumming's avatar
      Configure: Remove checks for libegg dependencies, because we don't use it. · d30963fb
      Murray Cumming authored
      * configure.ac: We don't build libegg code here any more.
      d30963fb
    • Murray Cumming's avatar
      Port to gtkmm-3.0 · fedb7ab9
      Murray Cumming authored
      * configure.ac: Use gtkmm-3.0 instead of gtkmm-2.4
      * glom/mode_design/print_layouts/window_print_layout_edit.cc:
      Use get_related_action() instead of get_action().
      * glom/utility_widgets/cellrendererlist/cellrendererlist.[h|cc]:
      Simplify the use of the editing_started signal now that the inheritance is
      fixed in gtkmm-3.0.
      * glom/utility_widgets/db_adddel/db_adddel.cc: Use get_first_cell() instead of
      get_first_cell_renderer().
      * glom/utility_widgets/db_adddel/glom_db_treemodel.[h|cc]: iter_is_valid():
      This is no longer virtual, and no longer exists in the base class, so don't
      call the base class implementation.
      fedb7ab9
  6. 27 May, 2010 1 commit
  7. 25 May, 2010 4 commits
    • Murray Cumming's avatar
      1.15.1 · 919b51a5
      Murray Cumming authored
      919b51a5
    • Murray Cumming's avatar
      23f0e03e
    • Murray Cumming's avatar
      libglom: Utils: Avoid SQL strings for extra_join for doubly-related records. · c8bc14d5
      Murray Cumming authored
      	* glom/libglom/data_structure/foundset.[h|cc]: Remove the extra_group_by
      	member variable.
      	* glom/base_db.cc: set_found_set_where_clause_for_portal(): Do not create
      	the SQL GROUP BY string here.
      	* glom/libglom/utils.[h|cc]: build_sql_select_with_where_clause(): Remove
      	the extra_group_by parameter, instead grouping by all fields if there is
      	an extra_join_by, because there is a 1-to-1 correlation.
      	Also take extra_join as a Relationship instead of a SQL JOIN string, and
      	reuse the existing code to define a join from a relationship.
      	* glom/frame_glom.cc:
      	* glom/libglom/data_structure/foundset.cc:
      	* glom/libglom/data_structure/foundset.h:
      	* glom/libglom/utils.cc:
      	* glom/libglom/utils.h:
      	* glom/mode_data/box_data_calendar_related.cc:
      	* glom/print_layout/canvas_print_layout.cc:
      	* glom/report_builder.cc:
      	* glom/utility_widgets/db_adddel/glom_db_treemodel.cc: Adapt.
      c8bc14d5
    • Murray Cumming's avatar
      Document: get_field_used_in_relationship_to_one(): const correction. · ee8ee2b1
      Murray Cumming authored
      * glom/libglom/document/document.[h|cc]:
      get_field_used_in_relationship_to_one(): Make the relationship parameter
      const and adapt other code.
      ee8ee2b1
  8. 24 May, 2010 2 commits
  9. 21 May, 2010 2 commits
  10. 20 May, 2010 3 commits
    • Murray Cumming's avatar
      Merge branch 'master' into sqlbuilder2 · 9db10bb7
      Murray Cumming authored
      9db10bb7
    • Murray Cumming's avatar
      Correct use of SQL functions with SqlBuilder. · a7e84d46
      Murray Cumming authored
      * glom/base_db.cc: count_rows_returned_by(): Use SqlBuilder::add_field_id()
          so the function is really used. And add a target alias. This now works.
      * glom/libglom/python_embed/py_glom_relatedrecord.cc: generic_aggregate()
      * glom/libglom/utils.cc: build_sql_select_add_fields_to_get():
      * glom/utility_widgets/db_adddel/glom_db_treemodel.cc: get_record_counts():
          Use add_field_id() when adding a function to SqlBuilder, so it is
          really used.
      a7e84d46
    • Murray Cumming's avatar
      More use of SqlBuilder. Almost finished. · aaebaf7e
      Murray Cumming authored
      * glom/base_db.cc:
      * glom/libglom/data_structure/layout/usesrelationship.[h|cc]:
          Change get_sql_join_alias_definition() to get_sql_join_alias_definition().
      * glom/libglom/db_utils.[h|cc]: query_execute_select(): Add an optional
          use_cursor bool to use the non-random database access.
      * glom/libglom/utils.[h|cc]: Change build_sql_select_fields_to_get() to
          build_sql_select_add_fields_to_get().
          build_sql_select_with_where_clause(): Use SqlBuilder.
      * glom/utility_widgets/db_adddel/glom_db_treemodel.cc:
          refresh_from_database(): Use DbUtils::query_execute_select(), to simplify
          the code. This is possible now that the function is not in BaseDB.
      aaebaf7e
  11. 17 May, 2010 2 commits
  12. 16 May, 2010 1 commit
  13. 14 May, 2010 3 commits
  14. 13 May, 2010 4 commits
  15. 12 May, 2010 5 commits
    • Murray Cumming's avatar
      DbUtils::query_execute(): Remove params parameter. · 93af5cc6
      Murray Cumming authored
      * glom/libglom/db_utils.[h|cc]: query_execute(): Remove the unused params
      parameter.
      93af5cc6
    • Murray Cumming's avatar
      Use SqlBuilder in all possible remaining places. · a7a2e6e9
      Murray Cumming authored
      * glom/libglom/db_utils.[h|cc]: Renamed query_execute(string) to
      query_execute_string() so we catch uses of it that could use SqlBuilder.
      
      * glom/base_db.cc: Replaced some INSERT and DELETE string sql queries
      with SqlBuilder.
      * glom/base_db_table_data.cc:
      * glom/libglom/db_utils.cc:
      * glom/libglom/db_utils.h:
      * glom/libglom/privs.cc:
      * glom/mode_design/users/dialog_groups_list.cc:
      * glom/mode_design/users/dialog_users_list.cc:
      * glom/navigation/box_tables.cc: Adapt.
      a7a2e6e9
    • Murray Cumming's avatar
      Remove redundant BaseDb::query_execute*() methods. · ba9cf17b
      Murray Cumming authored
      * glom/base_db.[h|cc]: Removed query_execute_select() and query_execute().
      The same methods in DbUtils replace them.
      * glom/libglom/db_utils.h: Removed the query_execute_select(string) override.
      * glom/mode_data/box_data_calendar_related.cc:
      * glom/mode_data/box_data_details.cc:
      * glom/mode_data/box_data_portal.cc:
      * glom/mode_design/dialog_database_preferences.cc:
      * glom/mode_design/fields/box_db_table_definition.cc:
      * glom/mode_design/users/dialog_groups_list.cc:
      * glom/mode_design/users/dialog_users_list.cc:
      * glom/navigation/box_tables.cc:
      * glom/print_layout/canvas_print_layout.cc:
      * glom/report_builder.cc:
      * glom/base_db_table_data.cc:
      * glom/frame_glom.cc:
      * glom/libglom/db_utils.cc: Adapted.
      ba9cf17b
    • Murray Cumming's avatar
      Merge branch 'master' into sqlbuilder2 · 872d5e63
      Murray Cumming authored
      872d5e63
    • Daniel Borgmann's avatar
      Don't allow deleting placeholder rows. · 4461c2b3
      Daniel Borgmann authored
      * glom/utility_widgets/db_adddel/db_adddel.cc: Don't allow deleting a
      placeholder row (which leads to broken behaviour).
      4461c2b3