Ignore:
Timestamp:
Dec 23, 2010, 2:44:24 PM (11 years ago)
Author:
Matthäus Wander
Message:

TextInput:

  • added setting to convert input text from Hex or Base64 string to binary data
  • This change might break some samples. Please test and report any failures.

CrypPluginBase:

  • marked further occurences of DisplayLevel as obsolete, see #122
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/TextOutput/TextOutputSettings.cs

    r1263 r2255  
    7979    /// Encoding property used in the Settings pane.
    8080    /// </summary>
    81     [ContextMenu("Input encoding", "Choose the expected encoding of the input.", 1, DisplayLevel.Experienced, ContextMenuControlType.ComboBox, null, new string[] { "Default system encoding", "Unicode", "UTF-7", "UTF-8", "UTF-32", "ASCII", "Big endian unicode" })]
    82     [TaskPane("Input encoding", "Choose the expected encoding of the input. (The input will be interpreted as set here, no matter what the bytes really mean)", null, 1, false, DisplayLevel.Experienced, ControlType.RadioButton, new string[] { "Default system encoding", "Unicode", "UTF-7", "UTF-8", "UTF-32", "ASCII", "Big endian unicode" })]
     81    [ContextMenu("Input encoding", "Choose the expected encoding of the input.", 1, ContextMenuControlType.ComboBox, null, new string[] { "Default system encoding", "Unicode", "UTF-7", "UTF-8", "UTF-32", "ASCII", "Big endian unicode" })]
     82    [TaskPane("Input encoding", "Choose the expected encoding of the input. (The input will be interpreted as set here, no matter what the bytes really mean)", null, 1, false, ControlType.RadioButton, new string[] { "Default system encoding", "Unicode", "UTF-7", "UTF-8", "UTF-32", "ASCII", "Big endian unicode" })]
    8383    public int EncodingSetting
    8484    {
     
    100100    /// </summary>
    101101    /// <value>The presentation format setting.</value>
    102     [ContextMenu("Presentation format", "Choose the format that will be used te present the input data.", 2, DisplayLevel.Experienced, ContextMenuControlType.ComboBox, null, new string[] { "Text", "Hex", "Base64", "Decimal" })]
    103     [TaskPane("Presentation format", "Choose the format that will be used te present the input data.", null, 2, false, DisplayLevel.Experienced, ControlType.RadioButton, new string[] { "Text", "Hex", "Base64", "Decimal" })]
     102    [ContextMenu("Presentation format", "Choose the format that will be used to present the input data.", 2, ContextMenuControlType.ComboBox, null, new string[] { "Text", "Hex", "Base64", "Decimal" })]
     103    [TaskPane("Presentation format", "Choose the format that will be used to present the input data.", null, 2, false, ControlType.RadioButton, new string[] { "Text", "Hex", "Base64", "Decimal" })]
    104104    public int PresentationFormatSetting
    105105    {
     
    120120    /// Maximum size property used in the settings pane.
    121121    /// </summary>
    122     [TaskPane("Maximum length", "Provide the maximum number of bytes to convert.", null, 3, false, DisplayLevel.Professional, ControlType.NumericUpDown, ValidationType.RangeInteger, 1, 65536)]
     122    [TaskPane("Maximum length", "Provide the maximum number of bytes to convert.", null, 3, false, ControlType.NumericUpDown, ValidationType.RangeInteger, 1, 65536)]
    123123    public int MaxLength
    124124    {
     
    136136
    137137    private bool append = false;
    138     [ContextMenu("Append text input", "With this checkbox enabled, incoming text will be appended to the current text.", 0, DisplayLevel.Experienced, ContextMenuControlType.CheckBox, null, new string[] { "Append text input" })]
    139     [TaskPane("Append text input", "With this checkbox enabled, incoming text will be appended to the current text.", "Append", 0, false, DisplayLevel.Beginner, ControlType.CheckBox, "", null)]
     138    [ContextMenu("Append text input", "With this checkbox enabled, incoming text will be appended to the current text.", 0, ContextMenuControlType.CheckBox, null, new string[] { "Append text input" })]
     139    [TaskPane("Append text input", "With this checkbox enabled, incoming text will be appended to the current text.", "Append", 0, false, ControlType.CheckBox, "", null)]
    140140    public bool Append
    141141    {
     
    153153
    154154    private int appendBreaks = 1;
    155     [TaskPane("Append n-breaks", "Defines how much new lines are added after new input. (Applies only if \"Append text input\" is active.)", "Append", 0, false, DisplayLevel.Experienced, ControlType.NumericUpDown, ValidationType.RangeInteger, 0, int.MaxValue)]
     155    [TaskPane("Append n-breaks", "Defines how much new lines are added after new input. (Applies only if \"Append text input\" is active.)", "Append", 0, false, ControlType.NumericUpDown, ValidationType.RangeInteger, 0, int.MaxValue)]
    156156    public int AppendBreaks
    157157    {
     
    192192    }
    193193
    194     [TaskPane("Type", "Select DataType of plugin.", "", 4, false, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "CryptoolStream", "string", "byte[]", "boolean", "int", "double", "object" })]
     194    [TaskPane("Type", "Select DataType of plugin.", "", 4, false, ControlType.ComboBox, new string[] { "CryptoolStream", "string", "byte[]", "boolean", "int", "double", "object" })]
    195195    public int DataType
    196196    {
     
    209209
    210210    private bool booleanAsNumeric = false;
    211     [ContextMenu("Display boolean as numeric value", "With this checkbox enabled, incoming boolean values will be displayed as numeric values (1/0 instead of True/False).", 5, DisplayLevel.Experienced, ContextMenuControlType.CheckBox, null, new string[] { "Display boolean as numeric value" })]
    212     [TaskPane("Display boolean as numeric value", "With this checkbox enabled, incoming boolean values will be displayed as numeric values (1/0 instead of True/False).", null, 5, false, DisplayLevel.Beginner, ControlType.CheckBox, "", null)]
     211    [ContextMenu("Display boolean as numeric value", "With this checkbox enabled, incoming boolean values will be displayed as numeric values (1/0 instead of True/False).", 5, ContextMenuControlType.CheckBox, null, new string[] { "Display boolean as numeric value" })]
     212    [TaskPane("Display boolean as numeric value", "With this checkbox enabled, incoming boolean values will be displayed as numeric values (1/0 instead of True/False).", null, 5, false, ControlType.CheckBox, "", null)]
    213213    public bool BooleanAsNumeric
    214214    {
     
    226226
    227227    private bool flushOnPreExecution = true;
    228     [ContextMenu("Flush text on PreExec", "Flush all text boxes on PreExecution call.", 6, DisplayLevel.Beginner, ContextMenuControlType.CheckBox, null, new string[] {"Flush text on PreExec"})]
    229     [TaskPane("Flush text on PreExec", "Flush all text boxes on PreExecution call.", null, 6, false, DisplayLevel.Beginner, ControlType.CheckBox, null)]
     228    [ContextMenu("Flush text on PreExec", "Flush all text boxes on PreExecution call.", 6, ContextMenuControlType.CheckBox, null, new string[] {"Flush text on PreExec"})]
     229    [TaskPane("Flush text on PreExec", "Flush all text boxes on PreExecution call.", null, 6, false, ControlType.CheckBox, null)]
    230230    public bool FlushOnPreExecution
    231231    {
Note: See TracChangeset for help on using the changeset viewer.