mmclibrary-cvs Mailing List for MMC .NET Library (Page 4)
Brought to you by:
imjimmurphy,
kachalkov
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(17) |
Apr
(96) |
May
(15) |
Jun
(1) |
Jul
(43) |
Aug
(4) |
Sep
(11) |
Oct
(8) |
Nov
(15) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(31) |
Feb
|
Mar
(24) |
Apr
(6) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Lesley v. Z. <ex...@us...> - 2004-11-15 19:44:02
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/PropertyPages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9837 Modified Files: PropertyPage.cs PropertyPageBase.cs PropertySheet.cs Log Message: Invoke fix for propertypages: I added some functionality to 'speak' to the MMCThread from a propertypage thread. You can override PropertyPageBase::InvokeMmcAfterClose(), the contents of this function are used after the propertypage closes. PropertySheet.cs - fixed a typo in a var (m_alPages -> m_allPages) - removed a onCancelClick from onCloseClick so that the dialogresult that would be returned by ShowDialog was correct, the dialogresult isn't used right now but that doesn't mean that it should be correct :) - removed a double case in onCancelClick (default==.No) PropertyPageBase.cs - changed init() -> Init() - added functionality for the Invoke fix PropertyPage.cs - added functionality for the Invoke fix ReportNode.cs - added functionality for the Invoke fix BaseNode.cs - added functionality for the Invoke fix Index: PropertyPageBase.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/PropertyPages/PropertyPageBase.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PropertyPageBase.cs 22 Jul 2004 14:07:05 -0000 1.5 --- PropertyPageBase.cs 15 Nov 2004 19:43:49 -0000 1.6 *************** *** 22,25 **** --- 22,27 ---- private System.ComponentModel.Container components = null; + public delegate void PropertyPageAction(); + /////////////////////////////////////////////////////////////////////// // *************** *** 28,31 **** --- 30,35 ---- #region protected PropertyPage m_propertypage; + + protected PropertyPageAction m_action; #endregion *************** *** 50,54 **** this.m_propertypage.validate += new EventHandler(onValidateEvent); this.m_propertypage.cancel += new EventHandler(onCancelEvent); ! this.init(); } } --- 54,58 ---- this.m_propertypage.validate += new EventHandler(onValidateEvent); this.m_propertypage.cancel += new EventHandler(onCancelEvent); ! this.Init(); } } *************** *** 97,100 **** --- 101,110 ---- } } + + public PropertyPageAction Action + { + get{ return m_action;} + set {m_action = value;} + } #endregion *************** *** 107,110 **** --- 117,121 ---- { this.PropertyPage = pp; + this.Action = new PropertyPageAction(InvokeMmcAfterClose); } *************** *** 112,115 **** --- 123,127 ---- { InitializeComponent(); + this.Action = new PropertyPageAction(InvokeMmcAfterClose); } #endregion *************** *** 119,123 **** /// the corresponding items in the propertypage). /// </summary> ! public virtual void init() { } --- 131,143 ---- /// the corresponding items in the propertypage). /// </summary> ! public virtual void Init() ! { ! } ! ! /// <summary> ! /// Override this method to do certain work in the MMCThread(BaseThread) after the propertysheet ! /// is closed. ! /// </summary> ! protected virtual void InvokeMmcAfterClose() { } *************** *** 133,139 **** // The apply button is only active if there is something to apply, // if it isn't active the OK action should only cancel, not apply+cancel - //if(((PropertySheetExt)this.m_propertypage.PropertySheet).IsApplyEnabled()) if((this.m_propertypage.PropertySheet).IsApplyEnabled()) ! this.onApply(); } --- 153,161 ---- // The apply button is only active if there is something to apply, // if it isn't active the OK action should only cancel, not apply+cancel if((this.m_propertypage.PropertySheet).IsApplyEnabled()) ! { ! this.onApply(); ! this.PropertyPage.Applied = true; ! } } Index: PropertyPage.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/PropertyPages/PropertyPage.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PropertyPage.cs 22 Jul 2004 14:07:05 -0000 1.4 --- PropertyPage.cs 15 Nov 2004 19:43:49 -0000 1.5 *************** *** 11,14 **** --- 11,16 ---- public class PropertyPage { + + //////////////////////////////////////////////////////////////////////////// // *************** *** 45,48 **** --- 47,55 ---- /// </summary> protected ArrayList m_items = new ArrayList(); + + /// <summary> + /// Indicates if the Apply button is pressed + /// </summary> + protected bool m_applied = false; #endregion *************** *** 122,126 **** } ! protected UserControl MainControl { get --- 129,133 ---- } ! public UserControl MainControl { get *************** *** 167,170 **** --- 174,184 ---- } + public bool Applied + { + get { return m_applied;} + set { m_applied = value;} + } + + #endregion *************** *** 211,214 **** --- 225,229 ---- #endregion + /// <summary> /// Generate the actual TabPage that will used in the PropertySheet. *************** *** 272,276 **** /// <summary> ! /// Method that gets called to apply the values in the TabPage /// </summary> public virtual void onApply() --- 287,292 ---- /// <summary> ! /// Method that gets called to apply the values in the TabPage ! /// (Remember to call the base.onApply if you override this one) /// </summary> public virtual void onApply() Index: PropertySheet.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/PropertyPages/PropertySheet.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PropertySheet.cs 19 Oct 2004 20:50:43 -0000 1.10 --- PropertySheet.cs 15 Nov 2004 19:43:49 -0000 1.11 *************** *** 57,61 **** /// Typed collection of PropertyPages to display /// </summary> ! PropertyPageList m_alPages = new PropertyPageList(); /// <summary> --- 57,61 ---- /// Typed collection of PropertyPages to display /// </summary> ! PropertyPageList m_allPages = new PropertyPageList(); /// <summary> *************** *** 93,97 **** public PropertyPageList Pages { ! get{ return m_alPages; } } --- 93,97 ---- public PropertyPageList Pages { ! get{ return m_allPages; } } *************** *** 175,179 **** // We'll be as wide as the widest and tall as the tallest page ! foreach (PropertyPage page in m_alPages) { // Initialize the Property Pages --- 175,179 ---- // We'll be as wide as the widest and tall as the tallest page ! foreach (PropertyPage page in m_allPages) { // Initialize the Property Pages *************** *** 189,193 **** // Add the pages to the sheet ! foreach (PropertyPage page in m_alPages) { // Create a Tab page that we can use --- 189,193 ---- // Add the pages to the sheet ! foreach (PropertyPage page in m_allPages) { // Create a Tab page that we can use *************** *** 297,305 **** { bool isValidData; ! PropertyPage page = m_alPages[m_tc.SelectedIndex]; isValidData = page.ValidateData(); if (isValidData) { ! foreach(PropertyPage pages in m_alPages) pages.TabChange(); } --- 297,305 ---- { bool isValidData; ! PropertyPage page = m_allPages[m_tc.SelectedIndex]; isValidData = page.ValidateData(); if (isValidData) { ! foreach(PropertyPage pages in m_allPages) pages.TabChange(); } *************** *** 314,318 **** Node.EditMode = false; e.Cancel = false; ! onCancelClick(o, e); } --- 314,320 ---- Node.EditMode = false; e.Cancel = false; ! ! // this one is not needed, double, made the DialogResult go poof. ! //onCancelClick(o, e); } *************** *** 324,328 **** void onOkClick(Object o, EventArgs e) { ! PropertyPage page = m_alPages[m_tc.SelectedIndex]; if (page.ValidateData()) --- 326,330 ---- void onOkClick(Object o, EventArgs e) { ! PropertyPage page = m_allPages[m_tc.SelectedIndex]; if (page.ValidateData()) *************** *** 352,370 **** onApplyClick(o, e); break; ! case DialogResult.No: ! base.DialogResult = DialogResult.Cancel; ! ! foreach(PropertyPage page in m_alPages) ! page.onCancel(); ! FakeClose(); ! break; case DialogResult.Cancel: base.DialogResult = DialogResult.None; break; default: base.DialogResult = DialogResult.Cancel; ! foreach(PropertyPage page in m_alPages) page.onCancel(); FakeClose(); --- 354,367 ---- onApplyClick(o, e); break; ! case DialogResult.Cancel: base.DialogResult = DialogResult.None; break; + default: base.DialogResult = DialogResult.Cancel; ! foreach(PropertyPage page in m_allPages) page.onCancel(); FakeClose(); *************** *** 376,380 **** base.DialogResult = DialogResult.Cancel; ! foreach(PropertyPage page in m_alPages) page.onCancel(); FakeClose(); --- 373,377 ---- base.DialogResult = DialogResult.Cancel; ! foreach(PropertyPage page in m_allPages) page.onCancel(); FakeClose(); *************** *** 391,395 **** void onApplyClick(Object o, EventArgs e) { ! PropertyPage psp = m_alPages[m_tc.SelectedIndex]; if (psp.ValidateData()) --- 388,392 ---- void onApplyClick(Object o, EventArgs e) { ! PropertyPage psp = m_allPages[m_tc.SelectedIndex]; if (psp.ValidateData()) *************** *** 416,421 **** private void SendApplyToAll() { ! foreach(PropertyPage page in m_alPages) page.onApply(); } --- 413,421 ---- private void SendApplyToAll() { ! foreach(PropertyPage page in m_allPages) ! { ! page.Applied = true; page.onApply(); + } } *************** *** 451,455 **** base.DialogResult = DialogResult.Cancel; ! foreach(PropertyPage page in m_alPages) page.onCancel(); FakeClose(); --- 451,455 ---- base.DialogResult = DialogResult.Cancel; ! foreach(PropertyPage page in m_allPages) page.onCancel(); FakeClose(); |
From: Lesley v. Z. <ex...@us...> - 2004-11-15 19:43:02
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9617 Modified Files: ReportNode.cs Log Message: Invoke fix for propertypages: I added some functionality to 'speak' to the MMCThread from a propertypage thread. You can override PropertyPageBase::InvokeMmcAfterClose(), the contents of this function are used after the propertypage closes. PropertySheet.cs - fixed a typo in a var (m_alPages -> m_allPages) - removed a onCancelClick from onCloseClick so that the dialogresult that would be returned by ShowDialog was correct, the dialogresult isn't used right now but that doesn't mean that it should be correct :) - removed a double case in onCancelClick (default==.No) PropertyPageBase.cs - changed init() -> Init() - added functionality for the Invoke fix PropertyPage.cs - added functionality for the Invoke fix ReportNode.cs - added functionality for the Invoke fix BaseNode.cs - added functionality for the Invoke fix Index: ReportNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/ReportNode.cs,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** ReportNode.cs 12 Nov 2004 16:18:21 -0000 1.22 --- ReportNode.cs 15 Nov 2004 19:42:52 -0000 1.23 *************** *** 455,461 **** m_item.PropertySheet = new PropertySheet(this); ! for(int i=0,max=m_item.PropertyPages.Count; i<max; i++) { ! m_item.PropertySheet.Pages.Add(m_item.PropertyPages[i]); } --- 455,463 ---- m_item.PropertySheet = new PropertySheet(this); ! ArrayList pages = m_item.PropertyPages; ! ! foreach(PropertyPage page in pages) { ! m_item.PropertySheet.Pages.Add(page); } *************** *** 468,471 **** --- 470,477 ---- m_item.PropertySheet.ShowDialog(); + foreach (PropertyPage page in pages) + if(page.Applied) + Snapin.Invoke(((PropertyPageBase)page.MainControl).Action); + if(HasThemes()) ReleaseActCtx(ctx); |
From: Lesley v. Z. <ex...@us...> - 2004-11-15 19:42:36
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9497 Modified Files: BaseNode.cs Log Message: Invoke fix for propertypages: I added some functionality to 'speak' to the MMCThread from a propertypage thread. You can override PropertyPageBase::InvokeMmcAfterClose(), the contents of this function are used after the propertypage closes. PropertySheet.cs - fixed a typo in a var (m_alPages -> m_allPages) - removed a onCancelClick from onCloseClick so that the dialogresult that would be returned by ShowDialog was correct, the dialogresult isn't used right now but that doesn't mean that it should be correct :) - removed a double case in onCancelClick (default==.No) PropertyPageBase.cs - changed init() -> Init() - added functionality for the Invoke fix PropertyPage.cs - added functionality for the Invoke fix ReportNode.cs - added functionality for the Invoke fix BaseNode.cs - added functionality for the Invoke fix Index: BaseNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/BaseNode.cs,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** BaseNode.cs 7 Nov 2004 14:44:36 -0000 1.26 --- BaseNode.cs 15 Nov 2004 19:42:27 -0000 1.27 *************** *** 1156,1161 **** protected virtual void CreatePropertySheet(object displayName) { m_propSheet = new PropertySheet(this); ! foreach (PropertyPage page in PropertyPages) m_propSheet.Pages.Add(page); --- 1156,1163 ---- protected virtual void CreatePropertySheet(object displayName) { + ArrayList pages = this.PropertyPages; + m_propSheet = new PropertySheet(this); ! foreach (PropertyPage page in pages) m_propSheet.Pages.Add(page); *************** *** 1174,1177 **** --- 1176,1183 ---- //Show Propery Sheet m_propSheet.ShowDialog( ); + + foreach (PropertyPage page in pages) + if(page.Applied) + Snapin.Invoke(((PropertyPageBase)page.MainControl).Action); //Added by Alexander Kachalkov |
From: Lesley v. Z. <ex...@us...> - 2004-11-12 16:20:47
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3255 Modified Files: About.cs Log Message: members should be protected Index: About.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/About.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** About.cs 1 Sep 2004 12:35:38 -0000 1.6 --- About.cs 12 Nov 2004 16:20:36 -0000 1.7 *************** *** 37,71 **** /// A long description of the snapin /// </summary> ! string m_Description; /// <summary> /// the organization providing the snapin /// </summary> ! string m_Provider; /// <summary> /// the version of the snapin: TBD: tie this to the assembly version? /// </summary> ! string m_Version; /// <summary> /// embedded image name for main icon /// </summary> ! string m_MainIconName; /// <summary> /// embedded image name for main icon /// </summary> ! string m_SmallOpenName; /// <summary> /// embedded image name for Small Open image /// </summary> ! string m_SmallClosedName; /// <summary> /// embedded image name for small closed image /// </summary> ! string m_LargeName; /// <summary> --- 37,71 ---- /// A long description of the snapin /// </summary> ! protected string m_Description; /// <summary> /// the organization providing the snapin /// </summary> ! protected string m_Provider; /// <summary> /// the version of the snapin: TBD: tie this to the assembly version? /// </summary> ! protected string m_Version; /// <summary> /// embedded image name for main icon /// </summary> ! protected string m_MainIconName; /// <summary> /// embedded image name for main icon /// </summary> ! protected string m_SmallOpenName; /// <summary> /// embedded image name for Small Open image /// </summary> ! protected string m_SmallClosedName; /// <summary> /// embedded image name for small closed image /// </summary> ! protected string m_LargeName; /// <summary> |
From: Lesley v. Z. <ex...@us...> - 2004-11-12 16:18:33
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2698 Modified Files: ReportNode.cs Log Message: fixed a very stupid mistake < if(havePropertyPage && this.m_currentSelectedItems[i].PropertyPages.Count != 0) --- > if(!havePropertyPage && this.m_currentSelectedItems[i].PropertyPages.Count != 0) Index: ReportNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/ReportNode.cs,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ReportNode.cs 7 Nov 2004 14:44:37 -0000 1.21 --- ReportNode.cs 12 Nov 2004 16:18:21 -0000 1.22 *************** *** 318,322 **** { this.m_currentSelectedItems[i].OnSelect(); ! if(havePropertyPage && this.m_currentSelectedItems[i].PropertyPages.Count != 0) { havePropertyPage = true; --- 318,322 ---- { this.m_currentSelectedItems[i].OnSelect(); ! if(!havePropertyPage && this.m_currentSelectedItems[i].PropertyPages.Count != 0) { havePropertyPage = true; |
From: Alexander K. <kac...@us...> - 2004-11-09 07:50:39
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1159/MMCLib Modified Files: AssemblyInfo.cs Log Message: Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/AssemblyInfo.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** AssemblyInfo.cs 9 Sep 2004 04:27:15 -0000 1.10 --- AssemblyInfo.cs 9 Nov 2004 07:50:15 -0000 1.11 *************** *** 7,17 **** // associated with an assembly. // ! [assembly: AssemblyTitle("")] ! [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] ! [assembly: AssemblyCompany("")] ! [assembly: AssemblyProduct("")] ! [assembly: AssemblyCopyright("")] ! [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] --- 7,17 ---- // associated with an assembly. // ! [assembly: AssemblyTitle("MMC .NET Library")] ! [assembly: AssemblyDescription("MMC .NET Library - managed wrapper library to support MMC snapin development for Windows")] [assembly: AssemblyConfiguration("")] ! [assembly: AssemblyCompany("Ironring Software 2004")] ! [assembly: AssemblyProduct("MMC .NET Library")] ! [assembly: AssemblyCopyright("Ironring Software 2004")] ! [assembly: AssemblyTrademark("MMC .NET Library")] [assembly: AssemblyCulture("")] *************** *** 55,58 **** // //[assembly: AssemblyDelaySign(false)] ! //[assembly: AssemblyKeyFile(@"..\..\MMCLib.key")] //[assembly: AssemblyKeyName("")] --- 55,58 ---- // //[assembly: AssemblyDelaySign(false)] ! [assembly: AssemblyKeyFile(@"..\..\MMCLib.snk")] //[assembly: AssemblyKeyName("")] |
From: Alexander K. <kac...@us...> - 2004-11-09 07:30:35
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29829/MMCTest Modified Files: MMCTest.csproj Log Message: Index: MMCTest.csproj =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest/MMCTest.csproj,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** MMCTest.csproj 22 Apr 2004 11:56:00 -0000 1.13 --- MMCTest.csproj 9 Nov 2004 07:29:53 -0000 1.14 *************** *** 105,108 **** --- 105,113 ---- AssemblyName = "System.Windows.Forms" /> + <Reference + Name = "MMCLib" + Project = "{A6576BD5-7537-4858-BEE9-7EA4FAC6C686}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> </References> </Build> |
From: Alexander K. <kac...@us...> - 2004-11-09 07:30:17
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29829/MMCLib Modified Files: MMCLib.csproj _ChangeLog.txt Log Message: Index: MMCLib.csproj =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/MMCLib.csproj,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** MMCLib.csproj 9 Sep 2004 04:27:15 -0000 1.11 --- MMCLib.csproj 9 Nov 2004 07:29:52 -0000 1.12 *************** *** 106,115 **** /> <Reference ! Name = "SHDocVw" ! Guid = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}" ! VersionMajor = "1" ! VersionMinor = "1" ! Lcid = "0" ! WrapperTool = "tlbimp" /> <Reference --- 106,117 ---- /> <Reference ! Name = "System.Management" ! AssemblyName = "System.Management" ! HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Management.dll" ! /> ! <Reference ! Name = "System.Configuration.Install" ! AssemblyName = "System.Configuration.Install" ! HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Configuration.Install.dll" /> <Reference *************** *** 121,124 **** --- 123,131 ---- WrapperTool = "primary" /> + <Reference + Name = "Interop.SHDocVw" + AssemblyName = "Interop.SHDocVw" + HintPath = "bin\Debug\Interop.SHDocVw.dll" + /> </References> </Build> *************** *** 200,203 **** --- 207,214 ---- /> <File + RelPath = "MMCLibResource.resx" + BuildAction = "EmbeddedResource" + /> + <File RelPath = "NodeEvents.cs" SubType = "Code" Index: _ChangeLog.txt =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/_ChangeLog.txt,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** _ChangeLog.txt 1 Nov 2004 06:09:18 -0000 1.18 --- _ChangeLog.txt 9 Nov 2004 07:29:52 -0000 1.19 *************** *** 12,16 **** Alexander Kachalkov: ! - Small additions. ver 1.6.6 --- 12,16 ---- Alexander Kachalkov: ! - Added strong key ver 1.6.6 |
From: Lesley v. Z. <ex...@us...> - 2004-11-07 14:45:42
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCTest2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7575 Modified Files: MMCTest2.csproj MyDragDropNode.cs MyFolderNode.cs MyFormNode.cs MyHTMLNode.cs MyOCXNode.cs MyReportNode.cs PolyNode.cs TestSnapinBase.cs Log Message: adopted changes from 07-11-04 Index: MyDragDropNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyDragDropNode.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MyDragDropNode.cs 1 Sep 2004 13:05:25 -0000 1.6 --- MyDragDropNode.cs 7 Nov 2004 14:45:32 -0000 1.7 *************** *** 20,30 **** } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } --- 20,36 ---- } ! public override string ResultViewSmallImage { get { ! return "MMCTest2.images.snapin.Ico"; ! } ! } ! ! public override string ResultViewLargeImage ! { ! get ! { ! return "MMCTest2.images.snapin.Ico"; } } Index: MyReportNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyReportNode.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** MyReportNode.cs 1 Sep 2004 13:05:25 -0000 1.10 --- MyReportNode.cs 7 Nov 2004 14:45:32 -0000 1.11 *************** *** 31,37 **** } - #if POEP2 - System.Windows.Forms.MessageBox.Show("stront voor jou"); - #endif } --- 31,34 ---- *************** *** 53,66 **** } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } public override ArrayList Items --- 50,68 ---- } ! public override string ResultViewSmallImage { get { ! return "MMCTest2.images.snapin.Ico"; } } + public override string ResultViewLargeImage + { + get + { + return "MMCTest2.images.snapin.Ico"; + } + } public override ArrayList Items Index: MyOCXNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyOCXNode.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MyOCXNode.cs 1 Sep 2004 13:05:25 -0000 1.6 --- MyOCXNode.cs 7 Nov 2004 14:45:32 -0000 1.7 *************** *** 15,25 **** } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } --- 15,31 ---- } ! public override string ResultViewSmallImage { get { ! return "MMCTest2.images.snapin.Ico"; ! } ! } ! ! public override string ResultViewLargeImage ! { ! get ! { ! return "MMCTest2.images.snapin.Ico"; } } Index: PolyNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/PolyNode.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PolyNode.cs 13 Jul 2004 08:43:43 -0000 1.1 --- PolyNode.cs 7 Nov 2004 14:45:32 -0000 1.2 *************** *** 62,65 **** --- 62,82 ---- return retval; } + + public override string ResultViewSmallImage + { + get + { + return "MMCTest2.images.snapin.Ico"; + } + } + + public override string ResultViewLargeImage + { + get + { + return "MMCTest2.images.snapin.Ico"; + } + } + } } Index: MyHTMLNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyHTMLNode.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MyHTMLNode.cs 1 Sep 2004 13:05:25 -0000 1.4 --- MyHTMLNode.cs 7 Nov 2004 14:45:32 -0000 1.5 *************** *** 20,30 **** } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } --- 20,36 ---- } ! public override string ResultViewSmallImage { get { ! return "MMCTest2.images.snapin.Ico"; ! } ! } ! ! public override string ResultViewLargeImage ! { ! get ! { ! return "MMCTest2.images.snapin.Ico"; } } Index: TestSnapinBase.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/TestSnapinBase.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TestSnapinBase.cs 1 Sep 2004 13:05:25 -0000 1.7 --- TestSnapinBase.cs 7 Nov 2004 14:45:32 -0000 1.8 *************** *** 25,29 **** // the first node in the tree BaseNode rootNode = new BaseNode(this, "TestSnapin2", "MMCTest2.images.Closed.ico", "MMCTest2.images.Open.ico"); ! // we want the root node to be pastable to paste the dragable notes on top of it. rootNode.Pasteable = true; --- 25,31 ---- // the first node in the tree BaseNode rootNode = new BaseNode(this, "TestSnapin2", "MMCTest2.images.Closed.ico", "MMCTest2.images.Open.ico"); ! ! rootNode.ResultViewSmallImage = "MMCTest2.images.snapin.Ico"; ! // we want the root node to be pastable to paste the dragable notes on top of it. rootNode.Pasteable = true; *************** *** 63,66 **** --- 65,71 ---- rootNode.AddChild(new PolyNode(this, "PolyNode", "MMCTest2.images.Closed.ico", "MMCTest2.images.Closed.ico")); + // testnode + rootNode.AddChild(new TestNode(this, "TestNode", "MMCTest2.images.Closed.ico", "MMCTest2.images.Closed.ico")); + } catch(Exception e) Index: MMCTest2.csproj =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MMCTest2.csproj,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** MMCTest2.csproj 13 Jul 2004 08:43:43 -0000 1.8 --- MMCTest2.csproj 7 Nov 2004 14:45:32 -0000 1.9 *************** *** 131,135 **** <File RelPath = "MyPropertyPage.cs" ! SubType = "UserControl" BuildAction = "Compile" /> --- 131,135 ---- <File RelPath = "MyPropertyPage.cs" ! SubType = "Code" BuildAction = "Compile" /> *************** *** 141,145 **** <File RelPath = "MyPropertyPageForItems.cs" ! SubType = "UserControl" BuildAction = "Compile" /> --- 141,145 ---- <File RelPath = "MyPropertyPageForItems.cs" ! SubType = "Code" BuildAction = "Compile" /> *************** *** 170,175 **** /> <File RelPath = "TestSnapinBase.cs" ! SubType = "Component" BuildAction = "Compile" /> --- 170,180 ---- /> <File + RelPath = "TestNode.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "TestSnapinBase.cs" ! SubType = "Code" BuildAction = "Compile" /> *************** *** 196,200 **** <File RelPath = "WzdAddItem.cs" ! SubType = "UserControl" BuildAction = "Compile" /> --- 201,205 ---- <File RelPath = "WzdAddItem.cs" ! SubType = "Code" BuildAction = "Compile" /> *************** *** 206,210 **** <File RelPath = "WzdSnapinManager.cs" ! SubType = "UserControl" BuildAction = "Compile" /> --- 211,215 ---- <File RelPath = "WzdSnapinManager.cs" ! SubType = "Code" BuildAction = "Compile" /> Index: MyFormNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyFormNode.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MyFormNode.cs 1 Sep 2004 13:05:25 -0000 1.6 --- MyFormNode.cs 7 Nov 2004 14:45:32 -0000 1.7 *************** *** 14,27 **** } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } public override ArrayList Menus { --- 14,33 ---- } ! public override string ResultViewSmallImage { get { ! return "MMCTest2.images.snapin.Ico"; } } + public override string ResultViewLargeImage + { + get + { + return "MMCTest2.images.snapin.Ico"; + } + } + public override ArrayList Menus { Index: MyFolderNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyFolderNode.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MyFolderNode.cs 1 Sep 2004 13:05:25 -0000 1.5 --- MyFolderNode.cs 7 Nov 2004 14:45:32 -0000 1.6 *************** *** 20,30 **** } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } --- 20,36 ---- } ! public override string ResultViewSmallImage { get { ! return "MMCTest2.images.snapin.Ico"; ! } ! } ! ! public override string ResultViewLargeImage ! { ! get ! { ! return "MMCTest2.images.snapin.Ico"; } } |
From: Lesley v. Z. <ex...@us...> - 2004-11-07 14:44:45
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7307/Nodes Modified Files: BaseNode.cs ReportNode.cs ResultViewItem.cs Log Message: - both m_nLargeImage and m_nSmallImage aren't hardcoded anymore, - removed the node.ResultViewImages Arraylist and changed it to two properties: public string ResultViewLargeImage public string ResultViewSmallImage - tested if the non 'string' ImageList.Add() is even used - not hardcoded anymore: protected int m_nClosedImage = 0; protected int m_nOpenImage = 1; Index: BaseNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/BaseNode.cs,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** BaseNode.cs 20 Oct 2004 14:33:57 -0000 1.25 --- BaseNode.cs 7 Nov 2004 14:44:36 -0000 1.26 *************** *** 87,106 **** /// Index into ImageCollection /// </summary> ! protected int m_nClosedImage = 0; /// <summary> /// Index into ImageCollection /// </summary> ! protected int m_nOpenImage = 1; /// <summary> /// Index into ImageCollection /// </summary> ! protected int m_nSmallImage = 0; /// <summary> /// Index into ImageCollection /// </summary> ! protected int m_nLargeImage = 1; /// <summary> --- 87,106 ---- /// Index into ImageCollection /// </summary> ! protected int m_nClosedImage = -1; /// <summary> /// Index into ImageCollection /// </summary> ! protected int m_nOpenImage = -1; /// <summary> /// Index into ImageCollection /// </summary> ! protected int m_nSmallImage = -1; /// <summary> /// Index into ImageCollection /// </summary> ! protected int m_nLargeImage = -1; /// <summary> *************** *** 498,502 **** /// method. Many nodes can share the same image index. /// </summary> ! public ImageList ResultPaneImages { get --- 498,502 ---- /// method. Many nodes can share the same image index. /// </summary> ! public virtual ImageList ResultPaneImages { get *************** *** 2044,2048 **** #region Icon handling ! protected ArrayList m_resultViewImages = null; /// <summary> /// Get all possible images for this result view. --- 2044,2048 ---- #region Icon handling ! protected string m_resultViewSmallImages; /// <summary> /// Get all possible images for this result view. *************** *** 2050,2065 **** /// access images from the images returned by this call. /// </summary> ! public virtual ArrayList ResultViewImages { ! get ! { ! if(m_resultViewImages == null) ! m_resultViewImages = new ArrayList(); ! ! return m_resultViewImages; ! } ! set { m_resultViewImages = value; } } /// <summary> /// Override to force-add all images from ResultViewImages asap. --- 2050,2071 ---- /// access images from the images returned by this call. /// </summary> ! public virtual string ResultViewSmallImage { ! get { return m_resultViewSmallImages; } ! set { m_resultViewSmallImages = value; } } + protected string m_resultViewLargeImage; + /// <summary> + /// Get all possible images for this result view. + /// Items in the result-view for this node should only + /// access images from the images returned by this call. + /// </summary> + public virtual string ResultViewLargeImage + { + get{ return m_resultViewLargeImage; } + set { m_resultViewLargeImage = value; } + } + /// <summary> /// Override to force-add all images from ResultViewImages asap. *************** *** 2068,2086 **** public virtual void OnAddResultPaneImages(IImageList il) { ! ArrayList images = this.ResultViewImages; if(ResultPaneImages == null) - { ResultPaneImages = new ImageList(); - } ! for(int i=0,max=images.Count; i<max; i++) ! { ! if(images[i] is string) ! ResultPaneImages.Add((string)images[i]); ! else ! ResultPaneImages.Add(images[i]); ! } ! if (ResultPaneImages != null) ! ResultPaneImages.LoadImageList(il, m_iCookie); // Now add all the children images --- 2074,2090 ---- public virtual void OnAddResultPaneImages(IImageList il) { ! string sResultImage = this.ResultViewSmallImage; ! string lResultImage = this.ResultViewLargeImage; ! if(ResultPaneImages == null) ResultPaneImages = new ImageList(); ! if(sResultImage!=null) ! SmallImageIndex = ResultPaneImages.Add(sResultImage); ! ! if(lResultImage!=null) ! LargeImageIndex = ResultPaneImages.Add(lResultImage); ! ! ResultPaneImages.LoadImageList(il, m_iCookie); // Now add all the children images Index: ResultViewItem.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/ResultViewItem.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ResultViewItem.cs 22 Jul 2004 14:07:04 -0000 1.8 --- ResultViewItem.cs 7 Nov 2004 14:44:37 -0000 1.9 *************** *** 226,230 **** /// </summary> /// <param name="snapin">The snapin</param> ! /// <param name="node">The reportnode-ext</param> /// <param name="displayName">The display name for the item. This is the only guaranteed visible column.</param> /// <param name="smallImageName">The name of the small-image. Should be available in the report node</param> --- 226,230 ---- /// </summary> /// <param name="snapin">The snapin</param> ! /// <param name="node">The reportnode</param> /// <param name="displayName">The display name for the item. This is the only guaranteed visible column.</param> /// <param name="smallImageName">The name of the small-image. Should be available in the report node</param> *************** *** 238,242 **** node.ResultPaneImages = new ImageList(); } ! m_largeImage = node.ResultPaneImages.Add(largeImageName); m_smallImage = node.ResultPaneImages.Add(smallImageName); m_dummy1 = node.ResultPaneImages.Add(largeImageName); --- 238,242 ---- node.ResultPaneImages = new ImageList(); } ! m_largeImage = node.ResultPaneImages.Add(largeImageName); m_smallImage = node.ResultPaneImages.Add(smallImageName); m_dummy1 = node.ResultPaneImages.Add(largeImageName); Index: ReportNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/ReportNode.cs,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** ReportNode.cs 19 Oct 2004 20:50:12 -0000 1.20 --- ReportNode.cs 7 Nov 2004 14:44:37 -0000 1.21 *************** *** 5,8 **** --- 5,9 ---- using System.Threading; using Ironring.MMC.Core; + using Ironring.MMC.Nodes.NodeEvents; using Ironring.MMC.PropertyPages; *************** *** 125,129 **** public ReportNode(SnapinBase snapin, String name, String closedIco, String openIco) : base(snapin, name, closedIco, openIco) ! { } #endregion --- 126,130 ---- public ReportNode(SnapinBase snapin, String name, String closedIco, String openIco) : base(snapin, name, closedIco, openIco) ! { } #endregion *************** *** 856,859 **** --- 857,864 ---- } } + + } + + } |
From: Lesley v. Z. <ex...@us...> - 2004-11-07 14:44:45
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7307 Modified Files: Changelog.txt Common.cs Interfaces.cs Log Message: - both m_nLargeImage and m_nSmallImage aren't hardcoded anymore, - removed the node.ResultViewImages Arraylist and changed it to two properties: public string ResultViewLargeImage public string ResultViewSmallImage - tested if the non 'string' ImageList.Add() is even used - not hardcoded anymore: protected int m_nClosedImage = 0; protected int m_nOpenImage = 1; Index: Common.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Common.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Common.cs 20 Sep 2004 20:28:10 -0000 1.8 --- Common.cs 7 Nov 2004 14:44:36 -0000 1.9 *************** *** 585,590 **** /// Menu items, insertion points, and further submenus can be added to this submenu using its lCommandID as their lInsertionPointID. /// </summary> ! //not supported by mmc ! //POPUP = 0x00000010, /// <summary> --- 585,589 ---- /// Menu items, insertion points, and further submenus can be added to this submenu using its lCommandID as their lInsertionPointID. /// </summary> ! POPUP = 0x00000010, /// <summary> *************** *** 722,725 **** --- 721,735 ---- CharSet=CharSet.Auto) ] + struct MMC_VISIBLE_COLUMNS + { + public int nVisibleColumns; + // FIXME needs some marshalling:/ + public int[] rgVisibleCols; + } + + [ + StructLayout(LayoutKind.Sequential, + CharSet=CharSet.Auto) + ] struct LOGFONT { *************** *** 793,796 **** --- 803,807 ---- public IntPtr displayname; public int nImage; + //public short nImage; public int nOpenImage; public uint nState; *************** *** 956,959 **** --- 967,1007 ---- }// struct ACTCTX + [ + StructLayout(LayoutKind.Sequential) + ] + public struct RDITEMHDR + { + public uint dwFlags; + public IntPtr cookie; + public IntPtr lpReserved; + + /* + DWORD dwFlags; + MMC_COOKIE cookie; + LPARAM lpReserved; + */ + } + + [ + StructLayout(LayoutKind.Sequential) + ] + public struct RDCOMPARE + { + public uint cbSize; + public uint dwFlags; + public int nColumn; + public IntPtr lUserParam; + public IntPtr prdch1; + public IntPtr prdch2; + + /* + DWORD cbSize; + DWORD dwFlags; + int nColumn; + LPARAM lUserParam; + RDITEMHDR* prdch1; + RDITEMHDR* prdch2; + */ + } Index: Changelog.txt =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Changelog.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Changelog.txt 21 Jul 2004 15:26:25 -0000 1.5 --- Changelog.txt 7 Nov 2004 14:44:36 -0000 1.6 *************** *** 6,9 **** --- 6,10 ---- - Ironring.MMC.Wizards - Ironring.MMC.Nodes + - Ironring.MMC.Nodes.NodeEvents - Ironring.MMC.ProperyPages *************** *** 36,39 **** --- 37,41 ---- - Added a virtual property for Menus/Tasks/ResultViewImages - Added better ctors with icon handling + - Everynode has it's own ImageList for ResultPaneImages Nodes/FormNode: Index: Interfaces.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Interfaces.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Interfaces.cs 20 Jul 2004 15:06:26 -0000 1.5 --- Interfaces.cs 7 Nov 2004 14:44:36 -0000 1.6 *************** *** 353,361 **** } ////////////////////////////////////////////////////////////////////// // // Linkage between usercontrols in a form node and the base snapin // - /// <summary> /// ISnapinLink is used to link a usercontrol to snapin objects. Custom UserControls --- 353,383 ---- } + // Added by Greg Arnold + /// <summary> + /// Summary description for IResultDataCompareEx. + /// </summary> + [ + ComImport, + InterfaceType(ComInterfaceType.InterfaceIsIUnknown), + Guid("96933476-0251-11d3-AEB0-00C04F8ECD78") + ] + public interface IResultDataCompareEx + { + void Compare(ref RDCOMPARE prdc, out int pnResult); + } + + [ComImport, + InterfaceType(ComInterfaceType.InterfaceIsIUnknown), + Guid("E8315A52-7A1A-11D0-A2D2-00C04FD909DD") + ] + public interface IResultDataCompare + { + void Compare(long lUserParam, long cookieA, long cookieB, IntPtr pnResult); + } + ////////////////////////////////////////////////////////////////////// // // Linkage between usercontrols in a form node and the base snapin // /// <summary> /// ISnapinLink is used to link a usercontrol to snapin objects. Custom UserControls |
From: Lesley v. Z. <ex...@us...> - 2004-11-07 14:44:45
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7307/Core Modified Files: ImageList.cs SnapinBase.cs Log Message: - both m_nLargeImage and m_nSmallImage aren't hardcoded anymore, - removed the node.ResultViewImages Arraylist and changed it to two properties: public string ResultViewLargeImage public string ResultViewSmallImage - tested if the non 'string' ImageList.Add() is even used - not hardcoded anymore: protected int m_nClosedImage = 0; protected int m_nOpenImage = 1; Index: ImageList.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/ImageList.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ImageList.cs 4 May 2004 13:54:30 -0000 1.4 --- ImageList.cs 7 Nov 2004 14:44:36 -0000 1.5 *************** *** 610,615 **** catch (Exception e) { ! // ceh.OnThreadException(this, new ThreadExceptionEventArgs(e)); ! throw new SnapinException("LoadImageList failed. Reason: " + e.Message); } --- 610,615 ---- catch (Exception e) { ! ceh.OnThreadException(this, new ThreadExceptionEventArgs(e)); ! //throw new SnapinException("LoadImageList failed. Reason: " + e.Message); } Index: SnapinBase.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/SnapinBase.cs,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** SnapinBase.cs 20 Oct 2004 12:28:16 -0000 1.19 --- SnapinBase.cs 7 Nov 2004 14:44:36 -0000 1.20 *************** *** 35,38 **** --- 35,39 ---- ,IPersistStream { + /// <summary> /// |
From: Alexander K. <kac...@us...> - 2004-11-01 06:09:30
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12642/MMCLib Modified Files: BaseNode.cs Component.cs PropertySheet.cs _ChangeLog.txt Added Files: MMCLibResource.es.resx MMCLibResource.resx Log Message: - Applied patches: [ 1047351 ] Changes for Spanish Translated property pages ((Thanks to joe) [ 1025067 ] Column sorting for non-string datatypes (Thanks to Greg Arnold) Index: _ChangeLog.txt =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/_ChangeLog.txt,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** _ChangeLog.txt 9 Sep 2004 04:27:15 -0000 1.17 --- _ChangeLog.txt 1 Nov 2004 06:09:18 -0000 1.18 *************** *** 1,7 **** ver 1.6.7 - Applied patches: [ 1024677 ] ENH: re-using user control instances (Thanks to Kent Rollins) [ 1022855 ] Allow jump to specific wizard page (Thanks to Johnson Chu) ! [ 1015069 ] Performance improvement for SortListNode (5000+ items) (Thanks to Greg Arnold)) [ 1008301 ] Warning Message for lost changes (Thanks to joe) [ 983638 ] Fix for catastrophic failure on FormNode Refresh (Thanks to Chris Osborn) --- 1,9 ---- ver 1.6.7 - Applied patches: + [ 1047351 ] Changes for Spanish Translated property pages ((Thanks to joe) + [ 1025067 ] Column sorting for non-string datatypes (Thanks to Greg Arnold) [ 1024677 ] ENH: re-using user control instances (Thanks to Kent Rollins) [ 1022855 ] Allow jump to specific wizard page (Thanks to Johnson Chu) ! [ 1015069 ] Performance improvement for SortListNode (5000+ items) (Thanks to Greg Arnold) [ 1008301 ] Warning Message for lost changes (Thanks to joe) [ 983638 ] Fix for catastrophic failure on FormNode Refresh (Thanks to Chris Osborn) --- NEW FILE: MMCLibResource.es.resx --- (This appears to be a binary file; contents omitted.) Index: BaseNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/BaseNode.cs,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** BaseNode.cs 9 Sep 2004 04:27:15 -0000 1.28 --- BaseNode.cs 1 Nov 2004 06:09:18 -0000 1.29 *************** *** 1021,1024 **** --- 1021,1058 ---- m_propSheet = null; } + + // Added by Greg Arnold + /// <summary> + /// This function is called when SortComponent is used. This virtual method + /// allows for custom sorting implementations. For example, when you want + /// to handle DateTime display text vs. DateTime for sorting. + /// </summary> + /// <param name="nCol"></param> + /// <param name="lParam"></param> + /// <returns></returns> + public virtual IComparable GetSortCompareInfo(int nCol, int lParam) + { + IComparable comparer = null; + + // Get the node + BaseNode node = Snapin.FindNode(lParam); + if (node != null) + { + // Request the node's display info + RESULTDATAITEM rdi = new RESULTDATAITEM(); + rdi.mask = (uint)RDI.STR; + rdi.lParam = lParam; + rdi.nCol = nCol; + + node.GetDisplayInfo(ref rdi); + + // Get the display text and return its IComparable + string data = Marshal.PtrToStringAuto(rdi.str); + comparer = (data as IComparable); + } + + return comparer; + } + #endregion /////////////////////////////////////////////////////////////////////// Index: PropertySheet.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/PropertySheet.cs,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** PropertySheet.cs 9 Sep 2004 04:27:15 -0000 1.11 --- PropertySheet.cs 1 Nov 2004 06:09:18 -0000 1.12 *************** *** 6,9 **** --- 6,11 ---- using System.ComponentModel; using System.Runtime.InteropServices; + using System.Resources; + using System.Reflection; namespace Ironring.Management.MMC *************** *** 150,155 **** foreach (PropertyPage page in m_alPages) { - // Initialize the Property Pages - page.PropertySheet = this; if (page.Size.Width > nWidth) nWidth = page.Size.Width; --- 152,155 ---- *************** *** 164,167 **** --- 164,169 ---- foreach (PropertyPage page in m_alPages) { + // Initialize the Property Pages + page.PropertySheet = this; // Create a Tab page that we can use m_tc.TabPages.Add(page.CreateTabPage()); *************** *** 195,200 **** // Now put the Ok, Cancel, and Apply buttons on the page. ! // We'll have a 15 pixel buffer between the tab control and the buttons nHeight += 15; --- 197,203 ---- // Now put the Ok, Cancel, and Apply buttons on the page. + ResourceManager resourceManager = new ResourceManager("Ironring.Management.MMC.MMCLibResource", System.Reflection.Assembly.GetExecutingAssembly()); ! // We'll have a 15 pixel buffer between the tab control and the buttons nHeight += 15; *************** *** 202,206 **** m_btnApply.Size = new System.Drawing.Size(75, 23); m_btnApply.Location = new Point(nWidth-m_btnApply.Width+4, nHeight); ! m_btnApply.Text = "Apply"; m_btnApply.Enabled = false; m_btnApply.TabIndex = 3; --- 205,209 ---- m_btnApply.Size = new System.Drawing.Size(75, 23); m_btnApply.Location = new Point(nWidth-m_btnApply.Width+4, nHeight); ! m_btnApply.Text = resourceManager.GetString("Apply"); m_btnApply.Enabled = false; m_btnApply.TabIndex = 3; *************** *** 213,217 **** m_btnCancel.Size = new System.Drawing.Size(75, 23); m_btnCancel.Location = new Point(m_btnApply.Location.X - m_btnCancel.Width-5, nHeight); ! m_btnCancel.Text = "Cancel"; m_btnCancel.Click += new EventHandler(onCancelClick); m_btnCancel.TabIndex = 2; --- 216,220 ---- m_btnCancel.Size = new System.Drawing.Size(75, 23); m_btnCancel.Location = new Point(m_btnApply.Location.X - m_btnCancel.Width-5, nHeight); ! m_btnCancel.Text = resourceManager.GetString("Cancel"); m_btnCancel.Click += new EventHandler(onCancelClick); m_btnCancel.TabIndex = 2; *************** *** 223,227 **** m_btnOk.Size = new System.Drawing.Size(75, 23); m_btnOk.Location = new Point(m_btnCancel.Location.X - m_btnOk.Width - 5, nHeight); ! m_btnOk.Text = "OK"; m_btnOk.TabIndex = 1; m_btnOk.Click += new EventHandler(onOkClick); --- 226,230 ---- m_btnOk.Size = new System.Drawing.Size(75, 23); m_btnOk.Location = new Point(m_btnCancel.Location.X - m_btnOk.Width - 5, nHeight); ! m_btnOk.Text = resourceManager.GetString("OK"); m_btnOk.TabIndex = 1; m_btnOk.Click += new EventHandler(onOkClick); *************** *** 273,277 **** Node.EditMode = false; e.Cancel = false; ! onCancelClick(o, e); } --- 276,280 ---- Node.EditMode = false; e.Cancel = false; ! FakeClose(); } *************** *** 304,309 **** if(IsApplyEnabled() == true) { ! switch(MessageBox.Show("Some property data may have changed. Do you want to save your changes?", ! "Save Changes?", MessageBoxButtons.YesNoCancel)) { --- 307,314 ---- if(IsApplyEnabled() == true) { ! ResourceManager resourceManager = new ResourceManager("Ironring.Management.MMC.MMCLibResource", System.Reflection.Assembly.GetExecutingAssembly()); ! ! switch(MessageBox.Show(resourceManager.GetString("DataHasChanged"), ! resourceManager.GetString("SaveChanges"), MessageBoxButtons.YesNoCancel)) { *************** *** 378,381 **** --- 383,387 ---- } + /// <summary> /// This sends the apply message to every --- NEW FILE: MMCLibResource.resx --- <?xml version="1.0" encoding="utf-8" ?> <root> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="ResMimeType"> <value>text/microsoft-resx</value> </resheader> <resheader name="Version"> <value>1.0.0.0</value> </resheader> <resheader name="Reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="Writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="Apply"> <value>Apply</value> </data> <data name="Cancel"> <value>Cancel</value> </data> <data name="OK"> <value>OK</value> </data> <data name="SaveChanges"> <value>Save Changes?</value> </data> <data name="DataHasChanged"> <value>Some property data may have changed. Do you want to save your changes?</value> </data> </root> Index: Component.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/Component.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Component.cs 9 Sep 2004 04:27:15 -0000 1.17 --- Component.cs 1 Nov 2004 06:09:18 -0000 1.18 *************** *** 920,954 **** // #region ! ! // public virtual void Compare(ref RDCOMPARE prdc, out int pnResult) ! // { ! // int iResult = 0; ! // ! // try ! // { ! // if (m_Snapin.CurrentScopeNode != null) ! // { ! // MyNodeType node = (m_Snapin.CurrentScopeNode as MyNodeType); ! // if (node != null) ! // { ! // RDITEMHDR item1 = (RDITEMHDR)Marshal.PtrToStructure(prdc.prdch1, typeof(RDITEMHDR)); ! // RDITEMHDR item2 = (RDITEMHDR)Marshal.PtrToStructure(prdc.prdch2, typeof(RDITEMHDR)); ! // ! // IComparable comparer1 = node.GetSortCompareInfo(prdc.nColumn, item1.cookie.ToInt32()); ! // IComparable comparer2 = node.GetSortCompareInfo(prdc.nColumn, item2.cookie.ToInt32()); ! // ! // iResult = comparer1.CompareTo(comparer2); ! // } ! // } ! // } ! // catch(Exception ex) ! // { ! // //TODO: Add error handling ! // ! // } ! // ! // pnResult = iResult; ! // } #endregion } --- 920,956 ---- // #region ! public void Compare(ref RDCOMPARE prdc, out int pnResult) ! { ! int iResult = 0; ! ! try ! { ! if (m_Snapin.CurrentScopeNode != null) ! { ! BaseNode node = (m_Snapin.CurrentScopeNode as BaseNode); ! if (node != null) ! { ! RDITEMHDR item1 = (RDITEMHDR)Marshal.PtrToStructure(prdc.prdch1, typeof(RDITEMHDR)); ! RDITEMHDR item2 = (RDITEMHDR)Marshal.PtrToStructure(prdc.prdch2, typeof(RDITEMHDR)); + IComparable comparer1 = node.GetSortCompareInfo(prdc.nColumn, item1.cookie.ToInt32()); + IComparable comparer2 = node.GetSortCompareInfo(prdc.nColumn, item2.cookie.ToInt32()); + + if ((comparer1 != null) && (comparer2 != null)) + { + iResult = comparer1.CompareTo(comparer2); + } + } + } + } + catch(Exception ex) + { + string method = this.GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name + "(): "; + System.Diagnostics.Trace.WriteLine(method, "EXCEPTION"); + throw ex; + } + + pnResult = iResult; + } #endregion } |
From: Lesley v. Z. <ex...@us...> - 2004-10-21 07:16:12
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13482 Modified Files: Component.cs Log Message: ResultViewImages didn't do it since I changed it from string[] to ArrayList to fix it I changed Component::OnAddResultPaneImages so it worked on non OCXNodes instead of only OCXNodes And checked if the object that was added to the imagelist was an string or not Index: Component.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/Component.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Component.cs 19 Oct 2004 20:49:05 -0000 1.16 --- Component.cs 20 Oct 2004 14:32:05 -0000 1.17 *************** *** 425,429 **** { // this notice will fail if the node is an instance of OCXNode ! if (node is OCXNode) { hr = HRESULT.S_FALSE; --- 425,429 ---- { // this notice will fail if the node is an instance of OCXNode ! if (!(node is OCXNode)) { hr = HRESULT.S_FALSE; |
From: Lesley v. Z. <ex...@us...> - 2004-10-21 04:21:03
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13352 Modified Files: SnapinBase.cs Log Message: [ 1017568 ] IPersistStream.IsDirty() always return true Index: SnapinBase.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/SnapinBase.cs,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** SnapinBase.cs 1 Sep 2004 12:49:27 -0000 1.18 --- SnapinBase.cs 20 Oct 2004 12:28:16 -0000 1.19 *************** *** 939,946 **** return 0; } else { ! return -1; } } else { ! return -1; } } --- 939,946 ---- return 0; } else { ! return 1; } } else { ! return 1; } } |
From: Lesley v. Z. <ex...@us...> - 2004-10-20 14:34:06
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14026 Modified Files: BaseNode.cs Log Message: ResultViewImages didn't do it since I changed it from string[] to ArrayList to fix it I changed Component::OnAddResultPaneImages so it worked on non OCXNodes instead of only OCXNodes And checked if the object that was added to the imagelist was an string or not Index: BaseNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/BaseNode.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** BaseNode.cs 19 Oct 2004 20:50:11 -0000 1.24 --- BaseNode.cs 20 Oct 2004 14:33:57 -0000 1.25 *************** *** 2076,2080 **** for(int i=0,max=images.Count; i<max; i++) { ! ResultPaneImages.Add(images[i]); } if (ResultPaneImages != null) --- 2076,2083 ---- for(int i=0,max=images.Count; i<max; i++) { ! if(images[i] is string) ! ResultPaneImages.Add((string)images[i]); ! else ! ResultPaneImages.Add(images[i]); } if (ResultPaneImages != null) |
From: Lesley v. Z. <ex...@us...> - 2004-10-19 20:51:35
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Wizards In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19476 Modified Files: WizardBase.cs Log Message: in sync with mmclib1.67 Index: WizardBase.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Wizards/WizardBase.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** WizardBase.cs 22 Jul 2004 14:07:05 -0000 1.4 --- WizardBase.cs 19 Oct 2004 20:51:17 -0000 1.5 *************** *** 84,87 **** --- 84,96 ---- /// <summary> + /// Get or set the current wizard page + /// </summary> + public int SelectedPage + { + set{this.tabWizardPages.SelectedIndex = value;} + get{return this.tabWizardPages.SelectedIndex;} + } + + /// <summary> /// Show a modal dialog with an exception. /// </summary> |
From: Lesley v. Z. <ex...@us...> - 2004-10-19 20:50:55
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/PropertyPages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19339 Modified Files: PropertySheet.cs Log Message: in sync with mmclib1.67 Index: PropertySheet.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/PropertyPages/PropertySheet.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PropertySheet.cs 22 Jul 2004 14:07:05 -0000 1.9 --- PropertySheet.cs 19 Oct 2004 20:50:43 -0000 1.10 *************** *** 343,352 **** void onCancelClick(Object o, EventArgs e) { ! //Added by Alexander Kachalkov ! base.DialogResult = DialogResult.Cancel; ! foreach(PropertyPage page in m_alPages) ! page.onCancel(); ! FakeClose(); } --- 343,383 ---- void onCancelClick(Object o, EventArgs e) { ! if(IsApplyEnabled() == true) ! { ! switch(MessageBox.Show("Some property data may have changed. Do you want to save your changes?", ! "Save Changes?", ! MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning)) ! { ! case DialogResult.Yes: ! onApplyClick(o, e); ! break; ! case DialogResult.No: ! base.DialogResult = DialogResult.Cancel; ! ! foreach(PropertyPage page in m_alPages) ! page.onCancel(); ! FakeClose(); ! break; ! case DialogResult.Cancel: ! base.DialogResult = DialogResult.None; ! break; ! default: ! base.DialogResult = DialogResult.Cancel; ! ! foreach(PropertyPage page in m_alPages) ! page.onCancel(); ! FakeClose(); ! break; ! } ! } ! else ! { ! base.DialogResult = DialogResult.Cancel; ! ! foreach(PropertyPage page in m_alPages) ! page.onCancel(); ! FakeClose(); ! } } |
From: Lesley v. Z. <ex...@us...> - 2004-10-19 20:50:23
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19211 Modified Files: BaseNode.cs ReportNode.cs Log Message: in sync with mmclib1.67 Index: BaseNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/BaseNode.cs,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** BaseNode.cs 1 Sep 2004 12:58:30 -0000 1.23 --- BaseNode.cs 19 Oct 2004 20:50:11 -0000 1.24 *************** *** 490,494 **** { get { return m_sDisplayName; } ! set { m_sDisplayName = value; } } --- 490,494 ---- { get { return m_sDisplayName; } ! set { m_sDisplayName = value;} } *************** *** 884,909 **** //Added Alexander Ovchinnikov ! public void Remove( bool removeChildrenOnly ) { //---delete node and its children ! if( this.HScopeItem != 0 ){ Snapin.ConsoleNameSpace.DeleteItem( ( uint )this.HScopeItem, Convert.ToInt32( !removeChildrenOnly )); - } //---set scope to the root ! foreach( BaseNode node in m_ChildNodes ){ ! if( node.NumChildren != 0 ){ node.Remove(true); - } Snapin.Unregister(node); } m_ChildNodes.Clear( ); ! if (!removeChildrenOnly){ ! if( this.ParentHScopeItem != 0 ){ ! if( this.Snapin.FindNodeByHScope( this.ParentHScopeItem ) != null ){ this.Snapin.ResultViewConsole.SelectScopeItem(this.ParentHScopeItem); ! }else{ System.Diagnostics.Debug.WriteLine( this.DisplayName ); - } } Snapin.Unregister(this); --- 884,910 ---- //Added Alexander Ovchinnikov ! public void Remove( bool removeChildrenOnly ) ! { //---delete node and its children ! if( this.HScopeItem != 0 ) Snapin.ConsoleNameSpace.DeleteItem( ( uint )this.HScopeItem, Convert.ToInt32( !removeChildrenOnly )); //---set scope to the root ! foreach( BaseNode node in m_ChildNodes ) ! { ! if( node.NumChildren != 0 ) node.Remove(true); Snapin.Unregister(node); } m_ChildNodes.Clear( ); ! if (!removeChildrenOnly) ! { ! if( this.ParentHScopeItem != 0 ) ! { ! if( this.Snapin.FindNodeByHScope( this.ParentHScopeItem ) != null ) this.Snapin.ResultViewConsole.SelectScopeItem(this.ParentHScopeItem); ! else System.Diagnostics.Debug.WriteLine( this.DisplayName ); } Snapin.Unregister(this); *************** *** 1108,1131 **** } - // commented out because it's already implemented by CreatePropertyPages and ShowModalPropertySheet - // //Added by Alexander Kachalkov - // /// <summary> - // /// This function will create MODAL property sheet pages based - // /// on the information stored in its m_propertyPages field. - // /// It registers the property page along with the callback - // /// functions. - // /// Use it while creating NEW node - // /// </summary> - // /// <param name="lpProvider"></param> - // /// <param name="handle"></param> - // /// <param name="displayName"></param> - // public void CreatePropertyPagesModal(IPropertySheetCallback lpProvider, IntPtr handle, string displayName) - // { - // if (this.m_propSheet == null || m_propSheet.isClosed) - // CreatePropertySheet(displayName); - // else - // m_propSheet.Activate(); - // } - //Added by Alexander Kachalkov //Added the DisplayName for New Mode title --- 1109,1112 ---- *************** *** 1203,1206 **** --- 1184,1220 ---- m_propSheet = null; } + + // Added by Greg Arnold + /// <summary> + /// This function is called when SortComponent is used. This virtual method + /// allows for custom sorting implementations. For example, when you want + /// to handle DateTime display text vs. DateTime for sorting. + /// </summary> + /// <param name="nCol"></param> + /// <param name="lParam"></param> + /// <returns></returns> + public virtual IComparable GetSortCompareInfo(int nCol, int lParam) + { + IComparable comparer = null; + + // Get the node + BaseNode node = Snapin.FindNode(lParam); + if (node != null) + { + // Request the node's display info + RESULTDATAITEM rdi = new RESULTDATAITEM(); + rdi.mask = (uint)RDI.STR; + rdi.lParam = lParam; + rdi.nCol = nCol; + + node.GetDisplayInfo(ref rdi); + + // Get the display text and return its IComparable + string data = Marshal.PtrToStringAuto(rdi.str); + comparer = (data as IComparable); + } + + return comparer; + } #endregion Index: ReportNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/ReportNode.cs,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** ReportNode.cs 1 Sep 2004 13:01:00 -0000 1.19 --- ReportNode.cs 19 Oct 2004 20:50:12 -0000 1.20 *************** *** 136,140 **** // Allow multiselect if(m_MultiSelectMode) ! pViewOptions = pViewOptions | (int)MMC_VIEW_OPTIONS.MULTISELECT; return returnValue; } --- 136,140 ---- // Allow multiselect if(m_MultiSelectMode) ! pViewOptions |= (int)MMC_VIEW_OPTIONS.MULTISELECT; return returnValue; } |
From: Lesley v. Z. <ex...@us...> - 2004-10-19 20:49:15
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18825 Modified Files: Component.cs MenuItem.cs Log Message: in sync with mmclib1.67 Index: Component.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/Component.cs,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** Component.cs 1 Sep 2004 12:40:34 -0000 1.15 --- Component.cs 19 Oct 2004 20:49:05 -0000 1.16 *************** *** 144,148 **** m_Console = pConsole as IConsole2; } ! /// <summary> /// This is the primary MMC communication channel concerning, it will --- 144,149 ---- m_Console = pConsole as IConsole2; } ! ! /// <summary> /// This is the primary MMC communication channel concerning, it will *************** *** 1318,1321 **** --- 1319,1380 ---- } #endregion + + + + ////////////////////////////////////////////////////////////////////// + // + // IResultDataCompare implementation + // NOT TESTED//IMPLEMENTED + #region + public virtual void Compare(long lUserParam, long cookieA, long cookieB, IntPtr pnResult) + { + + } + + + #endregion + + ////////////////////////////////////////////////////////////////////// + // + // IResultDataCompareEx implementation + // + #region + /// <summary> + /// + /// </summary> + /// <param name="prdc"></param> + /// <param name="pnResult"></param> + public virtual void Compare(ref RDCOMPARE prdc, out int pnResult) + { + int iResult = 0; + + try + { + if (m_Snapin.CurrentScopeNode != null) + { + BaseNode node = (m_Snapin.CurrentScopeNode as BaseNode); + if (node != null) + { + RDITEMHDR item1 = (RDITEMHDR)Marshal.PtrToStructure(prdc.prdch1, typeof(RDITEMHDR)); + RDITEMHDR item2 = (RDITEMHDR)Marshal.PtrToStructure(prdc.prdch2, typeof(RDITEMHDR)); + + IComparable comparer1 = node.GetSortCompareInfo(prdc.nColumn, item1.cookie.ToInt32()); + IComparable comparer2 = node.GetSortCompareInfo(prdc.nColumn, item2.cookie.ToInt32()); + + if ((comparer1 != null) && (comparer2 != null)) + iResult = comparer1.CompareTo(comparer2); + } + } + } + catch(Exception ex) + { + string method = this.GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name + "(): "; + System.Diagnostics.Trace.WriteLine(method, "EXCEPTION"); + throw ex; + } + + pnResult = iResult; + } + #endregion } } Index: MenuItem.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/MenuItem.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MenuItem.cs 22 Jul 2004 14:07:04 -0000 1.6 --- MenuItem.cs 19 Oct 2004 20:49:05 -0000 1.7 *************** *** 38,43 **** // #region /// <summary> ! /// Name can support mnemonics like &File /// </summary> protected string m_Name; --- 38,49 ---- // #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; *************** *** 47,51 **** /// Flag to control visibility of the menu /// </summary> ! protected bool m_Visible; /// <summary> --- 53,57 ---- /// Flag to control visibility of the menu /// </summary> ! protected bool m_Visible = true; /// <summary> *************** *** 58,62 **** /// The integer command that MMC uses when if fires the command /// </summary> ! protected int m_nCommandId; #endregion --- 64,68 ---- /// The integer command that MMC uses when if fires the command /// </summary> ! protected int m_nCommandId = 0; #endregion *************** *** 66,69 **** --- 72,85 ---- // #region + + /// <summary> + /// The menu unique identifier. + /// </summary> + public string ID + { + get{ return m_ID; } + set{ m_ID = value; } + } + /// <summary> /// The menu display name *************** *** 145,150 **** m_StatusText = statusText; Handler += handler; - m_nCommandId = 0; - m_Visible = true; } --- 161,164 ---- *************** *** 155,158 **** --- 169,185 ---- } + ///Added by Greg Arnold + /// <summary> + /// Common usage ctor to provide the class flields at once + /// </summary> + /// <param name="id"></param> + /// <param name="Name"></param> + /// <param name="StatusText"></param> + /// <param name="handler"></param> + public MenuItem(string id, string name, string statusText, MenuCommandHandler handler) : this(name,statusText,handler) + { + m_ID = id; + } + /// <summary> |
From: Lesley v. Z. <ex...@us...> - 2004-10-19 16:46:46
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCFormsShim In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24673 Modified Files: MMCFormsShim.idl MMCFormsShimCtrl.cpp MMCFormsShimCtrl.h Log Message: Added patch: [ 1024677 ] ENH: re-using user control instances Index: MMCFormsShimCtrl.h =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCFormsShim/MMCFormsShimCtrl.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MMCFormsShimCtrl.h 5 Nov 2003 14:24:58 -0000 1.1 --- MMCFormsShimCtrl.h 19 Oct 2004 16:46:38 -0000 1.2 *************** *** 135,138 **** --- 135,139 ---- STDMETHOD(HostUserControl)(BSTR AssemblyName, BSTR Class, IUnknown **ppControlObject); + STDMETHOD(RehostUserControl)(IUnknown *pControlObject); Index: MMCFormsShim.idl =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCFormsShim/MMCFormsShim.idl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MMCFormsShim.idl 5 Nov 2003 14:24:58 -0000 1.1 --- MMCFormsShim.idl 19 Oct 2004 16:46:38 -0000 1.2 *************** *** 38,48 **** { [helpstring("method HostUserControl")] HRESULT HostUserControl(BSTR Assembly, BSTR Class, [out,retval] IUnknown** ppControlObject); }; - - - [ uuid(222A2FC0-81A9-4B3B-92B6-1D9E0691BAA8), --- 38,46 ---- { [helpstring("method HostUserControl")] HRESULT HostUserControl(BSTR Assembly, BSTR Class, [out,retval] IUnknown** ppControlObject); + [helpstring("method RehostUserControl")] HRESULT RehostUserControl( IUnknown* pControlObject); }; [ uuid(222A2FC0-81A9-4B3B-92B6-1D9E0691BAA8), Index: MMCFormsShimCtrl.cpp =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCFormsShim/MMCFormsShimCtrl.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MMCFormsShimCtrl.cpp 5 Nov 2003 14:24:58 -0000 1.1 --- MMCFormsShimCtrl.cpp 19 Oct 2004 16:46:38 -0000 1.2 *************** *** 78,82 **** } ! hr = pAssembly->CreateInstance(Class, &m_varFormDisp); if((m_varFormDisp.vt != VT_DISPATCH) && (m_varFormDisp.vt != VT_UNKNOWN) || (!m_varFormDisp.punkVal)) { --- 78,82 ---- } ! hr = pAssembly->CreateInstance(Class, &m_varFormDisp); if((m_varFormDisp.vt != VT_DISPATCH) && (m_varFormDisp.vt != VT_UNKNOWN) || (!m_varFormDisp.punkVal)) { *************** *** 116,119 **** --- 116,156 ---- } + HRESULT CMMCFormsShimCtrl::RehostUserControl(IUnknown *pControlObject) + { + HRESULT hr = S_OK; + + if (m_hWndForm == NULL) + { + RECT rc; + CComPtr<IWin32Window> pIWin32Window; + hr = pControlObject->QueryInterface(IID_IWin32Window, (LPVOID*)&pIWin32Window); + if(FAILED(hr)) + { + Reset(); + return hr; + } + + long nWndForm = 0; + hr = pIWin32Window->get_Handle(&nWndForm); + if(FAILED(hr) || !nWndForm) + { + Reset(); + return hr; + } + + #pragma warning (push) + #pragma warning (disable : 4312) + m_hWndForm = (HWND)nWndForm; + #pragma warning (pop) + + + // parent the form window returned and move it into position + ::SetParent(m_hWndForm, m_hWnd); + ::GetWindowRect(m_hWnd, &rc); + ::MoveWindow(m_hWndForm, 0, 0, rc.right-rc.left, rc.bottom-rc.top, TRUE); + } + + return hr; + } STDMETHODIMP CMMCFormsShimCtrl::get_FormClassName(BSTR* pVal) { |
From: Lesley v. Z. <ex...@us...> - 2004-09-20 20:28:19
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28185 Modified Files: Common.cs Log Message: why wasn't this submitted eariler :/ changes in notifties Index: Common.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Common.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Common.cs 16 Jul 2004 14:13:22 -0000 1.7 --- Common.cs 20 Sep 2004 20:28:10 -0000 1.8 *************** *** 306,315 **** CUTORMOVE = 0x8007, - //Added by Alexander Kachalkov - /// <summary> - /// persist the new column configuration. - /// </summary> - COLUMNS_CHANGED = 0x8022, - /// <summary> /// Double Click --- 306,309 ---- *************** *** 483,487 **** /// The snap-in can use the contents of the structure to position the user interface element (usually a menu) used to change the filter operator. /// </summary> ! GET_FILTER_MENU = 0x801C, /// <summary> --- 477,481 ---- /// The snap-in can use the contents of the structure to position the user interface element (usually a menu) used to change the filter operator. /// </summary> ! FILTERBUTTON_CLICK = 0x801C, /// <summary> *************** *** 491,498 **** /// param = Menu item ID /// </summary> ! FILTER_OPERATOR = 0x801D, //Added by Attila Kapostyak ! PRINT = 0x801E, } --- 485,507 ---- /// param = Menu item ID /// </summary> ! RESTOREVIEW = 0x801D, //Added by Attila Kapostyak ! PRINT = 0x801E, ! ! PRELOAD = 0x801F, ! LISTPAD = 0x8020, ! EXPANDSYNC = 0x8021, ! ! //Added by Alexander Kachalkov ! /// <summary> ! /// persist the new column configuration. ! /// </summary> ! COLUMNS_CHANGED = 0x8022, ! ! CANPASTE_OUTOFPROC = 0x8023, ! ! ! } |
From: Alexander K. <kac...@us...> - 2004-09-09 04:27:37
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23513/MMCLib Modified Files: AssemblyInfo.cs BaseNode.cs Component.cs MMCLib.csproj MenuItem.cs NodeEvents.cs PropertySheet.cs SnapinBase.resx SortListNode.cs WizardBase.cs _ChangeLog.txt interfaces.cs Log Message: ver 1.6.7 - Applied patches: [ 1024677 ] ENH: re-using user control instances (Thanks to Kent Rollins) [ 1022855 ] Allow jump to specific wizard page (Thanks to Johnson Chu) [ 1015069 ] Performance improvement for SortListNode (5000+ items) (Thanks to Greg Arnold)) [ 1008301 ] Warning Message for lost changes (Thanks to joe) [ 983638 ] Fix for catastrophic failure on FormNode Refresh (Thanks to Chris Osborn) [ 970400 ] 1.6.4 Fix: Remove View Menu from OCX Node's context menu (Thanks to Chris Osborn) [ 957342 ] Separate id from display text for MenuItems (Thanks to Greg Arnold) Alexander Kachalkov: - Small additions. Index: SnapinBase.resx =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/SnapinBase.resx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SnapinBase.resx 22 Dec 2003 08:30:37 -0000 1.1 --- SnapinBase.resx 9 Sep 2004 04:27:15 -0000 1.2 *************** *** 1,42 **** ! <?xml version="1.0" encoding="utf-8" ?> <root> ! <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> ! <xsd:element name="root" msdata:IsDataSet="true"> ! <xsd:complexType> ! <xsd:choice maxOccurs="unbounded"> ! <xsd:element name="data"> ! <xsd:complexType> ! <xsd:sequence> ! <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> ! <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> ! </xsd:sequence> ! <xsd:attribute name="name" type="xsd:string" /> ! <xsd:attribute name="type" type="xsd:string" /> ! <xsd:attribute name="mimetype" type="xsd:string" /> ! </xsd:complexType> ! </xsd:element> ! <xsd:element name="resheader"> ! <xsd:complexType> ! <xsd:sequence> ! <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> ! </xsd:sequence> ! <xsd:attribute name="name" type="xsd:string" use="required" /> ! </xsd:complexType> ! </xsd:element> ! </xsd:choice> ! </xsd:complexType> ! </xsd:element> ! </xsd:schema> ! <resheader name="ResMimeType"> ! <value>text/microsoft-resx</value> ! </resheader> ! <resheader name="Version"> ! <value>1.0.0.0</value> ! </resheader> ! <resheader name="Reader"> ! <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> ! </resheader> ! <resheader name="Writer"> ! <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> ! </resheader> ! </root> --- 1,118 ---- ! <?xml version="1.0" encoding="utf-8"?> <root> ! <!-- ! Microsoft ResX Schema ! ! Version 1.3 ! ! The primary goals of this format is to allow a simple XML format ! that is mostly human readable. The generation and parsing of the ! various data types are done through the TypeConverter classes ! associated with the data types. ! ! Example: ! ! ... ado.net/XML headers & schema ... ! <resheader name="resmimetype">text/microsoft-resx</resheader> ! <resheader name="version">1.3</resheader> ! <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> ! <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> ! <data name="Name1">this is my long string</data> ! <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> ! <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> ! [base64 mime encoded serialized .NET Framework object] ! </data> ! <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> ! [base64 mime encoded string representing a byte array form of the .NET Framework object] ! </data> ! ! There are any number of "resheader" rows that contain simple ! name/value pairs. ! ! Each data row contains a name, and value. The row also contains a ! type or mimetype. Type corresponds to a .NET class that support ! text/value conversion through the TypeConverter architecture. ! Classes that don't support this are serialized and stored with the ! mimetype set. ! ! The mimetype is used forserialized objects, and tells the ! ResXResourceReader how to depersist the object. This is currently not ! extensible. For a given mimetype the value must be set accordingly: ! ! Note - application/x-microsoft.net.object.binary.base64 is the format ! that the ResXResourceWriter will generate, however the reader can ! read any of the formats listed below. ! ! mimetype: application/x-microsoft.net.object.binary.base64 ! value : The object must be serialized with ! : System.Serialization.Formatters.Binary.BinaryFormatter ! : and then encoded with base64 encoding. ! ! mimetype: application/x-microsoft.net.object.soap.base64 ! value : The object must be serialized with ! : System.Runtime.Serialization.Formatters.Soap.SoapFormatter ! : and then encoded with base64 encoding. ! ! mimetype: application/x-microsoft.net.object.bytearray.base64 ! value : The object must be serialized into a byte array ! : using a System.ComponentModel.TypeConverter ! : and then encoded with base64 encoding. ! --> ! <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> ! <xsd:element name="root" msdata:IsDataSet="true"> ! <xsd:complexType> ! <xsd:choice maxOccurs="unbounded"> ! <xsd:element name="data"> ! <xsd:complexType> ! <xsd:sequence> ! <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> ! <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> ! </xsd:sequence> ! <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> ! <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> ! <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> ! </xsd:complexType> ! </xsd:element> ! <xsd:element name="resheader"> ! <xsd:complexType> ! <xsd:sequence> ! <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> ! </xsd:sequence> ! <xsd:attribute name="name" type="xsd:string" use="required" /> ! </xsd:complexType> ! </xsd:element> ! </xsd:choice> ! </xsd:complexType> ! </xsd:element> ! </xsd:schema> ! <resheader name="resmimetype"> ! <value>text/microsoft-resx</value> ! </resheader> ! <resheader name="version"> ! <value>1.3</value> ! </resheader> ! <resheader name="reader"> ! <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> ! </resheader> ! <resheader name="writer"> ! <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> ! </resheader> ! <data name="FilterMenu.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> ! <value>Private</value> ! </data> ! <data name="FilterMenu.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> ! <value>17, 17</value> ! </data> ! <data name="FilterMenu.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> ! <value>Public</value> ! </data> ! <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> ! <value>Private</value> ! </data> ! <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> ! <value>False</value> ! </data> ! <data name="$this.Name"> ! <value>SnapinBase</value> ! </data> ! </root> \ No newline at end of file Index: interfaces.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/interfaces.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** interfaces.cs 10 Jun 2004 11:52:03 -0000 1.16 --- interfaces.cs 9 Sep 2004 04:27:15 -0000 1.17 *************** *** 23,26 **** --- 23,62 ---- // Snapin Implemented Interfaces // + #region IResultDataCompareEx + + [ + StructLayout(LayoutKind.Sequential) + ] + public struct RDCOMPARE + { + public uint cbSize; + public uint dwFlags; + public int nColumn; + public IntPtr lUserParam; + public IntPtr prdch1; + public IntPtr prdch2; + + } + + [ + StructLayout(LayoutKind.Sequential) + ] + public struct RDITEMHDR + { + public uint dwFlags; + public IntPtr cookie; + public IntPtr lpReserved; + } + + [ComImport, + InterfaceType(ComInterfaceType.InterfaceIsIUnknown), + Guid("96933476-0251-11d3-AEB0-00C04F8ECD78") + ] + public interface IResultDataCompareEx + { + void Compare(ref RDCOMPARE prdc, out int pnResult); + } + + #endregion #region Interfaces of the IPersistStream *************** *** 63,67 **** #endregion - [ ComImport, --- 99,102 ---- *************** *** 636,639 **** --- 671,675 ---- public const int S_FALSE = 1; public const int E_NOTIMPL = unchecked((int)0x80004001); + public const int STG_E_MEDIUMFULL = unchecked((int)0x80030070); } *************** *** 1102,1105 **** --- 1138,1147 ---- //Added by Attila Kapostyak PRINT = 0x801E, + + //Added by Alexander Kachalkov + /// <summary> + /// Sent when the result pane for a scope item must be restored. + /// </summary> + MMCN_RESTORE_VIEW = 0x801D, } Index: BaseNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/BaseNode.cs,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** BaseNode.cs 25 Aug 2004 11:35:10 -0000 1.27 --- BaseNode.cs 9 Sep 2004 04:27:15 -0000 1.28 *************** *** 802,808 **** { foreach (BaseNode node in m_ChildNodes) ! node.Insert(this, node.Children.Count > 0 || node.AlwaysInsertWithPlusSign); ! } /// <summary> /// Dynamically add menu items to the context menus --- 802,818 ---- { foreach (BaseNode node in m_ChildNodes) ! node.Insert(this, node.Children.Count > 0 || node.AlwaysInsertWithPlusSign); ! } + //Added by Alexander Kachalkov + /// <summary> + /// This function adds all the node's children to MMC with + on the left + /// </summary> + public void InsertChildren(bool hasChildren) + { + foreach (BaseNode node in m_ChildNodes) + node.Insert(this, hasChildren); + } + /// <summary> /// Dynamically add menu items to the context menus *************** *** 1339,1342 **** --- 1349,1364 ---- public virtual void OnSelectResult() { + + //Added by Alexander Kachalkov for Copy&Past support for Report Node + if(this.Cutable) + { + // without the copy verb MMC 1.2 can't D&D + SetVerbState(MMC_CONSOLE_VERB.COPY, MMC_BUTTON_STATE.ENABLED, true); + SetVerbState(MMC_CONSOLE_VERB.CUT, MMC_BUTTON_STATE.ENABLED, true); + } + + if(this.Pasteable) + SetVerbState(MMC_CONSOLE_VERB.PASTE, MMC_BUTTON_STATE.ENABLED, true); + m_events.Fire(OnSelectResultKey, this, null); } *************** *** 1359,1362 **** --- 1381,1390 ---- //Added by Alexander Kachalkov + public virtual void OnShow(bool bSelecting) + { + m_events.Fire(OnShowKey, this, null); + } + + //Added by Alexander Kachalkov /// <summary> /// Called when ToolBar button pressed *************** *** 1366,1369 **** --- 1394,1398 ---- m_events.Fire(OnControlbarCommandKey, this, new ToolbarCommandArgs(Controlbar, Toolbar, verb)); } + //Added by Alexander Kachalkov /// <summary> Index: SortListNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/SortListNode.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SortListNode.cs 25 Aug 2004 09:34:42 -0000 1.4 --- SortListNode.cs 9 Sep 2004 04:27:15 -0000 1.5 *************** *** 141,145 **** /// Overridable helper method to InsertItem /// </summary> ! /// <param name="nrow"></param> public virtual void InsertItem( int nRow ) { --- 141,145 ---- /// Overridable helper method to InsertItem /// </summary> ! /// <param name="nRow"></param> public virtual void InsertItem( int nRow ) { Index: PropertySheet.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/PropertySheet.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PropertySheet.cs 13 Jul 2004 15:34:21 -0000 1.10 --- PropertySheet.cs 9 Sep 2004 04:27:15 -0000 1.11 *************** *** 302,311 **** void onCancelClick(Object o, EventArgs e) { ! //Added by Alexander Kachalkov ! base.DialogResult = DialogResult.Cancel; - foreach(PropertyPage page in m_alPages) - page.onCancel(); - FakeClose(); } --- 302,343 ---- void onCancelClick(Object o, EventArgs e) { ! if(IsApplyEnabled() == true) ! { ! switch(MessageBox.Show("Some property data may have changed. Do you want to save your changes?", ! "Save Changes?", ! MessageBoxButtons.YesNoCancel)) ! { ! case DialogResult.Yes: ! onApplyClick(o, e); ! break; ! case DialogResult.No: ! base.DialogResult = DialogResult.Cancel; ! ! foreach(PropertyPage page in m_alPages) ! page.onCancel(); ! FakeClose(); ! break; ! case DialogResult.Cancel: ! ! base.DialogResult = DialogResult.None; ! break; ! default: ! base.DialogResult = DialogResult.Cancel; ! ! foreach(PropertyPage page in m_alPages) ! page.onCancel(); ! FakeClose(); ! break; ! } ! } ! else ! { ! base.DialogResult = DialogResult.Cancel; ! ! foreach(PropertyPage page in m_alPages) ! page.onCancel(); ! FakeClose(); ! } } *************** *** 337,340 **** --- 369,380 ---- } + /// <summary> + /// Turn off the apply button + /// </summary> + public void DeactivateApplyButton() + { + if (m_btnApply != null) + m_btnApply.Enabled = false; + } /// <summary> Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/AssemblyInfo.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** AssemblyInfo.cs 10 Jun 2004 11:52:03 -0000 1.9 --- AssemblyInfo.cs 9 Sep 2004 04:27:15 -0000 1.10 *************** *** 27,31 **** // by using the '*' as shown below: ! [assembly: AssemblyVersion("1.6.6.0")] // --- 27,31 ---- // by using the '*' as shown below: ! [assembly: AssemblyVersion("1.6.7.0")] // Index: MMCLib.csproj =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/MMCLib.csproj,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** MMCLib.csproj 15 Apr 2004 16:51:52 -0000 1.10 --- MMCLib.csproj 9 Sep 2004 04:27:15 -0000 1.11 *************** *** 105,108 **** --- 105,124 ---- AssemblyName = "System.Drawing" /> + <Reference + Name = "SHDocVw" + Guid = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}" + VersionMajor = "1" + VersionMinor = "1" + Lcid = "0" + WrapperTool = "tlbimp" + /> + <Reference + Name = "MSHTML" + Guid = "{3050F1C5-98B5-11CF-BB82-00AA00BDCE0B}" + VersionMajor = "4" + VersionMinor = "0" + Lcid = "0" + WrapperTool = "primary" + /> </References> </Build> *************** *** 239,242 **** --- 255,263 ---- /> <File + RelPath = "SnapinStateHash.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "SnapReg.cs" SubType = "Code" Index: _ChangeLog.txt =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/_ChangeLog.txt,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** _ChangeLog.txt 10 Jun 2004 11:52:03 -0000 1.16 --- _ChangeLog.txt 9 Sep 2004 04:27:15 -0000 1.17 *************** *** 1,2 **** --- 1,15 ---- + ver 1.6.7 + - Applied patches: + [ 1024677 ] ENH: re-using user control instances (Thanks to Kent Rollins) + [ 1022855 ] Allow jump to specific wizard page (Thanks to Johnson Chu) + [ 1015069 ] Performance improvement for SortListNode (5000+ items) (Thanks to Greg Arnold)) + [ 1008301 ] Warning Message for lost changes (Thanks to joe) + [ 983638 ] Fix for catastrophic failure on FormNode Refresh (Thanks to Chris Osborn) + [ 970400 ] 1.6.4 Fix: Remove View Menu from OCX Node's context menu (Thanks to Chris Osborn) + [ 957342 ] Separate id from display text for MenuItems (Thanks to Greg Arnold) + + Alexander Kachalkov: + - Small additions. + ver 1.6.6 - Applied patches: Index: WizardBase.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/WizardBase.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** WizardBase.cs 19 Feb 2004 16:24:52 -0000 1.6 --- WizardBase.cs 9 Sep 2004 04:27:15 -0000 1.7 *************** *** 11,14 **** --- 11,30 ---- public class WizardBase : Form { + ///Submitåed by Johnson Chu + /// <summary> + /// Allow go back to the first page + /// </summary> + public int SelectedPage + { + get + { + return this.tabWizardPages.SelectedIndex + 1; + } + set + { + this.tabWizardPages.SelectedIndex = value - 1; + } + } + /** * Required designer variable. *************** *** 426,429 **** --- 442,446 ---- get {return m_Form.CachedDialogResult;} } + } } Index: NodeEvents.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/NodeEvents.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** NodeEvents.cs 21 Apr 2004 10:21:47 -0000 1.4 --- NodeEvents.cs 9 Sep 2004 04:27:15 -0000 1.5 *************** *** 15,19 **** } - public class ActivateArgs : NodeEventArgs { --- 15,18 ---- Index: MenuItem.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/MenuItem.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MenuItem.cs 22 Apr 2004 15:20:41 -0000 1.7 --- MenuItem.cs 9 Sep 2004 04:27:15 -0000 1.8 *************** *** 18,21 **** --- 18,36 ---- { + ///Added by Greg Arnold + /// <summary> + /// Unique identifier of this menu item. + /// </summary> + protected string m_ID; + + /// <summary> + /// The menu unique identifier. + /// </summary> + public string ID + { + get{ return m_ID; } + set{ m_ID = value; } + } + //Adde by Alexander Kachalkov /// <summary> *************** *** 49,53 **** /// Flag to control visibility of the menu /// </summary> ! protected bool m_Visible; /// <summary> --- 64,68 ---- /// Flag to control visibility of the menu /// </summary> ! protected bool m_Visible = true; /// <summary> *************** *** 60,64 **** /// The integer command that MMC uses when if fires the command /// </summary> ! protected int m_nCommandId; /// <summary> --- 75,79 ---- /// The integer command that MMC uses when if fires the command /// </summary> ! protected int m_nCommandId = 0; /// <summary> *************** *** 96,103 **** m_StatusText = StatusText; Handler += handler; - m_nCommandId = 0; - m_Visible = true; } /// <summary> /// Common usage ctor to provide the class flields at once --- 111,117 ---- m_StatusText = StatusText; Handler += handler; } + //Adde by Alexander Kachalkov /// <summary> /// Common usage ctor to provide the class flields at once *************** *** 109,112 **** --- 123,144 ---- } + ///Added by Greg Arnold + /// <summary> + /// Common usage ctor to provide the class flields at once + /// </summary> + /// <param name="id"></param> + /// <param name="Name"></param> + /// <param name="StatusText"></param> + /// <param name="handler"></param> + public MenuItem(string id, string Name, string StatusText, MenuCommandHandler handler) + { + m_ID = id; + m_Name = Name; + m_StatusText = StatusText; + Handler += handler; + m_nCommandId = 0; + m_Visible = true; + } + /// <summary> /// The menu display name Index: Component.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib/Component.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Component.cs 13 Jul 2004 08:43:41 -0000 1.16 --- Component.cs 9 Sep 2004 04:27:15 -0000 1.17 *************** *** 18,21 **** --- 18,22 ---- ,IExtendControlbar ,IExtendPropertySheet + //,IResultDataCompareEx { protected bool m_MultiSelectionMode = false; *************** *** 409,412 **** --- 410,416 ---- theNode.OnShow(); + // Added by Alexander Kachalkov + theNode.OnShow(bSelecting); + break; } *************** *** 910,913 **** --- 914,955 ---- } #endregion + + ////////////////////////////////////////////////////////////////////// + // + // IResultDataCompareEx implementation + // + #region + + // public virtual void Compare(ref RDCOMPARE prdc, out int pnResult) + // { + // int iResult = 0; + // + // try + // { + // if (m_Snapin.CurrentScopeNode != null) + // { + // MyNodeType node = (m_Snapin.CurrentScopeNode as MyNodeType); + // if (node != null) + // { + // RDITEMHDR item1 = (RDITEMHDR)Marshal.PtrToStructure(prdc.prdch1, typeof(RDITEMHDR)); + // RDITEMHDR item2 = (RDITEMHDR)Marshal.PtrToStructure(prdc.prdch2, typeof(RDITEMHDR)); + // + // IComparable comparer1 = node.GetSortCompareInfo(prdc.nColumn, item1.cookie.ToInt32()); + // IComparable comparer2 = node.GetSortCompareInfo(prdc.nColumn, item2.cookie.ToInt32()); + // + // iResult = comparer1.CompareTo(comparer2); + // } + // } + // } + // catch(Exception ex) + // { + // //TODO: Add error handling + // + // } + // + // pnResult = iResult; + // } + + #endregion } } |
Update of /cvsroot/mmclibrary/mmclibrary/MMCTest2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10804 Modified Files: MyDragDropNode.cs MyFolderNode.cs MyFormNode.cs MyHTMLNode.cs MyOCXNode.cs MyReportNode.cs TestAbout.cs TestSnapinBase.cs Log Message: part of huge commit because I am getting a new laptop updated so it works with the current mmclib2 Index: MyDragDropNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyDragDropNode.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MyDragDropNode.cs 22 Apr 2004 12:34:12 -0000 1.5 --- MyDragDropNode.cs 1 Sep 2004 13:05:25 -0000 1.6 *************** *** 20,28 **** } ! public override string[] ResultViewImages { get { ! return new String[] { "MMCTest2.images.Happy.ico" }; } } --- 20,30 ---- } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } Index: MyReportNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyReportNode.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** MyReportNode.cs 4 May 2004 13:48:56 -0000 1.9 --- MyReportNode.cs 1 Sep 2004 13:05:25 -0000 1.10 *************** *** 30,33 **** --- 30,37 ---- this.Snapin, this, "MMCTest2.images.Happy.ico", "MMCTest2.images.Happy.ico")); } + + #if POEP2 + System.Windows.Forms.MessageBox.Show("stront voor jou"); + #endif } *************** *** 49,58 **** } ! public override string[] ResultViewImages { get { ! return new String[] { "MMCTest2.images.Happy.ico" }; ! } } --- 53,64 ---- } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; ! } } *************** *** 84,88 **** private void AddItemHandler(object o, BaseNode a) { ! WizardBase.ShowNonThreadedWizard("Add an Item to the List", null, new WizardPage[] { new WzdAddItem() }, new WizardBase.WizardAction(WizardHandler)); --- 90,94 ---- private void AddItemHandler(object o, BaseNode a) { ! WizardBase.ShowNonThreadedWizard("Add an Item to the List", new WizardPage[] { new WzdAddItem() }, new WizardBase.WizardAction(WizardHandler)); Index: MyOCXNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyOCXNode.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MyOCXNode.cs 14 Apr 2004 13:20:09 -0000 1.5 --- MyOCXNode.cs 1 Sep 2004 13:05:25 -0000 1.6 *************** *** 15,23 **** } ! public override string[] ResultViewImages { get { ! return new String[] { "MMCTest2.images.Happy.ico" }; } } --- 15,25 ---- } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } Index: MyFolderNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyFolderNode.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MyFolderNode.cs 14 Apr 2004 13:20:09 -0000 1.4 --- MyFolderNode.cs 1 Sep 2004 13:05:25 -0000 1.5 *************** *** 20,28 **** } ! public override string[] ResultViewImages { get { ! return new String[] {"MMCTest2.images.Happy.ico"}; } } --- 20,30 ---- } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } Index: MyHTMLNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyHTMLNode.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MyHTMLNode.cs 4 May 2004 13:51:51 -0000 1.3 --- MyHTMLNode.cs 1 Sep 2004 13:05:25 -0000 1.4 *************** *** 20,28 **** } ! public override string[] ResultViewImages { get { ! return new String[] { "MMCTest2.images.Happy.ico" }; } } --- 20,30 ---- } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; } } Index: TestSnapinBase.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/TestSnapinBase.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TestSnapinBase.cs 13 Jul 2004 08:43:43 -0000 1.6 --- TestSnapinBase.cs 1 Sep 2004 13:05:25 -0000 1.7 *************** *** 73,77 **** protected override void ShowInitialisationWizard() { ! WizardBase.ShowWizard("Startup Snapin Manager Wizard", null ,new WizardPage[] {new WzdSnapinManager()}, new WizardBase.WizardAction(ManagerHandler)); } } --- 73,77 ---- protected override void ShowInitialisationWizard() { ! WizardBase.ShowWizard("Startup Snapin Manager Wizard", new WizardPage[] {new WzdSnapinManager()}, new WizardBase.WizardAction(ManagerHandler)); } } Index: MyFormNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/MyFormNode.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MyFormNode.cs 14 Apr 2004 13:20:09 -0000 1.5 --- MyFormNode.cs 1 Sep 2004 13:05:25 -0000 1.6 *************** *** 14,23 **** } ! public override string[] ResultViewImages { get { ! return new String[] { "MMCTest2.images.Happy.ico" }; ! } } --- 14,25 ---- } ! public override ArrayList ResultViewImages { get { ! ArrayList list = new ArrayList(); ! list.Add("MMCTest2.images.Happy.ico"); ! return list; ! } } Index: TestAbout.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCTest2/TestAbout.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TestAbout.cs 4 May 2004 13:48:56 -0000 1.5 --- TestAbout.cs 1 Sep 2004 13:05:25 -0000 1.6 *************** *** 20,27 **** Description = "test snapin for mmclib2"; ! MainIconName = "MMCTest2.images.Happy.ico"; ! SmallOpenImageName = "MMCTest2.images.Happy.ico"; ! SmallClosedImageName = "MMCTest2.images.Happy.ico"; ! LargeImageName = "MMCTest2.images.Happy.ico"; } } --- 20,27 ---- Description = "test snapin for mmclib2"; ! MainIconName = "MMCTest2.images.Closed.ico"; ! SmallOpenImageName = "MMCTest2.images.Main.ico"; ! SmallClosedImageName = "MMCTest2.images.Open.ico"; ! LargeImageName = "MMCTest2.images.snapin.Ico"; } } |
From: Lesley v. Z. <ex...@us...> - 2004-09-01 13:02:31
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10097 Modified Files: SortListNode.cs Log Message: part of huge commit because I am getting a new laptop changed the onshow to onresultshow removed some slowdown code Index: SortListNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/SortListNode.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SortListNode.cs 22 Jul 2004 14:07:04 -0000 1.3 --- SortListNode.cs 1 Sep 2004 13:02:17 -0000 1.4 *************** *** 106,110 **** /// with column information and data /// </summary> ! public override void OnShow() { m_Console = m_Snapin.ResultViewConsole; --- 106,110 ---- /// with column information and data /// </summary> ! public override void OnResultShow() { m_Console = m_Snapin.ResultViewConsole; *************** *** 118,122 **** ResultData.SetViewMode((int)ViewMode.Report); ! base.OnShow(); } //////////////////////////////////////////////////////////////////// --- 118,122 ---- ResultData.SetViewMode((int)ViewMode.Report); ! base.OnResultShow(); } //////////////////////////////////////////////////////////////////// *************** *** 159,163 **** if( m_List != null ){ for( int iIndex = 0; iIndex < m_List.Count; iIndex++ ){ ! InsertItem( m_List.IndexOfValue( iIndex ), iIndex + 1 ); } } --- 159,163 ---- if( m_List != null ){ for( int iIndex = 0; iIndex < m_List.Count; iIndex++ ){ ! InsertItem( iIndex + 1 ); } } *************** *** 167,188 **** /// Overridable helper method to InsertItem /// </summary> - /// <param name="row"></param> /// <param name="nRow"></param> ! public virtual void InsertItem( object row, int nRow ){ ! if( row != null ){ ! RESULTDATAITEM rdi = new RESULTDATAITEM(); ! row.ToString( ); ! rdi.mask = ( uint )RDI.STR | ( uint )RDI.IMAGE | ( uint )RDI.PARAM; ! // TBD: what image? ! rdi.nImage = -1; ! rdi.str = ( IntPtr )( -1 ); // callback for names ! rdi.nCol = 0; ! rdi.lParam = GetItemLParam( nRow ); ! ResultData.InsertItem( ref rdi ); ! } } /// <summary> /// Overridable helper method to SetItem --- 167,186 ---- /// Overridable helper method to InsertItem /// </summary> /// <param name="nRow"></param> ! public virtual void InsertItem(int nRow ) ! { ! RESULTDATAITEM rdi = new RESULTDATAITEM(); ! rdi.mask = ( uint )RDI.STR | ( uint )RDI.IMAGE | ( uint )RDI.PARAM; ! // TBD: what image? ! rdi.nImage = -1; ! rdi.str = ( IntPtr )( -1 ); // callback for names ! rdi.nCol = 0; ! rdi.lParam = GetItemLParam( nRow ); ! ResultData.InsertItem( ref rdi ); } + /// <summary> /// Overridable helper method to SetItem |