1. 28 Oct, 2019 1 commit
  2. 30 Sep, 2016 1 commit
  3. 16 May, 2016 1 commit
  4. 18 Mar, 2016 1 commit
  5. 05 Feb, 2016 1 commit
  6. 04 Feb, 2016 1 commit
  7. 05 Jan, 2016 1 commit
  8. 27 Oct, 2015 1 commit
  9. 06 Jul, 2015 1 commit
  10. 30 Jun, 2015 1 commit
  11. 25 Sep, 2013 2 commits
  12. 12 Apr, 2012 1 commit
  13. 12 Mar, 2012 1 commit
  14. 08 Feb, 2012 1 commit
    • Murray Cumming's avatar
      Print Layout: Avoid sometimes over-scaled images. · 296a99cf
      Murray Cumming authored
      * glom/print_layout/canvas_layout_item.[h|cc]: Remove the constructor and
      create() that take a LayoutItem, because we should put the CanvasItem in a
      canvas (even indirectly) before creating the child item, to avoid this
      goocanvas bug: https://bugzilla.gnome.org/show_bug.cgi?id=657592#c16
      * glom/mode_design/print_layouts/window_print_layout_edit.[h|cc]:
      * glom/print_layout/canvas_print_layout.[h|cc]:
      Add and use create_canvas_layout_item_and_add() methods which put the new
      canvas item in the canvas before creating its child items based on the
      This fixes bug #668901 (alien)
  15. 29 Jan, 2012 1 commit
    • Murray Cumming's avatar
      TableInfo, Report, PrintLayout: Make member variables private. · 4a79c93e
      Murray Cumming authored
      * glom/libglom/data_structure/print_layout.[h|cc]:
      * glom/libglom/data_structure/report.[h|cc]:
      * glom/libglom/data_structure/tableinfo.[h|cc]: Hide the member
      variables behind getters and setters.
      * glom/application.cc:
      * glom/base_db.cc:
      * glom/libglom/db_utils.cc:
      * glom/libglom/document/document.cc:
      * glom/libglom/report_builder.cc:
      * glom/mode_design/print_layouts/window_print_layout_edit.cc:
      * glom/mode_design/report_layout/dialog_layout_report.cc:
      * glom/navigation/box_tables.cc:
      * glom/print_layout/canvas_print_layout.[h|cc]:
      * glom/print_layout/print_layout_utils.cc:
      * tests/test_document_load.cc: Adapt.
      This avoids java-libglom from generating getM_*() and setM_*() methods,
      as well as being generally correct.
  16. 17 Oct, 2011 1 commit
    • 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.
  17. 14 Oct, 2011 1 commit
    • 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.
  18. 13 Oct, 2011 1 commit
  19. 12 Oct, 2011 1 commit
    • 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.
  20. 11 Oct, 2011 3 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
      * 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.
    • 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.
    • Murray Cumming's avatar
      Const correction · c994e34f
      Murray Cumming authored
  21. 30 Sep, 2011 1 commit
    • Murray Cumming's avatar
      Print Layout: Allow multiple pages. · 76c73178
      Murray Cumming authored
      * glom/libglom/data_structure/print_layout.[h|cc]: Add get/set_page_count().
      * glom/libglom/document/document.cc: load_after(), save_before():
      Store the page count in the document.
      * glom/glom_document.dtd: Mention the new attribute.
      * glom/print_layout/canvas_print_layout.[h|cc]: Add get/set_page_count()
      and get_page_bounds().
      update_page_bounds(): Move the margin creation into here, and create
      margins for all pages.
      * glom/utility_widgets/canvas/canvas_group_grid.[h|cc]:
        Added update_grid_for_new_size().
      * glom/mode_design/print_layouts/window_print_layout_edit.[h|cc]: Add
      Add Page and Delete Page menu items, though we need to rearrange the menus
      more sensibly.
      * glom/printoperation_printlayout.cc: on_begin_print(), on_paginate():
        Set the number of pages.
        on_draw(): Render only the specified page's bounds from the GooCanvas.
        However, this is not working for any page but the first one.
        Some cairo transformation might be necessary.
  22. 21 Sep, 2011 1 commit
    • Murray Cumming's avatar
      Print Layout: Show contents of System Preferences in Fields. · 818490f0
      Murray Cumming authored
      * glom/base_db.cc: get_field_value_in_database(): Only complain about
      a missing key if the relationship needs one.
      * glom/libglom/document/document.cc:
      * glom/print_layout/canvas_layout_item.cc: set_db_data(): Show an
      empty image if there is no pixbuf.
      * glom/print_layout/canvas_print_layout.[h|cc]: Added
      fill_with_data_system_preferences() to show details from the system
      preferences, if appropriate. This is possible because we do not need a
      specific record to show values from the one record in System Preferences.
      add_canvas_layout_item(), on_context_menu_edit(): Call it.
  23. 29 Aug, 2011 1 commit
    • Murray Cumming's avatar
      Print Layout: Allow editing of line width and color. · 845b9dcd
      Murray Cumming authored
      * Makefile.am:
      * Makefile_glom.am:
      * ui/developer/dialog_line.glade:
      * glom/mode_design/layout/layout_item_dialogs/dialog_line.[h|cc]:
      Added a new dialog for editing line details, such as width and color.
      * tests/test_glade_derived_instantiation.cc: Test new new dialog.
      * glom/libglom/data_structure/layout/layoutitem_line.[h|cc]: Added
      get/set_line_width() and get/set_line_color().
      * glom/libglom/document/document.cc: load_after(), save_before(): Store
      these new details in the document.
      * glom/print_layout/canvas_layout_item.cc:
      * glom/print_layout/canvas_print_layout.[h|cc]: Allow editing by showing
      this new dialog.
  24. 26 Aug, 2011 1 commit
  25. 08 Aug, 2011 3 commits
    • Murray Cumming's avatar
      Print Layout: Deselect all items when clicking on the background. · 07025fe5
      Murray Cumming authored
      * glom/print_layout/canvas_print_layout.[h|cc]:
      set_page_setup(): Handle button-press-event signals on the background,
      deselecting any selected items.
      create_margin_line(): Do the same if the user manages to click on a
      line instead.
    • Murray Cumming's avatar
      Print Layout: Add Select All and Unselect All menu items. · 4f9c8d2f
      Murray Cumming authored
      * glom/print_layout/canvas_print_layout.[h|cc]: Added select_all(bool)
      * glom/mode_design/print_layouts/window_print_layout_edit.[h|cc]:
      init_menus(): Edit menu: Add Select All and Unselect All menu items,
      which call that method.
    • Murray Cumming's avatar
      Print Layout: Add a Show Outlines menu item · 09e8ee35
      Murray Cumming authored
      * glom/mode_design/print_layouts/window_print_layout_edit.[h|cc]
      View menu: Add Show Outlines, with a handler, to show the extents of
      the items.
      * glom/utility_widgets/canvas/canvas_group_resizable.[h|cc]:
      Added a new group with lines, in a thinner fainter gray, to indicate
      the outline. Added set_outline_visible() to show it.
      Move it whenever the child item moves, like the manipulator lines.
      * glom/print_layout/canvas_print_layout.[h|cc]:
      Added set_outlines_visibility() to call this on all items.
      Store the value as a bool so we can use it again in
  26. 07 Aug, 2011 3 commits
    • Murray Cumming's avatar
      Canvas_PrintLayout: Fix typo to pass the item by reference. · a550faf3
      Murray Cumming authored
      * glom/print_layout/canvas_print_layout.[h|cc]:
      add_canvas_layout_item(): Add a missing & to the parameter.
    • Murray Cumming's avatar
      Print Layout: Implement cut/copy/paste/delete. · 54cc4d0b
      Murray Cumming authored
      * glom/mode_design/print_layouts/window_print_layout_edit.[h|cc]:
      Implement the edit menu, enabling/disabling the menu items based on
      whether something has been selected or previously copied.
      * glom/utility_widgets/canvas/canvas_editable.[h|cc]: Added
      get_selected_items() here, making it virtual. The override in
      Canvas_PrintLayout is the only real implementation so far.
      Added remove_item().
      remove_all_items(): Emit signal_selection_changed if something
      was selected.
      * glom/print_layout/canvas_print_layout.[h|cc]:
      Added remove_canvas_layout_item().
      Removed update_layout_position_from_canvas(), putting it in
      Canvas_LayoutItem instead.
      * glom/print_layout/canvas_layout_item.[h|cc]:
      Added update_layout_position_from_canvas().
    • Murray Cumming's avatar
      CanvasPrintLayout: Remove unused method overload. · 88906f2a
      Murray Cumming authored
      	* glom/print_layout/canvas_print_layout.[h|cc]: get_selected_items():
      	The const overload is not used so remove it.
  27. 05 Aug, 2011 1 commit
    • Murray Cumming's avatar
      Print Layout: Allow editing of positions and size numerically, · fed3abdb
      Murray Cumming authored
      	* ui/developer/window_print_layout_edit.glade: Add a row of SpinButtons
      	at the bottom to show the position and dimensins of the selected item,
      	also letting the user change them by changing the numbers.
      	* glom/utility_widgets/canvas/canvas_item_movable.[h|cc]:
      	Added signal_selected().
      	* glom/utility_widgets/canvas/canvas_editable.[h|cc]:
      	Added signal_selection_changed().
      	* glom/print_layout/canvas_print_layout.[h|cc]:
      	Added get_selected_items().
      	* glom/mode_design/print_layouts/window_print_layout_edit.[h|cc]:
      	Constructor: Get the SpinButton widgets from Gtk::Builder, and set their
      	values when an item is selected. Also change the item when the values in
      	the SpinButtons change.
  28. 16 Dec, 2010 1 commit
  29. 24 Sep, 2010 2 commits
  30. 06 Sep, 2010 1 commit
    • Murray Cumming's avatar
      Fix the build for the latest goocanvasmm and gtkmm API. · 3cc0d5fc
      Murray Cumming authored
      * glom/mode_design/relationships_overview/canvas_group_dbtable.cc:
      * glom/mode_design/relationships_overview/dialog_relationships_over
      * glom/print_layout/canvas_print_layout.[h|cc]:
      * glom/utility_widgets/canvas/canvas_text_movable.[h|cc]:
        Use Goocanvas::AnchorType instead of (removed) Gtk::AnchorType.
  31. 03 Sep, 2009 1 commit
    • Murray Cumming's avatar
      Move some non-layout print_layout code back out of mode_design · 740dd5f2
      Murray Cumming authored
      	* glom/mode_design/print_layouts/canvas_layout_item.[h|cc]:
      	* glom/mode_design/print_layouts/canvas_print_layout.[h|cc]:
      	Moved to glom/print_layout/, because they are used by client-only mode
      	* glom/Makefile_glom.am, *.[h|cc]: Adapted.
      	* po/POTFILES.in: Update for moved files.
  32. 03 Mar, 2009 1 commit
    • Murray Cumming's avatar
      Include all libglom headers via libglom/ instead of glom/libglom so it · d3fedd07
      Murray Cumming authored
      2009-03-03  Murray Cumming  <murrayc@murrayc.com>
      * *.[h|cc]: Include all libglom headers via libglom/ instead of 
      glom/libglom so it works from outside, with the path to the installed 
      headers, from pkg-config.
      * All Makefile.am files: Add -I@top_srcdir@/glom to AM_CPPFLAGS.
      The repetition is awful. We should avoid that somehow.
      svn path=/trunk/; revision=1950