Complete rename to UIField
This commit is contained in:
parent
334f64148b
commit
acff39eee0
13 changed files with 25 additions and 18 deletions
|
|
@ -292,10 +292,11 @@
|
|||
<Compile Include="SetupWizard\SetupWizardTroubleshooting.cs" />
|
||||
<Compile Include="SetupWizard\SetupWizardWifi.cs" />
|
||||
<Compile Include="SetupWizard\WizardWindow.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\BasicField.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\UIField.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\DoubleField.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\DoubleOrPercentField.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\DropMenuWrappedField.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\FieldChangedEventArgs.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\IntField.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\IntOrMmField.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\CheckboxField.cs" />
|
||||
|
|
@ -308,7 +309,6 @@
|
|||
<Compile Include="SlicerConfiguration\UIFields\Vector2Field.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\PositiveDoubleField.cs" />
|
||||
<Compile Include="SlicerConfiguration\SettingsContext.cs" />
|
||||
<Compile Include="SlicerConfiguration\UIFields\IUIField.cs" />
|
||||
<Compile Include="SlicerConfiguration\Settings\GCodeMacro.cs" />
|
||||
<Compile Include="SlicerConfiguration\Settings\ProfileMigrations.cs" />
|
||||
<Compile Include="SlicerConfiguration\Settings\ProfileManager.cs" />
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
private PrinterConnection printerConnection;
|
||||
|
||||
private Dictionary<string, BasicField> allUiFields = new Dictionary<string, BasicField>();
|
||||
private Dictionary<string, UIField> allUiFields = new Dictionary<string, UIField>();
|
||||
|
||||
private EventHandler unregisterEvents;
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
if (e is StringEventArgs stringEvent)
|
||||
{
|
||||
string settingsKey = stringEvent.Data;
|
||||
if (allUiFields.TryGetValue(settingsKey, out BasicField field2))
|
||||
if (allUiFields.TryGetValue(settingsKey, out UIField field2))
|
||||
{
|
||||
string currentValue = settingsContext.GetValue(settingsKey);
|
||||
if (field2.Value != currentValue
|
||||
|
|
@ -891,7 +891,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
{
|
||||
string sliceSettingValue = settingsContext.GetValue(settingData.SlicerConfigName);
|
||||
|
||||
BasicField uiField = null;
|
||||
UIField uiField = null;
|
||||
|
||||
bool useDefaultSavePattern = true;
|
||||
bool placeFieldInDedicatedRow = false;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ using MatterHackers.Agg.UI;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public class CheckboxField : BasicField
|
||||
public class CheckboxField : UIField
|
||||
{
|
||||
private CheckBox checkBoxWidget;
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
}
|
||||
|
||||
|
||||
public class ToggleboxField : BasicField
|
||||
public class ToggleboxField : UIField
|
||||
{
|
||||
private CheckBox checkBoxWidget;
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ using MatterHackers.SerialPortCommunication.FrostedSerial;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public class ComPortField : BasicField
|
||||
public class ComPortField : UIField
|
||||
{
|
||||
private DropDownList dropdownList;
|
||||
|
||||
|
|
|
|||
|
|
@ -35,10 +35,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
{
|
||||
public class DropMenuWrappedField
|
||||
{
|
||||
private BasicField uiField;
|
||||
private UIField uiField;
|
||||
private SliceSettingData settingData;
|
||||
|
||||
public DropMenuWrappedField(BasicField uiField, SliceSettingData settingData)
|
||||
public DropMenuWrappedField(UIField uiField, SliceSettingData settingData)
|
||||
{
|
||||
this.settingData = settingData;
|
||||
this.uiField = uiField;
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ of the authors and should not be interpreted as representing official policies,
|
|||
either expressed or implied, of the FreeBSD Project.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using MatterHackers.Agg.UI;
|
||||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
|
|
@ -35,7 +35,7 @@ using MatterHackers.Localizations;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public class ListField : BasicField
|
||||
public class ListField : UIField
|
||||
{
|
||||
private DropDownList dropdownList;
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ using MatterHackers.Agg.UI;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public class MultilineStringField : BasicField
|
||||
public class MultilineStringField : UIField
|
||||
{
|
||||
private readonly int multiLineEditHeight = (int)(120 * GuiWidget.DeviceScale + .5);
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ using MatterHackers.Agg.UI;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public abstract class NumberField : BasicField
|
||||
public abstract class NumberField : UIField
|
||||
{
|
||||
protected MHNumberEdit numberEdit;
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ using MatterHackers.Agg.UI;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public class TextField : BasicField
|
||||
public class TextField : UIField
|
||||
{
|
||||
protected MHTextEditWidget textEditWidget;
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ using MatterHackers.Agg.UI;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public abstract class BasicField
|
||||
public abstract class UIField
|
||||
{
|
||||
public event EventHandler<FieldChangedEventArgs> ValueChanged;
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ using MatterHackers.Agg.UI;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
public class Vector2Field : BasicField
|
||||
public class Vector2Field : UIField
|
||||
{
|
||||
public static readonly int VectorXYEditWidth = (int)(60 * GuiWidget.DeviceScale + .5);
|
||||
|
||||
|
|
|
|||
|
|
@ -4537,3 +4537,12 @@ Translated:Preset Name:
|
|||
English:Fillament
|
||||
Translated:Fillament
|
||||
|
||||
English:Write Filter
|
||||
Translated:Write Filter
|
||||
|
||||
English:Read Filter
|
||||
Translated:Read Filter
|
||||
|
||||
English:Filters
|
||||
Translated:Filters
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue