reorganizing folders
This commit is contained in:
parent
bf58293f28
commit
f28a16cd4a
16 changed files with 520 additions and 562 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (c) 2022, Lars Brubaker, John Lewin
|
||||
Copyright (c) 2023, Lars Brubaker, John Lewin
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -1033,15 +1033,15 @@ namespace MatterHackers.MatterControl
|
|||
}));
|
||||
}
|
||||
|
||||
this.Library.DesignAppsCollectionContainer = new DesignAppsCollectionContainer();
|
||||
this.Library.BundledPartsCollectionContainer = new BundledPartsCollectionContainer();
|
||||
// this.Library.LibraryCollectionContainer.HeaderMarkdown = "Here you can find the collection of libraries you can use".Localize();
|
||||
|
||||
this.Library.RegisterContainer(
|
||||
new DynamicContainerLink(
|
||||
"Design Apps".Localize(),
|
||||
"Bundled".Localize(),
|
||||
StaticData.Instance.LoadIcon(Path.Combine("Library", "folder.png")),
|
||||
StaticData.Instance.LoadIcon(Path.Combine("Library", "design_apps_icon.png")),
|
||||
() => this.Library.DesignAppsCollectionContainer)
|
||||
() => this.Library.BundledPartsCollectionContainer)
|
||||
{
|
||||
IsReadOnly = true
|
||||
});
|
||||
|
|
@ -1654,29 +1654,16 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public event EventHandler UiHintChanged;
|
||||
|
||||
public string ShortProductName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.IsMatterControlPro())
|
||||
{
|
||||
return "MatterControl Pro";
|
||||
}
|
||||
|
||||
return "MatterControl";
|
||||
}
|
||||
}
|
||||
|
||||
public string ProductName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.IsMatterControlPro())
|
||||
{
|
||||
return "MatterControl Pro Edition";
|
||||
return OemSettings.Instance.RegisteredProductName;
|
||||
}
|
||||
|
||||
return "MatterHackers: MatterControl";
|
||||
return OemSettings.Instance.UnregisteredProductName;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ namespace MatterHackers.MatterControl
|
|||
Selectable = false
|
||||
});
|
||||
|
||||
row.AddChild(new TextWidget(ApplicationController.Instance.ShortProductName, textColor: theme.TextColor)
|
||||
row.AddChild(new TextWidget(ApplicationController.Instance.ProductName, textColor: theme.TextColor)
|
||||
{
|
||||
VAnchor = VAnchor.Center
|
||||
});
|
||||
|
|
@ -176,7 +176,7 @@ namespace MatterHackers.MatterControl
|
|||
graphics.DrawString("64", imageBuffer.Width / 2, imageBuffer.Height / 2, 8, Agg.Font.Justification.Center, Agg.Font.Baseline.BoundsCenter, color: menuTheme.PrimaryAccentColor);
|
||||
}
|
||||
|
||||
menuItem = popupMenu.CreateMenuItem("About".Localize() + " MatterControl", imageBuffer);
|
||||
menuItem = popupMenu.CreateMenuItem("About".Localize() + " " + ApplicationController.Instance.ProductName, imageBuffer);
|
||||
menuItem.Click += (s, e) => ApplicationController.Instance.ShowAboutPage();
|
||||
return popupMenu;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -837,9 +837,9 @@ namespace MatterHackers.MatterControl
|
|||
ToggleFuzzyOperation(),
|
||||
}
|
||||
},
|
||||
new OperationGroup("Design Apps")
|
||||
new OperationGroup("Constraints")
|
||||
{
|
||||
TitleGetter = () => "Design Apps".Localize(),
|
||||
TitleGetter = () => "Constraints".Localize(),
|
||||
Visible = OperationGroup.GetVisible("Path", false),
|
||||
Operations = new List<SceneOperation>()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ using MatterHackers.Agg.UI;
|
|||
using MatterHackers.ImageProcessing;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.CustomWidgets;
|
||||
using MatterHackers.MatterControl.SettingsManagement;
|
||||
using MatterHackers.VectorMath;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
|
@ -73,7 +74,7 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
HAnchor = HAnchor.Center | HAnchor.Fit
|
||||
};
|
||||
productTitle.AddChild(new TextWidget("MatterControl".Localize(), textColor: theme.TextColor, pointSize: 20) { Margin = new BorderDouble(right: 3) });
|
||||
productTitle.AddChild(new TextWidget(ApplicationController.Instance.ProductName, textColor: theme.TextColor, pointSize: 20) { Margin = new BorderDouble(right: 3) });
|
||||
productTitle.AddChild(new TextWidget("TM".Localize(), textColor: theme.TextColor, pointSize: 7) { VAnchor = VAnchor.Top });
|
||||
|
||||
altHeadingRow.AddChild(productInfo);
|
||||
|
|
@ -105,7 +106,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
contentRow.AddChild(
|
||||
new WrappedTextWidget(
|
||||
"MatterControl is made possible by the team at MatterHackers and other open source software".Localize() + ":",
|
||||
"{0} is made possible by the team at MatterHackers and other open source software".Localize().FormatWith(ApplicationController.Instance.ProductName) + ":",
|
||||
pointSize: theme.DefaultFontSize,
|
||||
textColor: theme.TextColor)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ using MatterHackers.MatterControl.DataStorage;
|
|||
using MatterHackers.MatterControl.DesignTools;
|
||||
using MatterHackers.MatterControl.PartPreviewWindow;
|
||||
using MatterHackers.MatterControl.PrintQueue;
|
||||
using MatterHackers.MatterControl.SettingsManagement;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MatterHackers.MatterControl.PrintHistory
|
||||
|
|
@ -314,7 +315,7 @@ namespace MatterHackers.MatterControl.PrintHistory
|
|||
}
|
||||
else // upsell MatterControl Pro
|
||||
{
|
||||
string text = "Exporting print history is a MatterControl Pro feature. Upgrade to Pro to unlock MatterControl Pro.".Localize();
|
||||
string text = "Exporting print history is a {0} feature. Upgrade to Pro to unlock MatterControl Pro.".Localize().FormatWith(OemSettings.Instance.RegisteredProductName);
|
||||
WebCache.RetrieveText(
|
||||
"https://matterhackers.github.io/MatterControl-Docs/ProContent/Unlock_Export_Print_History.md",
|
||||
(markDown) =>
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ namespace MatterHackers.MatterControl.Library
|
|||
}
|
||||
}
|
||||
|
||||
public DesignAppsCollectionContainer DesignAppsCollectionContainer { get; internal set; }
|
||||
public BundledPartsCollectionContainer BundledPartsCollectionContainer { get; internal set; }
|
||||
|
||||
public SafeList<LibraryAction> MenuExtensions { get; } = new SafeList<LibraryAction>();
|
||||
|
||||
|
|
|
|||
|
|
@ -38,13 +38,33 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace MatterHackers.MatterControl.Library
|
||||
{
|
||||
public class DesignAppsCollectionContainer : LibraryContainer
|
||||
public class BundledPartsCollectionContainer : LibraryContainer
|
||||
{
|
||||
public DesignAppsCollectionContainer()
|
||||
public BundledPartsCollectionContainer()
|
||||
{
|
||||
this.ChildContainers = new SafeList<ILibraryContainerLink>();
|
||||
this.Items = new SafeList<ILibraryItem>();
|
||||
this.Name = "Design Apps".Localize();
|
||||
this.Name = "Bundled".Localize();
|
||||
|
||||
this.ChildContainers.Add(
|
||||
new DynamicContainerLink(
|
||||
"Calibration Parts".Localize(),
|
||||
StaticData.Instance.LoadIcon(Path.Combine("Library", "folder.png")),
|
||||
StaticData.Instance.LoadIcon(Path.Combine("Library", "calibration_library_icon.png")),
|
||||
() => new CalibrationPartsContainer())
|
||||
{
|
||||
IsReadOnly = true
|
||||
});
|
||||
|
||||
this.ChildContainers.Add(
|
||||
new DynamicContainerLink(
|
||||
"Scripting".Localize(),
|
||||
StaticData.Instance.LoadIcon(Path.Combine("Library", "folder.png")),
|
||||
StaticData.Instance.LoadIcon(Path.Combine("Library", "scripting_icon.png")),
|
||||
() => new ScriptingPartsContainer())
|
||||
{
|
||||
IsReadOnly = true
|
||||
});
|
||||
|
||||
this.ChildContainers.Add(
|
||||
new DynamicContainerLink(
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (c) 2019, John Lewin
|
||||
Copyright (c) 2023, John Lewin, Lars Brubaker
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -27,11 +27,11 @@ of the authors and should not be interpreted as representing official policies,
|
|||
either expressed or implied, of the FreeBSD Project.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.DesignTools;
|
||||
using MatterHackers.MatterControl.DesignTools.Primitives;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MatterHackers.MatterControl.Library
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,177 @@
|
|||
/*
|
||||
Copyright (c) 2023, John Lewin, Lars Brubaker
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
The views and conclusions contained in the software and documentation are those
|
||||
of the authors and should not be interpreted as representing official policies,
|
||||
either expressed or implied, of the FreeBSD Project.
|
||||
*/
|
||||
|
||||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.DataConverters3D;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.DesignTools;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MatterHackers.MatterControl.Library
|
||||
{
|
||||
public class Primitives3DContainer : LibraryContainer
|
||||
{
|
||||
public Primitives3DContainer()
|
||||
{
|
||||
Name = "Primitives".Localize();
|
||||
DefaultSort = new LibrarySortBehavior()
|
||||
{
|
||||
SortKey = SortKey.ModifiedDate,
|
||||
Ascending = true,
|
||||
};
|
||||
}
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
var library = ApplicationController.Instance.Library;
|
||||
|
||||
long index = DateTime.Now.Ticks;
|
||||
var libraryItems = new List<GeneratorItem>()
|
||||
{
|
||||
new GeneratorItem(
|
||||
"Cube".Localize(),
|
||||
async () => await CubeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Hole".Localize(),
|
||||
async () => await CubeHoleObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Pyramid".Localize(),
|
||||
async () => await PyramidObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Wedge".Localize(),
|
||||
async () => await WedgeObject3D_2.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Half Wedge".Localize(),
|
||||
async () => await HalfWedgeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Text".Localize(),
|
||||
async () => await TextObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Cylinder".Localize(),
|
||||
async () => await CylinderObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Cone".Localize(),
|
||||
async () => await ConeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Half Cylinder".Localize(),
|
||||
async () => await HalfCylinderObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Torus".Localize(),
|
||||
async () => await TorusObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Ring".Localize(),
|
||||
async () => await RingObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Sphere".Localize(),
|
||||
async () => await SphereObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Half Sphere".Localize(),
|
||||
async () => await HalfSphereObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
#if DEBUG
|
||||
new GeneratorItem(
|
||||
"SCAD Script".Localize(),
|
||||
async () => await OpenScadScriptObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Dual Contouring".Localize(),
|
||||
async () => await DualContouringObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"QR Code".Localize(),
|
||||
async () => await QrCodeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
#endif
|
||||
new GeneratorItem(
|
||||
"Image Converter".Localize(),
|
||||
() =>
|
||||
{
|
||||
// Construct an image
|
||||
var imageObject = new ImageObject3D()
|
||||
{
|
||||
AssetPath = StaticData.Instance.ToAssetPath(Path.Combine("Images", "mh-logo.png"))
|
||||
};
|
||||
|
||||
// Construct a scene
|
||||
var bedConfig = new BedConfig(null);
|
||||
var tempScene = bedConfig.Scene;
|
||||
tempScene.Children.Add(imageObject);
|
||||
tempScene.SelectedItem = imageObject;
|
||||
|
||||
// Invoke ImageConverter operation, passing image and scene
|
||||
SceneOperations.ById("ImageConverter").Action(bedConfig);
|
||||
|
||||
// Return replacement object constructed in ImageConverter operation
|
||||
var constructedComponent = tempScene.Children.LastOrDefault();
|
||||
tempScene.SelectedItem = constructedComponent;
|
||||
tempScene.Children.Remove(constructedComponent);
|
||||
|
||||
return Task.FromResult(constructedComponent);
|
||||
})
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Measure Tool".Localize(),
|
||||
async () => await MeasureToolObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Description".Localize(),
|
||||
async () => await DescriptionObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Variable Sheet".Localize(),
|
||||
async () => await SheetObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
};
|
||||
|
||||
string title = "Primitive Shapes".Localize();
|
||||
|
||||
foreach (var item in libraryItems)
|
||||
{
|
||||
item.Category = title;
|
||||
Items.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,191 +0,0 @@
|
|||
/*
|
||||
Copyright (c) 2019, John Lewin
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
The views and conclusions contained in the software and documentation are those
|
||||
of the authors and should not be interpreted as representing official policies,
|
||||
either expressed or implied, of the FreeBSD Project.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.DataConverters3D;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.DesignTools;
|
||||
using MatterHackers.MatterControl.DesignTools.Operations;
|
||||
|
||||
namespace MatterHackers.MatterControl.Library
|
||||
{
|
||||
public class Primitives3DContainer : LibraryContainer
|
||||
{
|
||||
public Primitives3DContainer()
|
||||
{
|
||||
Name = "Primitives".Localize();
|
||||
DefaultSort = new LibrarySortBehavior()
|
||||
{
|
||||
SortKey = SortKey.ModifiedDate,
|
||||
Ascending = true,
|
||||
};
|
||||
}
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
var library = ApplicationController.Instance.Library;
|
||||
|
||||
long index = DateTime.Now.Ticks;
|
||||
var libraryItems = new List<GeneratorItem>()
|
||||
{
|
||||
new GeneratorItem(
|
||||
"Cube".Localize(),
|
||||
async () => await CubeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Hole".Localize(),
|
||||
async () => await CubeHoleObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Pyramid".Localize(),
|
||||
async () => await PyramidObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Wedge".Localize(),
|
||||
async () => await WedgeObject3D_2.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Half Wedge".Localize(),
|
||||
async () => await HalfWedgeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Text".Localize(),
|
||||
async () => await TextObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Cylinder".Localize(),
|
||||
async () => await CylinderObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Cone".Localize(),
|
||||
async () => await ConeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Half Cylinder".Localize(),
|
||||
async () => await HalfCylinderObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Torus".Localize(),
|
||||
async () => await TorusObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Ring".Localize(),
|
||||
async () => await RingObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Sphere".Localize(),
|
||||
async () => await SphereObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Half Sphere".Localize(),
|
||||
async () => await HalfSphereObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
#if DEBUG
|
||||
new GeneratorItem(
|
||||
"SCAD Script".Localize(),
|
||||
async () => await OpenScadScriptObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Dual Contouring".Localize(),
|
||||
async () => await DualContouringObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"QR Code".Localize(),
|
||||
async () => await QrCodeObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
#endif
|
||||
new GeneratorItem(
|
||||
"Image Converter".Localize(),
|
||||
() =>
|
||||
{
|
||||
// Construct an image
|
||||
var imageObject = new ImageObject3D()
|
||||
{
|
||||
AssetPath = StaticData.Instance.ToAssetPath(Path.Combine("Images", "mh-logo.png"))
|
||||
};
|
||||
|
||||
// Construct a scene
|
||||
var bedConfig = new BedConfig(null);
|
||||
var tempScene = bedConfig.Scene;
|
||||
tempScene.Children.Add(imageObject);
|
||||
tempScene.SelectedItem = imageObject;
|
||||
|
||||
// Invoke ImageConverter operation, passing image and scene
|
||||
SceneOperations.ById("ImageConverter").Action(bedConfig);
|
||||
|
||||
// Return replacement object constructed in ImageConverter operation
|
||||
var constructedComponent = tempScene.Children.LastOrDefault();
|
||||
tempScene.SelectedItem = constructedComponent;
|
||||
tempScene.Children.Remove(constructedComponent);
|
||||
|
||||
return Task.FromResult(constructedComponent);
|
||||
})
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Measure Tool".Localize(),
|
||||
async () => await MeasureToolObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Description".Localize(),
|
||||
async () => await DescriptionObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
new GeneratorItem(
|
||||
"Variable Sheet".Localize(),
|
||||
async () => await SheetObject3D.Create())
|
||||
{ DateCreated = new DateTime(index++) },
|
||||
};
|
||||
|
||||
string title = "Primitive Shapes".Localize();
|
||||
|
||||
foreach (var item in libraryItems)
|
||||
{
|
||||
item.Category = title;
|
||||
Items.Add(item);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
this.ChildContainers.Add(
|
||||
new DynamicContainerLink(
|
||||
"Primitives 2D".Localize(),
|
||||
StaticData.Instance.LoadIcon(Path.Combine("Library", "folder.png")),
|
||||
StaticData.Instance.LoadIcon(Path.Combine("Library", "primitives_library_icon.png")),
|
||||
() => new Primitives2DContainer())
|
||||
{
|
||||
IsReadOnly = true
|
||||
});
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (c) 2022, John Lewin, Lars Brubaker
|
||||
Copyright (c) 2023, John Lewin, Lars Brubaker
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ either expressed or implied, of the FreeBSD Project.
|
|||
using Markdig.Agg;
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.SettingsManagement;
|
||||
using MatterHackers.VectorMath;
|
||||
|
||||
namespace MatterHackers.MatterControl.PartPreviewWindow.PlusTab
|
||||
|
|
@ -53,7 +55,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.PlusTab
|
|||
Padding = new BorderDouble(left: theme.DefaultContainerPadding / 2)
|
||||
};
|
||||
|
||||
markdownWidget.Markdown = "# Upgrade to [MatterControl Pro](https://www.matterhackers.com/admin/product-preview/ag1zfm1oLXBscy1wcm9kchsLEg5Qcm9kdWN0TGlzdGluZxiAgIC_65WICww)";
|
||||
markdownWidget.Markdown = "# Upgrade to [{0}](https://www.matterhackers.com/admin/product-preview/ag1zfm1oLXBscy1wcm9kchsLEg5Qcm9kdWN0TGlzdGluZxiAgIC_65WICww)".Localize().FormatWith(OemSettings.Instance.RegisteredProductName);
|
||||
|
||||
this.AddChild(markdownWidget);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (c) 2022, Lars Brubaker, John Lewin
|
||||
Copyright (c) 2023, Lars Brubaker, John Lewin
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -45,6 +45,7 @@ using MatterHackers.MatterControl.CustomWidgets;
|
|||
using MatterHackers.MatterControl.Library;
|
||||
using MatterHackers.MatterControl.Library.Widgets;
|
||||
using MatterHackers.MatterControl.PartPreviewWindow.PlusTab;
|
||||
using MatterHackers.MatterControl.SettingsManagement;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
using MatterHackers.VectorMath;
|
||||
|
||||
|
|
@ -312,6 +313,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
});
|
||||
EnableReduceWidth(tab, theme);
|
||||
|
||||
if (!OemSettings.Instance.DesignToolsOnly)
|
||||
{
|
||||
// Hardware tab
|
||||
tabControl.AddTab(
|
||||
tab = new ChromeTab(
|
||||
|
|
@ -329,6 +332,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
Name = "Hardware Tab",
|
||||
Padding = new BorderDouble(15, 0),
|
||||
});
|
||||
}
|
||||
|
||||
EnableReduceWidth(tab, theme);
|
||||
|
||||
SetInitialTab();
|
||||
|
|
|
|||
|
|
@ -27,19 +27,17 @@ of the authors and should not be interpreted as representing official policies,
|
|||
either expressed or implied, of the FreeBSD Project.
|
||||
*/
|
||||
|
||||
using MatterHackers.Agg.Image;
|
||||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.Agg.VertexSource;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.Image;
|
||||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.Agg.VertexSource;
|
||||
using MatterHackers.ImageProcessing;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MatterHackers.MatterControl.SettingsManagement
|
||||
{
|
||||
|
|
@ -71,8 +69,13 @@ namespace MatterHackers.MatterControl.SettingsManagement
|
|||
|
||||
public bool ShowShopButton = true;
|
||||
|
||||
public bool DesignToolsOnly = true;
|
||||
|
||||
public bool CheckForUpdatesOnFirstRun = false;
|
||||
|
||||
public string UnregisteredProductName { get; set; } = "MatterControl";
|
||||
public string RegisteredProductName { get; set; } = "MatterControl Pro";
|
||||
|
||||
public List<string> PrinterWhiteList { get; private set; } = new List<string>();
|
||||
|
||||
public List<ManufacturerNameMapping> ManufacturerNameMappings { get; set; }
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ using MatterHackers.Agg;
|
|||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.CustomWidgets;
|
||||
using MatterHackers.MatterControl.SettingsManagement;
|
||||
using MatterHackers.VectorMath;
|
||||
|
||||
namespace MatterHackers.MatterControl.Tour
|
||||
|
|
@ -40,10 +41,10 @@ namespace MatterHackers.MatterControl.Tour
|
|||
public WelcomePage()
|
||||
: base("Done".Localize())
|
||||
{
|
||||
this.WindowTitle = "MatterControl".Localize();
|
||||
this.WindowTitle = ApplicationController.Instance.ProductName;
|
||||
this.WindowSize = new Vector2(400 * GuiWidget.DeviceScale, 250 * GuiWidget.DeviceScale);
|
||||
|
||||
this.HeaderText = "Welcome to MatterControl".Localize();
|
||||
this.HeaderText = "Welcome to {0}".Localize().FormatWith(ApplicationController.Instance.ProductName);
|
||||
|
||||
var welcome = "Let's show you around before you get started.".Localize();
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ Translated:(Press 'Skip' to setup connection later)
|
|||
English:{0} (Update Available)
|
||||
Translated:{0} (Update Available)
|
||||
|
||||
English:{0} is made possible by the team at MatterHackers and other open source software
|
||||
Translated:{0} is made possible by the team at MatterHackers and other open source software
|
||||
|
||||
English:{0} must be greater than 0 and less than your nozzle diameter. You may be missing a '%'.
|
||||
Translated:{0} must be greater than 0 and less than your nozzle diameter. You may be missing a '%'.
|
||||
|
||||
|
|
@ -412,9 +415,6 @@ Translated:Are you sure you want to sign out? You will not have access to your p
|
|||
English:Arrange All Parts
|
||||
Translated:Arrange All Parts
|
||||
|
||||
English:Arranging
|
||||
Translated:Arranging
|
||||
|
||||
English:As the time to print a layer decreases to this, the fan speed will be increased up to its maximum speed.
|
||||
Translated:As the time to print a layer decreases to this, the fan speed will be increased up to its maximum speed.
|
||||
|
||||
|
|
@ -505,9 +505,6 @@ Translated:Bad
|
|||
English:Bad Thermistor
|
||||
Translated:Bad Thermistor
|
||||
|
||||
English:Bambu Studio
|
||||
Translated:Bambu Studio
|
||||
|
||||
English:Base
|
||||
Translated:Base
|
||||
|
||||
|
|
@ -538,9 +535,6 @@ Translated:Be sure you are not pressing down on the bed while moving the paper.
|
|||
English:Bed
|
||||
Translated:Bed
|
||||
|
||||
English:Bed Depth
|
||||
Translated:Bed Depth
|
||||
|
||||
English:Bed Dislodged
|
||||
Translated:Bed Dislodged
|
||||
|
||||
|
|
@ -586,9 +580,6 @@ Translated:Bed Temperature Set to 0
|
|||
English:Bed Temperature:
|
||||
Translated:Bed Temperature:
|
||||
|
||||
English:Bed Width
|
||||
Translated:Bed Width
|
||||
|
||||
English:Bed Wipe Temperature
|
||||
Translated:Bed Wipe Temperature
|
||||
|
||||
|
|
@ -1036,6 +1027,9 @@ Translated:Connection Timeout
|
|||
English:Connection Troubleshooting
|
||||
Translated:Connection Troubleshooting
|
||||
|
||||
English:Constraints
|
||||
Translated:Constraints
|
||||
|
||||
English:Continue
|
||||
Translated:Continue
|
||||
|
||||
|
|
@ -1144,9 +1138,6 @@ Translated:Create Part Sheet
|
|||
English:Create Perimeter
|
||||
Translated:Create Perimeter
|
||||
|
||||
English:Create Plates
|
||||
Translated:Create Plates
|
||||
|
||||
English:Create Printer
|
||||
Translated:Create Printer
|
||||
|
||||
|
|
@ -1165,9 +1156,6 @@ Translated:Create Support
|
|||
English:Create Supports
|
||||
Translated:Create Supports
|
||||
|
||||
English:Create the plates for all the selected STLs.
|
||||
Translated:Create the plates for all the selected STLs.
|
||||
|
||||
English:Creates a brim attached to the base of the print. Useful to prevent warping when printing ABS (and other warping-prone plastics) as it helps parts adhere to the bed.
|
||||
Translated:Creates a brim attached to the base of the print. Useful to prevent warping when printing ABS (and other warping-prone plastics) as it helps parts adhere to the bed.
|
||||
|
||||
|
|
@ -2104,9 +2092,6 @@ Translated:Generate Supports
|
|||
English:Generates an outline around the support material to improve strength and hold up interface layers.
|
||||
Translated:Generates an outline around the support material to improve strength and hold up interface layers.
|
||||
|
||||
English:Generating Config
|
||||
Translated:Generating Config
|
||||
|
||||
English:Generating Lithophane
|
||||
Translated:Generating Lithophane
|
||||
|
||||
|
|
@ -2710,9 +2695,6 @@ Translated:Loading GCode
|
|||
English:Loading Help
|
||||
Translated:Loading Help
|
||||
|
||||
English:Loading Stls
|
||||
Translated:Loading Stls
|
||||
|
||||
English:Local Library
|
||||
Translated:Local Library
|
||||
|
||||
|
|
@ -3394,9 +3376,6 @@ Translated:Open Recent
|
|||
English:Open Settings View Options
|
||||
Translated:Open Settings View Options
|
||||
|
||||
English:Open With
|
||||
Translated:Open With
|
||||
|
||||
English:OpenSCAD not installed
|
||||
Translated:OpenSCAD not installed
|
||||
|
||||
|
|
@ -3442,9 +3421,6 @@ Translated:Outlines (default)
|
|||
English:Output
|
||||
Translated:Output
|
||||
|
||||
English:Output Folder
|
||||
Translated:Output Folder
|
||||
|
||||
English:Output only the first layer of the print. Especially useful for outputting gcode data for applications like engraving or cutting.
|
||||
Translated:Output only the first layer of the print. Especially useful for outputting gcode data for applications like engraving or cutting.
|
||||
|
||||
|
|
@ -3499,9 +3475,6 @@ Translated:Part(s) to Subtract and Replace
|
|||
English:Parts
|
||||
Translated:Parts
|
||||
|
||||
English:Parts Folder
|
||||
Translated:Parts Folder
|
||||
|
||||
English:Password
|
||||
Translated:Password
|
||||
|
||||
|
|
@ -3547,12 +3520,6 @@ Translated:PEI Bed Temperature
|
|||
English:Percentage of
|
||||
Translated:Percentage of
|
||||
|
||||
English:Performe a union before exporting. Might be slower but can clean up some models.
|
||||
Translated:Performe a union before exporting. Might be slower but can clean up some models.
|
||||
|
||||
English:Performe Union
|
||||
Translated:Performe Union
|
||||
|
||||
English:Perimeter Acceleration
|
||||
Translated:Perimeter Acceleration
|
||||
|
||||
|
|
@ -3775,6 +3742,9 @@ Translated:Primitives
|
|||
English:Primitives 2D
|
||||
Translated:Primitives 2D
|
||||
|
||||
English:Primitives 3D
|
||||
Translated:Primitives 3D
|
||||
|
||||
English:Print
|
||||
Translated:Print
|
||||
|
||||
|
|
@ -4402,12 +4372,6 @@ Translated:Save changes ?
|
|||
English:Save Changes?
|
||||
Translated:Save Changes?
|
||||
|
||||
English:Save Each Separately
|
||||
Translated:Save Each Separately
|
||||
|
||||
English:Save every object as a separate STL using its name. The save filename will be used if no name can be found.
|
||||
Translated:Save every object as a separate STL using its name. The save filename will be used if no name can be found.
|
||||
|
||||
English:Save file:
|
||||
Translated:Save file:
|
||||
|
||||
|
|
@ -4435,9 +4399,6 @@ Translated:Saving changes
|
|||
English:Saving Changes
|
||||
Translated:Saving Changes
|
||||
|
||||
English:Saving PDF
|
||||
Translated:Saving PDF
|
||||
|
||||
English:SCAD Script
|
||||
Translated:SCAD Script
|
||||
|
||||
|
|
@ -4510,9 +4471,6 @@ Translated:Select an object to copy its color
|
|||
English:Select cell to edit
|
||||
Translated:Select cell to edit
|
||||
|
||||
English:Select Folder
|
||||
Translated:Select Folder
|
||||
|
||||
English:Select Parts
|
||||
Translated:Select Parts
|
||||
|
||||
|
|
@ -4534,9 +4492,6 @@ Translated:Select this option only if your printer does not appear in the list
|
|||
English:Select What to Import
|
||||
Translated:Select What to Import
|
||||
|
||||
English:Selecte a directory
|
||||
Translated:Selecte a directory
|
||||
|
||||
English:Selected Children
|
||||
Translated:Selected Children
|
||||
|
||||
|
|
@ -4990,9 +4945,6 @@ Translated:Starting Angle
|
|||
English:Starting firmware update...
|
||||
Translated:Starting firmware update...
|
||||
|
||||
English:Starting slicer
|
||||
Translated:Starting slicer
|
||||
|
||||
English:Starting Sync
|
||||
Translated:Starting Sync
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue