diff options
| author | Jacob Palecki <[email protected]> | 2021-04-04 23:31:14 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-04-04 23:31:14 -0700 |
| commit | d948065a830dafe526e38868f23a4ca4a6ba63e4 (patch) | |
| tree | bbd210d153a32586d8a21da3c054aa3881b85222 | |
| parent | Fix two more errors, add LUT layout (diff) | |
| download | rawaccel-d948065a830dafe526e38868f23a4ca4a6ba63e4.tar.xz rawaccel-d948065a830dafe526e38868f23a4ca4a6ba63e4.zip | |
Add textoption for lut text display
| -rw-r--r-- | grapher/Models/Options/TextOption.cs | 95 | ||||
| -rw-r--r-- | grapher/grapher.csproj | 3 |
2 files changed, 97 insertions, 1 deletions
diff --git a/grapher/Models/Options/TextOption.cs b/grapher/Models/Options/TextOption.cs new file mode 100644 index 0000000..bbdedca --- /dev/null +++ b/grapher/Models/Options/TextOption.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace grapher.Models.Options +{ + public class TextOption : OptionBase + { + #region Constructors + + public TextOption(Label label) + { + Label = label; + } + + #endregion Constructors + + #region Properties + + private Label Label { get; } + + public override bool Visible + { + get + { + return Label.Visible; + } + } + + public override int Top + { + get + { + return Label.Top; + } + set + { + Label.Top = value; + } + } + + public override int Height + { + get + { + return Label.Height; + } + } + + public override int Width + { + get + { + return Label.Width; + } + set + { + Label.Width = value; + } + } + + public override int Left + { + get + { + return Label.Left; + } + set + { + Label.Left = value; + } + } + + public override void Hide() + { + Label.Hide(); + } + + public override void Show(string Name) + { + Label.Show(); + Label.Text = Name; + } + + public override void AlignActiveValues() + { + // Nothing to do here + } + + #endregion Properties + } +} diff --git a/grapher/grapher.csproj b/grapher/grapher.csproj index 67948ff..e884c0d 100644 --- a/grapher/grapher.csproj +++ b/grapher/grapher.csproj @@ -78,8 +78,8 @@ <DependentUpon>AboutBox.cs</DependentUpon> </Compile> <Compile Include="Constants\Constants.cs" /> + <Compile Include="Layouts\LUTLayout.cs" /> <Compile Include="Layouts\MotivityLayout.cs" /> - <Compile Include="Layouts\NaturalGainLayout.cs" /> <Compile Include="MessageDialog.cs"> <SubType>Form</SubType> </Compile> @@ -135,6 +135,7 @@ <Compile Include="Layouts\OptionLayout.cs" /> <Compile Include="Models\Options\OptionBase.cs" /> <Compile Include="Models\Options\OptionXY.cs" /> + <Compile Include="Models\Options\TextOption.cs" /> <Compile Include="Models\Serialized\GUISettings.cs" /> <Compile Include="Models\Serialized\LookupTable.cs" /> <Compile Include="Models\Serialized\RawAccelSettings.cs" /> |