/// <summary> /// Constructor. /// </summary> /// <param name="actionID">The logical action ID.</param> /// <param name="path">The action path.</param> /// <param name="clickHandler">The name of the method that will be invoked when the action is clicked.</param> public ClickActionAttribute(string actionID, string path, string clickHandler) :base(actionID) { _path = path; _clickHandler = clickHandler; _flags = ClickActionFlags.None; // default value, will override if named parameter is specified }
/// <summary> /// Constructor. /// </summary> /// <param name="actionID">The fully qualified action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that control the style of the action.</param> /// <param name="resourceResolver">A resource resolver that will be used to resolve text and image resources.</param> public ClickAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resourceResolver) : base(actionID, path, resourceResolver) { _flags = flags; _checked = false; }
/// <summary>. /// Constructor /// </summary> /// <param name="actionID">The fully qualified action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that control the style of the action.</param> /// <param name="resourceResolver">A resource resolver that will be used to resolve text and image resources.</param> public MenuAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resourceResolver) : base(actionID, path, flags, resourceResolver) { }
/// <summary> /// Creates the <see cref="MenuAction"/> represented by this attribute. /// </summary> /// <param name="actionID">The logical action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that specify the click behaviour of the action.</param> /// <param name="resolver">The object used to resolve the action path and icons.</param> protected override ClickAction CreateAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resolver) { return(new MenuAction(actionID, path, flags, resolver)); }
public DynamicMenuAction(string actionId, string pathSuffix, ActionPlaceholder actionPlaceholder, ClickActionFlags flags, IResourceResolver resourceResolver) : base(actionId, actionPlaceholder.Path, flags, resourceResolver) { _actionPlaceholder = actionPlaceholder; _pathSuffix = new Path(pathSuffix); }
public MenuAction CreateMenuAction(string actionId, string pathSuffix, ClickActionFlags flags, IResourceResolver resourceResolver) { return(new DynamicMenuAction(actionId, pathSuffix, this, flags, resourceResolver)); }
/// <summary> /// Creates the <see cref="ClickAction"/> represented by this attribute. /// </summary> /// <param name="actionID">The logical action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that specify the click behaviour of the action.</param> /// <param name="resolver">The object used to resolve the action path and icons.</param> protected abstract ClickAction CreateAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resolver);
/// <summary> /// Creates the <see cref="KeyboardAction"/> represented by this attribute. /// </summary> /// <param name="actionID">The logical action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that specify the click behaviour of the action.</param> /// <param name="resolver">The object used to resolve the action path and icons.</param> protected override ClickAction CreateAction(string actionID, ActionPath path, ClickActionFlags flags, Macro.Common.Utilities.IResourceResolver resolver) { return(new KeyboardAction(actionID, path, flags, resolver)); }
public MenuAction CreateMenuAction(string actionId, string pathSuffix, ClickActionFlags flags, IResourceResolver resourceResolver) { return new DynamicMenuAction(actionId, pathSuffix, this, flags, resourceResolver); }
/// <summary> /// Creates the <see cref="MenuAction"/> represented by this attribute. /// </summary> /// <param name="actionID">The logical action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that specify the click behaviour of the action.</param> /// <param name="resolver">The object used to resolve the action path and icons.</param> protected override ClickAction CreateAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resolver) { return new MenuAction(actionID, path, flags, resolver); }
/// <summary> /// Creates the <see cref="KeyboardAction"/> represented by this attribute. /// </summary> /// <param name="actionID">The logical action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that specify the click behaviour of the action.</param> /// <param name="resolver">The object used to resolve the action path and icons.</param> protected override ClickAction CreateAction(string actionID, ActionPath path, ClickActionFlags flags, ClearCanvas.Common.Utilities.IResourceResolver resolver) { return new KeyboardAction(actionID, path, flags, resolver); }
/// <summary> /// Constructor. /// </summary> /// <param name="actionId">The fully qualified action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that control the style of the action.</param> /// <param name="resolver">A resource resolver that will be used to resolve text and image resources.</param> public DropDownButtonAction(string actionId, ActionPath path, ClickActionFlags flags, IResourceResolver resolver) : base(actionId, path, flags, resolver) { }
/// <summary> /// Constructor. /// </summary> /// <param name="actionID">The fully qualified action ID.</param> /// <param name="path">The action path.</param> /// <param name="flags">Flags that control the style of the action.</param> /// <param name="resourceResolver">A resource resolver that will be used to resolve text and image resources.</param> public ButtonAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resourceResolver) : base(actionID, path, flags, resourceResolver) { }
public ContextMenuAction(string actionID, ActionPath path, ClickActionFlags flags, IResourceResolver resourceResolver) : base(actionID, path, flags, resourceResolver) { }