[Monodevelop-patches-list] r616 - in trunk/MonoDevelop/src: AddIns/DisplayBindings/TextEditor/Gui/OptionPanels Main/Base/Gui/Dialogs/OptionPanels/IDEOptions

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Jan 22 04:47:51 EST 2004


Author: jba
Date: 2004-01-22 04:47:51 -0500 (Thu, 22 Jan 2004)
New Revision: 616

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/OptionPanels/BehaviorTextEditorPanel.cs
   trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/OptionPanels/MarkersTextEditorPanel.cs
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/LoadSavePanel.cs
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/ProjectAndCombinePanel.cs
Log:
changed CheckButton.NewWithLabel to new CheckButton in options dialogs - prettier than dirty dogs balls

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/OptionPanels/BehaviorTextEditorPanel.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/OptionPanels/BehaviorTextEditorPanel.cs	2004-01-22 09:39:32 UTC (rev 615)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/OptionPanels/BehaviorTextEditorPanel.cs	2004-01-22 09:47:51 UTC (rev 616)
@@ -120,7 +120,7 @@
 			indentStyleComboBoxMenu = new Menu();
 			indentStyleComboBox = new OptionMenu();
 			indentStyleComboBox.Menu = indentStyleComboBoxMenu;
-			convertTabsToSpacesCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.ConvertTabsToSpacesCheckBox}"));
+			convertTabsToSpacesCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.ConvertTabsToSpacesCheckBox}"));
 				// table to pack the tab settings options 
 				Table table1 = new Table(4, 2, false);
 				//pack the table
@@ -144,10 +144,10 @@
 			Gtk.VBox vBox2 = new Gtk.VBox(false, 2);
 			
 			
-			autoinsertCurlyBraceCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.CurlyBracketCheckBox}"));
-			hideMouseCursorCheckBox  = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.HideMouseCheckBox}"));
-			caretBehindEOLCheckBox  = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.BehindEOLCheckBox}"));
-			auotInsertTemplatesCheckBox  = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.TemplateInsertCheckBox}"));			
+			autoinsertCurlyBraceCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.CurlyBracketCheckBox}"));
+			hideMouseCursorCheckBox  = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.HideMouseCheckBox}"));
+			caretBehindEOLCheckBox  = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.BehindEOLCheckBox}"));
+			auotInsertTemplatesCheckBox  = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.TemplateInsertCheckBox}"));			
 			Label label4 = new Gtk.Label(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.MouseWhellGroupBox}"));
 			mouseWhellDirectionComboBoxMenu = new Menu();
 			mouseWhellDirectionComboBox = new OptionMenu();

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/OptionPanels/MarkersTextEditorPanel.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/OptionPanels/MarkersTextEditorPanel.cs	2004-01-22 09:39:32 UTC (rev 615)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/OptionPanels/MarkersTextEditorPanel.cs	2004-01-22 09:47:51 UTC (rev 616)
@@ -101,15 +101,15 @@
 			Gtk.VBox vBox1 = new Gtk.VBox(false,2);
 			Gtk.Label label1 = new Gtk.Label(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.AtRowLabel}"));
 			Gtk.Label label2 = new Gtk.Label(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.LineMarkerLabel}"));
-			showLineNumberCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.LineNumberCheckBox}"));
-			showInvalidLinesCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.InvalidLinesCheckBox}"));
-			showBracketHighlighterCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.HiglightBracketCheckBox}"));
-			showErrorsCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.UnderLineErrorsCheckBox}"));
-			showHRulerCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.HorizontalRulerCheckBox}"));
-			showEOLMarkersCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.EOLMarkersCheckBox}"));
-			showVRulerCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.VerticalRulerCheckBox}"));
-			showTabCharsCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.TabsCheckBox}"));
-			showSpaceCharsCheckBox = CheckButton.NewWithLabel(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.SpacesCheckBox}"));
+			showLineNumberCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.LineNumberCheckBox}"));
+			showInvalidLinesCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.InvalidLinesCheckBox}"));
+			showBracketHighlighterCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.HiglightBracketCheckBox}"));
+			showErrorsCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.UnderLineErrorsCheckBox}"));
+			showHRulerCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.HorizontalRulerCheckBox}"));
+			showEOLMarkersCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.EOLMarkersCheckBox}"));
+			showVRulerCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.VerticalRulerCheckBox}"));
+			showTabCharsCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.TabsCheckBox}"));
+			showSpaceCharsCheckBox = new CheckButton(StringParserService.Parse("${res:Dialog.Options.IDEOptions.TextEditor.Markers.SpacesCheckBox}"));
 			vRulerRowTextBox = new Entry();
 			lineMarkerStyleComboBox = new OptionMenu();
 			lineMarkerStyleComboBoxMenu = new Menu();

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/LoadSavePanel.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/LoadSavePanel.cs	2004-01-22 09:39:32 UTC (rev 615)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/LoadSavePanel.cs	2004-01-22 09:47:51 UTC (rev 616)
@@ -96,7 +96,7 @@
 			// set up the load options
 			//
 			Gtk.Frame loadContainer = new Gtk.Frame(StringParserService.Parse("${res:Dialog.Options.IDEOptions.LoadSaveOptions.LoadLabel}"));
-			loadUserDataCheckBox = Gtk.CheckButton.NewWithLabel (StringParserService.Parse("${res:Dialog.Options.IDEOptions.LoadSaveOptions.LoadUserDataCheckBox}"));
+			loadUserDataCheckBox = new Gtk.CheckButton (StringParserService.Parse("${res:Dialog.Options.IDEOptions.LoadSaveOptions.LoadUserDataCheckBox}"));
 			loadContainer.Add(loadUserDataCheckBox);
 			
 			//
@@ -106,7 +106,7 @@
 			Gtk.VBox saveVBox = new Gtk.VBox(false, 2);
 			
 			// the backup checkbox
-			createBackupCopyCheckBox = Gtk.CheckButton.NewWithLabel (StringParserService.Parse("${res:Dialog.Options.IDEOptions.LoadSaveOptions.CreateBackupCopyCheckBox}"));
+			createBackupCopyCheckBox = new Gtk.CheckButton (StringParserService.Parse("${res:Dialog.Options.IDEOptions.LoadSaveOptions.CreateBackupCopyCheckBox}"));
 			saveVBox.PackStart(createBackupCopyCheckBox, false, false, 2);
 			
 			// the terminator label 

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/ProjectAndCombinePanel.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/ProjectAndCombinePanel.cs	2004-01-22 09:39:32 UTC (rev 615)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/ProjectAndCombinePanel.cs	2004-01-22 09:47:51 UTC (rev 616)
@@ -52,11 +52,6 @@
 			
 			BeforeCompileAction action = (BeforeCompileAction)PropertyService.GetProperty("SharpDevelop.Services.DefaultParserService.BeforeCompileAction", BeforeCompileAction.SaveAllFiles);
 			
-			System.Console.WriteLine("action is " + action.ToString());
-			System.Console.WriteLine("Comparison 1 is " + ((int)BeforeCompileAction.SaveAllFiles));
-			System.Console.WriteLine("Comparison 2 is " + ((int)BeforeCompileAction.PromptForSave));
-			System.Console.WriteLine("Comparison 3 is " + ((int)BeforeCompileAction.Nothing));
-			
 			saveChangesRadioButton.Active = action.Equals(BeforeCompileAction.SaveAllFiles);
 			promptChangesRadioButton.Active = action.Equals(BeforeCompileAction.PromptForSave);
 			noSaveRadioButton.Active = action.Equals(BeforeCompileAction.Nothing);




More information about the Monodevelop-patches-list mailing list