Author: miguel
Date: 2007-12-26 21:31:35 -0500 (Wed, 26 Dec 2007)
New Revision: 91910
Added:
trunk/mono-tools/gui-compare/ProviderSelector.cs
trunk/mono-tools/gui-compare/gtk-gui/guicompare.ProviderSelector.cs
trunk/mono-tools/gui-compare/gtk-gui/objects.xml
Modified:
trunk/mono-tools/gui-compare/CecilMetadata.cs
trunk/mono-tools/gui-compare/InfoManager.cs
trunk/mono-tools/gui-compare/gtk-gui/generated.cs
trunk/mono-tools/gui-compare/gtk-gui/gui.stetic
trunk/mono-tools/gui-compare/gui-compare.mdp
Log:
Shuffle things
Modified: trunk/mono-tools/gui-compare/CecilMetadata.cs
===================================================================
--- trunk/mono-tools/gui-compare/CecilMetadata.cs 2007-12-26 23:45:28 UTC
(rev 91909)
+++ trunk/mono-tools/gui-compare/CecilMetadata.cs 2007-12-27 02:31:35 UTC
(rev 91910)
@@ -18,6 +18,7 @@
List<CompNamed>
field_list,
List<CompNamed>
event_list)
{
+ Console.WriteLine ("21Populating {0}.{1}",
fromDef.Namespace, fromDef.Name);
if (interface_list != null) {
foreach (TypeReference ifc in
fromDef.Interfaces) {
interface_list.Add (new CecilInterface
(ifc, true));
@@ -50,9 +51,10 @@
if (field_list != null) {
foreach (FieldDefinition fd in fromDef.Fields) {
if (fd.IsPrivate || fd.IsAssembly){
- Console.WriteLine ("Skipping
over {0}.{1} {2}", fromDef.Namespace, fromDef.Name, fd.Name);
+ //Console.WriteLine ("
Skipping over {0}.{1} {2}", fromDef.Namespace, fromDef.Name, fd.Name);
continue;
}
+ //Console.WriteLine (" Adding
{0}.{1} {2}", fromDef.Namespace, fromDef.Name, fd.Name);
field_list.Add (new CecilField (fd));
}
}
@@ -74,7 +76,7 @@
List<CompNamed>
struct_list)
{
foreach (TypeDefinition type_def in
fromDef.NestedTypes) {
- //Console.WriteLine ("Got {0}.{1} => {2}",
type_def.Namespace, type_def.Name, type_def.Attributes &
TypeAttributes.VisibilityMask);
+ Console.WriteLine ("Got {0}.{1} => {2}",
type_def.Namespace, type_def.Name, type_def.Attributes &
TypeAttributes.VisibilityMask);
if (type_def.IsNestedPrivate ||
type_def.IsNestedAssembly || type_def.IsNotPublic){
continue;
}
Modified: trunk/mono-tools/gui-compare/InfoManager.cs
===================================================================
--- trunk/mono-tools/gui-compare/InfoManager.cs 2007-12-26 23:45:28 UTC (rev
91909)
+++ trunk/mono-tools/gui-compare/InfoManager.cs 2007-12-27 02:31:35 UTC (rev
91910)
@@ -46,8 +46,6 @@
MainWindow main;
string [] api_1_1 = {
- "cscompmgd",
- "Microsoft.VisualBasic",
"mscorlib",
"System",
"System.Data",
@@ -62,6 +60,8 @@
"System.Web.Services",
"System.Windows.Forms",
"System.Xml",
+ "cscompmgd",
+ "Microsoft.VisualBasic",
"",
"System.Configuration.Install",
"System.Design",
@@ -72,8 +72,6 @@
};
string [] api_2_0 = {
- "cscompmgd",
- "Microsoft.VisualBasic",
"mscorlib",
"System",
"System.Configuration",
@@ -90,6 +88,8 @@
"System.Web.Services",
"System.Windows.Forms",
"System.Xml",
+ "cscompmgd",
+ "Microsoft.VisualBasic",
"",
"Microsoft.Build.Engine",
"Microsoft.Build.Framework",
Added: trunk/mono-tools/gui-compare/ProviderSelector.cs
===================================================================
--- trunk/mono-tools/gui-compare/ProviderSelector.cs 2007-12-26 23:45:28 UTC
(rev 91909)
+++ trunk/mono-tools/gui-compare/ProviderSelector.cs 2007-12-27 02:31:35 UTC
(rev 91910)
@@ -0,0 +1,39 @@
+// ProviderSelector.cs
+//
+// Copyright (c) 2007 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+//
+//
+
+using System;
+
+namespace guicompare
+{
+
+
+ public partial class ProviderSelector : Gtk.Bin
+ {
+
+ public ProviderSelector()
+ {
+ this.Build();
+ }
+ }
+}
Modified: trunk/mono-tools/gui-compare/gtk-gui/generated.cs
===================================================================
--- trunk/mono-tools/gui-compare/gtk-gui/generated.cs 2007-12-26 23:45:28 UTC
(rev 91909)
+++ trunk/mono-tools/gui-compare/gtk-gui/generated.cs 2007-12-27 02:31:35 UTC
(rev 91910)
@@ -22,6 +22,53 @@
}
}
+ internal class BinContainer {
+
+ private Gtk.Widget child;
+
+ private Gtk.UIManager uimanager;
+
+ public static BinContainer Attach(Gtk.Bin bin) {
+ BinContainer bc = new BinContainer();
+ bin.SizeRequested += new
Gtk.SizeRequestedHandler(bc.OnSizeRequested);
+ bin.SizeAllocated += new
Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
+ bin.Added += new Gtk.AddedHandler(bc.OnAdded);
+ return bc;
+ }
+
+ private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs
args) {
+ if ((this.child != null)) {
+ args.Requisition = this.child.SizeRequest();
+ }
+ }
+
+ private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs
args) {
+ if ((this.child != null)) {
+ this.child.Allocation = args.Allocation;
+ }
+ }
+
+ private void OnAdded(object sender, Gtk.AddedArgs args) {
+ this.child = args.Widget;
+ }
+
+ public void SetUiManager(Gtk.UIManager uim) {
+ this.uimanager = uim;
+ this.child.Realized += new System.EventHandler(this.OnRealized);
+ }
+
+ private void OnRealized(object sender, System.EventArgs args) {
+ if ((this.uimanager != null)) {
+ Gtk.Widget w;
+ w = this.child.Toplevel;
+ if (((w != null) && typeof(Gtk.Window).IsInstanceOfType(w))) {
+ ((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup);
+ this.uimanager = null;
+ }
+ }
+ }
+ }
+
internal class ActionGroups {
public static Gtk.ActionGroup GetActionGroup(System.Type type) {
Modified: trunk/mono-tools/gui-compare/gtk-gui/gui.stetic
===================================================================
--- trunk/mono-tools/gui-compare/gtk-gui/gui.stetic 2007-12-26 23:45:28 UTC
(rev 91909)
+++ trunk/mono-tools/gui-compare/gtk-gui/gui.stetic 2007-12-27 02:31:35 UTC
(rev 91910)
@@ -4,6 +4,9 @@
<images-root-path>..</images-root-path>
<target-gtk-version>2.10.2</target-gtk-version>
</configuration>
+ <import>
+ <widget-library name="../bin/Debug/gui-compare.exe" internal="true" />
+ </import>
<widget class="Gtk.Window" id="MainWindow" design-size="648 577">
<action-group name="Default">
<action id="File">
@@ -153,4 +156,10 @@
</widget>
</child>
</widget>
+ <widget class="Gtk.Bin" id="guicompare.ProviderSelector" design-size="300
300">
+ <property name="MemberName" />
+ <child>
+ <placeholder />
+ </child>
+ </widget>
</stetic-interface>
\ No newline at end of file
Added: trunk/mono-tools/gui-compare/gtk-gui/guicompare.ProviderSelector.cs
===================================================================
--- trunk/mono-tools/gui-compare/gtk-gui/guicompare.ProviderSelector.cs
2007-12-26 23:45:28 UTC (rev 91909)
+++ trunk/mono-tools/gui-compare/gtk-gui/guicompare.ProviderSelector.cs
2007-12-27 02:31:35 UTC (rev 91910)
@@ -0,0 +1,27 @@
+//
------------------------------------------------------------------------------
+// <autogenerated>
+// This code was generated by a tool.
+// Mono Runtime Version: 2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </autogenerated>
+//
------------------------------------------------------------------------------
+
+namespace guicompare {
+
+
+ public partial class ProviderSelector {
+
+ protected virtual void Build() {
+ Stetic.Gui.Initialize(this);
+ // Widget guicompare.ProviderSelector
+ Stetic.BinContainer.Attach(this);
+ this.Name = "guicompare.ProviderSelector";
+ if ((this.Child != null)) {
+ this.Child.ShowAll();
+ }
+ this.Show();
+ }
+ }
+}
Added: trunk/mono-tools/gui-compare/gtk-gui/objects.xml
===================================================================
--- trunk/mono-tools/gui-compare/gtk-gui/objects.xml 2007-12-26 23:45:28 UTC
(rev 91909)
+++ trunk/mono-tools/gui-compare/gtk-gui/objects.xml 2007-12-27 02:31:35 UTC
(rev 91910)
@@ -0,0 +1,6 @@
+<objects>
+ <object type="guicompare.ProviderSelector" palette-category="gui-compare"
allow-children="false" base-type="Gtk.Bin">
+ <itemgroups />
+ <signals />
+ </object>
+</objects>
\ No newline at end of file
Modified: trunk/mono-tools/gui-compare/gui-compare.mdp
===================================================================
--- trunk/mono-tools/gui-compare/gui-compare.mdp 2007-12-26 23:45:28 UTC
(rev 91909)
+++ trunk/mono-tools/gui-compare/gui-compare.mdp 2007-12-27 02:31:35 UTC
(rev 91910)
@@ -48,6 +48,9 @@
<File name="MasterMetadata.cs" subtype="Code" buildaction="Compile" />
<File name="Masterinfo.cs" subtype="Code" buildaction="Compile" />
<File name="CecilMetadata.cs" subtype="Code" buildaction="Compile" />
+ <File name="ProviderSelector.cs" subtype="Code" buildaction="Compile" />
+ <File name="gtk-gui/guicompare.ProviderSelector.cs" subtype="Code"
buildaction="Compile" />
+ <File name="gtk-gui/objects.xml" subtype="Code"
buildaction="EmbedAsResource" />
</Contents>
<References>
<ProjectReference type="Gac" localcopy="True" refto="gtk-sharp,
Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
@@ -60,5 +63,9 @@
<ProjectReference type="Gac" localcopy="True" refto="System.Xml,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<ProjectReference type="Assembly" localcopy="True" refto="Mono.Cecil.dll"
/>
</References>
- <GtkDesignInfo gtkVersion="2.10.2" />
+ <GtkDesignInfo gtkVersion="2.10.2">
+ <ExportedWidgets>
+ <Widget>guicompare.ProviderSelector</Widget>
+ </ExportedWidgets>
+ </GtkDesignInfo>
</Project>
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches