/// <summary>
		/// Creates a new designer attribute for handling a float value.
		/// </summary>
		/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
		/// <param name="description">The description shown in the property editor for the property.</param>
		/// <param name="category">The category shown in the property editor for the property.</param>
		/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
		/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
		/// <param name="flags">Defines the designer flags stored for the property.</param>
		/// <param name="min">The minimum value of the property.</param>
		/// <param name="max">The maximum value of the property.</param>
		/// <param name="steps">The minimum value added or substracted when changing the property's value.</param>
		/// <param name="units">The units the value is represented in.</param>
		public DesignerFlexibleInteger(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, int min, int max, int steps, string units) : base(displayName, description, category, displayMode, displayOrder, flags)
		{
			_min= min;
			_max= max;
			_steps= steps;
			_units= units;
		}
Beispiel #2
0
 /// <summary>
 /// Creates a new designer attribute for handling an integer value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="linkedToProperty">The restrictions of this property are defined by another property.</param>
 /// <param name="min">The minimum value of the property.</param>
 /// <param name="max">The maximum value of the property.</param>
 /// <param name="steps">The minimum value added or substracted when changing the property's value.</param>
 /// <param name="units">The units the value is represented in.</param>
 public DesignerInteger(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, string linkedToProperty, int min, int max, int steps, string units)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerNumberEditor), linkedToProperty)
 {
     _min = min;
     _max = max;
     _steps = steps;
     _units = units;
 }
Beispiel #3
0
 public DesignerInteger(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerNumberEditor), null)
 {
     _min = int.MinValue;
     _max = int.MaxValue;
     _steps = 1;
     _units = null;
 }
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerPropertyEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, AllowStyles styles, string dependedProperty, string dependingProperty, ValueTypes filterType = ValueTypes.All, double min = double.MinValue, double max = double.MaxValue)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerPropertyEnumEditor), null, filterType)
 {
     _styles = styles;
     _dependedProperty = dependedProperty;
     _dependingProperty = dependingProperty;
     _minValue = min;
     _maxValue = max;
 }
 /// <summary>
 /// Creates a new designer attribute.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="editorTypes">The type of the editor used in the property grid.</param>
 protected DesignerProperty(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, EditorType[] editorTypes)
 {
     _displayName  = displayName;
     _description  = description;
     _category     = category;
     _displayMode  = displayMode;
     _displayOrder = displayOrder;
     _flags        = flags;
     _editorTypes  = editorTypes;
 }
Beispiel #6
0
 /// <summary>
 /// Creates a new designer attribute.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="editorType">The type of the editor used in the property grid.</param>
 /// <param name="linkedToProperty">The restrictions of this property are defined by another property.</param>
 protected DesignerProperty(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, Type editorType, string linkedToProperty)
 {
     _displayName      = displayName;
     _description      = description;
     _category         = category;
     _displayMode      = displayMode;
     _displayOrder     = displayOrder;
     _flags            = flags;
     _editorType       = editorType;
     _linkedToProperty = linkedToProperty;
 }
Beispiel #7
0
 /// <summary>
 /// Creates a new designer attribute.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="editorType">The type of the editor used in the property grid.</param>
 /// <param name="linkedToProperty">The restrictions of this property are defined by another property.</param>
 protected DesignerProperty(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, Type editorType, string linkedToProperty, ValueTypes filterType = ValueTypes.All)
 {
     _displayName      = displayName;
     _description      = description;
     _category         = category;
     _displayMode      = displayMode;
     _displayOrder     = displayOrder;
     _flags            = flags;
     _editorType       = editorType;
     _linkedToProperty = linkedToProperty;
     _valueType        = filterType;
     _filterType       = Plugin.GetTypeFromValue(filterType);
 }
Beispiel #8
0
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerArrayStruct(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags)
     : base(displayName, description, category, displayMode, displayOrder, flags)
 {
 }
 /// <summary>
 /// Creates a new designer attribute for handling a float value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="min">The minimum value of the property.</param>
 /// <param name="max">The maximum value of the property.</param>
 /// <param name="steps">The minimum value added or substracted when changing the property's value.</param>
 /// <param name="precision">The number of decimal places shown.</param>
 /// <param name="units">The units the value is represented in.</param>
 public DesignerFlexibleFloat(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, float min, float max, float steps, int precision, string units) : base(displayName, description, category, displayMode, displayOrder, flags)
 {
     _min       = min;
     _max       = max;
     _steps     = steps;
     _precision = precision;
     _units     = units;
 }
