[MonoDevelop] Patch for New-File Dialog double-click response to
expand category tree, & File browser treeview column
Muthiah Annamalai
muthus_post at yahoo.com
Tue Jan 17 14:04:09 EST 2006
Index: ChangeLog
===================================================================
--- ChangeLog (revision 55644)
+++ ChangeLog (working copy)
@@ -1,3 +1,9 @@
+2006-01-16 Muthiah Annamalai <gnumuthu at users.sf.net>
+ * Monodevelop.Core.Gui.Dialogs/NewFileDialog.cs:
+ Added double-click response to expand category tree
+ * Monodevelop.Core.Gui.Components/FileBrowser.cs:
+ Added columnview widget title to show present directory path.
+
2006-01-15 Jacob Ilsoe Christensen <jacobilsoe at gmail.com>
* monodevelop.desktop:
Index: Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/FileBrowser.cs
===================================================================
--- Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/FileBrowser.cs (revision 55644)
+++ Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Components/FileBrowser.cs (working copy)
@@ -86,6 +86,7 @@
tv.RulesHint = true;
TreeViewColumn directorycolumn = new TreeViewColumn ();
+ //Cant we show the PWD/level of GUI? eg: /home/muthu/outside/Mono/
directorycolumn.Title = "Directories";
CellRendererPixbuf pix_render = new CellRendererPixbuf ();
@@ -214,6 +215,11 @@
private void OnRowActivated (object o, RowActivatedArgs args)
{
TreeIter iter;
+
+ //Sets the current PATH to the Title of the TreeViewColumn.
+ TreeViewColumn directorycolumn = tv.Columns[0];
+ directorycolumn.Title=currentDir;
+
if (store.GetIter (out iter, args.Path))
{
string newDir = System.IO.Path.Combine (currentDir, (string) store.GetValue (iter, 1));
Index: Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewFileDialog.cs
===================================================================
--- Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewFileDialog.cs (revision 55644)
+++ Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewFileDialog.cs (working copy)
@@ -212,6 +212,24 @@
alltemplates.Add(titem);
}
+ //tree view event handler for double-click
+ //02:29 Monday, January 16 2006
+ //Muthiah Annamalai
+ void CategoryActivated(object sender,RowActivatedArgs args)
+ {
+
+ //Expand that column, if possible,
+ //so that user doesnt need to click on the [> triangle
+ //sign to open the level's, which can be frustrating.
+
+ //Console.WriteLine("Double Click Event Handler, expand row.");
+ catView.ExpandRow(args.Path,false);
+
+ }
+
+
+
+
// tree view event handlers
void CategoryChange(object sender, EventArgs e)
{
@@ -379,7 +397,7 @@
catView.HeadersVisible = false;
templateView = new Gtk.TreeView (templateStore);
TemplateView = new IconView();
-
+
TreeViewColumn catColumn = new TreeViewColumn ();
catColumn.Title = "categories";
@@ -406,6 +424,8 @@
Frame infoLabelFrame = new Frame();
infoLabelFrame.Add(infoLabel);
+
+
HBox viewbox = new HBox (false, 6);
swindow1.Add(catView);
viewbox.PackStart (swindow1,false,true,0);
@@ -428,6 +448,8 @@
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/20060117/7b1c229a/attachment-0001.html
More information about the Monodevelop-list
mailing list