Put in the ability to get the size of the tab bar for the queue window
Made the tab bar fit to children so it holds all it's buttons Made the first panel always fit the size of the queue tab bar put in a layers description for z gap in settings
This commit is contained in:
parent
e665065308
commit
4afadaffc1
4 changed files with 10 additions and 15 deletions
|
|
@ -69,6 +69,8 @@ namespace MatterHackers.MatterControl
|
|||
get { return GetPanel(1); }
|
||||
}
|
||||
|
||||
public double TabBarWidth { get { return mainControlsTabControl.Width; } }
|
||||
|
||||
static int lastPanelIndexBeforeReload = 0;
|
||||
public CompactSlidePanel(QueueDataView queueDataView)
|
||||
: base(2)
|
||||
|
|
@ -108,6 +110,8 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
mainControlsTabControl.TabBar.AddChild(hSpacer);
|
||||
mainControlsTabControl.TabBar.AddChild(advancedControlsLinkButton);
|
||||
mainControlsTabControl.TabBar.HAnchor = HAnchor.Max_FitToChildren_ParentWidth;
|
||||
mainControlsTabControl.HAnchor = HAnchor.Max_FitToChildren_ParentWidth;
|
||||
|
||||
this.LeftPanel.AddChild(mainControlsTabControl);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ using MatterHackers.MatterControl.PrintHistory;
|
|||
|
||||
namespace MatterHackers.MatterControl
|
||||
{
|
||||
class FirstPanelTabView : TabControl
|
||||
public class FirstPanelTabView : TabControl
|
||||
{
|
||||
public static int firstPanelCurrentTab = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@ namespace MatterHackers.MatterControl
|
|||
static readonly int ColumnOneFixedWidth = 590;
|
||||
static int lastNumberOfVisiblePanels;
|
||||
|
||||
public TabPage AboutTabPage;
|
||||
TextImageButtonFactory advancedControlsButtonFactory = new TextImageButtonFactory();
|
||||
RGBA_Bytes unselectedTextColor = ActiveTheme.Instance.TabLabelUnselected;
|
||||
|
||||
|
|
@ -145,27 +144,18 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
CompactSlidePanel compactSlidePanel;
|
||||
void LoadCompactView()
|
||||
{
|
||||
queueDataView = new QueueDataView();
|
||||
|
||||
ColumnOne.RemoveAllChildren();
|
||||
ColumnOne.AddChild(new ActionBarPlus(queueDataView));
|
||||
ColumnOne.AddChild(new CompactSlidePanel(queueDataView));
|
||||
compactSlidePanel = new CompactSlidePanel(queueDataView);
|
||||
ColumnOne.AddChild(compactSlidePanel);
|
||||
ColumnOne.AnchorAll();
|
||||
}
|
||||
|
||||
void LoadColumnOne()
|
||||
{
|
||||
queueDataView = new QueueDataView();
|
||||
|
||||
ColumnOne.VAnchor = VAnchor.ParentBottomTop;
|
||||
ColumnOne.AddChild(new ActionBarPlus(queueDataView));
|
||||
ColumnOne.AddChild(new PrintProgressBar());
|
||||
ColumnOne.AddChild(new FirstPanelTabView(queueDataView));
|
||||
ColumnOne.Width = ColumnOneFixedWidth; //Ordering here matters - must go after children are added
|
||||
}
|
||||
|
||||
void LoadColumnTwo(object state = null)
|
||||
{
|
||||
ColumnTwo.CloseAndRemoveAllChildren();
|
||||
|
|
@ -242,6 +232,7 @@ namespace MatterHackers.MatterControl
|
|||
ColumnTwo.Visible = true;
|
||||
ColumnOne.HAnchor = Agg.UI.HAnchor.None;
|
||||
ColumnOne.Width = ColumnOneFixedWidth; // it can hold the slice settings so it needs to be bigger.
|
||||
ColumnOne.MinimumSize = new Vector2(Math.Max(compactSlidePanel.TabBarWidth, ColumnOneFixedWidth), 0); //Ordering here matters - must go after children are added
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -939,7 +939,7 @@
|
|||
"PresentationName": "Z Gap",
|
||||
"HelpText": "The number of layers to skip in z. The gap between the support and the model.",
|
||||
"DataEditType": "INT",
|
||||
"ExtraSettings": ""
|
||||
"ExtraSettings": "layers"
|
||||
},
|
||||
{
|
||||
"SlicerConfigName": "support_material",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue