[Monodevelop-patches-list] r992 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Feb 22 20:44:39 EST 2004


Author: tberman
Date: 2004-02-22 20:44:39 -0500 (Sun, 22 Feb 2004)
New Revision: 992

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/BehaviorTextEditorPanel.cs
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/GeneralTextEditorPanel.cs
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/MarkersTextEditorPanel.cs
Log:
unbreak option panels that did work properly

just in case anyone was wondering there is now a *NEW* #1 Service to gut and replace post 0.1


Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/BehaviorTextEditorPanel.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/BehaviorTextEditorPanel.cs	2004-02-23 01:27:59 UTC (rev 991)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/BehaviorTextEditorPanel.cs	2004-02-23 01:44:39 UTC (rev 992)
@@ -35,12 +35,12 @@
 		
 		public override void LoadPanelContents()
 		{
-			Add (widget = new BehaviorTextEditorPanelWidget ());
+			Add (widget = new BehaviorTextEditorPanelWidget ((IProperties) CustomizationObject));
 		}
 		
 		public override bool StorePanelContents()
 		{
-			widget.Store ();
+			widget.Store ((IProperties) CustomizationObject);
 			return true;
 		}
 		
@@ -65,10 +65,8 @@
 			[Glade.Widget] RadioButton              automaticIndentStyle;
 			[Glade.Widget] RadioButton              smartIndentStyle;
 			[Glade.Widget] SpinButton               indentAndTabSizeSpinButton;
-
-			PropertyService CustomizationObject = (PropertyService) ServiceManager.Services.GetService (typeof (PropertyService));
 			
-			public BehaviorTextEditorPanelWidget () :  
+			public BehaviorTextEditorPanelWidget (IProperties CustomizationObject) :  
 				base ("EditorBindings.glade", "BehaviorTextEditorPanel")
 			{
 				// Set up Text
@@ -135,7 +133,7 @@
 				}
 			}
 
-			public void Store ()
+			public void Store (IProperties CustomizationObject)
 			{
 				((IProperties)CustomizationObject).SetProperty(
 					"TabsToSpaces",           convertTabsToSpacesCheckBox.Active);

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/GeneralTextEditorPanel.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/GeneralTextEditorPanel.cs	2004-02-23 01:27:59 UTC (rev 991)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/GeneralTextEditorPanel.cs	2004-02-23 01:44:39 UTC (rev 992)
@@ -33,12 +33,12 @@
 		
 		public override void LoadPanelContents()
 		{
-			Add (widget = new GeneralTextEditorPanelWidget ());
+			Add (widget = new GeneralTextEditorPanelWidget ((IProperties) CustomizationObject));
 		}
 		
 		public override bool StorePanelContents()
 		{
-			widget.Store ();
+			widget.Store ((IProperties) CustomizationObject);
 			return true;
 		}
 	
@@ -58,9 +58,7 @@
 			[Glade.Widget] VBox encodingBox;
 			[Glade.Widget] RadioButton use_monospace, use_sans, use_cust;
 			
-			PropertyService CustomizationObject = (PropertyService)ServiceManager.Services.GetService (typeof (PropertyService));
-			
-			public GeneralTextEditorPanelWidget () :  base ("EditorBindings.glade", "GeneralTextEditorPanel")
+			public GeneralTextEditorPanelWidget (IProperties CustomizationObject) :  base ("EditorBindings.glade", "GeneralTextEditorPanel")
 			{
 				encodingBox.Destroy(); // this is a really dirty way of hiding encodingBox, but Hide() doesn't work
 				genOptions.Markup = "<b> " + StringParserService.Parse(
@@ -131,7 +129,7 @@
 // 				textEncodingComboBox.Changed += new EventHandler (OnOptionChanged);
 			}
 
-			public void Store ()
+			public void Store (IProperties CustomizationObject)
 			{
 				((IProperties) CustomizationObject).SetProperty (
 					"DoubleBuffer", enableDoublebufferingCheckBox.Active);

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/MarkersTextEditorPanel.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/MarkersTextEditorPanel.cs	2004-02-23 01:27:59 UTC (rev 991)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/OptionPanels/MarkersTextEditorPanel.cs	2004-02-23 01:44:39 UTC (rev 992)
@@ -32,12 +32,12 @@
 		public override void LoadPanelContents()
 		{
 			// set up the form controls instance
-			Add (widget = new MarkersTextEditorPanelWidget ());	
+			Add (widget = new MarkersTextEditorPanelWidget ((IProperties) CustomizationObject));	
 		}
 		
 		public override bool StorePanelContents()
 		{
-			widget.Store ();
+			widget.Store ((IProperties) CustomizationObject);
 			return true;
 		}
 
@@ -67,9 +67,7 @@
 			[Glade.Widget] CheckButton showSpaceCharsCheckBox;
 			[Glade.Widget] SpinButton  vRulerRowTextBox;
 
-			PropertyService CustomizationObject = (PropertyService) ServiceManager.Services.GetService (typeof (PropertyService));
-			
-			public MarkersTextEditorPanelWidget () :  
+			public MarkersTextEditorPanelWidget (IProperties CustomizationObject) :  
 				base ("EditorBindings.glade", "MarkersTextEditorPanel")
 			{
 				// Load Text
@@ -125,7 +123,7 @@
 
 			}
 
-			public void Store ()
+			public void Store (IProperties CustomizationObject)
 			{
 				((IProperties)CustomizationObject).SetProperty("ShowInvalidLines",     showInvalidLinesCheckBox.Active);
 				((IProperties)CustomizationObject).SetProperty("ShowLineNumbers",      showLineNumberCheckBox.Active);




More information about the Monodevelop-patches-list mailing list