Changeset 2241


Ignore:
Timestamp:
Dec 22, 2010, 1:10:50 PM (11 years ago)
Author:
Matthäus Wander
Message:

Removed further occurences of DisplayLevel and marked remainders in IPlugin interface as obsolete. This closes #122.

Location:
trunk
Files:
13 edited

Legend:

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

    r947 r2241  
    5959        public readonly Direction Direction;
    6060        public readonly bool Mandatory;       
    61         public readonly DisplayLevel DisplayLevel;       
     61        public readonly DisplayLevel DisplayLevel;
    6262        public QuickWatchFormat QuickWatchFormat;
    6363        public string PropertyName; // will be set in extension-method
     
    9999        /// <param name="quickWatchFormat">The quick watch format.</param>
    100100        /// <param name="quickWatchConversion">Methodname of converstion method.</param>
    101         public PropertyInfoAttribute(Direction direction, string caption, string toolTip, string descriptionUrl, bool mandatory, bool hasDefaultValue, DisplayLevel displayLevel, QuickWatchFormat quickWatchFormat, string quickWatchConversionMethod)
     101        public PropertyInfoAttribute(Direction direction, string caption, string toolTip, string descriptionUrl, bool mandatory, bool hasDefaultValue, QuickWatchFormat quickWatchFormat, string quickWatchConversionMethod)
    102102        {
    103103            this.caption = caption == null ? "" : caption;
     
    106106            this.Direction = direction;
    107107            this.Mandatory = mandatory;
    108             this.DisplayLevel = displayLevel;
     108//            this.DisplayLevel = displayLevel;
    109109            this.QuickWatchFormat = quickWatchFormat;
    110110            this.QuickWatchConversionMethod = quickWatchConversionMethod;
     
    112112        }
    113113
     114        public PropertyInfoAttribute(Direction direction, string caption, string toolTip, string descriptionUrl)
     115            : this(direction, caption, toolTip, descriptionUrl, false, false, QuickWatchFormat.None, null)
     116        {
     117        }
     118
     119        [Obsolete("DisplayLevel is no longer used, see #122")]
     120        public PropertyInfoAttribute(Direction direction, string caption, string toolTip, string descriptionUrl, bool mandatory, bool hasDefaultValue, DisplayLevel displayLevel, QuickWatchFormat quickWatchFormat, string quickWatchConversionMethod)
     121            : this(direction, caption, toolTip, descriptionUrl, mandatory, hasDefaultValue, quickWatchFormat, quickWatchConversionMethod)
     122        {
     123        }
     124
     125        [Obsolete("DisplayLevel is no longer used, see #122")]
    114126        public PropertyInfoAttribute(Direction direction, string caption, string toolTip, string descriptionUrl, DisplayLevel displayLevel)
    115127          : this (direction, caption, toolTip, descriptionUrl, false, false, displayLevel, QuickWatchFormat.None, null)
  • trunk/CrypPluginBase/Delegates.cs

    r2188 r2241  
    4747  /// </summary>
    4848  public delegate void SelectedPluginChangedHandler(IEditor editor, PluginChangedEventArgs pce);
    49 
    50   /// <summary>
    51   /// Used by editor plugins to send DisplayLevel of loaded workspace to the CrypWin.
    52   /// </summary>
    53   public delegate void ChangeDisplayLevelHandler(IEditor editor, ChangeDisplayLevelEventArgs args);
    5449
    5550  /// <summary>
  • trunk/CrypPluginBase/Editor/IEditor.cs

    r2182 r2241  
    2323    public interface IEditor : IPlugin, IApplication
    2424    {
    25         event ChangeDisplayLevelHandler OnChangeDisplayLevel;
    2625        event SelectedPluginChangedHandler OnSelectedPluginChanged;
    2726        event ProjectTitleChangedHandler OnProjectTitleChanged;
     
    7069
    7170        /// <summary>
    72         /// Gets or sets the display level. Can be reverted using the OnChangeDisplayLevel event.
    73         /// </summary>
    74         /// <value>The display level.</value>
    75         DisplayLevel DisplayLevel { get; set; }
    76 
    77         /// <summary>
    7871        /// Gets the editor specific plugins, e.g. connector plugins to build subworkspace and the
    7972        /// currently available subworkspaces.
  • trunk/CrypPluginBase/Enums.cs

    r2066 r2241  
    2828    }
    2929
     30    [Obsolete("DisplayLevel is no longer used, see #122")]
    3031    public enum DisplayLevel
    3132    {
  • trunk/CrypPluginBase/EventArgs.cs

    r947 r2241  
    103103  }
    104104
    105   public class ChangeDisplayLevelEventArgs : EventArgs
    106   {
    107     public readonly DisplayLevel NewDisplayLevel;
    108     public readonly IEditor Editor;
    109 
    110     public ChangeDisplayLevelEventArgs(IEditor editor, DisplayLevel newDisplayLevel)
    111     {
    112       this.NewDisplayLevel = newDisplayLevel;
    113       this.Editor = editor;
    114     }
    115   }
    116 
    117105  public class ProjectTitleChangedEventArgs : EventArgs
    118106  {
  • trunk/CrypPlugins/P2PEditor/P2PEditor.cs

    r2182 r2241  
    5050        #region IEditor Members
    5151
    52         public event ChangeDisplayLevelHandler OnChangeDisplayLevel;
    53 
    5452        public event SelectedPluginChangedHandler OnSelectedPluginChanged;
    5553
     
    198196        }
    199197
    200         public DisplayLevel DisplayLevel { get; set; }
    201 
    202198        public List<EditorSpecificPluginInfo> EditorSpecificPlugins
    203199        {
  • trunk/CrypPlugins/SimpleEditor/SimpleEditor.cs

    r2182 r2241  
    5959        #region IEditor Members
    6060
    61         public event ChangeDisplayLevelHandler OnChangeDisplayLevel;
    62 
    6361        public event SelectedPluginChangedHandler OnSelectedPluginChanged;
    6462
     
    203201        }
    204202
    205         public DisplayLevel DisplayLevel
    206         {
    207             get;
    208             set;
    209         }
    210 
    211203        public List<EditorSpecificPluginInfo> EditorSpecificPlugins
    212204        {
  • trunk/CrypPlugins/Wizard/Wizard.cs

    r2213 r2241  
    2121        public event GuiLogNotificationEventHandler OnGuiLogNotificationOccured;
    2222        public event PluginProgressChangedEventHandler OnPluginProgressChanged;
    23         public event ChangeDisplayLevelHandler OnChangeDisplayLevel;
    2423        public event SelectedPluginChangedHandler OnSelectedPluginChanged;
    2524        public event ProjectTitleChangedHandler OnProjectTitleChanged;
     
    213212        }
    214213
    215         public DisplayLevel DisplayLevel
    216         { get; set; }
    217 
    218214        public List<EditorSpecificPluginInfo> EditorSpecificPlugins { get; set; }
    219215
  • trunk/CrypPlugins/WorkspaceManager/WorkspaceManager.cs

    r2182 r2241  
    9191
    9292        #region IEditor Members
    93 
    94         /// <summary>
    95         ///
    96         /// </summary>
    97         public event ChangeDisplayLevelHandler OnChangeDisplayLevel;
    9893
    9994        /// <summary>
     
    403398
    404399        /// <summary>
    405         /// DisplayLevel
    406         /// </summary>
    407         public DisplayLevel DisplayLevel
    408         {
    409             get;
    410             set;
    411            
    412         }
    413 
    414         /// <summary>
    415400        ///
    416401        /// </summary>
Note: See TracChangeset for help on using the changeset viewer.