mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.9 KiB
73 lines
1.9 KiB
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using System.ComponentModel.Composition; |
|
using System.Windows.Input; |
|
|
|
namespace ICSharpCode.ILSpy |
|
{ |
|
#region Toolbar |
|
public interface IToolbarCommandMetadata |
|
{ |
|
string ToolbarIcon { get; } |
|
string ToolTip { get; } |
|
string ToolbarCategory { get; } |
|
object Tag { get; } |
|
double ToolbarOrder { get; } |
|
} |
|
|
|
[MetadataAttribute] |
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] |
|
public class ExportToolbarCommandAttribute : ExportAttribute, IToolbarCommandMetadata |
|
{ |
|
public ExportToolbarCommandAttribute() |
|
: base("ToolbarCommand", typeof(ICommand)) |
|
{ |
|
} |
|
|
|
public string ToolTip { get; set; } |
|
public string ToolbarIcon { get; set; } |
|
public string ToolbarCategory { get; set; } |
|
public double ToolbarOrder { get; set; } |
|
public object Tag { get; set; } |
|
} |
|
#endregion |
|
|
|
#region Main Menu |
|
public interface IMainMenuCommandMetadata |
|
{ |
|
string MenuIcon { get; } |
|
string Header { get; } |
|
string Menu { get; } |
|
string MenuCategory { get; } |
|
string InputGestureText { get; } |
|
bool IsEnabled { get; } |
|
|
|
double MenuOrder { get; } |
|
} |
|
|
|
[MetadataAttribute] |
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] |
|
public class ExportMainMenuCommandAttribute : ExportAttribute, IMainMenuCommandMetadata |
|
{ |
|
bool isEnabled = true; |
|
|
|
public ExportMainMenuCommandAttribute() |
|
: base("MainMenuCommand", typeof(ICommand)) |
|
{ |
|
} |
|
|
|
public string MenuIcon { get; set; } |
|
public string Header { get; set; } |
|
public string Menu { get; set; } |
|
public string MenuCategory { get; set; } |
|
public string InputGestureText { get; set; } |
|
public bool IsEnabled { |
|
get { return isEnabled; } |
|
set { isEnabled = value; } |
|
} |
|
public double MenuOrder { get; set; } |
|
} |
|
#endregion |
|
}
|
|
|