Permalink
Commits on Mar 31, 2017
  1. Merge pull request #662 from sevoku/add-column-cell-expansion

    Add ListViewColumn and CellView expansion
    garuma committed on GitHub Mar 31, 2017
Commits on Feb 21, 2017
  1. Merge pull request #647 from sevoku/optimize-mac-scrollview

    Optimize XamMac ScrollView
    garuma committed on GitHub Feb 21, 2017
Commits on Feb 16, 2017
  1. Merge pull request #639 from sevoku/mac-cross-toolkit-popovers

    Optimize Popover impl. + support Gtk based reference widgets
    garuma committed on GitHub Feb 16, 2017
Commits on Dec 16, 2016
  1. [Gtk] Remove double subscription to SelectionChanged event.

    The ListBox backend was adding its own handler to the underlying widget selection changed event using the base TableView sink. The issue is that the parent TableView does the same thing which results in the client code handler for selection changed to be called twice in a row for each single modification.
    garuma committed Dec 16, 2016
Commits on Nov 15, 2016
  1. [WPF] Display text-only version of markup in TextCellView

    This is a stopgap commit to somewhat render formatted text setup
    via the TextCellView's MarkupField property so that something is
    at least shown.
    garuma committed Nov 15, 2016
Commits on Sep 13, 2016
  1. [Xwt.Gtk] Add initial support for WPF embedding using MonoDevelop code.

    This commit reuse the code developed in MonoDevelop[0] and adapt it for
    xwt (for instance removing `IdeApp` references).
    
    It works by embedding the WPF content contained in its own window handle
    into our main Gtk.Window instance. It reserve space for it via the dummy
    Gtk+ widget implementation so that it can participate into the layout and
    forward focus events.
    
    [0] https://github.com/mono/monodevelop/tree/master/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Windows
    garuma committed Sep 13, 2016
Commits on Aug 29, 2016
  1. [Mac] Make sure ListBox width calculations use properly rounded values.

    With long text cells, the result of the foreach calculation would have a width with decimal places. If not properly rounded some of the text could in some case not renderer properly (cut) because of missing clip space.
    garuma committed Aug 29, 2016
Commits on Jun 21, 2016
Commits on May 23, 2016
  1. [WPF] Fix calculation for Meanline on WPF.

    We were mixing up point and device-independent unit in the equation, convert the former in the latter.
    garuma committed May 23, 2016
Commits on Feb 19, 2016
  1. [Wpf] Improve TooltipText implementation to work better with Gtk clas…

    …sic workflow.
    
    This patch does a couple of things:
    
    - Fix NRE when querying TooltipText when no tooltip was set
    - Use a real ToolTip instance in place of just setting a string.
    - Make sure to hide tooltip when the value is set to null while the tooltip is showing (as is often the case with custom widget based on Canvas that set TooltipText while in a MouseEnter/MouseMove event)
    
    This patch still doesn't solve some issue that works under toolkit. Notably, it still doesn't handle the fact that when the mouse is already on the widget and a tooltip is set in a mouse event for instance, the tooltip showing timer is not started until the mouse goes out and back in again. This seems to only appear once until the tooltip instance has been initialized.
    garuma committed Feb 19, 2016
Commits on Jan 14, 2016
  1. [WPF] Use VisualTreeHelper to check for a widget parent.

    Using the Parent property on a FrameworkElement only retrieves the logicial WPF parent of a widget which may not exists. That doesn't prevent the widget from being hosted in a visual hierarchy like on Visual Studio where its hosted in a special COM component.
    
    Thus we switch the code to use VisualTreeHelper which correctly take care of those cases and can return a non-null parent in that case.
    
    This commit also fixes a bunch of sizing issue on WPF when widgets are embedded in native toolkits because checks that relied on HasNativeParent would wrongly fail (like in the `NotifySizeChangeToParent` method).
    garuma committed Jan 14, 2016
Commits on Jan 13, 2016
  1. [Xwt] Add Meanline property to TextLayout.

    As a companion to the Baseline property, Meanline retrieves the distance
    between the top of the text layout and the mean line (usually equivalent
    to the baseline minus half of the x-height).
    
    This allow to vertically center text in a natural way.
    garuma committed Jan 13, 2016
Commits on Jan 6, 2016
  1. [Gtk] Correctly draw image cells aligned to their x/y ratio.

    Previously, the code would just draw at the top of the cell_area which is wrong if the image being drawn is smaller than said area.
    garuma committed Jan 6, 2016
