2009-10-30 Murray Cumming List views and related records portals: Enough space for titles. * glom/utils_ui.[h|cc]: get_suitable_field_width_for_widget(): Optionally calculate enough space for the title too, for TreeView columns. * 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. 2009-10-30 Murray Cumming List views and related records portals: Avoid zero-width columns. * glom/utility_widgets/db_adddel/db_adddel.cc: treeview_append_column(): Except on maemo, don't try to auto-expand a non-rightmost column, because that does not seem to be possible with fixed-height-mode, which we use for performance. 2009-10-30 David King * configure.ac: * glom/main.cc: Initialize libossomm on Maemo, to register a DBus service. 2009-10-28 David King * configure.ac: * Makefile.am: * glom.desktop.in.in: * glom.service.in: Add DBus service file for Maemo 5, and install to the correct location as determined by the osso-af-settings pkg-config file. Adjust the installation location of the glom.desktop file on Maemo. 2009-10-28 Murray Cumming Do not mark an empty string for translation. * glom/dialog_connection.cc: set_confirm_existing_user_note(): Do not do _(""), fixing bug #599868 (André Klapper). 2009-10-27 Murray Cumming Trying to ignore unwanted column resize signals. * glom/utility_widgets/db_adddel/db_adddel.[h|cc]: Removed unused set_column_width(). construct_specified_columns_cellrenderer(): Added an InnerIgnore, though we already use one in construct_specified_columns(). on_treeview_column_resized(): Check if we should ignore signals. Do not cast an int size to a guint, because it could be -1. 2009-10-27 Murray Cumming Avoid runtime warnings about 0 size TreeViewColumn. * glom/utility_widgets/db_adddel/db_adddel.cc: construct_specified_columns(), treeview_append_column(): Avoid calling TreeViewColumn::set_fixed_width() with a 0 size, avoiding a runtime assertion. 2009-10-27 Murray Cumming Fix some warnings. * glom/dialog_existing_or_new.cc: get_service_info(): Replace a 0 with (void*)0 to avoid a warning after my change on 2009-10-13. * glom/libglom/data_structure/has_title_singular.cc(): operator==(): Actually use the src parameter. 2009-10-27 Murray Cumming * glom/utility_widgets/db_adddel/db_adddel.cc: treeview_append_column(): Don't try to put -1 in a guint for the column width. 2009-10-21 Armin Burgmeier * Makefile_libglom.am: Link against winsock on Windows. * glom/application.cc (constructor): ifdefed out the avahi callbacks setup on Windows. * glom/dialog_existing_or_new.cc (constructor): ifdefed out the code that expands the network item on Windows (because it doesn't exist there). * glom/libglom/connectionpool.h: * glom/libglom/connectionpool.cc: ifdefed out the avahi callback setup function, moved pgwin32_is_admin to main.cc. * glom/main.cc: Moved pgwin32_is_admin from connectionpool.cc. * glom/libglom/spawn_with_feedback.cc: Added include, required for the Windows build. * glom/mode_design/print_layouts/print_layout_toolbar_button.cc: * glom/utility_widgets/layouttoolbar.cc: * glom/utility_widgets/layouttoolbarbutton.cc: * glom/xsl_utils.cc: Fixed the construction to path files relative to the executable on Windows: Glib::build_filename does take only two arguments, not three. * win32/build-installer: * win32/glom.iss.in: Updated. 2009-10-21 Armin Burgmeier * macros/mm-python.m4: Fix the python library lookup on Windows: Avoid a python error if get_config_var('LIBS') is None and include $PREFIX/libs and $EXEC_PREFIX/libs in the search path because this is where the official Python installer puts the library in. 2009-10-19 David King * Makefile_libglom.am: Add missing backslash, fixing commit e38fcaab322d4774faae2ecb707cdf67f84dd6ea. 2009-10-19 Murray Cumming Maemo: Adapt for latest hildonmm changes. * glom/utility_widgets/comboentryglom.cc: * glom/utility_widgets/comboglom.cc: get/set_active() changed to set_selected() and we now have an iter-base get/set_selected() for the PickerButton so we don't need to get the TouchSelector. 2009-10-16 Murray Cumming Maemo: Fix the build for the latest hildonmm. * glom/navigation/maemo/pickerbutton_table.cc: * glom/utility_widgets/comboentryglom.cc: * glom/utility_widgets/comboglom.cc: Adapt to changed (simpler) TouchSelector API. 2009-10-16 Murray Cumming Maemo: Fix my previous commit. * glom/utility_widgets/datawidget.cc: set_child_size_by_field(): Move the ifdefs around so normal fields get sensible sizes again on Maemo. 2009-10-16 Murray Cumming Maemo: Make TextViews small to begin with. * glom/utility_widgets/datawidget.cc: set_child_size_by_field(): On Maemo, do not increase the height of the TextView, even if specified in the layout, because HildonTextViews expand automatically on Maemo when entering more text. 2009-10-16 Murray Cumming Maemo: When adding related records, show the foreign key value. * glom/mode_data/box_data_portal.cc: on_maemo_appmenubutton_add(): Actually show the field value that links the new related record to the parent record, though this is a bit hacky and will only work for autogenerated keys. 2009-10-16 Murray Cumming Maemo: Actually show new related record in the list. * glom/mode_data/box_data_portal.[h|cc]: on_maemo_appmenubutton_add(): * glom/mode_data/notebook_data.[h|cc]: Constructor: Update the window when the maemo details window is hidden, for instance to show the new related record in the portal. 2009-10-16 Murray Cumming * glom/libglom/document/document.cc: load_after(), save_before(): Avoid crashes when load/saving singular_titles. 2009-10-16 Murray Cumming Maemo: Allow Relationships to have singular titles too. Use them. * glom/libglom/data_structure/has_title_singular.[h|cc]: Added this new base class, to be inherited by any TranslatableItem that could also have a singular form. * glom/libglom/data_structure/table_info.[h|cc]: * glom/libglom/data_structure/relationship.[h|cc]: Derive from HasTitleSingular, instead of just having the methods in TableInfo. * glom/libglom/document/document.[h|cc]: Added get_table_title_singular() to match the existing get_table_title(). * glom/mode_data/box_data_portal.[h|cc]: Added get_title_singular() to match the existing get_title() and use it in the details window title and AppMenu Add Related button. * glom/mode_data/notebook_data.cc: Use the singular table title for the details window title. 2009-10-15 Murray Cumming Maemo: Show a new Details window when adding related records. * glom/mode_data/box_data_portal.[h|cc]: * glom/mode_data/box_data_calendar_related.[h|cc]: * glom/mode_data/box_data_list_related.[h|cc]: Remove the just-added do_add_record() virtual method. Instead add a Box_Data_Details and parent window to Box_Data_Portal, used to show a details window for a new related record in on_maemo_appmenubutton_add(). Move some code from Box_Data_List_Related::on_adddel_record_added() to Box_Data_Portal::make_record_related() to make this easier. 2009-10-15 Murray Cumming Developer: Tables: Add singular title. * glom/libglom/data_structure/tableinfo.[h|cc]: Add get/set_title_singular(), using a member TranslatableItem, to hold the singular form (such as Album instead of Albums) for use in the UI for users. * glom/libglom/document/document.cc: save_before(), load_after(): Load and save the singular table titles as a new node. * glom/glom_document.dtd: Mentin the new node, though I don't think we document translation nodes properly. * glom/navigation/box_tables.[h|cc]: In developer mode, show the column so the user can enter a singular title. 2009-10-15 Murray Cumming Maemo: Details: Show table title in window title. * glom/mode_data/notebook_data.cc: show_details(): On Maemo, mention the table title in the window title, though this again shows that we need to ask the designer for the singular form for the table's items. 2009-10-15 Murray Cumming Maemo: Show Add Related buttons when showing portals on details. * glom/application.[h|cc]: Removed unused on_menu_add_record(). * glom/mode_data/box_data_portal.[h|cc]: On Maemo, add a Hildon::Button to the application's AppMenu on realize, removing it on unrealize. Added a virtual do_add_record() that is called when the button is clicked. * glom/mode_data/box_data_calendar_related.[h|cc]: * glom/mode_data/box_data_list_related.[h|cc]: Added do_add_record() overrides, though they are empty so far. 2009-10-13 Murray Cumming Maemo: Add a Add Record to the App Menu and remove it from the List View. * glom/application.cc: init_menus(): Add an Add Record item to the AppMenu on Maemo. * glom/frame_glom.[h|cc]: Added on_menu_add_record() on Maemo, calling Notebook_Data::do_menu_file_add_record(). * glom/mode_data/box_data_details.[h|cc]: Added do_new_record(). * glom/mode_data/notebook_data.[h|cc]: Added do_menu_file_add_record() to call the Box_Data_Details::do_new_record(). * glom/utility_widgets/db_adddel/db_adddel.h: Made start_new_record() public and documented it. * glom/utility_widgets/db_adddel/db_adddel_withbuttons.[h|cc]: Remove the Add button on Maemo. 2009-10-13 Murray Cumming * *.cc: Replace use of NULL with 0, because this is C++. Replace use of != NULL with nothing. 2009-10-12 Murray Cumming * glom/utility_widgets/db_adddel/db_adddel.cc: * glom/utility_widgets/flowtable.h: * glom/utility_widgets/flowtable_dnd.cc: Correct non-maemo build problems after merging from the maemo5 branch. 2009-10-12 Murray Cumming Maemo: Details: Put scrollbar against the right edge, as per spec. * glom/window_boxholder.[h|cc]: On Maemo, use an Alignment with no padding at the right, instead of just a window border, to match the UI spec. 2009-10-12 Murray Cumming Maemo: Details: More correct padding, maybe. * glom/utility_widgets/flowtable.[h|cc]: Change set_padding() to set_column_padding() and set_row_padding(), allowing different padding between rows and between columns, as per Maemo's UI specifications. 2009-10-11 Murray Cumming Maemo: Use Hildon buttons for Open, Find and ... buttons. * glom/utility_widgets/datawidget.cc: Constructor: Use Hildon::Buttons. 2009-10-08 Murray Cumming * glom/utility_widgets/comboentryglom.cc: init(): On Maemo, remove the duplicate first column and do not expand the first column. 2009-10-08 Murray Cumming Maemo 5: List view: Subtly improve the separating lines. * glom/utility_widgets/db_adddel/db_adddel.cc: treeview_append_column(): On Maemo, use an "x-pad" of HILDON_MARGIN_DEFAULT for the cell renderers, because Mathias Hasselmann says that is required for Maemo 5. 2009-10-08 Murray Cumming Maemo: Use a PickerButton with TouchSelector for combo boxes on details views. * glom/utility_widgets/comboentryglom.[h|cc]: * glom/utility_widgets/comboglom.[h|cc]: On Maemo, derive from Hildon::PickerButton instead of Gtk::ComboBox*, with a member TouchSelector/TouchSelector. However, the ID field seems to be shown twice. 2009-10-08 Murray Cumming Maemo: Actually show new list views and related records portals. * glom/utility_widgets/db_adddel/db_adddel.cc: construct_specified_columns(): Use while(TouchSelector::remove_column()) to actually remove old view columns, so we actually see an effect when navigating to a new table, and so we don't see old data in related records tables. 2009-10-07 Murray Cumming Tests: Import: Fixed the no-exceptions build. * tests/import/utils.cc: Fixed the no-exceptions build. 2009-10-06 Daniel Elstner Support Automake silent rules * configure.ac: Call the AM_SILENT_RULES macro if it is defined. * Makefile.am (.rc.res): Prefix command with $(AM_V_GEN) to suppress the echoing of the command line if silent rules are enabled. * Makefile_libegg.am (eggmarshalers.h), (eggmarshalers.c): ditto.