Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyEditorCell.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyEditorCell.cs55
1 files changed, 27 insertions, 28 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyEditorCell.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyEditorCell.cs
index c727deb565..7aa4c1407a 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyEditorCell.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyEditorCell.cs
@@ -30,7 +30,6 @@ using System;
using System.ComponentModel;
using Gdk;
using Gtk;
-using Mono.TextEditor;
namespace MonoDevelop.Components.PropertyGrid
{
@@ -161,27 +160,27 @@ namespace MonoDevelop.Components.PropertyGrid
}
}
- /// <summary>
- /// Whether the editor should show a button.
- /// </summary>
- public virtual bool DialogueEdit {
- get { return false; }
- }
-
- /// <summary>
- /// If the property is read-only, is is usually not edited. If the editor
- /// can edit sub-properties of a read-only complex object, this must return true.
- /// <remarks>The default value is false.</remarks>
- /// </summary>
- /// <returns>True if the editor can edit read-only properties</returns>
- public virtual bool EditsReadOnlyObject {
- get { return false; }
- }
-
- public virtual void LaunchDialogue ()
- {
+ /// <summary>
+ /// Whether the editor should show a button.
+ /// </summary>
+ public virtual bool DialogueEdit {
+ get { return false; }
+ }
+
+ /// <summary>
+ /// If the property is read-only, is is usually not edited. If the editor
+ /// can edit sub-properties of a read-only complex object, this must return true.
+ /// <remarks>The default value is false.</remarks>
+ /// </summary>
+ /// <returns>True if the editor can edit read-only properties</returns>
+ public virtual bool EditsReadOnlyObject {
+ get { return false; }
+ }
+
+ public virtual void LaunchDialogue ()
+ {
if (DialogueEdit)
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
@@ -358,15 +357,15 @@ namespace MonoDevelop.Components.PropertyGrid
this.cell = cell;
Spacing = 3;
PackStart (new CellRendererWidget (cell, context), true, true, 0);
- Label buttonLabel = new Label ();
- buttonLabel.UseMarkup = true;
- buttonLabel.Xpad = 0; buttonLabel.Ypad = 0;
- buttonLabel.Markup = "<span size=\"small\">...</span>";
- Button dialogueButton = new Button (buttonLabel);
- dialogueButton.Clicked += DialogueButtonClicked;
+ Label buttonLabel = new Label ();
+ buttonLabel.UseMarkup = true;
+ buttonLabel.Xpad = 0; buttonLabel.Ypad = 0;
+ buttonLabel.Markup = "<span size=\"small\">...</span>";
+ Button dialogueButton = new Button (buttonLabel);
+ dialogueButton.Clicked += DialogueButtonClicked;
PackStart (dialogueButton, false, false, 0);
this.ModifyBg (StateType.Normal, this.Style.White);
- ShowAll ();
+ ShowAll ();
}
void DialogueButtonClicked (object s, EventArgs args)