Remove redundant progress controls in classic RowListViews
This commit is contained in:
parent
21ac3e9dbf
commit
0f703b1f3d
3 changed files with 2 additions and 74 deletions
|
|
@ -128,10 +128,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
};
|
||||
leftColumn.AddChild(imageWidget);
|
||||
|
||||
// TODO: Move to caller
|
||||
// TextInfo textInfo = new CultureInfo("en-US", false).TextInfo;
|
||||
// textInfo.ToTitleCase(PrintItemWrapper.Name).Replace('_', ' ')
|
||||
|
||||
partLabel = new TextWidget(listViewItem.Model.Name, pointSize: 14)
|
||||
{
|
||||
TextColor = RGBA_Bytes.Black,
|
||||
|
|
@ -139,16 +135,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
VAnchor = VAnchor.Center
|
||||
};
|
||||
|
||||
/*
|
||||
partStatus = new TextWidget("{0}: {1}".FormatWith("Status".Localize().ToUpper(), "Queued to Print".Localize()), pointSize: 10)
|
||||
{
|
||||
AutoExpandBoundsToText = true,
|
||||
TextColor = RGBA_Bytes.Black,
|
||||
MinimumSize = new Vector2(50, 12)
|
||||
middleColumn.AddChild(partStatus);
|
||||
|
||||
}; */
|
||||
|
||||
middleColumn = new GuiWidget(0.0, 0.0)
|
||||
{
|
||||
VAnchor = VAnchor.Stretch,
|
||||
|
|
@ -157,17 +143,9 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
Margin = new BorderDouble(10, 3)
|
||||
};
|
||||
|
||||
listViewItem.ProgressTarget = middleColumn;
|
||||
|
||||
bool mouseDownOnMiddle = false;
|
||||
middleColumn.MouseDown += (sender, e) =>
|
||||
{
|
||||
// TODO: Need custom model type for non-content items
|
||||
// Abort normal processing for view helpers
|
||||
/* if (this.IsViewHelperItem)
|
||||
{
|
||||
return;
|
||||
}*/
|
||||
mouseDownOnMiddle = true;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue