Ignore:
Timestamp:
Jan 12, 2011, 12:11:10 PM (11 years ago)
Author:
Matthäus Wander
Message:

HowTo:

  • removed DisplayLevel, refs #122
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Documentation/PluginHowTo/appendix.tex

    r1638 r2320  
    186186
    187187        [PropertySaveOrder(4)]
    188         [ContextMenu("Action", "Select the algorithm action", 1, DisplayLevel.Beginner, ContextMenuControlType.ComboBox, new int[] { 1, 2 }, "Encrypt", "Decrypt")]
    189         [TaskPane("Action", "setAlgorithmActionDescription", null, 1, true, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "Encrypt", "Decrypt" })]
     188        [ContextMenu("Action", "Select the algorithm action", 1, ContextMenuControlType.ComboBox, new int[] { 1, 2 }, "Encrypt", "Decrypt")]
     189        [TaskPane("Action", "setAlgorithmActionDescription", null, 1, true, ControlType.ComboBox, new string[] { "Encrypt", "Decrypt" })]
    190190        public int Action
    191191        {
     
    208208
    209209        [PropertySaveOrder(5)]
    210         [TaskPane("Key as integer", "Enter the number of letters to shift. For example, a value of 1 means that the plaintext character 'a' gets mapped to the ciphertext character 'B', 'b' to 'C', and so on.", null, 2, true, DisplayLevel.Beginner, ControlType.NumericUpDown, ValidationType.RangeInteger, 0, 100)]
     210        [TaskPane("Key as integer", "Enter the number of letters to shift. For example, a value of 1 means that the plaintext character 'a' gets mapped to the ciphertext character 'B', 'b' to 'C', and so on.", null, 2, true, ControlType.NumericUpDown, ValidationType.RangeInteger, 0, 100)]
    211211        public int ShiftValue
    212212        {
     
    221221
    222222        [PropertySaveOrder(6)]
    223         [TaskPaneAttribute("Key as single letter", "Enter a single letter as the key. This letter is mapped to an integer stating the position in the alphabet. The values for 'Key as integer' and 'Key as single letter' are always synchronized.", null, 3, true, DisplayLevel.Beginner, ControlType.TextBox, ValidationType.RegEx, "^([A-Z]|[a-z]){1,1}")]
     223        [TaskPaneAttribute("Key as single letter", "Enter a single letter as the key. This letter is mapped to an integer stating the position in the alphabet. The values for 'Key as integer' and 'Key as single letter' are always synchronized.", null, 3, true, ControlType.TextBox, ValidationType.RegEx, "^([A-Z]|[a-z]){1,1}")]
    224224        public string ShiftChar
    225225        {
     
    234234
    235235        [PropertySaveOrder(7)]
    236         [ContextMenu("Unknown symbol handling", "What should be done with characters encountered in the input which are not in the alphabet?", 4, DisplayLevel.Expert, ContextMenuControlType.ComboBox, null, new string[] { "Ignore (leave unmodified)", "Remove", "Replace with \'?\'" })]
    237         [TaskPane("Unknown symbol handling", "What should be done with characters encountered in the input which are not in the alphabet?", null, 4, true, DisplayLevel.Expert, ControlType.ComboBox, new string[] { "Ignore (leave unmodified)", "Remove", "Replace with \'?\'" })]
     236        [ContextMenu("Unknown symbol handling", "What should be done with characters encountered in the input which are not in the alphabet?", 4, ContextMenuControlType.ComboBox, null, new string[] { "Ignore (leave unmodified)", "Remove", "Replace with \'?\'" })]
     237        [TaskPane("Unknown symbol handling", "What should be done with characters encountered in the input which are not in the alphabet?", null, 4, true, ControlType.ComboBox, new string[] { "Ignore (leave unmodified)", "Remove", "Replace with \'?\'" })]
    238238        public int UnknownSymbolHandling
    239239        {
     
    254254        [SettingsFormat(0, "Normal", "Normal", "Black", "White", Orientation.Vertical)]
    255255        [PropertySaveOrder(9)]
    256         [TaskPane("Alphabet", "This is the alphabet currently in use.", null, 6, true, DisplayLevel.Expert, ControlType.TextBox, "")]
     256        [TaskPane("Alphabet", "This is the alphabet currently in use.", null, 6, true, ControlType.TextBox, "")]
    257257        public string AlphabetSymbols
    258258        {
     
    284284        /// </summary>
    285285        [PropertySaveOrder(8)]
    286         [ContextMenu("Alphabet case sensitivity", "Should upper and lower case be treated as the same (so that 'a' = 'A')?", 7, DisplayLevel.Expert, ContextMenuControlType.ComboBox, null, new string[] { "Case insensitive", "Case sensitive" })]
    287         [TaskPane("Alphabet case sensitivity", "Should upper and lower case be treated as the same (so that 'a' = 'A')?", null, 7, true, DisplayLevel.Expert, ControlType.ComboBox, new string[] { "Case insensitive", "Case sensitive" })]
     286        [ContextMenu("Alphabet case sensitivity", "Should upper and lower case be treated as the same (so that 'a' = 'A')?", 7, ContextMenuControlType.ComboBox, null, new string[] { "Case insensitive", "Case sensitive" })]
     287        [TaskPane("Alphabet case sensitivity", "Should upper and lower case be treated as the same (so that 'a' = 'A')?", null, 7, true, ControlType.ComboBox, new string[] { "Case insensitive", "Case sensitive" })]
    288288        public int AlphabetCase
    289289        {
     
    352352        public event TaskPaneAttributeChangedHandler TaskPaneAttributeChanged;
    353353
    354         [TaskPane("Enable/Disable sensitivity", "This setting is just a sample and shows how to enable / disable a setting.", "AttributeChangedSample", 8, false, DisplayLevel.Beginner, ControlType.Button)]
     354        [TaskPane("Enable/Disable sensitivity", "This setting is just a sample and shows how to enable / disable a setting.", "AttributeChangedSample", 8, false, ControlType.Button)]
    355355        public void EnableDisableSesitivity()
    356356        {
Note: See TracChangeset for help on using the changeset viewer.