1. 13 Oct, 2011 3 commits
  2. 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
  3. 11 Oct, 2011 14 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
    • Murray Cumming's avatar
      Print Layout: Create Standard: Use the full page width. · f523f4d5
      Murray Cumming authored
      * glom/print_layout/print_layout_utils.cc: Instead of hard-coding the
      width. However, the field title widths are still hard-coded.
      f523f4d5
    • Murray Cumming's avatar
      Small fixes to Film Manager example. · 6b982fe5
      Murray Cumming authored
      * examples/example_film_manager.glom: Remove the unused (and hiddent)
      Teams table.
      Contacts: Remove the unnecessary groups around the related records
      portals in the notebook.
      6b982fe5
    • Murray Cumming's avatar
      Tiny improvement · 1a202dbd
      Murray Cumming authored
      1a202dbd
    • Murray Cumming's avatar
      CanvasPrintLayout: Wipe empty rows when filling with data. · 8b64ad8a
      Murray Cumming authored
      * glom/print_layout/canvas_print_layout.cc: fill_with_data_portal():
      Otherwise, the field names appear on the printout, left over from
      the default non-data preview.
      8b64ad8a
    • Murray Cumming's avatar
      TranslatableItem: Make get_title() virtual. · dafddac8
      Murray Cumming authored
      * glom/libglom/data_structure/translatable_item.h: Make get_title()
      virtual, like get_title_or_name() already is, so we can make get_title()
      useful generically via the base class.
      * glom/libglom/data_structure/layout/layoutitem_field.[h|cc]:
      * glom/libglom/data_structure/layout/layoutitem_portal.[h|cc]:
      * glom/libglom/data_structure/layout/report_parts/layoutitem_fields
      ummary.[h|cc]: Add get_title() overrides.
      * glom/mode_data/box_data_calendar_related.cc:
      * glom/mode_data/box_data_list_related.cc:
      * glom/print_layout/print_layout_utils.cc: Use get_title() instead of
      get_title_or_name(), to avoid showing names of intentionally title-less
      groups and notebooks.
      dafddac8
    • Murray Cumming's avatar
      LayoutItem_Portal: Make get_title_or_name() useful. · 55f7572e
      Murray Cumming authored
      * glom/libglom/data_structure/layout/layoutitem_portal.[h|cc]:
      Add an override for get_title_or_nam(), so that callers do not need to
      special-case portals compared to other groups.
      * glom/mode_data/box_data_calendar_related.cc:
      * glom/mode_data/box_data_list_related.cc:
      * glom/mode_data/box_data_portal.cc:
      * glom/mode_data/flowtablewithfields.cc:
      * glom/print_layout/print_layout_utils.cc: Use get_title_or_name()
      instead of more complicated code.
      55f7572e
    • Murray Cumming's avatar
      Print Layout: Standard: Handle related records portals too. · df217f54
      Murray Cumming authored
      * glom/print_layout/print_layout_utils.cc: create_standard():
      If the group is a portal, just add that portal item, setting appropriate
      sizes.
      df217f54
    • Murray Cumming's avatar
      Simplify OptionEntry code. · 2cad5c2a
      Murray Cumming authored
      * glom/glom_create_from_example.cc:
      * glom/main.cc: Reuse one OptionEntry instance.
      2cad5c2a
    • Murray Cumming's avatar
      Fix typo · 66dd56e1
      Murray Cumming authored
      66dd56e1
  4. 10 Oct, 2011 14 commits
  5. 09 Oct, 2011 3 commits
  6. 08 Oct, 2011 1 commit
  7. 07 Oct, 2011 1 commit
    • Murray Cumming's avatar
      Fields: Adapt choices fields when changing field names. · 613aacad
      Murray Cumming authored
      * glom/libglom/data_structure/layout/fieldformatting.[h|cc]:
      Added change_field_item_name().
      * glom/libglom/data_structure/layout/layoutgroup.cc: change_field_item_name():
      Change the formatting too, by calling the new method.
      * glom/libglom/document/document.cc: change_field_name(): Change the default
      formatting of fields too.
      Bug #661075
      613aacad
  8. 06 Oct, 2011 1 commit