Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Declarations/Attributes/Attributes.cs

    r2768 r4068  
    11using System;
    2 using System.Collections.Generic;
    3 using System.Text;
    42
    5 namespace Netron.Diagramming.Core
    6 {
     3namespace Netron.Diagramming.Core {
     4  /// <summary>
     5  /// Abstract base class for the attributes related to serialization
     6  /// </summary>
     7  public abstract class BaseAttribute : System.Attribute {
     8    #region Fields
    79    /// <summary>
    8     /// Abstract base class for the attributes related to serialization
     10    /// the key of the shape, usually a GUID
    911    /// </summary>
    10     public abstract class BaseAttribute : System.Attribute
    11     {
    12         #region Fields
    13         /// <summary>
    14         /// the key of the shape, usually a GUID
    15         /// </summary>
    16         protected string mKey;
    17         /// <summary>
    18         /// the name of the shape
    19         /// </summary>
    20         protected string mName;       
    21         /// <summary>
    22         /// a description
    23         /// </summary>
    24         protected string mDescription = "No description available.";
    25         /// <summary>
    26         /// whether the shape is only accessible via code or internally
    27         /// </summary>
    28         protected bool mIsInternal;
    29         #endregion
     12    protected string mKey;
     13    /// <summary>
     14    /// the name of the shape
     15    /// </summary>
     16    protected string mName;
     17    /// <summary>
     18    /// a description
     19    /// </summary>
     20    protected string mDescription = "No description available.";
     21    /// <summary>
     22    /// whether the shape is only accessible via code or internally
     23    /// </summary>
     24    protected bool mIsInternal;
     25    #endregion
    3026
    31         #region Properties
    32        
    33         /// <summary>
    34         /// Gets a mDescription of the shape
    35         /// </summary>
    36         public string Description
    37         {
    38             get { return mDescription; }
    39         }
    40         /// <summary>
    41         /// Gets the unique identifier of the shape
    42         /// </summary>
    43         public string Key
    44         {
    45             get { return mKey; }
    46         }
    47         /// <summary>
    48         /// Gets the shape name
    49         /// </summary>
    50         public string Name
    51         {
    52             get { return mName; }
    53         }
    54         /// <summary>
    55         /// Gets whether the entity is available via the interface or false if only via code
    56         /// </summary>
    57         public bool IsInternal
    58         {
    59             get { return mIsInternal; }
    60         }
    61         #endregion
     27    #region Properties
     28
     29    /// <summary>
     30    /// Gets a mDescription of the shape
     31    /// </summary>
     32    public string Description {
     33      get { return mDescription; }
    6234    }
    6335    /// <summary>
    64     /// Attribute to tag a class as a diagram shape
     36    /// Gets the unique identifier of the shape
    6537    /// </summary>
    66     [Serializable, AttributeUsage(AttributeTargets.Class)]
    67     public class ShapeAttribute : BaseAttribute
    68     {
    69         #region Fields
     38    public string Key {
     39      get { return mKey; }
     40    }
     41    /// <summary>
     42    /// Gets the shape name
     43    /// </summary>
     44    public string Name {
     45      get { return mName; }
     46    }
     47    /// <summary>
     48    /// Gets whether the entity is available via the interface or false if only via code
     49    /// </summary>
     50    public bool IsInternal {
     51      get { return mIsInternal; }
     52    }
     53    #endregion
     54  }
     55  /// <summary>
     56  /// Attribute to tag a class as a diagram shape
     57  /// </summary>
     58  [Serializable, AttributeUsage(AttributeTargets.Class)]
     59  public class ShapeAttribute : BaseAttribute {
     60    #region Fields
    7061
    71         /// <summary>
    72         /// the cateogry under which it will stay
    73         /// </summary>
    74         protected string mCategory;
     62    /// <summary>
     63    /// the cateogry under which it will stay
     64    /// </summary>
     65    protected string mCategory;
    7566
    76         #endregion
     67    #endregion
    7768
    78         #region Properties
     69    #region Properties
    7970
    80         /// <summary>
    81         /// Gets the category of the shape under which it will reside in a viewer
    82         /// </summary>
    83         public string Category
    84         {
    85             get { return mCategory; }
     71    /// <summary>
     72    /// Gets the category of the shape under which it will reside in a viewer
     73    /// </summary>
     74    public string Category {
     75      get { return mCategory; }
    8676
    87         }
    88         #endregion
     77    }
     78    #endregion
    8979
    90         #region Constructor
    91         /// <summary>
    92         /// Constructor, marks a class as a shape-class for the Netron graph library
    93         /// </summary>
    94         /// <param name="mShapeName"></param>
    95         /// <param name="mShapeKey"></param>
    96         /// <param name="mCategory"></param>
    97         /// <param name="reflectionName"></param>
    98         public ShapeAttribute(
    99             string shapeName,
    100             string shapeKey,
    101             string category)
    102         {
    103             this.mName = shapeName;
    104             this.mKey = shapeKey;
    105             this.mCategory = category;
    106         }
    107         /// <summary>
    108         /// Constructor, marks a class as a shape-class for the Netron graph library
    109         /// </summary>
    110         /// <param name="mShapeName"></param>
    111         /// <param name="mShapeKey"></param>
    112         /// <param name="mCategory"></param>
    113         /// <param name="reflectionName"></param>
    114         /// <param name="mDescription"></param>
    115         public ShapeAttribute(
    116             string shapeName,
    117             string shapeKey,
    118             string category,
    119             string description) :
    120             this(shapeName, shapeKey, category)
    121         {
    122             this.mDescription = description;
    123         }
    124         /// <summary>
    125         /// Constructor, marks a class as a shape-class for the Netron graph library
    126         /// </summary>
    127         /// <param name="mShapeName"></param>
    128         /// <param name="mShapeKey"></param>
    129         /// <param name="mCategory"></param>
    130         /// <param name="reflectionName"></param>
    131         /// <param name="mDescription"></param>
    132         /// <param name="internalUsage"></param>
    133         public ShapeAttribute(
    134             string shapeName,
    135             string shapeKey,
    136             string category,
    137             string description,
    138             bool internalUsage) :
    139             this(shapeName, shapeKey, category, description)
    140         {
    141             this.mIsInternal = internalUsage;
    142         }
    143         #endregion
     80    #region Constructor
     81    /// <summary>
     82    /// Constructor, marks a class as a shape-class for the Netron graph library
     83    /// </summary>
     84    /// <param name="mShapeName"></param>
     85    /// <param name="mShapeKey"></param>
     86    /// <param name="mCategory"></param>
     87    /// <param name="reflectionName"></param>
     88    public ShapeAttribute(
     89        string shapeName,
     90        string shapeKey,
     91        string category) {
     92      this.mName = shapeName;
     93      this.mKey = shapeKey;
     94      this.mCategory = category;
     95    }
     96    /// <summary>
     97    /// Constructor, marks a class as a shape-class for the Netron graph library
     98    /// </summary>
     99    /// <param name="mShapeName"></param>
     100    /// <param name="mShapeKey"></param>
     101    /// <param name="mCategory"></param>
     102    /// <param name="reflectionName"></param>
     103    /// <param name="mDescription"></param>
     104    public ShapeAttribute(
     105        string shapeName,
     106        string shapeKey,
     107        string category,
     108        string description) :
     109      this(shapeName, shapeKey, category) {
     110      this.mDescription = description;
     111    }
     112    /// <summary>
     113    /// Constructor, marks a class as a shape-class for the Netron graph library
     114    /// </summary>
     115    /// <param name="mShapeName"></param>
     116    /// <param name="mShapeKey"></param>
     117    /// <param name="mCategory"></param>
     118    /// <param name="reflectionName"></param>
     119    /// <param name="mDescription"></param>
     120    /// <param name="internalUsage"></param>
     121    public ShapeAttribute(
     122        string shapeName,
     123        string shapeKey,
     124        string category,
     125        string description,
     126        bool internalUsage) :
     127      this(shapeName, shapeKey, category, description) {
     128      this.mIsInternal = internalUsage;
     129    }
     130    #endregion
    144131
    145         #region Methods
     132    #region Methods
    146133
    147134
    148         #endregion
     135    #endregion
     136  }
     137
     138  /// <summary>
     139  /// Attribute to tag a class as a Netron connection
     140  /// </summary>
     141  [Serializable]
     142  public class ConnectionAttribute : BaseAttribute {
     143    #region Fields
     144
     145
     146    #endregion
     147
     148    #region Properties
     149
     150
     151    #endregion
     152
     153    #region Constructor
     154
     155    /// <summary>
     156    /// Constructor
     157    /// </summary>
     158    /// <param name="connectionName"></param>
     159    /// <param name="key"></param>
     160    /// <param name="reflectionName"></param>
     161    public ConnectionAttribute(string connectionName, string key) {
     162      this.mKey = key;
     163      this.mName = connectionName;
    149164    }
    150165
    151     /// <summary>
    152     /// Attribute to tag a class as a Netron connection
    153     /// </summary>
    154     [Serializable]
    155     public class ConnectionAttribute : BaseAttribute
    156     {
    157         #region Fields
     166    #endregion
     167
     168    #region Methods
    158169
    159170
    160         #endregion
    161 
    162         #region Properties
    163 
    164 
    165         #endregion
    166 
    167         #region Constructor
    168 
    169         /// <summary>
    170         /// Constructor
    171         /// </summary>
    172         /// <param name="connectionName"></param>
    173         /// <param name="key"></param>
    174         /// <param name="reflectionName"></param>
    175         public ConnectionAttribute(string connectionName, string key)
    176         {
    177             this.mKey = key;
    178             this.mName = connectionName;
    179         }
    180 
    181         #endregion
    182 
    183         #region Methods
    184 
    185 
    186         #endregion
    187     }
     171    #endregion
     172  }
    188173}
Note: See TracChangeset for help on using the changeset viewer.