1. 19 Feb, 2006 3 commits
    • Murray Cumming's avatar
      on_menu_Mode_Find(): Start the Find mode on the same layout (Details or · d6e61bd9
      Murray Cumming authored
      2006-02-19  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/frame_glom.cc: on_menu_Mode_Find(): Start the Find mode
              on the same layout (Details or List) as the Data mode was in.
              Add a little hack to make sure that we go back into Data mode in List
              view at first, to make sure that the first result will show up
              properly in the Details mode.
              * glom/mode_data/notebook_data.cc:
              * glom/mode_data/notebook_data.h: Added set_current_view().
              * glom/mode_find/notebook_find.cc:
              * glom/mode_find/notebook_find.h: Added set_current_view().
      d6e61bd9
    • Murray Cumming's avatar
      scale(): Call Gtk::Image::get_storage_type() before · a56c4b1d
      Murray Cumming authored
      2006-02-19  Murray Cumming, <murrayc@murrayc.com>
      
              * glom/utility_widgets/imageglom.cc: scale(): Call Gtk::Image::get_storage_type()
              before Gtk::Image::get_pixbuf(), to avoid a critical warning.
      a56c4b1d
    • Murray Cumming's avatar
      Overried on_expose_event() so we can scale the image when we actually have · 7007f055
      Murray Cumming authored
      2006-02-19  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/utility_widgets/imageglom.cc:
              * glom/utility_widgets/imageglom.h: Overried on_expose_event() so we can
              scale the image when we actually have a real (>1) allocation.
              scale(): Do not call set_image() if the scaled pixbuf has exactly the same
              dimensions as the existing image. And do not try to scale the image if the
              allocation is very small, because this will generally fail. This fixes the
              disappearing image problem.
      7007f055
  2. 17 Feb, 2006 1 commit
    • Murray Cumming's avatar
      New translatable item, for use when layout items can optionally have · e13a121a
      Murray Cumming authored
      2006-02-17  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/data_structure/layout/Makefile.am:
              * glom/data_structure/layout/custom_title.cc:
              * glom/data_structure/layout/custom_title.h: New translatable
              item, for use when layout items can optionally have special
              titles, when the default (such as Street for contacts::address_street),
              is not appropriate.
              * glom/data_structure/layout/layoutitem_field.cc:
              * glom/data_structure/layout/layoutitem_field.h: Add get/set_title_custom().
              * glom/data_structure/translatable_item.cc:
              * glom/data_structure/translatable_item.h: Add new item type and name.
              * glom/document/document_glom.cc: load_after_layout_item_field(),
              save_before_layout_item_field(): Load/Save the custom_title of
              LayoutItem_Field items.
              * glom/glom.glade: dialog_layout_field_properties.
              * glom/layout_item_dialogs/dialog_field_layout.cc:
              * glom/layout_item_dialogs/dialog_field_layout.h: Add widgets to allow
              a custom title.
              * glom/translation/window_translations.cc: load_from_document():
              Add the custom titles to the list.
              * glom/utility_widgets/datawidget.cc: on_menupopup_activate_layout():
              Save the new field properties, instead of replacing the whole item,
              so that the document gets the new information. Makes this work again.
      e13a121a
  3. 13 Feb, 2006 2 commits
    • Murray Cumming's avatar
      Added get/set_script(). load_after_layout_group(), · a2105501
      Murray Cumming authored
      2006-02-13  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/data_structure/layout/layoutitem_button.cc:
              * glom/data_structure/layout/layoutitem_button.h:
              Added get/set_script().
              * glom/document/document_glom.cc: load_after_layout_group(),
              save_before_layout_group(): Load/Save the scripts for buttons.
              * glom/utility_widgets/buttonglom.cc:
              * glom/utility_widgets/flowtablewithfields.cc:
              * glom/utility_widgets/flowtablewithfields.h:
              * glom/mode_data/box_data_details.cc:
              * glom/mode_data/box_data_details.h: Handle button clicks and
              run the python code.
              * glom/glom.glade: Add a script editing dialog.
              * glom/mode_data/dialog_layout_details.cc:
              * glom/mode_data/dialog_layout_details.h: on_button_edit():
              Allow editing of buttons and start editing of the title column
              if the item is a group.
              * glom/mode_design/Makefile.am:
              * glom/mode_design/dialog_buttonscript.cc:
              * glom/mode_design/dialog_buttonscript.h: Added button script
              editing dialog.
              * glom/python_embed/glom_python.cc:
              * glom/python_embed/glom_python.h: Added
              glom_execute_python_function_implementation() because we buttons
              do not care about the result.
              * examples/example_smallbusiness.glom: Add a Test Button to the
              Contacts layout, with a pygtk hello world script behind it.
      a2105501
    • Murray Cumming's avatar
      Give it a translatable item type and name so it shows up properly in the · da082c16
      Murray Cumming authored
      2006-02-13  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/data_structure/layout/layoutitem_button.cc:
              * glom/data_structure/translatable_item.cc:
              * glom/data_structure/translatable_item.h: Give it a
              translatable item type and name so it shows up properly in the
              translations list.
              * glom/document/document_glom.cc: save_before_layout_item_field():
              Load the sequence number of child items. It was pure luck that this
              worked sometimes without this.
              * glom/document/document_glom.h:
              * glom/mode_data/dialog_layout_details.cc: on_button_*(): Set m_modified,
              so that all changes are always saved. I am surprised that this worked before.
              on_cell_data_name(): Mark buttons as such.
              on_cell_data_title(): Allow button titles to be edited.
              * glom/utility_widgets/flowtablewithfields.cc:
              add_button_at_position(): Set the button title and really show the widget.
      da082c16
  4. 12 Feb, 2006 1 commit
    • Murray Cumming's avatar
      Add Button layout item. Details Layout: Put the Add buttons vertically at · 08b0d94f
      Murray Cumming authored
      2006-02-12  Murray Cumming  <murrayc@murrayc.com>
      
              * po/POTFILES.in:
              * glom/Makefile.am:
              * glom/data_structure/layout/Makefile.am:
              * glom/data_structure/layout/layoutitem_button.cc:
              * glom/data_structure/layout/layoutitem_button.h: Add Button
              layout item.
              * glom/glom.glade: Details Layout:
              Put the Add buttons vertically at the right-hand side Add
              an Add Button button.
              * glom/mode_data/treestore_layout.cc:
              * glom/mode_data/treestore_layout.h:
              * glom/mode_data/dialog_layout_details.h:
              * glom/mode_data/dialog_layout_details.cc:
              Use the LayoutItems only in the model, simplifying this
              dramatically, and making it easier to add new types of
              layout items.
              * glom/utility_widgets/Makefile.am:
              * glom/utility_widgets/buttonglom.cc:
              * glom/utility_widgets/buttonglom.h: Add a (non yet useful)
              button widget.
      08b0d94f
  5. 09 Feb, 2006 1 commit
    • Murray Cumming's avatar
      Added remove_relationship(), to remove any child items that use the · cfaab469
      Murray Cumming authored
      2006-02-09  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/data_structure/layout/layoutgroup.cc:
              * glom/data_structure/layout/layoutgroup.h:
              Added remove_relationship(), to remove any
              child items that use the relationship.
              * glom/document/document_glom.cc:
              remove_relationship(): Also remove any layout or report
              parts that use the relationship.
      cfaab469
  6. 08 Feb, 2006 4 commits
    • Murray Cumming's avatar
      set_translation_original_locale(): Mark the document as modified so that · aadecbe6
      Murray Cumming authored
      2006-02-08  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/document/document_glom.cc:
              set_translation_original_locale(): Mark the document
              as modified so that this is saved.
              * glom/glom.glade: Use language everywhere instead of
              locale.
              * glom/translation/Makefile.am:
              * glom/translation/dialog_change_language.h:
              * glom/translation/dialog_identify_original.cc:
              * glom/translation/dialog_identify_original.h: Show the
              locale name, not the ID.
              * glom/translation/dialog_copy_translation.cc:
              * glom/translation/dialog_copy_translation.h:
              * glom/translation/window_translations.cc:
              * glom/translation/window_translations.h: Implement
              original locale identification and translation copying.
      aadecbe6
    • Murray Cumming's avatar
      Added get_locale_name(), moving some of get_list_of_locales() into it. · 5df98db8
      Murray Cumming authored
      2006-02-08  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/data_structure/iso_codes.cc:
              * glom/data_structure/iso_codes.h: Added get_locale_name(),
              moving some of get_list_of_locales() into it.
              * glom/data_structure/translatable_item.cc: get_title():
              If there is no translation then use the first translation with
              the same language (ignoring the country).
              * glom/translation/window_translations.cc: load_from_document():
              Use get_locale_name() to show the (believed) locale of the original
              strings.
              * glom/utils.cc:
              * glom/utils.h: Added locale_language_id() so we can reuse the code.
      5df98db8
    • Murray Cumming's avatar
      Put all table names in quotes in SQL statements, to avoid errors/crashes · 7571a943
      Murray Cumming authored
      2006-02-08  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/base_db.cc:
              * glom/connectionpool.cc:
              * glom/dialog_database_preferences.cc:
              * glom/mode_data/box_data.cc:
              * glom/mode_data/box_data_details.cc:
              * glom/mode_data/box_data_list.cc:
              * glom/mode_data/box_data_list_related.cc:
              * glom/mode_design/fields/box_db_table_definition.cc:
              * glom/mode_design/users/dialog_users_list.cc:
              * glom/navigation/box_tables.cc:
              * glom/python_embed/python_module/py_glom_relatedrecord.cc:
              * glom/utility_widgets/db_adddel/glom_db_treemodel.cc:
              * glom/utils.cc: Put all table names in quotes in SQL statements,
              to avoid errors/crashes when using non-lowercase table names, and SQL keywords
              as table names.
      7571a943
    • Murray Cumming's avatar
      get_list_of_locales(): Instead of just listing languages, get the full · 25b8f797
      Murray Cumming authored
      2006-02-08  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/data_structure/iso_codes.cc: get_list_of_locales():
              Instead of just listing languages, get the full list of locale IDs from
              /usr/share/i18n/locales/ (hopefully this works everywhere. If not, let's
              have some configure.in stuff), and build the locale name from the language
              part and country part. So it now also parses iso_3166.xml from iso-codes
              to get translated country names.
              * glom/utils.cc:
              * glom/utils.h: Added locale_simplify() so we can ignore weird parts of
              locale IDs.
              * glom/data_structure/translatable_item.cc: get_current_locale(): Return
              a locale instead of just a language.
              * glom/translation/combobox_locale.cc: Try (unsuccessfully) to align the
              second column. Sort it by name.
              * glom/translation/window_translations.cc: load_from_document(): Prevent
              a crash when the document is 0.
      25b8f797
  7. 07 Feb, 2006 1 commit
    • Murray Cumming's avatar
      Use string_escape_underscores when building the reports and tables menus. · 570d20b7
      Murray Cumming authored
      2006-02-07  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/application.cc: Use string_escape_underscores when building
              the reports and tables menus.
              * glom/utility_widgets/adddel/adddel.cc:
              * glom/utility_widgets/adddel/adddel.h:
              * glom/utility_widgets/db_adddel/db_adddel.cc:
              * glom/utility_widgets/db_adddel/db_adddel.h:
              * glom/utils.cc:
              * glom/utils.h: Move string_escape_underscores() to here.
      570d20b7
  8. 27 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Use LayoutItems via sharedptr so we can translate the titles of groups, · 71da2f31
      Murray Cumming authored
      2006-01-27  Murray Cumming  <murrayc@murrayc.com>
      
              * Many: Use LayoutItems via sharedptr so we can translate the titles of
              groups, portals, and report parts. LayoutItems are now created during
              document loading, and by layout editing dialogs, but then just shared by the
              various widgets. This means that we no longer need to rebuild the whole layout
              from the widgets when a widget is changed - it is just shared, so we just
              mark the document as modified.
      71da2f31
  9. 26 Jan, 2006 1 commit
  10. 24 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Added a new base class for all items that have a non-translated ID name · 83a58d5f
      Murray Cumming authored
      2006-01-24  Murray Cumming  <murray@murrayc.com>
      
              * glom/data_structure/translatable_item.cc:
              * glom/data_structure/translatable_item.h: Added a new
              base class for all items that have a non-translated ID name and
              a translated title. This base class has a map of translated titles
              for locales.
              * glom/document/document_glom.cc:
              * glom/document/document_glom.h: Added load_after_translations()
              and save_before_translations() and used it for fields, reports,
              tables, and layout items, so these XML nodes get a translations
              node if they have any translations.
              * glom/application.cc:
              * glom/base_db.cc:
              * glom/box_reports.cc:
              * glom/data_structure/Makefile.am:
              * glom/data_structure/field.cc:
              * glom/data_structure/field.h:
              * glom/data_structure/groupinfo.cc:
              * glom/data_structure/groupinfo.h:
              * glom/data_structure/layout/layoutgroup.cc:
              * glom/data_structure/layout/layoutgroup.h:
              * glom/data_structure/layout/layoutitem.cc:
              * glom/data_structure/layout/layoutitem.h:
              * glom/data_structure/relationship.cc:
              * glom/data_structure/relationship.h:
              * glom/data_structure/report.cc:
              * glom/data_structure/report.h:
              * glom/data_structure/tableinfo.cc:
              * glom/data_structure/tableinfo.h:
              * glom/dialog_database_preferences.cc:
              * glom/dialog_layout_report.cc:
              * glom/mode_data/box_data_details.cc:
              * glom/mode_data/box_data_list.cc:
              * glom/mode_data/dialog_layout_details.cc:
              * glom/mode_design/users/dialog_groups_list.cc:
              * glom/navigation/box_tables.cc:
              * glom/utility_widgets/flowtablewithfields.cc: Use the base class
              API, removing superfluous API.
              * glom/translation/window_translations.cc:
              * glom/translation/window_translations.h: Store sharedptr<TranslatableItem>
              in the tree model.
              * po/POTFILES.in: Added the new files.
      83a58d5f
  11. 23 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Use Field via sharedptr<Field>, to avoid unnecessary copying. However, · d34cea46
      Murray Cumming authored
      2006-01-23  Murray Cumming <murrayc@murrayc.com>
      
              * Many files: Use Field via sharedptr<Field>, to
              avoid unnecessary copying. However, LayoutItem_Field still
              copies it for now, to avoid conflicts.
              * glom/sharedptr.h: Various improvements, particularly to
              the nonconst->const cast, based on Glib::RefPtr.
      d34cea46
  12. 17 Jan, 2006 3 commits
    • Murray Cumming's avatar
      Make what() const and throw(), so that it really overrides · 31f86a0b
      Murray Cumming authored
      2006-01-17  Murray Cumming <murrayc@murrayc.com>
      
              * glom/exception.[h|cc]: Make what() const and throw(), so that it really
              overrides std::exception::what() so we get real text in the error dialogs.
              * glom/frame_glom.cc: create_database(): Call add_standard_tables() and
              add_standard_groups() to avoid the error/crash when adding a record to a new
              table in a new database.
      31f86a0b
    • Murray Cumming's avatar
      sql(): Move text escaping code into glom_escape_text() so it can be · 52975e2e
      Murray Cumming authored
      2006-01-17  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/data_structure/field.cc: sql(): Move text escaping code into
              glom_escape_text() so it can be reused. For IMAGE fields, assume that
              get_binary() is already the escaped binary format, but escape it
              again as text, so we get the \ needed for SQL commands.
              * glom/data_structure/glomconversions.cc: get_escaped_binary_data():
              Use one \, not \ to separate byte numbers, because that's the format
              used by get/set_binary() in libgda at the moment.
              * glom/utility_widgets/imageglom.cc:
              get_value(): Use GlomConversions::get_escaped_binary_data() before
              set_binary() because Glom must assume elsewhere that it is escaped
              in all GdaValues. This workaround will all be unnecessary in libgda-2.0,
              which properly unescapes binary buffers.
              Images are now saved properly into examples, and inserted properly into
              the new databases that are created when examples are opened.
      52975e2e
    • Murray Cumming's avatar
      on_menupopup_activate_clear(): Emit the signal to actually update the · d1152164
      Murray Cumming authored
      2006-01-17  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/utility_widgets/imageglom.cc:
              on_menupopup_activate_clear(): Emit the signal to actually update the database.
              on_menupopup_activate_paste(): Prevent crash when the received pixbuf is NULL.
              on_menupopup_activate_copy(): Prevent crash when the pixbuf is NULL.
      d1152164
  13. 14 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Add a File/Export menu item, for exporting the found set as · a42618c0
      Murray Cumming authored
      2006-01-14  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/frame_glom.cc:
              * glom/frame_glom.h: Add a File/Export menu item, for exporting the found set as
              comma-separated text.
              * glom/base_db.cc:
              * glom/base_db.h:
              * glom/box_db_table.cc:
              * glom/box_db_table.h:
              * glom/data_structure/glomconversions.cc:
              * glom/data_structure/layout/layoutitem_field.h:
              * glom/filechooser_export.cc:
              * glom/filechooser_export.h:
              * glom/mode_data/Makefile.am:
              * glom/mode_data/box_data.cc:
              * glom/mode_data/box_data.h:
              * glom/mode_data/box_data_details.cc:
              * glom/mode_data/box_data_list.cc:
              * glom/mode_data/box_data_list_related.cc:
              * glom/mode_data/notebook_data.cc:
              * glom/mode_data/notebook_data.h:
              * glom/base_db.cc:
              * glom/base_db.h:Moved various folders into Base_DB so that Frame_Glom can use them.
              * glom/Makefile.am:
              * glom/mode_data/dialog_layout_export.cc:
              * glom/mode_data/dialog_layout_export.h: New layout UI for export field sequences,
              not yet finished or used.
      a42618c0
  14. 13 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Move get_find_where_clause_quick() from Frame_Glom to Base_DB so we can · 254c2e49
      Murray Cumming authored
      2006-01-13  Murray Cumming   <murrayc@murrayc.com>
      
              * glom/frame_glom.cc:
              * glom/frame_glom.h:
              * glom/base_db.cc:
              * glom/base_db.h: Move get_find_where_clause_quick() from Frame_Glom to
              Base_DB so we can use it in Dialog_ChooseID.
              * glom/glom.glade:
              * glom/utility_widgets/dialog_choose_id.cc:
              * glom/utility_widgets/dialog_choose_id.h: Add the Quick Find feature
              to this dialog too.
      254c2e49
  15. 12 Jan, 2006 2 commits
    • Murray Cumming's avatar
      Remove some debug output. · d06d3f59
      Murray Cumming authored
      d06d3f59
    • Murray Cumming's avatar
      Define the placeholder row as the last row, whose existance we cause just · 90c26844
      Murray Cumming authored
      2006-01-12  Murray Cumming   <murrayc@murrayc.com>
      
              * glom/utility_widgets/db_adddel/db_adddel.cc:
              * glom/utility_widgets/db_adddel/db_adddel.h:
              * glom/utility_widgets/db_adddel/glom_db_treemodel.cc:
              * glom/utility_widgets/db_adddel/glom_db_treemodel.h:
              Define the placeholder row as the last row, whose existance we
              cause just by increasing the number of rows, so that iter_next_vfunc() gives
              one more row, instead of marking a boolean. This simplifies things and
              prevents extra placeholder rows being generated.
              * glom/base_db.cc:
              * glom/frame_glom.cc:
              * glom/mode_data/box_data.cc:
              * glom/mode_data/box_data.h:
              * glom/mode_data/box_data_details.cc:
              * glom/mode_data/box_data_details.h:
              * glom/mode_data/box_data_list.cc:
              * glom/mode_data/box_data_list_related.cc:
              * glom/mode_data/box_data_list_related.h:
              * glom/mode_data/notebook_data.cc:
              * glom/mode_find/box_data_list_find.cc:
              * glom/utility_widgets/flowtablewithfields.cc:
              * glom/utility_widgets/imageglom.cc: Adapt to new API. And some changes to
              ensure that find results are shown in the appropriate view depending on whether
              there are >1 records found.
      90c26844
  16. 11 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Added widgets at bottom-right to show the number of total and found · 4e2b0c78
      Murray Cumming authored
      2006-01-11  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/frame_glom.cc:
              * glom/frame_glom.h:
              * glom/glom.glade: Added widgets at bottom-right to show
              the number of total and found records, with a Find All button
              when appropriate.
              * glom/mode_data/notebook_data.cc:
              * glom/mode_data/notebook_data.h: Added get_record_counts().
              * glom/utility_widgets/db_adddel/glom_db_treemodel.cc:
              * glom/utility_widgets/db_adddel/glom_db_treemodel.h: Added get_record_counts().
      4e2b0c78
  17. 10 Jan, 2006 1 commit
    • Murray Cumming's avatar
      Change all instances of can not to cannot. Bug #300139 from Adam · 2366f5ca
      Murray Cumming authored
      2006-01-10  Murray Cumming  <murrayc@murrayc.com>
      
              * docs/postgres_gda_test.c: (main):
              * glom/base_db.cc:
              * glom/document/document_glom.cc:
              * glom/mode_data/box_data.cc:
              * glom/mode_data/box_data.h:
              * glom/mode_data/box_data_details.cc:
              * glom/mode_data/box_data_list.cc:
              * glom/mode_data/box_data_list.h:
              * glom/mode_data/box_data_list_related.cc:
              * glom/mode_data/notebook_data.cc:
              * glom/mode_data/notebook_data.h:
              * glom/mode_design/fields/box_db_table_definition.cc:
              * glom/mode_design/fields/dialog_fielddefinition.cc:
              * glom/mode_design/users/dialog_groups_list.cc:
              * glom/navigation/box_tables.cc:
              * glom/python_embed/python_module/pygdavalue_conversions.c:
              (pygda_value_from_pyobject):
              * glom/utility_widgets/adddel/adddel.cc:
              * glom/utility_widgets/combo_textglade.cc:
              * glom/utility_widgets/db_adddel/db_adddel.cc:
              * glom/utility_widgets/db_adddel/db_adddel.h:
              * glom/utility_widgets/flowtablewithfields.cc: Change all
              instances of can not to cannot. Bug #300139 from Adam Weinberger.
              This may or maynot be necessary.
      2366f5ca
  18. 02 Aug, 2005 1 commit
    • Murray Cumming's avatar
      connect(): Reimplement with get_and_connect(). handle_error(): Reimplement · 1f54393d
      Murray Cumming authored
      2005-08-02  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/base_db.cc:
              * glom/base_db.h: connect(): Reimplement with
              get_and_connect().
              handle_error(): Reimplement with
              ConnectionPool::handle_error().
              * glom/connectionpool.cc:
              * glom/connectionpool.h: Added get_and_connect().
              Added handle_error().
              * glom/frame_glom.cc: Frame_Glom::create_database():
              Do not show the error dialog here because it is already shown
              by the calling function in application.cc.
              * glom/mode_data/box_data_details.cc:
              * glom/mode_data/box_data_list.cc:
              * glom/mode_design/fields/box_db_table_definition.cc:
              * glom/python_embed/python_module/py_glom_relatedrecord.cc:
              * glom/utility_widgets/db_adddel/glom_db_treemodel.cc:
              Call handle_error() to show a dialog when there is a
              database error.
      1f54393d
  19. 29 Jul, 2005 4 commits
    • Murray Cumming's avatar
      Updated NEWS · 82e081f4
      Murray Cumming authored
      82e081f4
    • Murray Cumming's avatar
      show_table_title(): Use pango markup to show a big title. · 07771cae
      Murray Cumming authored
      2005-07-29  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/frame_glom.cc: show_table_title():
              Use pango markup to show a big title.
              * glom/utility_widgets/imageglom.cc:
              on_menupopup_activate_select_file(): Give the filter a name.
      07771cae
    • Murray Cumming's avatar
      Added show_warning_no_records_found(), using the code from · bc272f6f
      Murray Cumming authored
      2005-07-29  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/base_db.cc:
              * glom/base_db.h: Added show_warning_no_records_found(),
              using the code from Frame_Glom::on_notebook_find_criteria(),
              so it can be reused.
              * glom/frame_glom.cc:
              * glom/mode_data/box_data.cc: on_Button_Find(): Warn the user
              if they have not entered any criteria.
              * glom/mode_find/box_data_details_find.cc:
              * glom/mode_find/box_data_details_find.h: Override
              on_flowtable_field_edited(), to stop it adding new records during
              finds.
              * glom/utility_widgets/dialog_choose_id.cc: on_box_find_criteria():
              show a warning if no records were found.
      bc272f6f
    • Murray Cumming's avatar
      Removed some debug output · 2f179824
      Murray Cumming authored
      2f179824
  20. 28 Jul, 2005 2 commits
    • Murray Cumming's avatar
      Added get_primary_key_value_first() init_db_details(): Show the first · 9fb63f49
      Murray Cumming authored
      2005-07-28  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/mode_data/box_data_list.cc:
              * glom/mode_data/box_data_list.h: Added
              get_primary_key_value_first()
              * glom/mode_data/notebook_data.cc: init_db_details(): Show the first
              record from the list in the detauls.
              * glom/notebook_glom.cc: on_switch_page_handler():
              Do not call load_from_document() on the child page. It is
              superfluous.
              * glom/utility_widgets/db_adddel/glom_db_treemodel.cc:
              get_key_value(): Retrieve the data from the database
              if necessary. Previously we always called get_value()
              first.
      9fb63f49
    • Murray Cumming's avatar
      Added sql_find(), like sql(), but with wildcards. Added a dialog for · b7b204fd
      Murray Cumming authored
      2005-07-28  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/data_structure/field.cc:
              * glom/data_structure/field.h: Added sql_find(), like sql(),
              but with wildcards.
              * glom/glom.glade: Added a dialog for finding an ID.
              * glom/utility_widgets/Makefile.am:
              * glom/utility_widgets/dialog_choose_id.cc:
              * glom/utility_widgets/dialog_choose_id.h: Added dialog.
              * glom/mode_data/box_data.cc: get_find_where_clause():
              Use sql_find() to do a substring search.
              * po/POTFILES.in: Added the new .cc file.
              * glom/mode_data/box_data_list.cc:
              * glom/mode_data/box_data_list.h: Added set_read_only()
              to prevent editing when the list is only for selection.
              Added set_open_button_title() which delegates to the DbAddDel.
              * glom/mode_find/box_data_details_find.cc:
              * glom/mode_find/box_data_details_find.h:
              * glom/mode_find/notebook_find.cc: Override init_db_details(),
              without a primary key parameter.
              * glom/utility_widgets/datawidget.cc:
              * glom/utility_widgets/datawidget.h: Added
              offer_related_record_id_find() and a Find button next to
              fields used in relationships. This opens a secondary dialog
              with the Find UI.
              * glom/utility_widgets/db_adddel/db_adddel.cc:
              * glom/utility_widgets/db_adddel/db_adddel.h:
              Added set_open_button_title() so we can use Select instead
              of Open in the Find ID dialog.
              * glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc:
              * glom/utility_widgets/db_adddel/db_adddel_withbuttons.h:
              Override set_allow_view_details() to show/hide the open
              button.
      b7b204fd
  21. 26 Jul, 2005 2 commits
  22. 25 Jul, 2005 2 commits
    • Murray Cumming's avatar
      Depend on latest libgdamm. · 5ab54a27
      Murray Cumming authored
      2005-07-25  Murray Cumming  <murrayc@murrayc.com>
      
              * configure.in: Depend on latest libgdamm.
              * glom/utility_widgets/imageglom.cc:
              * glom/data_structure/field.cc: Change for latest libgdamm
              API change.
              * glom/document/document_glom.cc:
              * glom/document/document_glom.h: Remove unused
              set_relationship_data_layout_groups().
              * glom/mode_data/box_data_details.cc: on_flowtable_layout_changed():
              Actually save the new layout in the document. For instance, really
              save portal layout changes.
      5ab54a27
    • Murray Cumming's avatar
      signal_clicked(): Add path parameter, so we know what row was clicked. · fee8651f
      Murray Cumming authored
      2005-07-25  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/utility_widgets/db_adddel/cellrenderer_button.cc:
              * glom/utility_widgets/db_adddel/cellrenderer_button.h:
              signal_clicked(): Add path parameter, so we know what row
              was clicked.
              * glom/utility_widgets/db_adddel/db_adddel.cc:
              * glom/utility_widgets/db_adddel/db_adddel.h:
              Open the clicked row, not just the selected row.
              * glom/document/document_glom.cc:
              * glom/document/document_glom.h:
              * glom/mode_data/box_data_details.cc:
              * glom/mode_data/box_data_details.h:
              * glom/utility_widgets/datawidget.cc:
              * glom/utility_widgets/datawidget.h:
              * glom/utility_widgets/flowtablewithfields.cc:
              * glom/utility_widgets/flowtablewithfields.h: Add an Open
              button next to foreign keys, when a unique non-hidden record is
              indicated.
      fee8651f
  23. 22 Jul, 2005 3 commits
    • Murray Cumming's avatar
      Added virtual enable_buttons(), and moved some code there to stop the base · 5ed44d59
      Murray Cumming authored
      2005-07-22  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/mode_data/box_data_list.cc:
              * glom/mode_data/box_data_list.h:
              * glom/mode_data/box_data_list_related.cc:
              * glom/mode_data/box_data_list_related.h: Added virtual
              enable_buttons(), and moved some code there to stop the
              base class from making the Open button visible again for
              hidden-table related records.
              * glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc:
              * glom/utility_widgets/db_adddel/db_adddel_withbuttons.h:
              Added a show_all_vfunc() implementation in case a
              show_all() would show the hidden buttons.
      5ed44d59
    • Murray Cumming's avatar
      Constructor: Use the OPEN stock item instead of EDIT for viewing details. · 13de84c8
      Murray Cumming authored
      2005-07-22  Murray Cumming  <murrayc@murrayc.com>
      
              * glom/utility_widgets/db_adddel/cellrenderer_button.cc:
              Constructor: Use the OPEN stock item instead of EDIT for
              viewing details. Set mode to activatable so it actually
              responds to clicks.
      13de84c8
    • Murray Cumming's avatar
      Call DbAddDel::set_allow_view_details() so we get the open button and the · 0a4b1322
      Murray Cumming authored
      2005-07-22  Murray Cumming  <set EMAIL_ADDRESS environment variable>
      
              * glom/mode_data/box_data_list.cc: Call
              DbAddDel::set_allow_view_details() so we get the open button
              and the row open button.
              * glom/mode_data/box_data_list_related.cc:
              * glom/utility_widgets/db_adddel/db_adddel.cc:
              * glom/utility_widgets/db_adddel/db_adddel.h: Change
              *use_row_button to *allow_view_details.
              on_button_press_event_Popup(): Do not handle double-click on
              the row to open the details, because it is too easy to
              double-click when single-clicking to edit a cell.
              * glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc:
              setup_buttons(): Just hide the buttons when necessary,
              instead of adding and removing them.
      0a4b1322