[MonoDevelop] Rework of Filedialog Category Tree Expand profile
against new CVS
Muthiah Annamalai
muthus_post at yahoo.com
Thu Jan 19 16:21:25 EST 2006
Index: Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- Core/src/MonoDevelop.Ide/ChangeLog (revision 55797)
+++ Core/src/MonoDevelop.Ide/ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2006-01-16 Muthiah Annamalai <gnumuthu at users.sf.net>
+ * Monodevelop.Core.Gui.Dialogs/NewFileDialog.cs:
+ Added double-click response to expand category tree or
+ collapse tree, a toggle effect.
+
2006-01-18 Lluis Sanchez Gual <lluis at novell.com>
* MonoDevelop.Ide.Commands/ProjectCommands.cs: Disable build and
Index: Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewFileDialog.cs
===================================================================
--- Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewFileDialog.cs (revision 55797)
+++ Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewFileDialog.cs (working copy)
@@ -51,7 +51,9 @@
string currentProjectType = string.Empty;
string currentLanguage = string.Empty;
+
+
public NewFileDialog (Project parentProject, string basePath) : base ()
{
this.parentProject = parentProject;
@@ -242,7 +244,24 @@
}
alltemplates.Add(titem);
}
+
+ //tree view event handler for double-click
+ //toggle the expand collapse methods.
+ void CategoryActivated(object sender,RowActivatedArgs args)
+ {
+
+ if (!catView.GetRowExpanded(args.Path))
+ {
+ catView.ExpandRow(args.Path,false);
+ }
+ else
+ {
+ catView.CollapseRow(args.Path);
+ }
+ }
+
+
// tree view event handlers
void CategoryChange(object sender, EventArgs e)
{
@@ -461,6 +480,7 @@
cat_imglist.Add(Services.Resources.GetBitmap("md-open-folder"));
cat_imglist.Add(Services.Resources.GetBitmap("md-closed-folder"));
catView.Selection.Changed += new EventHandler (CategoryChange);
+ catView.RowActivated += new RowActivatedHandler (CategoryActivated);
TemplateView.IconSelected += new EventHandler(SelectedIndexChange);
TemplateView.IconDoubleClicked += new EventHandler(OpenEvent);
InitializeView ();
---------------------------------
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20060119/9c1a8834/attachment.html
More information about the Monodevelop-list
mailing list