Author: fejj
Date: 2007-05-01 16:15:01 -0400 (Tue, 01 May 2007)
New Revision: 76545
Added:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/RenameItemDialog.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog.cs
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/RefactoryCommands.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ProjectOperations.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.mdp
trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/gui.stetic
Log:
2007-05-01 Jeffrey Stedfast <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui/ProjectOperations.cs (CodeRefactorer): Set
the TextFileProfider for the refactoer to the
OpenDocumentFileProvider.
(OpenDocumentFileProvider): Copied here from another
location... really need to consolidate the two.
* MonoDevelop.Ide.Tasks/CommentTasksView.cs: Removed unused
solutionLoaded variable.
* MonoDevelop.Ide.Gui/Workbench.cs: Got rid of unused guiLock
variable.
* MonoDevelop.Ide.Gui.Dialogs/RenameItemDialog.cs: New dialog
class for renaming an item (be it a class, interface, whatever).
* MonoDevelop.Ide.Commands/RefactoryCommands.cs (Rename):
Implemented.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-05-01
20:13:13 UTC (rev 76544)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-05-01
20:15:01 UTC (rev 76545)
@@ -1,3 +1,23 @@
+2007-05-01 Jeffrey Stedfast <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Ide.Gui/ProjectOperations.cs (CodeRefactorer): Set
+ the TextFileProfider for the refactoer to the
+ OpenDocumentFileProvider.
+ (OpenDocumentFileProvider): Copied here from another
+ location... really need to consolidate the two.
+
+ * MonoDevelop.Ide.Tasks/CommentTasksView.cs: Removed unused
+ solutionLoaded variable.
+
+ * MonoDevelop.Ide.Gui/Workbench.cs: Got rid of unused guiLock
+ variable.
+
+ * MonoDevelop.Ide.Gui.Dialogs/RenameItemDialog.cs: New dialog
+ class for renaming an item (be it a class, interface, whatever).
+
+ * MonoDevelop.Ide.Commands/RefactoryCommands.cs (Rename):
+ Implemented.
+
2007-04-27 Mike Kestner <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui/SdiWorkspaceWindow.cs: can't destroy after
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am 2007-05-01
20:13:13 UTC (rev 76544)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am 2007-05-01
20:15:01 UTC (rev 76545)
@@ -34,6 +34,7 @@
gtk-gui/MonoDevelop.Ide.Gui.Dialogs.FeatureSelectorDialog.cs \
gtk-gui/MonoDevelop.Ide.Gui.Dialogs.NewProjectDialog.cs \
gtk-gui/MonoDevelop.Ide.Gui.Dialogs.OpenFileInSolutionDialog.cs \
+ gtk-gui/MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog.cs \
MonoDevelop.Ide.CodeTemplates/CodeTemplate.cs \
MonoDevelop.Ide.CodeTemplates/CodeTemplateGroup.cs \
MonoDevelop.Ide.CodeTemplates/CodeTemplateLoader.cs \
@@ -106,6 +107,7 @@
MonoDevelop.Ide.Gui.Dialogs/NewProjectDialog.cs \
MonoDevelop.Ide.Gui.Dialogs/OpenFileInSolutionDialog.cs \
MonoDevelop.Ide.Gui.Dialogs/ProjectReferencePanel.cs \
+ MonoDevelop.Ide.Gui.Dialogs/RenameItemDialog.cs \
MonoDevelop.Ide.Gui.Dialogs/ReplaceDialog.cs \
MonoDevelop.Ide.Gui.Dialogs/ReplaceInFilesDialog.cs \
MonoDevelop.Ide.Gui.Dialogs/SelectEncodingsDialog.cs \
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/RefactoryCommands.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/RefactoryCommands.cs
2007-05-01 20:13:13 UTC (rev 76544)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/RefactoryCommands.cs
2007-05-01 20:15:01 UTC (rev 76545)
@@ -38,6 +38,7 @@
using MonoDevelop.Ide.Gui.Content;
using MonoDevelop.Ide.Gui.Search;
using MonoDevelop.Projects.CodeGeneration;
+using MonoDevelop.Ide.Gui.Dialogs;
namespace MonoDevelop.Ide.Commands
{
@@ -113,10 +114,12 @@
CommandInfoSet ciset = new CommandInfoSet ();
string txt;
- if (IdeApp.ProjectOperations.CanJumpToDeclaration
(item)) {
+ if (((item is IMember) || (item is IClass)) &&
IdeApp.ProjectOperations.CanJumpToDeclaration (item)) {
// if we can jump to the declaration, we can
rename it
ciset.CommandInfos.Add
(GettextCatalog.GetString ("_Rename"), new RefactoryOperation
(refactorer.Rename));
-
+ }
+
+ if (IdeApp.ProjectOperations.CanJumpToDeclaration
(item)) {
// ...and of course, we can jump to it :)
ciset.CommandInfos.Add
(GettextCatalog.GetString ("_Go to declaration"), new RefactoryOperation
(refactorer.GoToDeclaration));
}
@@ -321,8 +324,8 @@
public void Rename ()
{
- // FIXME: Rename the class/member/whatever - will need
to prompt the user.
- // Need to find derived classes/references and fix
those as well, or at least offer to.
+ RenameItemDialog dialog = new RenameItemDialog (ctx,
item);
+ dialog.Show ();
}
}
}
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ProjectOperations.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ProjectOperations.cs
2007-05-01 20:13:13 UTC (rev 76544)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ProjectOperations.cs
2007-05-01 20:15:01 UTC (rev 76545)
@@ -36,6 +36,7 @@
using System.Collections.Specialized;
using MonoDevelop.Projects;
+using MonoDevelop.Projects.Text;
using MonoDevelop.Projects.Gui.Dialogs;
using MonoDevelop.Projects.Parser;
using MonoDevelop.Projects.CodeGeneration;
@@ -115,13 +116,15 @@
public CodeRefactorer CodeRefactorer {
get {
- if (refactorer == null)
+ if (refactorer == null) {
refactorer = new CodeRefactorer
(openCombine, parserDatabase);
+ refactorer.TextFileProvider = new
OpenDocumentFileProvider ();
+ }
+
return refactorer;
}
}
-
public ICompilerResult LastCompilerResult {
get { return lastResult; }
}
@@ -1435,4 +1438,18 @@
return
IdeApp.Workbench.ProgressMonitors.GetBackgroundProgressMonitor ("Code
Completion Database Generation", "md-parser");
}
}
+
+ class OpenDocumentFileProvider: ITextFileProvider
+ {
+ public IEditableTextFile GetEditableTextFile (string filePath)
+ {
+ foreach (Document doc in IdeApp.Workbench.Documents) {
+ if (doc.FileName == filePath) {
+ IEditableTextFile ef =
doc.GetContent<IEditableTextFile> ();
+ if (ef != null) return ef;
+ }
+ }
+ return null;
+ }
+ }
}
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs
2007-05-01 20:13:13 UTC (rev 76544)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs
2007-05-01 20:15:01 UTC (rev 76545)
@@ -54,7 +54,6 @@
DefaultWorkbench workbench;
RecentOpen recentOpen = null;
IStatusBarService statusBarService;
- int guiLock;
public event EventHandler ActiveDocumentChanged;
public event EventHandler LayoutChanged;
Added:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/RenameItemDialog.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/RenameItemDialog.cs
2007-05-01 20:13:13 UTC (rev 76544)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/RenameItemDialog.cs
2007-05-01 20:15:01 UTC (rev 76545)
@@ -0,0 +1,82 @@
+using System;
+
+using Gtk;
+
+using MonoDevelop.Core;
+using MonoDevelop.Projects.Parser;
+using MonoDevelop.Projects.CodeGeneration;
+
+namespace MonoDevelop.Ide.Gui.Dialogs {
+ public partial class RenameItemDialog : Gtk.Dialog {
+ IParserContext ctx;
+ ILanguageItem item;
+
+ public RenameItemDialog (IParserContext ctx, ILanguageItem item)
+ {
+ this.ctx = ctx;
+ this.item = item;
+
+ this.Build ();
+
+ if (item is IClass) {
+ if (((IClass) item).ClassType ==
ClassType.Interface)
+ this.Title = GettextCatalog.GetString
("Rename Interface");
+ else
+ this.Title = GettextCatalog.GetString
("Rename Class");
+ } else if (item is IField) {
+ this.Title = GettextCatalog.GetString ("Rename
Field");
+ } else if (item is IProperty) {
+ this.Title = GettextCatalog.GetString ("Rename
Property");
+ } else if (item is IEvent) {
+ this.Title = GettextCatalog.GetString ("Rename
Event");
+ } else if (item is IMethod) {
+ this.Title = GettextCatalog.GetString ("Rename
Method");
+ } else if (item is IIndexer) {
+ this.Title = GettextCatalog.GetString ("Rename
Indexer");
+ } else if (item is IParameter) {
+ this.Title = GettextCatalog.GetString ("Rename
Parameter");
+ } else if (item is LocalVariable) {
+ this.Title = GettextCatalog.GetString ("Rename
Variable");
+ } else {
+ this.Title = GettextCatalog.GetString ("Rename
Item");
+ }
+
+ entry.Text = item.Name;
+ entry.SelectRegion (0, -1);
+
+ buttonOk.Sensitive = false;
+ entry.Changed += new EventHandler (OnEntryChanged);
+
+ buttonOk.Clicked += new EventHandler (OnOKClicked);
+ buttonCancel.Clicked += new EventHandler
(OnCancelClicked);
+ }
+
+ void OnEntryChanged (object sender, EventArgs e)
+ {
+ // Don't allow the user to click OK unless there is a
new name
+ buttonOk.Sensitive = entry.Text.Length > 0;
+ }
+
+ void OnCancelClicked (object sender, EventArgs e)
+ {
+ ((Widget) this).Destroy ();
+ }
+
+ void OnOKClicked (object sender, EventArgs e)
+ {
+ CodeRefactorer refactorer =
IdeApp.ProjectOperations.CodeRefactorer;
+ IProgressMonitor monitor =
IdeApp.Workbench.ProgressMonitors.GetBackgroundProgressMonitor (this.Title,
null);
+ string name = entry.Text;
+
+ if (item is IMember) {
+ IMember member = (IMember) item;
+
+ refactorer.RenameMember (monitor,
member.DeclaringType, member, name, RefactoryScope.Solution);
+ } else if (item is IClass) {
+ refactorer.RenameClass (monitor, (IClass) item,
name, RefactoryScope.Solution);
+ }
+
+ ((Widget) this).Destroy ();
+ }
+ }
+}
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs
2007-05-01 20:13:13 UTC (rev 76544)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs
2007-05-01 20:15:01 UTC (rev 76545)
@@ -60,7 +60,6 @@
Gdk.Color highPrioColor, normalPrioColor, lowPrioColor;
Clipboard clipboard;
- bool solutionLoaded = false;
public CommentTasksView ()
{
@@ -111,8 +110,6 @@
Services.TaskService.TaskAdded += (TaskEventHandler)
Services.DispatchService.GuiDispatch (new TaskEventHandler
(GeneratedTaskAdded));
Services.TaskService.TaskRemoved += (TaskEventHandler)
Services.DispatchService.GuiDispatch (new TaskEventHandler
(GeneratedTaskRemoved));
- IdeApp.ProjectOperations.CombineOpened +=
(CombineEventHandler) Services.DispatchService.GuiDispatch (new
CombineEventHandler (CombineOpened));
- IdeApp.ProjectOperations.CombineClosed +=
(CombineEventHandler) Services.DispatchService.GuiDispatch (new
CombineEventHandler (CombineClosed));
Runtime.Properties.PropertyChanged +=
(PropertyEventHandler) Services.DispatchService.GuiDispatch (new
PropertyEventHandler (OnPropertyUpdated));
}
@@ -296,16 +293,6 @@
return color;
}
- void CombineOpened (object sender, CombineEventArgs e)
- {
- solutionLoaded = true;
- }
-
- void CombineClosed (object sender, CombineEventArgs e)
- {
- solutionLoaded = true;
- }
-
void OnPropertyUpdated (object sender, PropertyEventArgs e)
{
bool change = false;
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.mdp
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.mdp
2007-05-01 20:13:13 UTC (rev 76544)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.mdp
2007-05-01 20:15:01 UTC (rev 76545)
@@ -290,6 +290,8 @@
<File name="./MonoDevelop.Ide.Gui/DefaultDisplayBinding.cs" subtype="Code"
buildaction="Compile" />
<File name="./MonoDevelop.Ide.Gui.Dialogs/FeatureSelectorDialog.cs"
subtype="Code" buildaction="Compile" />
<File
name="./gtk-gui/MonoDevelop.Ide.Gui.Dialogs.FeatureSelectorDialog.cs"
subtype="Code" buildaction="Compile" />
+ <File name="./gtk-gui/MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog.cs"
subtype="Code" buildaction="Compile" />
+ <File name="./MonoDevelop.Ide.Gui.Dialogs/RenameItemDialog.cs"
subtype="Code" buildaction="Compile" />
</Contents>
<References>
<ProjectReference type="Gac" localcopy="False" refto="gecko-sharp,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=ccf7d78a55e9f021" />
@@ -315,10 +317,10 @@
<ProjectReference type="Project" localcopy="False"
refto="MonoDevelop.Core.Gui" />
<ProjectReference type="Project" localcopy="False"
refto="MonoDevelop.Projects" />
<ProjectReference type="Assembly" localcopy="False"
refto="../../../build/bin/log4net.dll" />
+ <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+ <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="pango-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="atk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
</References>
<MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True"
RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName=""
SyncReferences="True" IsAutotoolsProject="True"
RelativeConfigureInPath="../../../">
<ExcludedFiles>
@@ -337,6 +339,7 @@
<Widget>MonoDevelop.Ide.Gui.Dialogs.CombineEntryFeatureSelector</Widget>
</ExportedWidgets>
</GtkDesignInfo>
+ <Deployment.LinuxDeployData scriptName="monodevelop.ide" />
<DeploymentInformation strategy="File">
<excludeFiles />
</DeploymentInformation>
Added:
trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog.cs
2007-05-01 20:13:13 UTC (rev 76544)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog.cs
2007-05-01 20:15:01 UTC (rev 76545)
@@ -0,0 +1,114 @@
+//
------------------------------------------------------------------------------
+// <autogenerated>
+// This code was generated by a tool.
+// Mono Runtime Version: 2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </autogenerated>
+//
------------------------------------------------------------------------------
+
+namespace MonoDevelop.Ide.Gui.Dialogs {
+
+
+ public partial class RenameItemDialog {
+
+ private Gtk.VBox vbox;
+
+ private Gtk.HBox hbox;
+
+ private Gtk.Label labelNewName;
+
+ private Gtk.Entry entry;
+
+ private Gtk.Button buttonCancel;
+
+ private Gtk.Button buttonOk;
+
+ protected virtual void Build() {
+ Stetic.Gui.Initialize();
+ // Widget MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog
+ this.Name = "MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog";
+ this.Title = Mono.Unix.Catalog.GetString("Rename {0}");
+ // Internal child MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog.VBox
+ Gtk.VBox w1 = this.VBox;
+ w1.Name = "dialog1_VBox";
+ w1.BorderWidth = ((uint)(2));
+ // Container child dialog1_VBox.Gtk.Box+BoxChild
+ this.vbox = new Gtk.VBox();
+ this.vbox.Name = "vbox";
+ this.vbox.Spacing = 6;
+ this.vbox.BorderWidth = ((uint)(12));
+ // Container child vbox.Gtk.Box+BoxChild
+ this.hbox = new Gtk.HBox();
+ this.hbox.Name = "hbox";
+ this.hbox.Spacing = 6;
+ // Container child hbox.Gtk.Box+BoxChild
+ this.labelNewName = new Gtk.Label();
+ this.labelNewName.Name = "labelNewName";
+ this.labelNewName.LabelProp = Mono.Unix.Catalog.GetString("New
na_me:");
+ this.labelNewName.UseUnderline = true;
+ this.hbox.Add(this.labelNewName);
+ Gtk.Box.BoxChild w2 =
((Gtk.Box.BoxChild)(this.hbox[this.labelNewName]));
+ w2.Position = 0;
+ w2.Expand = false;
+ w2.Fill = false;
+ // Container child hbox.Gtk.Box+BoxChild
+ this.entry = new Gtk.Entry();
+ this.entry.CanFocus = true;
+ this.entry.Name = "entry";
+ this.entry.IsEditable = true;
+ this.entry.InvisibleChar = '●';
+ this.hbox.Add(this.entry);
+ Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox[this.entry]));
+ w3.Position = 1;
+ this.vbox.Add(this.hbox);
+ Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox]));
+ w4.Position = 0;
+ w4.Expand = false;
+ w4.Fill = false;
+ w1.Add(this.vbox);
+ Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.vbox]));
+ w5.Position = 0;
+ w5.Expand = false;
+ w5.Fill = false;
+ // Internal child
MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog.ActionArea
+ Gtk.HButtonBox w6 = this.ActionArea;
+ w6.Name = "dialog1_ActionArea";
+ w6.Spacing = 6;
+ w6.BorderWidth = ((uint)(5));
+ w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
+ // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
+ this.buttonCancel = new Gtk.Button();
+ this.buttonCancel.CanDefault = true;
+ this.buttonCancel.CanFocus = true;
+ this.buttonCancel.Name = "buttonCancel";
+ this.buttonCancel.UseStock = true;
+ this.buttonCancel.UseUnderline = true;
+ this.buttonCancel.Label = "gtk-cancel";
+ this.AddActionWidget(this.buttonCancel, -6);
+ Gtk.ButtonBox.ButtonBoxChild w7 =
((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel]));
+ w7.Expand = false;
+ w7.Fill = false;
+ // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
+ this.buttonOk = new Gtk.Button();
+ this.buttonOk.CanDefault = true;
+ this.buttonOk.CanFocus = true;
+ this.buttonOk.Name = "buttonOk";
+ this.buttonOk.UseStock = true;
+ this.buttonOk.UseUnderline = true;
+ this.buttonOk.Label = "gtk-ok";
+ this.AddActionWidget(this.buttonOk, -5);
+ Gtk.ButtonBox.ButtonBoxChild w8 =
((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk]));
+ w8.Position = 1;
+ w8.Expand = false;
+ w8.Fill = false;
+ if ((this.Child != null)) {
+ this.Child.ShowAll();
+ }
+ this.DefaultWidth = 360;
+ this.DefaultHeight = 121;
+ this.Show();
+ }
+ }
+}
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/gui.stetic
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/gui.stetic
2007-05-01 20:13:13 UTC (rev 76544)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/gui.stetic
2007-05-01 20:15:01 UTC (rev 76545)
@@ -1090,4 +1090,111 @@
</widget>
</child>
</widget>
+ <widget class="Gtk.Dialog" id="MonoDevelop.Ide.Gui.Dialogs.RenameItemDialog"
design-size="360 121">
+ <property name="MemberName" />
+ <property name="Title" translatable="yes">Rename {0}</property>
+ <property name="Buttons">2</property>
+ <property name="HelpButton">False</property>
+ <child internal-child="VBox">
+ <widget class="Gtk.VBox" id="dialog1_VBox">
+ <property name="MemberName" />
+ <property name="BorderWidth">2</property>
+ <child>
+ <widget class="Gtk.VBox" id="vbox">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <property name="BorderWidth">12</property>
+ <child>
+ <widget class="Gtk.HBox" id="hbox">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <child>
+ <widget class="Gtk.Label" id="labelNewName">
+ <property name="MemberName" />
+ <property name="LabelProp" translatable="yes">New
na_me:</property>
+ <property name="UseUnderline">True</property>
+ <property name="MnemonicWidget">entry</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Entry" id="entry">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="IsEditable">True</property>
+ <property name="InvisibleChar">●</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ <child internal-child="ActionArea">
+ <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <property name="BorderWidth">5</property>
+ <property name="Size">2</property>
+ <property name="LayoutStyle">End</property>
+ <child>
+ <widget class="Gtk.Button" id="buttonCancel">
+ <property name="MemberName" />
+ <property name="CanDefault">True</property>
+ <property name="CanFocus">True</property>
+ <property name="UseStock">True</property>
+ <property name="Type">StockItem</property>
+ <property name="StockId">gtk-cancel</property>
+ <property name="IsDialogButton">True</property>
+ <property name="ResponseId">-6</property>
+ <property name="label">gtk-cancel</property>
+ </widget>
+ <packing>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Button" id="buttonOk">
+ <property name="MemberName" />
+ <property name="CanDefault">True</property>
+ <property name="CanFocus">True</property>
+ <property name="UseStock">True</property>
+ <property name="Type">StockItem</property>
+ <property name="StockId">gtk-ok</property>
+ <property name="IsDialogButton">True</property>
+ <property name="ResponseId">-5</property>
+ <property name="label">gtk-ok</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
</stetic-interface>
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches