[Monodevelop-patches-list] r922 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Feb 15 16:37:41 EST 2004
Author: dkor
Date: 2004-02-15 16:37:41 -0500 (Sun, 15 Feb 2004)
New Revision: 922
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands/ToolCommands.cs
Log:
clean up of code
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands/ToolCommands.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands/ToolCommands.cs 2004-02-15 21:03:52 UTC (rev 921)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands/ToolCommands.cs 2004-02-15 21:37:41 UTC (rev 922)
@@ -26,7 +26,7 @@
{
public class ColorDialog : ColorSelectionDialog
{
- public ColorDialog () : base ("WARNING BROKEN: Insert a color")
+ public ColorDialog () : base ("Insert a color hex string")
{
this.ColorSelection.HasPalette = true;
this.ColorSelection.HasOpacityControl = false;
@@ -38,8 +38,6 @@
Gdk.Color color = this.ColorSelection.CurrentColor;
StringBuilder s = new StringBuilder ();
ushort[] vals = { color.Red, color.Green, color.Blue };
- // debug line
- // Console.WriteLine("r {0}, b {1}, g{2}", color.red, color.green, color.blue );
char[] hexchars = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
s.Append ("#");
foreach (ushort val in vals) {
@@ -66,8 +64,8 @@
return;
//FIXME:
- // - The return sting value is not the same choosen in the Dialog
- // - Return color name (not color value) if it IsKnownColor but it's still not implemented for System.Drawing.Color
+ // - Return color name (not color value) if it IsKnownColor,
+ // but it's still hasn't been implemented for System.Drawing.Color
ColorDialog dialog = new ColorDialog ();
if (dialog.Run () == (int) ResponseType.Ok)
{
More information about the Monodevelop-patches-list
mailing list