Ignore:
Timestamp:
May 26, 2010, 7:54:12 PM (12 years ago)
Author:
Matthäus Wander
Message:

Updated plugin template. The template shall become the default way to create a new CT2 plugin.

Location:
trunk/CrypPlugins/CrypPluginTemplate
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/CrypPluginTemplate/ExamplePluginCT2Settings.cs

    r740 r1507  
    1 /*
    2    Copyright 2009 Matthäus Wander, Universität Duisburg-Essen
     1/* HOWTO: Change year, author name and organization.
     2   Copyright 2010 Your Name, University of Duckburg
    33
    44   Licensed under the Apache License, Version 2.0 (the "License");
     
    2121using System.ComponentModel;
    2222
    23 namespace Cryptool.Plugin.ExamplePluginCT2
     23namespace Cryptool.Plugin
    2424{
    2525    public class ExamplePluginCT2Settings : ISettings
     
    3434        #region TaskPane Settings
    3535
    36         #region ISettings Members
    37 
     36        /// <summary>
     37        /// HOWTO: This is an example for a setting entity shown in the settings pane on the right of the CT2 main window.
     38        /// This example setting uses a number field input, but there are many more input types available, see ControlType enumeration.
     39        /// </summary>
    3840        [TaskPane("Subtrahend", "Amount to subtract from input number", null, 1, false, DisplayLevel.Beginner, ControlType.NumericUpDown, ValidationType.RangeInteger, 0, Int32.MaxValue)]
    3941        public int Subtrahend
     
    4547            set
    4648            {
     49                // HOWTO: If a setting changes, you must set hasChanges manually to true.
    4750                if (subtrahend != value)
    4851                {
     
    5558        #endregion
    5659
     60        #region ISettings Members
     61
    5762        /// <summary>
    58         /// need to store the change status of the plugin
    59         /// if a property was changed -> hasChangess = true
    60         /// hence CrypTool will ask automatically if you want to save your changes
     63        /// HOWTO: This flags indicates whether some setting has been changed since the last save.
     64        /// If a property was changed, this becomes true, hence CrypTool will ask automatically if you want to save your changes.
    6165        /// </summary>
    6266        public bool HasChanges
Note: See TracChangeset for help on using the changeset viewer.