Beispiel #10
0
 /// <summary>
 /// Creates a new designer attribute for handling a property of the an event/override is attached to.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="supportedTypes">The enum values which will be excluded from the values shown in the designer.</param>
 public DesignerNodeProperty(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, Type[] supportedTypes)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerNodePropertyEditor), null)
 {
     _supportedTypes = supportedTypes;
 }
 /// <summary>
 /// Creates a new designer attribute for handling a property of the an event/override is attached to.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="supportedTypes">The enum values which will be excluded from the values shown in the designer.</param>
 public DesignerNodeProperty(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, Type[] supportedTypes)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerNodePropertyEditor), null) {
     _supportedTypes = supportedTypes;
 }
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerRightValueEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, AllowStyles styles, MethodType methodType, string dependedProperty, string dependingProperty, ValueTypes filterType = ValueTypes.All)
     : base(displayName, description, category, displayMode, displayOrder, flags, styles, dependedProperty, dependingProperty, filterType)
 {
     _methodType = methodType;
 }
		/// <summary>
		/// Creates a new designer attribute for handling a float value.
		/// </summary>
		/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
		/// <param name="description">The description shown in the property editor for the property.</param>
		/// <param name="category">The category shown in the property editor for the property.</param>
		/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
		/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
		/// <param name="flags">Defines the designer flags stored for the property.</param>
		/// <param name="exclude">The enum values which will be excluded from the values shown in the designer.</param>
		/// <param name="enumType">The type of the enum we want to use here.</param>
		public DesignerFlexibleEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, object[] exclude, Type enumType) : base(displayName, description, category, displayMode, displayOrder, flags)
		{
			_excludedElements= exclude;
			_enumType= enumType;
		}
Beispiel #14
0
 public DesignerInteger(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerNumberEditor), null)
 {
     _min   = int.MinValue;
     _max   = int.MaxValue;
     _steps = 1;
     _units = null;
 }
 /// <summary>
 /// Creates a new designer attribute for handling a float value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerFlexibleBoolean(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags) : base(displayName, description, category, displayMode, displayOrder, flags)
 {
 }
		/// <summary>
		/// Creates a new designer attribute for handling a string value.
		/// </summary>
		/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
		/// <param name="description">The description shown in the property editor for the property.</param>
		/// <param name="category">The category shown in the property editor for the property.</param>
		/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
		/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
		/// <param name="flags">Defines the designer flags stored for the property.</param>
		protected DesignerFlexible(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags) : base(displayName, description, category, displayMode, displayOrder, flags, null)
		{
		}
