Making the 2d 3d button not show in gcode view until it is needed.
This commit is contained in:
parent
ce8f58950d
commit
93b6fa049c
2 changed files with 3 additions and 4 deletions
|
|
@ -10,7 +10,6 @@ using MatterHackers.MatterControl;
|
|||
|
||||
namespace MatterHackers.MatterControl.PartPreviewWindow
|
||||
{
|
||||
|
||||
public class ViewControlsBase : FlowLayoutWidget
|
||||
{
|
||||
protected int buttonHeight;
|
||||
|
|
@ -32,7 +31,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
public RadioButton translateButton;
|
||||
public RadioButton scaleButton;
|
||||
|
||||
|
||||
public ViewControls2D()
|
||||
{
|
||||
if (ActiveTheme.Instance.DisplayMode == ActiveTheme.ApplicationDisplayType.Touchscreen)
|
||||
|
|
@ -82,7 +80,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
BackgroundColor = new RGBA_Bytes(0, 0, 0, 120);
|
||||
|
||||
|
||||
iconTextImageButtonFactory.FixedHeight = buttonHeight;
|
||||
iconTextImageButtonFactory.FixedWidth = buttonHeight;
|
||||
|
||||
|
|
|
|||
|
|
@ -259,9 +259,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
viewControls3D.Visible = false;
|
||||
|
||||
viewControlsToggle = new ViewControlsToggle ();
|
||||
viewControlsToggle.HAnchor = Agg.UI.HAnchor.ParentRight;
|
||||
AddChild (viewControlsToggle);
|
||||
viewControlsToggle.Visible = false;
|
||||
|
||||
|
||||
//viewControls3D.translateButton.ClickButton(null);
|
||||
|
||||
// move things into the right place and scale
|
||||
|
|
@ -807,6 +808,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
CreateOptionsContent();
|
||||
buttonRightPanel.Visible = true;
|
||||
viewControlsToggle.Visible = true;
|
||||
|
||||
CloseIfNotNull(setLayerWidget);
|
||||
setLayerWidget = new SetLayerWidget(gcodeViewWidget);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue