[Monodevelop-patches-list] r2255 - in trunk/MonoDevelop/Unused/AddInManager: . Commands Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Feb 18 16:11:26 EST 2005
Author: jluke
Date: 2005-02-18 16:11:26 -0500 (Fri, 18 Feb 2005)
New Revision: 2255
Modified:
trunk/MonoDevelop/Unused/AddInManager/AssemblyInfo.cs
trunk/MonoDevelop/Unused/AddInManager/Commands/ShowDialog.cs
trunk/MonoDevelop/Unused/AddInManager/Gui/AddInManagerDialog.cs
trunk/MonoDevelop/Unused/AddInManager/Makefile.am
Log:
update
Modified: trunk/MonoDevelop/Unused/AddInManager/AssemblyInfo.cs
===================================================================
--- trunk/MonoDevelop/Unused/AddInManager/AssemblyInfo.cs 2005-02-18 20:20:40 UTC (rev 2254)
+++ trunk/MonoDevelop/Unused/AddInManager/AssemblyInfo.cs 2005-02-18 21:11:26 UTC (rev 2255)
@@ -1,7 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
-[assembly: AssemblyVersion("0.1.0.0")]
+[assembly: AssemblyVersion("0.5.0.0")]
[assembly: AssemblyTitle ("MonoDevelop AddInManager")]
[assembly: AssemblyDescription ("Manages addins")]
[assembly: AssemblyCopyright ("(c) 2004 John Luke")]
Modified: trunk/MonoDevelop/Unused/AddInManager/Commands/ShowDialog.cs
===================================================================
--- trunk/MonoDevelop/Unused/AddInManager/Commands/ShowDialog.cs 2005-02-18 20:20:40 UTC (rev 2254)
+++ trunk/MonoDevelop/Unused/AddInManager/Commands/ShowDialog.cs 2005-02-18 21:11:26 UTC (rev 2255)
@@ -8,7 +8,6 @@
{
public override void Run ()
{
- Console.WriteLine ("asdfsdfgfh");
using (AddInManagerDialog d = new AddInManagerDialog ()) {
d.Run ();
d.Hide ();
@@ -16,3 +15,4 @@
}
}
}
+
Modified: trunk/MonoDevelop/Unused/AddInManager/Gui/AddInManagerDialog.cs
===================================================================
--- trunk/MonoDevelop/Unused/AddInManager/Gui/AddInManagerDialog.cs 2005-02-18 20:20:40 UTC (rev 2254)
+++ trunk/MonoDevelop/Unused/AddInManager/Gui/AddInManagerDialog.cs 2005-02-18 21:11:26 UTC (rev 2255)
@@ -16,15 +16,17 @@
this.BorderWidth = 12;
this.Title = GettextCatalog.GetString ("AddInManager");
this.TransientFor = (Window) WorkbenchSingleton.Workbench;
- this.SetDefaultSize (300, 250);
+ this.SetDefaultSize (400, 350);
ScrolledWindow sw = new ScrolledWindow ();
+ sw.ShadowType = ShadowType.In;
TreeView tv = new TreeView ();
+ tv.RowActivated += new RowActivatedHandler (OnRowActivated);
CellRendererToggle toggle = new CellRendererToggle ();
toggle.Toggled += OnCellToggled;
tv.AppendColumn (GettextCatalog.GetString ("Enabled"), toggle, "active", 0);
- tv.AppendColumn (GettextCatalog.GetString ("Title"), new CellRendererText (), "text", 1);
+ tv.AppendColumn (GettextCatalog.GetString ("AddIn Name"), new CellRendererText (), "text", 1);
tv.AppendColumn (GettextCatalog.GetString ("Version"), new CellRendererText (), "text", 2);
sw.Add (tv);
@@ -42,23 +44,28 @@
AddInCollection addins = AddInTreeSingleton.AddInTree.AddIns;
foreach (AddIn a in addins)
- {
store.AppendValues (true, a.Name, a.Version);
- }
}
- void OnCellToggled (object o, ToggledArgs args)
+ void OnCellToggled (object sender, ToggledArgs a)
{
- CellRendererToggle toggle = (CellRendererToggle) o;
-
- TreeIter iter;
- if (store.GetIterFromString(out iter, args.Path))
- {
- bool val = (bool) store.GetValue(iter, 0);
- store.SetValue (iter, 0, !val);
- }
+ TreeIter iter;
+ if (store.GetIterFromString (out iter, a.Path))
+ Toggle (iter);
+ }
+ void OnRowActivated (object sender, RowActivatedArgs a)
+ {
+ TreeIter iter;
+ if (store.GetIter (out iter, a.Path))
+ Toggle (iter);
}
+
+ void Toggle (TreeIter iter)
+ {
+ bool val = (bool) store.GetValue (iter, 0);
+ store.SetValue (iter, 0, !val);
+ }
}
}
Modified: trunk/MonoDevelop/Unused/AddInManager/Makefile.am
===================================================================
--- trunk/MonoDevelop/Unused/AddInManager/Makefile.am 2005-02-18 20:20:40 UTC (rev 2254)
+++ trunk/MonoDevelop/Unused/AddInManager/Makefile.am 2005-02-18 21:11:26 UTC (rev 2255)
@@ -3,9 +3,9 @@
ADDIN = AddInManager.addin.xml
REFS = \
- -pkg:gtk-sharp \
- /r:../../../../build/bin/MonoDevelop.Core.dll \
- /r:../../../../build/bin/MonoDevelop.Base.dll
+ -pkg:gtk-sharp-2.0 \
+ /r:../../build/bin/MonoDevelop.Core.dll \
+ /r:../../build/bin/MonoDevelop.Base.dll
FILES = \
AssemblyInfo.cs \
@@ -19,8 +19,9 @@
$(ASSEMBLY): $(FILES)
$(CSC) /out:$(ASSEMBLY) /target:library $(FILES) $(REFS) \
- && cp $(ASSEMBLY) ../../../../build/AddIns/. \
- && cp $(ADDIN) ../../../../build/AddIns/.
+ && cp $(ASSEMBLY) ../../build/AddIns/. \
+ && cp $(ADDIN) ../../build/AddIns/.
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
EXTRA_DIST = $(FILES) $(ADDIN)
+
More information about the Monodevelop-patches-list
mailing list