1. 17 Oct, 2011 4 commits
    • Murray Cumming's avatar
      List View: Correct the default column widths. · 438137d9
      Murray Cumming authored
      * glom/utils_ui.[h|cc]: get_suitable_field_width_for_widget(): Added a
      for_treeview parameter and adjust the width accordingly.
      * glom/mode_data/db_adddel/db_adddel.cc: treeview_append_colum():
        Replace the overly-generic division-by-3 hack with the new parameter, and
        add some hard-coded extra space.
      438137d9
    • Murray Cumming's avatar
      Details: Avoid an outdent after group titles · 015d5c58
      Murray Cumming authored
      * glom/mode_data/flowtablewithfields.cc: add_layout_group(): Work around
        the GtkFrame bug #644199
      015d5c58
    • Murray Cumming's avatar
      1.19.13 · a296b181
      Murray Cumming authored
      a296b181
    • Murray Cumming's avatar
      Print Layout: Print Standard: Avoid page break spaces in the middle of pages. · 0cb0e911
      Murray Cumming authored
      	* glom/print_layout/canvas_print_layout.[h|cc]: fill_with_data():
        Add an avoid_page_margins parameter, so we can choose to always move items
        past the margins on to the next page while setting their data.
      	* glom/print_layout/print_layout_utils.[h|cc]: create_standard():
      	Add an avoid_page_margins parameter, so we can choose to do this later instead
      	when setting the data, to avoid big gaps that are later moved down into the
      	middle of the page.
      	do_print_layout(): Add an avoid_page_margins parameter here too, passing
      	it to fill_with_data().
      	* glom/mode_data/box_data_details.cc: print_layout(): Do not avoid page
      	margins when creating, because that will happen when expanding items.
      	Avoid the page margins when setting the details.
      	* glom/mode_design/print_layouts/window_print_layout_edit.cc:
      	on_menu_insert_create_standard(): Avoid page margins when creating.
      	However, those gaps could be left in the middle of the page when printing,
      	because some items may be expanded. We need a way to squash that space
      	later when it is unecessary.
      0cb0e911
  2. 16 Oct, 2011 1 commit
  3. 15 Oct, 2011 1 commit
  4. 14 Oct, 2011 9 commits
    • Murray Cumming's avatar
      Fix DTD to fix make check. · c9f08af2
      Murray Cumming authored
      * glom/glom_document.dtd: Mention several attributes that were added
      in the last year or so. The new examples/test/ uses them.
      c9f08af2
    • Murray Cumming's avatar
      Tests: Fix cast error when using dlerror(). · 6cf7305f
      Murray Cumming authored
      * tests/python/test_load_python_library.cc: Noticed on OpenBSD in
      bug #660495 (Jasper Lievisse Adriaanse).
      I don't know why this worked on Linux.
      6cf7305f
    • Murray Cumming's avatar
      Examples: Remove other uses of pygtk. · bac24ad2
      Murray Cumming authored
      	* examples/example_lesson_planner.glom: Remove an old button script
      	from the XML though it was not used anymore in the UI.
      	* examples/example_project_manager.glom: Contacts: Remove the Test
      	button. It is in the small business example already instead.
      bac24ad2
    • Murray Cumming's avatar
      Small Business Example: Port pygtk code to PyGObject+Introspection. · b1b0b422
      Murray Cumming authored
      	* examples/example_smallbusiness.glom: This fixes this crash, which
      	apparently happens when trying to use pygtk when pygobject-3 is
      	already loaded:
      	Warning: specified class size for type `PyGtkGenericCellRenderer' is
      	smaller than the parenttype's `GtkCellRenderer' class size
      
      	Bug #661766 (André Klapper)
      b1b0b422
    • Murray Cumming's avatar
      List: Actually show custom choices, instead of crashing. · 5daa674d
      Murray Cumming authored
      	* glom/mode_data/datawidget/cellcreation.cc: create_cell(): Call
      	set_choices_fixed() if appropriate.
      	* glom/mode_data/datawidget/cellrenderer_dblist.cc: on_editing_started():
      	Replace a g_assert with a warning to std::cerr, in case this happens
      	again, particularly now that we know when it can happen - if there is
      	no text-column set.
      	Bug #661764 (André Klapper)
      5daa674d
    • Murray Cumming's avatar
      Print Layout: Avoid grouping items at the tops of pages. · ec191a49
      Murray Cumming authored
      * glom/print_layout/print_layout_utils.[h|cc]: move_fully_to_page():
      Change this to needs_move_fully_to_page(), so we can decide later how
      much to move the items.
      * glom/print_layout/canvas_print_layout.[h|cc]: move_items_below_item():
      Rename to move_items_down(), not taking an item, and ignoring the x
      dimension, moving everything down.
      Remember the highest item that needs moving down more, because it
      is in a page margin, then move everything below it down by the same
      offset. Keep doing that until no items are in margins, gradually adding
      pages. This is a simple form of pagination, and not a particularly
      efficient one.
      ec191a49
    • Daniel Mustieles García's avatar
      Updated Spanish translation · d0cd013c
      Daniel Mustieles García authored
      d0cd013c
    • Murray Cumming's avatar
      Print Layout: Another expansion fixes. · 0bf04d68
      Murray Cumming authored
      	* glom/print_layout/print_layout_utils.[h|cc]: move_fully_to_page():
      	Move generic CanvasItemMovables instead of just CanvasLayoutItems.
      	* glom/print_layout/canvas_print_layout.cc: move_items_below_item():
      	Likewise.
      0bf04d68
    • Murray Cumming's avatar
      Print Layout: Increase page count correctly when expanding portals. · 7e1d1466
      Murray Cumming authored
      	* glom/print_layout/canvas_print_layout.cc: move_items_below_item():
      	Correct an off-by-one error in the calculation of the number of pages
      	needed.
      7e1d1466
  5. 13 Oct, 2011 17 commits
  6. 12 Oct, 2011 3 commits
    • Murray Cumming's avatar
      Replace Gtk::Table with Gtk::Grid in the source code. · ba84b0a5
      Murray Cumming authored
      * glom/mode_design/fields/dialog_fielddefinition.h: Use the table
      (from the .glade file) via Gtk::Widget*.
      * ui/developer/window_print_layout_edit.glade: Replace the GtkTable
      with a GtkGrid.
      * glom/mode_design/print_layouts/window_print_layout_edit.cc:
      Adapt.
      There are still GtkTables in the other .glade files, but this at least
      lets us build with gtkmm 3.3/3.4 even with --enable-warnings=fatal.
      ba84b0a5
    • Murray Cumming's avatar
      Print Layout: Avoid some code duplication. · 2773962f
      Murray Cumming authored
      * glom/print_layout/print_layout_utils.[h|cc]: moved get_page_height()
      from CanvasPrintLayout to here. And actually get the margins.
      * glom/print_layout/canvas_print_layout.cc: get_page_y_start_and_end():
      Use it here.
      get_page_height(): Forward to the PrintLayoutUtils versions, passing
      the extra parameters.
      2773962f
    • Murray Cumming's avatar
      Print Layout: Move items to next page when expanding portals. · 8ee56b20
      Murray Cumming authored
      * glom/print_layout/canvas_print_layout.[h|cc]: move_items_below_item():
      Use a new move_fully_to_page() method to make sure that items are never
      in the margins if that is possible, when expanding related records
      portals for real data.
      Also add extra pages when necessary.
      8ee56b20
  7. 11 Oct, 2011 5 commits
    • Murray Cumming's avatar
      Print Layout: Related Records: Move others down when expanding. · 7b269362
      Murray Cumming authored
      * glom/print_layout/canvas_layout_item.[h|cc]: Added
      move_items_below_item().
      * glom/print_layout/canvas_print_layout.[h|cc]: fill_with_data_portal():
      move other items lower when changing the size of the portal's table.
      7b269362
    • Murray Cumming's avatar
      Print Layout: Related Records: Expand according to min/max rows count. · 80944392
      Murray Cumming authored
      * glom/print_layout/canvas_layout_item.[h|cc]:
      Moved get_canvas_table_cell_child() here from CanvasPrintLayout.
      create_canvas_item_for_layout_item(): Move the table-child creation
      code into add_portal_rows_if_necessary().
      * glom/print_layout/canvas_print_layout.[h|cc]: fill_with_data_portal():
      Add rows, up to the maximum, according to the number of database rows.
      * glom/print_layout/print_layout_utils.cc: create_standard():
      Set a simple default height for one row, but set a min of 1 and a max
      of 100 so it will expand later.
      80944392
    • Murray Cumming's avatar
      Const correction · c994e34f
      Murray Cumming authored
      c994e34f
    • Murray Cumming's avatar
      Update the example files for the portal rows count change. · 3610baf5
      Murray Cumming authored
      	* examples/example_film_manager.glom:
      	* examples/example_music_collection.glom:
      	* examples/example_project_manager.glom:
      	* examples/example_smallbusiness.glom: Adapt to new document structure.
      3610baf5
    • Murray Cumming's avatar
      Related Records Portals: Change rows count to min and max counts. · bfa248e9
      Murray Cumming authored
      * glom/glom_document.dtd: Adapted.
      * glom/libglom/data_structure/layout/layoutitem_portal.[h|cc]:
      set_rows_count(): Return a min and max, and change it from double to
      gulong.
      * glom/libglom/document/document.cc: load_after(), save_before():
      Store it in the document. The old XML attribute was new in Glom 1.19
      anyway, so we can change it.
      
      * ui/developer/window_data_layout.glade: Add an extra SpinButton,
      adjust the labels, and add explanatory tooltips.
      * glom/mode_design/layout/dialog_layout_details.[h|cc]: Adapted.
      
      * glom/mode_data/db_adddel/db_adddel.[h|cc]: set_height_rows():
      Take the min and max.
      construct_specified_column(): Increase the size if appropriate when
      there are more database rows to show.
      * glom/mode_design/layout/dialog_layout_list_related.cc:
      * glom/print_layout/print_layout_utils.cc:
      * glom/libglom/db_utils.cc:
      * glom/mode_data/box_data_list_related.cc: Adapted.
      bfa248e9