Commits on Jul 30, 2015
  1. [Gtk] Disable BackSpace keybinding in Gtk.TreeView so that we can get…

    … key pressed event generated from it.
    
    On Mac, the backspace key (actually labeled "delete") can be used for delete situations. The issue with treeview is that this key is by default mapped to the "select-cursor-parent" event which prevent the normal key pressed/released machinery from happening.
    
    Since that same event is also bound to Ctrl+Backspace, we simply disable the binding for plain Backspace so that this key can be handled normally.
    garuma committed Jul 30, 2015
Commits on Jun 19, 2015
  1. [Xwt.WPF] Make sure natural size don't override size constraints

    When using a TextEntry for instance, setting a WidthRequest of 30 wouldn't
    work because, although the rest of the Xwt layout system do take it into
    account, the default natural width of 100 for a TextEntry is used for the
    last call to Measure on the WPF side which mean it will actually render as if
    its width was 100 causing a lot of drawing issues.
    garuma committed Jun 19, 2015
  2. [Xwt.WPF] Make sure the label of a composite button has the right For…

    …egroundColor
    
    If the ForegroundColor of the external button is changed by another mean,
    we want anything that depends on it also following that update.
    garuma committed Jun 19, 2015
Commits on Jun 11, 2015
  1. [Xwt.Wpf] Add missing stub

    garuma committed Jun 11, 2015
Commits on Jun 10, 2015
  1. [Xwt] Expand on cf3fe0f and let user also setup a custom autocomplete…

    … match function.
    
    Implementation included for Xwt.Gtk
    garuma committed Jun 10, 2015
Commits on Jun 2, 2015
Commits on May 14, 2015
  1. [Xwt] Add simple method to register autocompletion data on entry widg…

    …ets.
    
    Currently only implemented for the Gtk+ backend.
    garuma committed May 14, 2015
Commits on May 12, 2015
Commits on May 8, 2015
Commits on Apr 24, 2015
  1. [Xwt.Gtk] Improve Popover positioning to take into account window geo…

    …metry.
    
    If the popover would overflow out of the bounds of its parent window, we try to use a few techniques (translation + arrow direction flip) to put it back inside it.
    garuma committed Apr 24, 2015
Commits on Apr 22, 2015
  1. [Xwt] Add property to TextLayout to query its baseline

    This allow proper vertical centering of custom drawn text.
    garuma committed Apr 22, 2015
Commits on Apr 15, 2015
  1. [Gtk] Don't force backing EventBox to have a background.

    If using Canvas and having a non-square drawing. Enabling mouse events for instance forced the background of the eventbox to be shown which would result in white artifacts.
    
    Instead we only show the box as necessary the same way it's done in the eventbox wrapper path.
    
    Additionally, even if an event box has already been created, if the method is called again with its parameter set to true we propagate that information so that drawing can happen normally.
    garuma committed Apr 15, 2015
  2. [Gtk] Use a correct line width for popover stroke.

    We relied on the fact that on retina the .5 line width would expand to 1px with a softer intensity. Instead use a line width of 1 everywhere and a lighter tone to emulate this everywhere.
    garuma committed Apr 15, 2015
Commits on Mar 25, 2015
  1. [Xwt] Fix MenuButton constructor invocation

    The default constructor needs to be directly invoked from the overloads otherwise it won't execute.
    
    Not doing this means you will have a different visual result between doing `new MenuButton ("Label")` and `new MenuButton { Label = "Label" }`.
    garuma committed Mar 25, 2015
  2. [Gtk] Don't force popover content to be shown if some inner items whe…

    …re deliberately hidden
    garuma committed Mar 25, 2015
Commits on Mar 24, 2015
  1. [Gtk] Slightly better default look for popover.

    - Adjust the background color and opacity to fit more system
    - Draw a thinner border
    - Stroke and fill a single shape instead of doing the rectangle and arrow separately
    garuma committed Mar 24, 2015
Commits on Mar 12, 2015
  1. [Xwt] Add support for adding custom font files at runtime.

    To use a custom font, you first need to use RegisterFontFromFile method to temporarily add it to the native system catalog. You can then access it through FromName as if it was installed.
    garuma committed Mar 12, 2015
Commits on Mar 2, 2015
  1. Merge branch 'merge-xammac'

    garuma committed Mar 2, 2015