Browse Source

Update to Boo 0.7.6.2215

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1279 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
529a95b46c
  1. 12
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Resources/BuildOptions.xfrm
  2. 6
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/BuildOptions.cs
  3. 25
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/ProjectBrowserControl.cs

12
src/AddIns/BackendBindings/Boo/BooBinding/Project/Resources/BuildOptions.xfrm

@ -12,16 +12,24 @@ @@ -12,16 +12,24 @@
<Size value="{Width=504, Height=146}" />
<TabIndex value="0" />
<Controls>
<System.Windows.Forms.CheckBox>
<Name value="duckyCheckBox" />
<Location value="{X=6,Y=86}" />
<Text value="Use duck typing by default" />
<TabIndex value="8" />
<Size value="{Width=492, Height=24}" />
<UseVisualStyleBackColor value="True" />
</System.Windows.Forms.CheckBox>
<System.Windows.Forms.TextBox>
<Name value="pipelineTextBox" />
<TabIndex value="7" />
<Size value="{Width=386, Height=21}" />
<Location value="{X=112,Y=87}" />
<Location value="{X=112,Y=116}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="pipelineLabel" />
<Location value="{X=6,Y=87}" />
<Location value="{X=6,Y=116}" />
<Text value="Pipeline:" />
<TextAlign value="MiddleRight" />
<Size value="{Width=100, Height=23}" />

6
src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/BuildOptions.cs

@ -31,14 +31,14 @@ namespace Grunwald.BooBinding @@ -31,14 +31,14 @@ namespace Grunwald.BooBinding
//InitXmlDoc();
InitDebugInfo();
ConfigurationGuiBinding b;
//ConfigurationGuiBinding b;
//b = helper.BindString("conditionalSymbolsTextBox", "DefineConstants");
//b.DefaultLocation = PropertyStorageLocations.ConfigurationSpecific;
//b.CreateLocationButton("conditionalSymbolsTextBox");
b = helper.BindBoolean("noCorlibCheckBox", "NoStdLib", false);
b.CreateLocationButton("noCorlibCheckBox");
helper.BindBoolean("noCorlibCheckBox", "NoStdLib", false).CreateLocationButton("noCorlibCheckBox");
helper.BindBoolean("duckyCheckBox", "Ducky", false).CreateLocationButton("duckyCheckBox");
helper.BindString("pipelineTextBox", "Pipeline").CreateLocationButton("pipelineLabel");

25
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/ProjectBrowserControl.cs

@ -70,6 +70,31 @@ namespace ICSharpCode.SharpDevelop.Project @@ -70,6 +70,31 @@ namespace ICSharpCode.SharpDevelop.Project
ProjectService.ProjectItemAdded += ProjectServiceProjectItemAdded;
ProjectService.SolutionFolderRemoved += ProjectServiceSolutionFolderRemoved;
treeView.DrawNode += TreeViewDrawNode;
treeView.DragDrop += TreeViewDragDrop;
}
void TreeViewDragDrop(object sender, DragEventArgs e)
{
Point clientcoordinate = PointToClient(new Point(e.X, e.Y));
ExtTreeNode node = treeView.GetNodeAt(clientcoordinate) as ExtTreeNode;
if (node == null) {
// did not drag onto any node
if (e.Data.GetDataPresent(DataFormats.FileDrop)) {
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
foreach (string file in files) {
try {
IProjectLoader loader = ProjectService.GetProjectLoader(file);
if (loader != null) {
FileUtility.ObservedLoad(new NamedFileOperationDelegate(loader.Load), file);
} else {
FileService.OpenFile(file);
}
} catch (Exception ex) {
MessageService.ShowError(ex, "unable to open file " + file);
}
}
}
}
}
void TreeViewDrawNode(object sender, DrawTreeNodeEventArgs e)

Loading…
Cancel
Save