[Mmclibrary-cvs] mmclibrary/MMCLib2/Core MenuItem.cs,1.7,1.8
Brought to you by:
imjimmurphy,
kachalkov
From: Lesley v. Z. <ex...@us...> - 2005-01-19 22:35:08
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29443 Modified Files: MenuItem.cs Log Message: Changed a lot of protected variables that where storage for properties to private Index: MenuItem.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/MenuItem.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MenuItem.cs 19 Oct 2004 20:49:05 -0000 1.7 --- MenuItem.cs 19 Jan 2005 22:34:53 -0000 1.8 *************** *** 21,68 **** public event MenuCommandHandler Handler; - //Added by Alexander Kachalkov - /// <summary> - /// Specifies one or more of the flags (see CCM_SPECIAL enum in interfaces.cs) - /// </summary> - private CCM_SPECIAL _specialFlags = 0; - - //Added by Alexander Kachalkov - /// <summary> - /// Specifies one or more of the style flags (see MF enum in interfaces.cs) - /// </summary> - private MF _flags = 0; /////////////////////////////////////////////////////////////////////// // ! // Members // #region - /// <summary> - /// Unique identifier of this menu item. - /// </summary> - protected string m_ID; - - /// <summary> - /// Name can support mnemonics like &File - /// </summary> - protected string m_Name; - - // added by Roman Kiss - /// <summary> - /// Flag to control visibility of the menu - /// </summary> - protected bool m_Visible = true; - - /// <summary> - /// Text to display in the MMC status bar when the user - /// hovers over the menu item - /// </summary> - protected string m_StatusText; - - /// <summary> - /// The integer command that MMC uses when if fires the command - /// </summary> - protected int m_nCommandId = 0; #endregion --- 21,38 ---- public event MenuCommandHandler Handler; /////////////////////////////////////////////////////////////////////// // ! // Private vars // #region + private CCM_SPECIAL _specialFlags = 0; + private MF _flags = 0; + private string _id; + private string _name; + private bool _visible = true; + private string _statusText; + private int _nCommandId = 0; #endregion *************** *** 74,124 **** /// <summary> ! /// The menu unique identifier. /// </summary> public string ID { ! get{ return m_ID; } ! set{ m_ID = value; } } /// <summary> ! /// The menu display name /// </summary> public string Name { ! get{ return m_Name; } ! set{ m_Name = value; } } /// <summary> ! /// added by Roman Kiss ! /// Flag to control visibility of the menu /// </summary> public bool Visible { ! get{ return m_Visible; } ! set{ m_Visible = value; } } /// <summary> ! /// The silly status bar text /// </summary> public string StatusText { ! get{ return m_StatusText; } ! set{ m_StatusText = value; } } /// <summary> ! /// the command Id /// </summary> public int CommandId { ! get{ return m_nCommandId; } ! set{ m_nCommandId = value; } } /// <summary> ! /// Specifies one or more of the flags (see CCM_SPECIAL enum in interfaces.cs) /// </summary> public CCM_SPECIAL SpecialFlags --- 44,95 ---- /// <summary> ! /// Get or set the unique identifier of this menu item. /// </summary> public string ID { ! get{ return _id; } ! set{ _id = value; } } /// <summary> ! /// Get or set the menu display name ! /// Name can support mnemonics like &File /// </summary> public string Name { ! get{ return _name; } ! set{ _name = value; } } + // added by Roman Kiss /// <summary> ! /// Get or set the flag to control visibility of the menu /// </summary> public bool Visible { ! get{ return _visible; } ! set{ _visible = value; } } /// <summary> ! /// Get or set the text to display in the MMC status bar when the user hovers over the menu item /// </summary> public string StatusText { ! get{ return _statusText; } ! set{ _statusText = value; } } /// <summary> ! /// Get or set the integer command that MMC uses when if fires the command /// </summary> public int CommandId { ! get{ return _nCommandId; } ! set{ _nCommandId = value; } } /// <summary> ! /// Get or set one or more of the flags (see CCM_SPECIAL enum in interfaces.cs) /// </summary> public CCM_SPECIAL SpecialFlags *************** *** 129,133 **** /// <summary> ! /// Specifies one or more of the style flags (see MF enum in interfaces.cs) /// </summary> public MF Flags --- 100,104 ---- /// <summary> ! /// Get or set one or more of the style flags (see MF enum in interfaces.cs) /// </summary> public MF Flags *************** *** 158,163 **** public MenuItem(string name, string statusText, MenuCommandHandler handler) { ! m_Name = name; ! m_StatusText = statusText; Handler += handler; } --- 129,134 ---- public MenuItem(string name, string statusText, MenuCommandHandler handler) { ! this.Name = name; ! this.StatusText = statusText; Handler += handler; } *************** *** 179,183 **** public MenuItem(string id, string name, string statusText, MenuCommandHandler handler) : this(name,statusText,handler) { ! m_ID = id; } --- 150,154 ---- public MenuItem(string id, string name, string statusText, MenuCommandHandler handler) : this(name,statusText,handler) { ! this.ID = id; } |