[Monodevelop-patches-list] r810 - in trunk/MonoDevelop: data/resources/glade src/Libraries/MonoDevelop.Gui.Widgets src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sat Feb 7 17:36:47 EST 2004


Author: jluke
Date: 2004-02-07 17:36:46 -0500 (Sat, 07 Feb 2004)
New Revision: 810

Modified:
   trunk/MonoDevelop/data/resources/glade/Base.glade
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Makefile
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/SelectStylePanel.cs
Log:
add show hidden files option for the file scout


Modified: trunk/MonoDevelop/data/resources/glade/Base.glade
===================================================================
--- trunk/MonoDevelop/data/resources/glade/Base.glade	2004-02-07 21:02:14 UTC (rev 809)
+++ trunk/MonoDevelop/data/resources/glade/Base.glade	2004-02-07 22:36:46 UTC (rev 810)
@@ -1390,6 +1390,24 @@
       </child>
 
       <child>
+	<widget class="GtkCheckButton" id="hiddenButton">
+	  <property name="visible">True</property>
+	  <property name="can_focus">True</property>
+	  <property name="label" translatable="yes">Show hidden files and directories</property>
+	  <property name="use_underline">True</property>
+	  <property name="relief">GTK_RELIEF_NORMAL</property>
+	  <property name="active">False</property>
+	  <property name="inconsistent">False</property>
+	  <property name="draw_indicator">True</property>
+	</widget>
+	<packing>
+	  <property name="padding">0</property>
+	  <property name="expand">False</property>
+	  <property name="fill">False</property>
+	</packing>
+      </child>
+
+      <child>
 	<widget class="GtkOptionMenu" id="option">
 	  <property name="visible">True</property>
 	  <property name="can_focus">True</property>

Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs	2004-02-07 21:02:14 UTC (rev 809)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs	2004-02-07 22:36:46 UTC (rev 810)
@@ -3,6 +3,9 @@
 using Gtk;
 using GtkSharp;
 
+using ICSharpCode.Core.Properties;
+using ICSharpCode.Core.Services;
+
 namespace MonoDevelop.Gui.Widgets
 {
 	public class FileBrowser : ScrolledWindow
@@ -11,16 +14,20 @@
 		private Gtk.TreeView tv;
 		private ListStore store;
 		private string currentDir;
-		private bool ignoreHidden;
+		private bool ignoreHidden = true;
 		private string[] files;
 		private bool init = false;
+		PropertyService PropertyService = (PropertyService) ServiceManager.Services.GetService (typeof (PropertyService));
 
 		public FileBrowser () : base (GType)
 		{
 			this.VscrollbarPolicy = PolicyType.Automatic;
 			this.HscrollbarPolicy = PolicyType.Automatic;
-			ignoreHidden = true;
 
+			IProperties p = (IProperties) PropertyService.GetProperty ("SharpDevelop.UI.SelectStyleOptions", new DefaultProperties ());
+			ignoreHidden = !p.GetProperty ("ICSharpCode.SharpDevelop.Gui.FileScout.ShowHidden", false);
+			Console.WriteLine (ignoreHidden);
+
 			tv = new Gtk.TreeView ();
 			tv.RulesHint = true;
 			tv.AppendColumn ("Directories", new CellRendererText (), "text", 0);
@@ -37,11 +44,11 @@
 			init = true;
 		}
 
-		public bool IgnoreHidden
+		/*public bool IgnoreHidden
 		{
 			get { return ignoreHidden; }
 			set { ignoreHidden = value; }
-		}
+		}*/
 
 		public Gtk.TreeView TreeView
 		{

Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Makefile
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Makefile	2004-02-07 21:02:14 UTC (rev 809)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Makefile	2004-02-07 22:36:46 UTC (rev 810)
@@ -1,5 +1,5 @@
 DLL=../../../build/bin/MonoDevelop.Gui.Widgets.dll
-REFERENCES=/r:System.Drawing.dll /r:gtk-sharp.dll /r:gdk-sharp.dll /r:pango-sharp.dll /r:gnome-sharp.dll /r:glib-sharp.dll /r:glade-sharp.dll
+REFERENCES=/r:System.Drawing.dll /r:gtk-sharp.dll /r:gdk-sharp.dll /r:pango-sharp.dll /r:gnome-sharp.dll /r:glib-sharp.dll /r:glade-sharp.dll /r:../../../build/bin/MonoDevelop.Core.dll
 
 all: $(DLL)
 

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/SelectStylePanel.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/SelectStylePanel.cs	2004-02-07 21:02:14 UTC (rev 809)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/SelectStylePanel.cs	2004-02-07 22:36:46 UTC (rev 810)
@@ -6,8 +6,8 @@
 // </file>
 
 using System;
-using System.IO;
-using System.Drawing;
+//using System.IO;
+//using System.Drawing;
 using System.Collections;
 
 using ICSharpCode.SharpDevelop.Internal.ExternalTool;
@@ -52,6 +52,7 @@
 			Hashtable ValueToMenu = new Hashtable ();
 			public Gtk.Menu ambienceMenu;
 			[Glade.Widget] public Gtk.CheckButton extensionButton;
+			[Glade.Widget] public Gtk.CheckButton hiddenButton;
 			[Glade.Widget] public Gtk.OptionMenu option;
 					
 			public SelectStylePanelWidget (IProperties p) : base ("Base.glade", "SelectStylePanel")
@@ -59,6 +60,7 @@
 				ambienceMenu = new Gtk.Menu ();
 				option.Menu = ambienceMenu;
 				extensionButton.Active  = p.GetProperty("ICSharpCode.SharpDevelop.Gui.ProjectBrowser.ShowExtensions", true);
+				hiddenButton.Active  = p.GetProperty("ICSharpCode.SharpDevelop.Gui.FileScout.ShowHidden", false);
 				IAddInTreeNode treeNode = AddInTreeSingleton.AddInTree.GetTreeNode("/SharpDevelop/Workbench/Ambiences");
 				string active = p.GetProperty ("SharpDevelop.UI.CurrentAmbience", "CSharp");
 				
@@ -80,6 +82,7 @@
 			public void Store(IProperties p)
 			{
 				p.SetProperty("ICSharpCode.SharpDevelop.Gui.ProjectBrowser.ShowExtensions", extensionButton.Active);
+				p.SetProperty("ICSharpCode.SharpDevelop.Gui.FileScout.ShowHidden", hiddenButton.Active);
 				p.SetProperty("SharpDevelop.UI.CurrentAmbience", (string)MenuToValue[ambienceMenu.Active]);
 			}
 		}




More information about the Monodevelop-patches-list mailing list