Beispiel #17
0
 /// <summary>
 /// Creates a new designer attribute for handling an enumeration value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="exclude">The enum values which will be excluded from the values shown in the designer.</param>
 public DesignerEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, string excludeTag)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerEnumEditor), null)
 {
     excludeTag_ = excludeTag;
 }
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerMethodEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, MethodType methodType, ValueTypes methodReturnType = ValueTypes.All, string linkedToProperty = "")
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerMethodComboEnumEditor), linkedToProperty) {
     _methodType = methodType;
     _methodReturnType = methodReturnType;
 }
 /// <summary>
 /// Creates a new designer attribute for handling a float value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="min">The minimum value of the property.</param>
 /// <param name="max">The maximum value of the property.</param>
 /// <param name="steps">The minimum value added or substracted when changing the property's value.</param>
 /// <param name="units">The units the value is represented in.</param>
 public DesignerFlexibleInteger(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, int min, int max, int steps, string units) : base(displayName, description, category, displayMode, displayOrder, flags)
 {
     _min   = min;
     _max   = max;
     _steps = steps;
     _units = units;
 }
		/// <summary>
		/// Creates a new designer attribute.
		/// </summary>
		/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
		/// <param name="description">The description shown in the property editor for the property.</param>
		/// <param name="category">The category shown in the property editor for the property.</param>
		/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
		/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
		/// <param name="flags">Defines the designer flags stored for the property.</param>
		/// <param name="editorTypes">The type of the editor used in the property grid.</param>
		protected DesignerProperty(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, EditorType[] editorTypes)
		{
			_displayName= displayName;
			_description= description;
			_category= category;
			_displayMode= displayMode;
			_displayOrder= displayOrder;
			_flags= flags;
			_editorTypes= editorTypes;
		}
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerString(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags) : base(displayName, description, category, displayMode, displayOrder, flags, new EditorType[] { new EditorType("EditorValue", typeof(DesignerStringEditor)) })
 {
 }
 /// <summary>
 /// Creates a new designer attribute for handling a float value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="min">The minimum value of the property.</param>
 /// <param name="max">The maximum value of the property.</param>
 /// <param name="steps">The minimum value added or substracted when changing the property's value.</param>
 /// <param name="precision">The number of decimal places shown.</param>
 /// <param name="units">The units the value is represented in.</param>
 public DesignerFloat(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, float min, float max, float steps, int precision, string units) : base(displayName, description, category, displayMode, displayOrder, flags, new EditorType[] { new EditorType("EditorValue", typeof(DesignerNumberEditor)) })
 {
     _min       = min;
     _max       = max;
     _steps     = steps;
     _precision = precision;
     _units     = units;
 }
Beispiel #23
0
 /// <summary>
 /// Creates a new designer attribute.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="editorType">The type of the editor used in the property grid.</param>
 /// <param name="linkedToProperty">The restrictions of this property are defined by another property.</param>
 protected DesignerProperty(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, Type editorType, string linkedToProperty, ValueTypes filterType = ValueTypes.All)
 {
     _displayName = displayName;
     _description = description;
     _category = category;
     _displayMode = displayMode;
     _displayOrder = displayOrder;
     _flags = flags;
     _editorType = editorType;
     _linkedToProperty = linkedToProperty;
     _valueType = filterType;
     _filterType = Plugin.GetTypeFromValue(filterType);
 }
Beispiel #24
0
		/// <summary>
		/// Creates a new designer attribute for handling a float value.
		/// </summary>
		/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
		/// <param name="description">The description shown in the property editor for the property.</param>
		/// <param name="category">The category shown in the property editor for the property.</param>
		/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
		/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
		/// <param name="flags">Defines the designer flags stored for the property.</param>
		/// <param name="min">The minimum value of the property.</param>
		/// <param name="max">The maximum value of the property.</param>
		/// <param name="steps">The minimum value added or substracted when changing the property's value.</param>
		/// <param name="precision">The number of decimal places shown.</param>
		/// <param name="units">The units the value is represented in.</param>
		public DesignerFloat(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, float min, float max, float steps, int precision, string units) : base(displayName, description, category, displayMode, displayOrder, flags, new EditorType[] { new EditorType("EditorValue", typeof(DesignerNumberEditor)) })
		{
			_min= min;
			_max= max;
			_steps= steps;
			_precision= precision;
			_units= units;
		}
Beispiel #25
0
 /// <summary>
 /// Returns if the property has given flags.
 /// </summary>
 /// <param name="flags">The flags we want to check.</param>
 /// <returns>Returns true when all given flags were found.</returns>
 public bool HasFlags(DesignerFlags flags)
 {
     return (_flags & flags) == flags;
 }
Beispiel #26
0
 /// <summary>
 /// Returns if the property has given flags.
 /// </summary>
 /// <param name="flags">The flags we want to check.</param>
 /// <returns>Returns true when all given flags were found.</returns>
 public bool HasFlags(DesignerFlags flags)
 {
     return((_flags & flags) == flags);
 }
