Added code so that when Save As button is clicked an empty window is opened.
This commit is contained in:
parent
05ca828e69
commit
4405c356a5
3 changed files with 52 additions and 4 deletions
|
|
@ -38,7 +38,6 @@
|
|||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<ReleaseVersion>0.8.2</ReleaseVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
|
|
@ -190,11 +189,11 @@
|
|||
<Compile Include="EeProm\EePromRepetierParameter.cs" />
|
||||
<Compile Include="EeProm\EePromRepetierWidget.cs" />
|
||||
<Compile Include="EeProm\EePromRepetierStorage.cs" />
|
||||
<Compile Include="PartPreviewWindow\SaveAsWindow.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="ICSharpCode.SharpZipLib">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>.\ICSharpCode.SharpZipLib.dll</HintPath>
|
||||
<HintPath>ICSharpCode.SharpZipLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PdfSharp">
|
||||
<HintPath>PdfSharp.dll</HintPath>
|
||||
|
|
@ -327,7 +326,7 @@
|
|||
<Project>{865172A0-A1A9-49C2-9386-F2FDB4E141B7}</Project>
|
||||
<Name>MatterControlPluginSystem</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\agg-sharp\agg\Agg.csproj">
|
||||
<ProjectReference Include="..\agg-sharp\Agg\Agg.csproj">
|
||||
<Project>{657DBC6D-C3EA-4398-A3FA-DDB73C14F71B}</Project>
|
||||
<Name>Agg</Name>
|
||||
</ProjectReference>
|
||||
|
|
|
|||
38
PartPreviewWindow/SaveAsWindow.cs
Normal file
38
PartPreviewWindow/SaveAsWindow.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.VectorMath;
|
||||
using MatterHackers.Agg.Image;
|
||||
using MatterHackers.MatterControl.DataStorage;
|
||||
using MatterHackers.Localizations;
|
||||
|
||||
namespace MatterHackers.MatterControl
|
||||
{
|
||||
public class SaveAsWindow : SystemWindow
|
||||
{
|
||||
public SaveAsWindow()
|
||||
: base (360, 300)
|
||||
{
|
||||
Title = "Save As Window";
|
||||
|
||||
FlowLayoutWidget topToBottom = new FlowLayoutWidget(FlowDirection.TopToBottom);
|
||||
topToBottom.AnchorAll();
|
||||
topToBottom.Padding = new BorderDouble(3, 0, 3, 5);
|
||||
|
||||
FlowLayoutWidget headerRow = new FlowLayoutWidget(FlowDirection.LeftToRight);
|
||||
headerRow.HAnchor = HAnchor.ParentLeftRight;
|
||||
headerRow.Margin = new BorderDouble(0, 3, 0, 0);
|
||||
headerRow.Padding = new BorderDouble(0, 3, 0, 3);
|
||||
ShowAsSystemWindow ();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -105,6 +105,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
Button closeButton;
|
||||
Button applyScaleButton;
|
||||
|
||||
SaveAsWindow saveAs;
|
||||
|
||||
PrintItemWrapper printItemWrapper;
|
||||
|
||||
List<Mesh> asynchMeshesList = new List<Mesh>();
|
||||
|
|
@ -1415,6 +1417,14 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
expandRotateOptions.CheckedStateChanged += new CheckBox.CheckedStateChangedEventHandler(expandRotateOptions_CheckedStateChanged);
|
||||
expandScaleOptions.CheckedStateChanged += new CheckBox.CheckedStateChangedEventHandler(expandScaleOptions_CheckedStateChanged);
|
||||
|
||||
|
||||
|
||||
saveAsButton.Click += (sender, e) =>
|
||||
{
|
||||
new SaveAsWindow();
|
||||
|
||||
};
|
||||
|
||||
saveButton.Click += (sender, e) =>
|
||||
{
|
||||
MergeAndSavePartsToStl();
|
||||
|
|
@ -1423,6 +1433,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
ActiveTheme.Instance.ThemeChanged.RegisterEvent(Instance_ThemeChanged, ref unregisterEvents);
|
||||
}
|
||||
|
||||
|
||||
bool partSelectButtonWasClicked = false;
|
||||
private void MergeAndSavePartsToStl()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue