Changeset 2245


Ignore:
Timestamp:
Dec 22, 2010, 2:51:36 PM (11 years ago)
Author:
Matthäus Wander
Message:

further obsolete tagging, references #122

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPluginBase/Attributes/TaskPaneAttribute.cs

    r947 r2245  
    156156        /// <param name="controlValues">The control values used to display in ComboBox.</param>             
    157157        /// helpAnchor
    158         public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, params string[] controlValues)
     158        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, ControlType controlType, params string[] controlValues)
    159159        {
    160160            this.caption = caption;
     
    162162            this.groupName = groupName;
    163163            this.Order = order;             
    164             this.DisplayLevel = displayLevel;
     164//            this.DisplayLevel = displayLevel;
    165165            this.ControlType = controlType;           
    166166            this.ControlValues = controlValues;
     
    168168        }
    169169
     170        [Obsolete("DisplayLevel is no longer used, see #122")]
     171        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, params string[] controlValues)
     172            : this(caption, toolTip, groupName, order, changeableWhileExecuting, controlType, controlValues)
     173        {
     174        }
     175
     176
    170177        /// <summary>
    171178        /// Regex validation and ControlType.TextBox
    172179        /// </summary>
    173         public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, ValidationType validationType, string regularExpression)
    174         {
    175           this.caption = caption;
    176           this.toolTip = toolTip;
    177           this.groupName = groupName;
    178           this.Order = order;
    179           this.DisplayLevel = displayLevel;         
     180        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, ControlType controlType, ValidationType validationType, string regularExpression)
     181        {
     182          this.caption = caption;
     183          this.toolTip = toolTip;
     184          this.groupName = groupName;
     185          this.Order = order;
     186//          this.DisplayLevel = displayLevel;         
    180187          this.ControlType = controlType;         
    181188          this.ValidationType = validationType;
     
    183190          this.ChangeableWhileExecuting = changeableWhileExecuting;
    184191        }
     192
     193        [Obsolete("DisplayLevel is no longer used, see #122")]
     194        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, ValidationType validationType, string regularExpression)
     195            : this(caption, toolTip, groupName, order, changeableWhileExecuting, controlType, validationType, regularExpression)
     196        {
     197        }
    185198       
    186199        /// <summary>
    187200        /// NumericUpDown int.
    188201        /// </summary>
    189         public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, ValidationType validationType, int integerMinValue, int integerMaxValue)
    190         {
    191           this.caption = caption;
    192           this.toolTip = toolTip;
    193           this.groupName = groupName;
    194           this.Order = order;
    195           this.DisplayLevel = displayLevel;
     202        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, ControlType controlType, ValidationType validationType, int integerMinValue, int integerMaxValue)
     203        {
     204          this.caption = caption;
     205          this.toolTip = toolTip;
     206          this.groupName = groupName;
     207          this.Order = order;
     208//          this.DisplayLevel = displayLevel;
    196209          this.ControlType = controlType;
    197210          this.ValidationType = validationType;
     
    201214        }
    202215
     216        [Obsolete("DisplayLevel is no longer used, see #122")]
     217        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, ValidationType validationType, int integerMinValue, int integerMaxValue)
     218            : this(caption, toolTip, groupName, order, changeableWhileExecuting, controlType, validationType, integerMinValue, integerMaxValue)
     219        {
     220        }
     221
    203222        /// <summary>
    204223        /// NumericUpDown double.
    205224        /// </summary>
    206         public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, ValidationType validationType, double doubleMinValue, double doubleMaxValue)
    207         {
    208           this.caption = caption;
    209           this.toolTip = toolTip;
    210           this.groupName = groupName;
    211           this.Order = order;
    212           this.DisplayLevel = displayLevel;
     225        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, ControlType controlType, ValidationType validationType, double doubleMinValue, double doubleMaxValue)
     226        {
     227          this.caption = caption;
     228          this.toolTip = toolTip;
     229          this.groupName = groupName;
     230          this.Order = order;
     231//          this.DisplayLevel = displayLevel;
    213232          this.ControlType = controlType;
    214233          this.ValidationType = validationType;
     
    218237        }
    219238
     239        [Obsolete("DisplayLevel is no longer used, see #122")]
     240        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, ValidationType validationType, double doubleMinValue, double doubleMaxValue)
     241            : this(caption, toolTip, groupName, order, changeableWhileExecuting, controlType, validationType, doubleMinValue, doubleMaxValue)
     242        {
     243        }
     244
    220245        /// <summary>
    221246        /// Slider
    222247        /// </summary>
    223         public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, double doubleMinValue, double doubleMaxValue)
    224         {
    225           this.caption = caption;
    226           this.toolTip = toolTip;
    227           this.groupName = groupName;
    228           this.Order = order;
    229           this.DisplayLevel = displayLevel;
     248        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, ControlType controlType, double doubleMinValue, double doubleMaxValue)
     249        {
     250          this.caption = caption;
     251          this.toolTip = toolTip;
     252          this.groupName = groupName;
     253          this.Order = order;
     254//          this.DisplayLevel = displayLevel;
    230255          this.ControlType = controlType;         
    231256          this.DoubleMinValue = doubleMinValue;
    232257          this.DoubleMaxValue = doubleMaxValue;
    233258          this.ChangeableWhileExecuting = changeableWhileExecuting;
     259        }
     260
     261        [Obsolete("DisplayLevel is no longer used, see #122")]
     262        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType, double doubleMinValue, double doubleMaxValue)
     263            :this(caption, toolTip, groupName, order, changeableWhileExecuting, controlType, doubleMinValue, doubleMaxValue)
     264        {
    234265        }
    235266
     
    242273        /// <param name="displayLevel">The display level.</param>
    243274        /// <param name="controlType">Type of the control should be button in this construcor.</param>
     275        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, ControlType controlType)
     276        {
     277          this.caption = caption;
     278          this.toolTip = toolTip;
     279          this.groupName = groupName;
     280          this.Order = order;
     281//          this.DisplayLevel = displayLevel;
     282          this.ControlType = controlType;
     283          this.ChangeableWhileExecuting = changeableWhileExecuting;
     284        }
     285
     286        [Obsolete("DisplayLevel is no longer used, see #122")]
    244287        public TaskPaneAttribute(string caption, string toolTip, string groupName, int order, bool changeableWhileExecuting, DisplayLevel displayLevel, ControlType controlType)
    245         {
    246           this.caption = caption;
    247           this.toolTip = toolTip;
    248           this.groupName = groupName;
    249           this.Order = order;
    250           this.DisplayLevel = displayLevel;
    251           this.ControlType = controlType;
    252           this.ChangeableWhileExecuting = changeableWhileExecuting;
     288            :this(caption, toolTip, groupName, order, changeableWhileExecuting, controlType)
     289        {
    253290        }
    254291    }
Note: See TracChangeset for help on using the changeset viewer.