Beispiel #27
0
 public DesignerFloat(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerNumberEditor), null) {
     const float maxValue = 1000000000000;
     _min = -maxValue;
     _max = maxValue;
     _steps = 0.01f;
     _precision = 2;
     _units = null;
 }
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerArrayBoolean(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags)
     : base(displayName, description, category, displayMode, displayOrder, flags) {
 }
		/// <summary>
		/// Creates a new designer attribute for handling a float value.
		/// </summary>
		/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
		/// <param name="description">The description shown in the property editor for the property.</param>
		/// <param name="category">The category shown in the property editor for the property.</param>
		/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
		/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
		/// <param name="flags">Defines the designer flags stored for the property.</param>
		/// <param name="min">The minimum value of the property.</param>
		/// <param name="max">The maximum value of the property.</param>
		/// <param name="steps">The minimum value added or substracted when changing the property's value.</param>
		/// <param name="precision">The number of decimal places shown.</param>
		/// <param name="units">The units the value is represented in.</param>
		public DesignerFlexibleFloat(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, float min, float max, float steps, int precision, string units) : base(displayName, description, category, displayMode, displayOrder, flags)
		{
			_min= min;
			_max= max;
			_steps= steps;
			_precision= precision;
			_units= units;
		}
Beispiel #30
0
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerArray(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerCompositeEditor), null) {
 }
Beispiel #31
0
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 protected DesignerFlexible(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags) : base(displayName, description, category, displayMode, displayOrder, flags, null)
 {
 }
Beispiel #32
0
		/// <summary>
		/// Creates a new designer attribute for handling an enumeration value.
		/// </summary>
		/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
		/// <param name="description">The description shown in the property editor for the property.</param>
		/// <param name="category">The category shown in the property editor for the property.</param>
		/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
		/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
		/// <param name="flags">Defines the designer flags stored for the property.</param>
		/// <param name="exclude">The enum values which will be excluded from the values shown in the designer.</param>
		public DesignerEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, object[] exclude) : base(displayName, description, category, displayMode, displayOrder, flags, new EditorType[] { new EditorType("EditorValue", typeof(DesignerEnumEditor)) })
		{
			_excludedElements= exclude;
		}
Beispiel #33
0
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerPropertyEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, AllowStyles styles, string dependedProperty, string dependingProperty, ValueTypes filterType = ValueTypes.All, double min = double.MinValue, double max = double.MaxValue)
     : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerPropertyEnumEditor), null, filterType)
 {
     _styles            = styles;
     _dependedProperty  = dependedProperty;
     _dependingProperty = dependingProperty;
     _minValue          = min;
     _maxValue          = max;
 }
 /// <summary>
 /// Creates a new designer attribute for handling a string value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 public DesignerRightValueEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, AllowStyles styles, MethodType methodType, string dependedProperty, string dependingProperty, ValueTypes filterType = ValueTypes.All)
     : base(displayName, description, category, displayMode, displayOrder, flags, styles, dependedProperty, dependingProperty, filterType)
 {
     _methodType = methodType;
 }
 /// <summary>
 /// Creates a new designer attribute for handling an enumeration value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="exclude">The enum values which will be excluded from the values shown in the designer.</param>
 public DesignerEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, object[] exclude) : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerEnumEditor), null)
 {
     _excludedElements = exclude;
 }
Beispiel #36
0
 /// <summary>
 /// Creates a new designer attribute for handling a float value.
 /// </summary>
 /// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
 /// <param name="description">The description shown in the property editor for the property.</param>
 /// <param name="category">The category shown in the property editor for the property.</param>
 /// <param name="displayMode">Defines how the property is visualised in the editor.</param>
 /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
 /// <param name="flags">Defines the designer flags stored for the property.</param>
 /// <param name="exclude">The enum values which will be excluded from the values shown in the designer.</param>
 /// <param name="enumType">The type of the enum we want to use here.</param>
 public DesignerFlexibleEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, object[] exclude, Type enumType) : base(displayName, description, category, displayMode, displayOrder, flags)
 {
     _excludedElements = exclude;
     _enumType         = enumType;
 }
Beispiel #37
0
		/// <summary>
		/// Creates a new designer attribute for handling a string value.
		/// </summary>
		/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
		/// <param name="description">The description shown in the property editor for the property.</param>
		/// <param name="category">The category shown in the property editor for the property.</param>
		/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
		/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
		/// <param name="flags">Defines the designer flags stored for the property.</param>
		public DesignerString(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags) : base(displayName, description, category, displayMode, displayOrder, flags, new EditorType[] { new EditorType("EditorValue", typeof(DesignerStringEditor)) })
		{
		}