Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
NumericTextCtrl::Options Struct Reference

#include <NumericTextCtrl.h>

Collaboration diagram for NumericTextCtrl::Options:
[legend]

Public Member Functions

 Options ()
 
OptionsAutoPos (bool enable)
 
OptionsReadOnly (bool enable)
 
OptionsMenuEnabled (bool enable)
 
OptionsInvalidValue (bool has, double v=-1.0)
 
OptionsFormatSymbol (const NumericFormatID &f)
 
OptionsCustomFormat (const TranslatableString &f)
 
OptionsValue (bool has, double v)
 

Public Attributes

bool autoPos { true }
 
bool readOnly { false }
 
bool menuEnabled { true }
 
bool hasInvalidValue { false }
 
double invalidValue { -1.0 }
 
NumericFormatID formatSymbol {}
 
TranslatableString customFormat {}
 
bool hasValue { false }
 
double value { -1.0 }
 

Detailed Description

Definition at line 42 of file NumericTextCtrl.h.

Constructor & Destructor Documentation

◆ Options()

NumericTextCtrl::Options::Options ( )
inline

Definition at line 53 of file NumericTextCtrl.h.

53{}

Member Function Documentation

◆ AutoPos()

Options & NumericTextCtrl::Options::AutoPos ( bool  enable)
inline

◆ CustomFormat()

Options & NumericTextCtrl::Options::CustomFormat ( const TranslatableString f)
inline

Definition at line 63 of file NumericTextCtrl.h.

64 { customFormat = f; return *this; }
TranslatableString customFormat

◆ FormatSymbol()

Options & NumericTextCtrl::Options::FormatSymbol ( const NumericFormatID f)
inline

Definition at line 61 of file NumericTextCtrl.h.

62 { formatSymbol = f; return *this; }
NumericFormatID formatSymbol

◆ InvalidValue()

Options & NumericTextCtrl::Options::InvalidValue ( bool  has,
double  v = -1.0 
)
inline

Definition at line 58 of file NumericTextCtrl.h.

59 { hasInvalidValue = has, invalidValue = v; return *this; }

Referenced by SpectralSelectionBar::Populate().

Here is the caller graph for this function:

◆ MenuEnabled()

Options & NumericTextCtrl::Options::MenuEnabled ( bool  enable)
inline

Definition at line 57 of file NumericTextCtrl.h.

57{ menuEnabled = enable; return *this; }

Referenced by NyquistEffect::BuildEffectWindow(), and ContrastDialog::ContrastDialog().

Here is the caller graph for this function:

◆ ReadOnly()

Options & NumericTextCtrl::Options::ReadOnly ( bool  enable)
inline

Definition at line 56 of file NumericTextCtrl.h.

56{ readOnly = enable; return *this; }

Referenced by NyquistEffect::BuildEffectWindow(), ContrastDialog::ContrastDialog(), and EffectChangeSpeed::PopulateOrExchange().

Here is the caller graph for this function:

◆ Value()

Options & NumericTextCtrl::Options::Value ( bool  has,
double  v 
)
inline

Definition at line 65 of file NumericTextCtrl.h.

66 { hasValue = has, value = v; return *this; }

Member Data Documentation

◆ autoPos

bool NumericTextCtrl::Options::autoPos { true }

Definition at line 43 of file NumericTextCtrl.h.

◆ customFormat

TranslatableString NumericTextCtrl::Options::customFormat {}

Definition at line 49 of file NumericTextCtrl.h.

◆ formatSymbol

NumericFormatID NumericTextCtrl::Options::formatSymbol {}

Definition at line 48 of file NumericTextCtrl.h.

◆ hasInvalidValue

bool NumericTextCtrl::Options::hasInvalidValue { false }

Definition at line 46 of file NumericTextCtrl.h.

◆ hasValue

bool NumericTextCtrl::Options::hasValue { false }

Definition at line 50 of file NumericTextCtrl.h.

◆ invalidValue

double NumericTextCtrl::Options::invalidValue { -1.0 }

Definition at line 47 of file NumericTextCtrl.h.

◆ menuEnabled

bool NumericTextCtrl::Options::menuEnabled { true }

Definition at line 45 of file NumericTextCtrl.h.

◆ readOnly

bool NumericTextCtrl::Options::readOnly { false }

Definition at line 44 of file NumericTextCtrl.h.

◆ value

double NumericTextCtrl::Options::value { -1.0 }

Definition at line 51 of file NumericTextCtrl.h.


The documentation for this struct was generated from the following file: