Audacity  2.3.1
Public Member Functions | List of all members
ShuttleGuiGetDefinition Class Reference

Shuttle that retrieves a JSON format definition of a command's parameters. More...

#include <ShuttleGui.h>

Inheritance diagram for ShuttleGuiGetDefinition:
ShuttleGui CommandMessageTargetDecorator ShuttleGuiBase CommandMessageTarget

Public Member Functions

 ShuttleGuiGetDefinition (wxWindow *pParent, CommandMessageTarget &target)
 
virtual ~ShuttleGuiGetDefinition ()
 
wxCheckBox * TieCheckBox (const wxString &Prompt, const wxString &SettingName, const bool bDefault) override
 
wxCheckBox * TieCheckBoxOnRight (const wxString &Prompt, const wxString &SettingName, const bool bDefault) override
 
wxChoice * TieChoice (const wxString &Prompt, const wxString &SettingName, const wxString &Default, const wxArrayString &Choices, const wxArrayString &InternalChoices) override
 
wxChoice * TieChoice (const wxString &Prompt, const wxString &SettingName, const int Default, const wxArrayString &Choices, const std::vector< int > &InternalChoices) override
 
wxChoice * TieNumberAsChoice (const wxString &Prompt, const wxString &SettingName, const int Default, const wxArrayString &Choices, const std::vector< int > &InternalChoices) override
 
wxTextCtrl * TieTextBox (const wxString &Prompt, const wxString &SettingName, const wxString &Default, const int nChars) override
 
wxTextCtrl * TieTextBox (const wxString &Prompt, const wxString &SettingName, const double &Default, const int nChars) override
 
wxTextCtrl * TieNumericTextBox (const wxString &Prompt, const wxString &SettingName, const wxString &Default, const int nChars) override
 
wxTextCtrl * TieNumericTextBox (const wxString &Prompt, const wxString &SettingName, const double &Default, const int nChars) override
 
wxSlider * TieSlider (const wxString &Prompt, const wxString &SettingName, const int iDefault, const int max, const int min=0) override
 
wxSpinCtrl * TieSpinCtrl (const wxString &Prompt, const wxString &SettingName, const int Value, const int max, const int min) override
 
- Public Member Functions inherited from ShuttleGui
 ShuttleGui (wxWindow *pParent, teShuttleMode ShuttleMode)
 
 ~ShuttleGui (void)
 
ShuttleGuiOptional (bool &bVar)
 
ShuttleGuiId (int id)
 
ShuttleGuiProp (int iProp)
 
GuiWaveTrack * AddGuiWaveTrack (const wxString &Name)
 
AttachableScrollBarAddAttachableScrollBar (long style=wxSB_HORIZONTAL)
 
void AddStandardButtons (long buttons=eOkButton|eCancelButton, wxButton *extra=NULL)
 
wxSizerItem * AddSpace (int width, int height)
 
wxSizerItem * AddSpace (int size)
 
teShuttleMode GetMode ()
 
- Public Member Functions inherited from ShuttleGuiBase
 ShuttleGuiBase (wxWindow *pParent, teShuttleMode ShuttleMode)
 
virtual ~ShuttleGuiBase ()
 
void Init ()
 
void ResetId ()
 
void HandleOptionality (const wxString &Prompt)
 
void AddPrompt (const wxString &Prompt)
 Right aligned text string. More...
 
void AddUnits (const wxString &Prompt)
 Left aligned text string. More...
 
void AddTitle (const wxString &Prompt)
 Centred text string. More...
 
wxWindow * AddWindow (wxWindow *pWindow, int Flags=wxALIGN_CENTRE|wxALL)
 
wxSlider * AddSlider (const wxString &Prompt, int pos, int Max, int Min=0)
 
wxSlider * AddVSlider (const wxString &Prompt, int pos, int Max)
 
wxSpinCtrl * AddSpinCtrl (const wxString &Prompt, int Value, int Max, int Min)
 
wxTreeCtrl * AddTree ()
 
wxRadioButton * AddRadioButton (const wxString &Prompt)
 
wxRadioButton * AddRadioButtonToGroup (const wxString &Prompt)
 
wxButton * AddButton (const wxString &Text, int PositionFlags=wxALIGN_CENTRE)
 
wxBitmapButton * AddBitmapButton (const wxBitmap &Bitmap, int PositionFlags=wxALIGN_CENTRE)
 
wxStaticText * AddVariableText (const wxString &Str, bool bCenter=false, int PositionFlags=0)
 
wxTextCtrl * AddTextBox (const wxString &Caption, const wxString &Value, const int nChars)
 
wxTextCtrl * AddNumericTextBox (const wxString &Caption, const wxString &Value, const int nChars)
 
wxTextCtrl * AddTextWindow (const wxString &Value)
 Multiline text box that grows. More...
 
wxListBox * AddListBox (const wxArrayString *pChoices, long style=0)
 
wxListCtrl * AddListControl ()
 
wxListCtrl * AddListControlReportMode ()
 
wxGrid * AddGrid ()
 
wxCheckBox * AddCheckBox (const wxString &Prompt, const wxString &Selected)
 
wxCheckBox * AddCheckBoxOnRight (const wxString &Prompt, const wxString &Selected)
 
wxComboBox * AddCombo (const wxString &Prompt, const wxString &Selected, const wxArrayString *pChoices, long style=0)
 
wxChoice * AddChoice (const wxString &Prompt, const wxString &Selected, const wxArrayString *pChoices)
 
wxMenuBar * AddMenuBar ()
 
wxMenu * AddMenu (const wxString &Title)
 
void AddIcon (wxBitmap *pBmp)
 
void AddIconButton (const wxString &Command, const wxString &Params, wxBitmap *pBmp)
 
void AddFixedText (const wxString &Str, bool bCenter=false)
 
void AddConstTextBox (const wxString &Caption, const wxString &Value)
 Single line text box of fixed size. More...
 
void StartHorizontalLay (int PositionFlags=wxALIGN_CENTRE, int iProp=1)
 
void EndHorizontalLay ()
 
void StartVerticalLay (int iProp=1)
 
void StartVerticalLay (int PositionFlags, int iProp)
 
void EndVerticalLay ()
 
wxScrolledWindow * StartScroller (int iStyle=0)
 
void EndScroller ()
 
wxPanel * StartPanel (int iStyle=0)
 
void EndPanel ()
 
void StartMultiColumn (int nCols, int PositionFlags=wxALIGN_LEFT)
 
void EndMultiColumn ()
 
void StartTwoColumn ()
 
void EndTwoColumn ()
 
void StartThreeColumn ()
 
void EndThreeColumn ()
 
wxStaticBox * StartStatic (const wxString &Str, int iProp=0)
 
void EndStatic ()
 
wxNotebook * StartNotebook ()
 
void EndNotebook ()
 
wxNotebookPageStartNotebookPage (const wxString &Name)
 
void StartNotebookPage (const wxString &Name, wxNotebookPage *pPage)
 
void EndNotebookPage ()
 
wxPanel * StartInvisiblePanel ()
 
void EndInvisiblePanel ()
 
void StartRadioButtonGroup (const wxString &SettingName)
 
void EndRadioButtonGroup ()
 
void StartRadioButtonGroup (const wxString &SettingName, const int iDefaultValue)
 
void StartRadioButtonGroup (const wxString &SettingName, const wxString &DefaultValue)
 
void DoDataShuttle (const wxString &Name, WrappedType &WrappedRef)
 
bool DoStep (int iStep)
 
int TranslateToIndex (const wxString &Value, const wxArrayString &Choices)
 String-to-Index. More...
 
wxString TranslateFromIndex (const int nIn, const wxArrayString &Choices)
 Index-to-String. More...
 
int TranslateToIndex (const int Value, const std::vector< int > &Choices)
 Int-to-Index (choices can be items like e.g 0x400120 ) More...
 
int TranslateFromIndex (const int nIn, const std::vector< int > &Choices)
 Index-to-int (choices can be items like e.g 0x400120 ) More...
 
wxTextCtrl * TieTextBox (const wxString &Prompt, WrappedType &WrappedRef, const int nChars)
 
wxTextCtrl * TieTextBox (const wxString &Caption, wxString &Value, const int nChars=0)
 
wxTextCtrl * TieTextBox (const wxString &Prompt, int &Selected, const int nChars=0)
 
wxTextCtrl * TieTextBox (const wxString &Prompt, double &Value, const int nChars=0)
 
wxTextCtrl * TieNumericTextBox (const wxString &Prompt, WrappedType &WrappedRef, const int nChars)
 
wxTextCtrl * TieNumericTextBox (const wxString &Caption, wxString &Value, const int nChars=0)
 
wxTextCtrl * TieNumericTextBox (const wxString &Prompt, int &Selected, const int nChars=0)
 
wxTextCtrl * TieNumericTextBox (const wxString &Prompt, double &Value, const int nChars=0)
 
wxCheckBox * TieCheckBox (const wxString &Prompt, WrappedType &WrappedRef)
 
wxCheckBox * TieCheckBox (const wxString &Prompt, const wxString &Selected)
 
wxCheckBox * TieCheckBox (const wxString &Prompt, bool &Var)
 
wxCheckBox * TieCheckBoxOnRight (const wxString &Prompt, WrappedType &WrappedRef)
 
wxCheckBox * TieCheckBoxOnRight (const wxString &Prompt, bool &Var)
 
wxChoice * TieChoice (const wxString &Prompt, WrappedType &WrappedRef, const wxArrayString *pChoices)
 
wxChoice * TieChoice (const wxString &Prompt, wxString &Selected, const wxArrayString *pChoices)
 
wxChoice * TieChoice (const wxString &Prompt, int &Selected, const wxArrayString *pChoices)
 
wxSlider * TieSlider (const wxString &Prompt, WrappedType &WrappedRef, const int max, const int min=0)
 
wxSlider * TieSlider (const wxString &Prompt, int &pos, const int max, const int min=0)
 
wxSlider * TieSlider (const wxString &Prompt, double &pos, const double max, const double min=0.0)
 
wxSlider * TieSlider (const wxString &Prompt, float &pos, const float fMin, const float fMax)
 
wxSlider * TieVSlider (const wxString &Prompt, float &pos, const float fMin, const float fMax)
 
wxRadioButton * TieRadioButton (const wxString &Prompt, WrappedType &WrappedRef)
 
wxRadioButton * TieRadioButton (const wxString &Prompt, const int iValue)
 This function must be within a StartRadioButtonGroup - EndRadioButtonGroup pair. More...
 
wxRadioButton * TieRadioButton (const wxString &Prompt, const wxString &Value)
 This function must be within a StartRadioButtonGroup - EndRadioButtonGroup pair. More...
 
wxSpinCtrl * TieSpinCtrl (const wxString &Prompt, WrappedType &WrappedRef, const int max, const int min=0)
 
wxSpinCtrl * TieSpinCtrl (const wxString &Prompt, int &Value, const int max, const int min=0)
 
virtual wxChoice * TieChoice (const wxString &Prompt, EnumSetting &enumSetting)
 
void EnableCtrl (bool bEnable)
 
void SetSizeHints (int minX, int minY)
 Used to modify an already placed Window. More...
 
void SetBorder (int Border)
 
void SetStyle (int Style)
 
void SetNoMatchSelector (int iSelector)
 
void SetSizerProportion (int iProp)
 
void SetStretchyCol (int i)
 Used to modify an already placed FlexGridSizer to make a column stretchy. More...
 
void SetStretchyRow (int i)
 Used to modify an already placed FlexGridSizer to make a row stretchy. More...
 
wxWindow * GetParent ()
 
ShuttleGuiBaseProp (int iProp)
 
void UseUpId ()
 
wxSizer * GetSizer ()
 
- Public Member Functions inherited from CommandMessageTargetDecorator
 CommandMessageTargetDecorator (CommandMessageTarget &target)
 
 ~CommandMessageTargetDecorator () override
 
void Update (const wxString &message) override
 
void StartArray () override
 
void EndArray () override
 
void StartStruct () override
 
void EndStruct () override
 
void AddItem (const wxString &value, const wxString &name="") override
 
void AddBool (const bool value, const wxString &name="") override
 
void AddItem (const double value, const wxString &name="") override
 
void StartField (const wxString &name="") override
 
void EndField () override
 
void Flush () override
 
- Public Member Functions inherited from CommandMessageTarget
 CommandMessageTarget ()
 
virtual ~CommandMessageTarget ()
 
wxString Escaped (const wxString &str)
 

Additional Inherited Members

- Static Public Member Functions inherited from ShuttleGuiBase
static void SetSizeHints (wxWindow *window, const wxArrayString &items)
 
- Public Attributes inherited from CommandMessageTargetDecorator
CommandMessageTargetmTarget
 
- Public Attributes inherited from CommandMessageTarget
wxArrayInt mCounts
 
- Protected Member Functions inherited from ShuttleGuiBase
void SetProportions (int Default)
 
void PushSizer ()
 
void PopSizer ()
 
void UpdateSizersCore (bool bPrepend, int Flags)
 
void UpdateSizers ()
 
void UpdateSizersC ()
 
void UpdateSizersAtStart ()
 
long Style (long Style)
 
- Protected Attributes inherited from ShuttleGuiBase
wxWindow * mpLastWind
 
wxWindow * mpDlg
 
wxSizer * pSizerStack [nMaxNestedSizers]
 
std::unique_ptr< ShuttlempShuttle
 
int miNoMatchSelector
 
teShuttleMode mShuttleMode
 Used in choices to determine which item to use on no match. More...
 
wxString mSettingName
 
int mRadioCount
 The setting controlled by a group. More...
 
WrappedType mRadioValue
 The index of this radio item. -1 for none. More...
 
wxString mRadioValueString
 The wrapped value associated with the active radio button. More...
 
int mRadioValueInt
 Unwrapped string value. More...
 
int miSizerProp
 Unwrapped integer value. More...
 
int mSizerDepth
 
int miBorder
 
long miStyle
 
int miProp
 
int miId
 
int miIdNext
 
int miIdSetByUser
 
int miPropSetByUser
 
bool * mpbOptionalFlag
 
std::unique_ptr< wxSizer > mpSubSizer
 
wxSizer * mpSizer
 
wxWindow * mpParent
 
wxWindow * mpWind
 
wxMenuBar * mpMenuBar
 
wxMenu * mpMenu
 

Detailed Description

Shuttle that retrieves a JSON format definition of a command's parameters.

Definition at line 432 of file ShuttleGui.h.

Constructor & Destructor Documentation

ShuttleGuiGetDefinition::ShuttleGuiGetDefinition ( wxWindow *  pParent,
CommandMessageTarget target 
)

Definition at line 2423 of file ShuttleGui.cpp.

2425 : ShuttleGui( pParent, eIsGettingMetadata ),
2427 {
2428 
2429 }
ShuttleGui(wxWindow *pParent, teShuttleMode ShuttleMode)
CommandMessageTargetDecorator(CommandMessageTarget &target)
ShuttleGuiGetDefinition::~ShuttleGuiGetDefinition ( void  )
virtual

Definition at line 2430 of file ShuttleGui.cpp.

2431 {
2432 }

Member Function Documentation

wxCheckBox * ShuttleGuiGetDefinition::TieCheckBox ( const wxString &  Prompt,
const wxString &  SettingName,
const bool  bDefault 
)
overridevirtual

Variant of the standard TieCheckBox which does the two step exchange between gui and stack variable and stack variable and shuttle.

Reimplemented from ShuttleGuiBase.

Definition at line 2434 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddBool(), CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieCheckBox().

2438 {
2439  StartStruct();
2440  AddItem( SettingName, "id" );
2441  AddItem( Prompt, "prompt" );
2442  AddItem( "bool", "type" );
2443  AddBool( bDefault, "default" );
2444  EndStruct();
2445  return ShuttleGui::TieCheckBox( Prompt, SettingName, bDefault );
2446 }
void AddBool(const bool value, const wxString &name="") override
void AddItem(const wxString &value, const wxString &name="") override
wxCheckBox * TieCheckBox(const wxString &Prompt, WrappedType &WrappedRef)
wxCheckBox * ShuttleGuiGetDefinition::TieCheckBoxOnRight ( const wxString &  Prompt,
const wxString &  SettingName,
const bool  bDefault 
)
overridevirtual

Variant of the standard TieCheckBox which does the two step exchange between gui and stack variable and stack variable and shuttle.

Reimplemented from ShuttleGuiBase.

Definition at line 2447 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddBool(), CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieCheckBoxOnRight().

2451 {
2452  StartStruct();
2453  AddItem( SettingName, "id" );
2454  AddItem( Prompt, "prompt" );
2455  AddItem( "bool", "type" );
2456  AddBool( bDefault, "default" );
2457  EndStruct();
2458  return ShuttleGui::TieCheckBoxOnRight( Prompt, SettingName, bDefault );
2459 }
wxCheckBox * TieCheckBoxOnRight(const wxString &Prompt, WrappedType &WrappedRef)
void AddBool(const bool value, const wxString &name="") override
void AddItem(const wxString &value, const wxString &name="") override
wxChoice * ShuttleGuiGetDefinition::TieChoice ( const wxString &  Prompt,
const wxString &  SettingName,
const wxString &  Default,
const wxArrayString &  Choices,
const wxArrayString &  InternalChoices 
)
overridevirtual

Variant of the standard TieChoice which does the two step exchange between gui and stack variable and stack variable and shuttle.

Parameters
PromptThe prompt shown beside the control.
SettingNameThe setting name as stored in gPrefs
DefaultThe default value for this control (translated)
ChoicesAn array of choices that appear on screen.
InternalChoicesThe corresponding values (as a string array)

Reimplemented from ShuttleGuiBase.

Definition at line 2460 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndArray(), CommandMessageTargetDecorator::EndField(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartArray(), CommandMessageTargetDecorator::StartField(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieChoice().

2466 {
2467  StartStruct();
2468  AddItem( SettingName, "id" );
2469  AddItem( Prompt, "prompt" );
2470  AddItem( "enum", "type" );
2471  AddItem( Default, "default" );
2472  StartField( "enum" );
2473  StartArray();
2474  for( size_t i=0;i<Choices.Count(); i++ )
2475  AddItem( InternalChoices[i] );
2476  EndArray();
2477  EndField();
2478  EndStruct();
2479  return ShuttleGui::TieChoice( Prompt, SettingName, Default, Choices, InternalChoices );
2480 }
wxChoice * TieChoice(const wxString &Prompt, WrappedType &WrappedRef, const wxArrayString *pChoices)
void StartField(const wxString &name="") override
void AddItem(const wxString &value, const wxString &name="") override
wxChoice * ShuttleGuiGetDefinition::TieChoice ( const wxString &  Prompt,
const wxString &  SettingName,
const int  Default,
const wxArrayString &  Choices,
const std::vector< int > &  InternalChoices 
)
overridevirtual

Variant of the standard TieChoice which does the two step exchange between gui and stack variable and stack variable and shuttle. Difference to previous one is that the Translated choices and default are integers, not Strings.

Parameters
PromptThe prompt shown beside the control.
SettingNameThe setting name as stored in gPrefs
DefaultThe default value for this control (translated)
ChoicesAn array of choices that appear on screen.
InternalChoicesThe corresponding values (as an integer array)

Reimplemented from ShuttleGuiBase.

Definition at line 2481 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndArray(), CommandMessageTargetDecorator::EndField(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartArray(), CommandMessageTargetDecorator::StartField(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieChoice().

2487 {
2488  // Should no longer come here!
2489  // Choice controls in Preferences that really are exhaustive choices among
2490  // non-numerical options must now encode the internal choices as strings,
2491  // not numbers.
2492  wxASSERT(false);
2493 
2494  // But if we do get here anyway, proceed sub-optimally as before.
2495  StartStruct();
2496  AddItem( SettingName, "id" );
2497  AddItem( Prompt, "prompt" );
2498  AddItem( "enum", "type" );
2499  AddItem( Default, "default" );
2500  StartField( "enum" );
2501  StartArray();
2502  for( size_t i=0;i<Choices.Count(); i++ )
2503  AddItem( Choices[i] );
2504  EndArray();
2505  EndField();
2506  EndStruct();
2507  return ShuttleGui::TieChoice( Prompt, SettingName, Default, Choices, InternalChoices );
2508 }
wxChoice * TieChoice(const wxString &Prompt, WrappedType &WrappedRef, const wxArrayString *pChoices)
void StartField(const wxString &name="") override
void AddItem(const wxString &value, const wxString &name="") override
wxChoice * ShuttleGuiGetDefinition::TieNumberAsChoice ( const wxString &  Prompt,
const wxString &  SettingName,
const int  Default,
const wxArrayString &  Choices,
const std::vector< int > &  InternalChoices 
)
overridevirtual

Variant of the standard TieChoice which does the two step exchange between gui and stack variable and stack variable and shuttle. The Translated choices and default are integers, not Strings. Behaves identically to the previous, but is meant for use when the choices are non-exhaustive and there is a companion control for abitrary entry.

Parameters
PromptThe prompt shown beside the control.
SettingNameThe setting name as stored in gPrefs
DefaultThe default value for this control (translated)
ChoicesAn array of choices that appear on screen.
InternalChoicesThe corresponding values (as an integer array)

Reimplemented from ShuttleGuiBase.

Definition at line 2509 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieNumberAsChoice().

2515 {
2516  // Come here for controls that present non-exhaustive choices among some
2517  // numbers, with an associated control that allows arbitrary entry of an
2518  // "Other..."
2519  StartStruct();
2520  AddItem( SettingName, "id" );
2521  AddItem( Prompt, "prompt" );
2522  AddItem( "number", "type" ); // not "enum" !
2523  AddItem( Default, "default" );
2524  EndStruct();
2526  Prompt, SettingName, Default, Choices, InternalChoices );
2527 }
void AddItem(const wxString &value, const wxString &name="") override
virtual wxChoice * TieNumberAsChoice(const wxString &Prompt, const wxString &SettingName, const int Default, const wxArrayString &Choices, const std::vector< int > &InternalChoices)
wxTextCtrl * ShuttleGuiGetDefinition::TieNumericTextBox ( const wxString &  Prompt,
const wxString &  SettingName,
const wxString &  Default,
const int  nChars 
)
overridevirtual

Variant of the standard TieTextBox which does the two step exchange between gui and stack variable and stack variable and shuttle.

Reimplemented from ShuttleGuiBase.

Definition at line 2556 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieNumericTextBox().

2561 {
2562  StartStruct();
2563  AddItem( SettingName, "id" );
2564  AddItem( Prompt, "prompt" );
2565  AddItem( "number", "type" );
2566  AddItem( Default, "default" );
2567  EndStruct();
2568  return ShuttleGui::TieNumericTextBox( Prompt, SettingName, Default, nChars );
2569 }
wxTextCtrl * TieNumericTextBox(const wxString &Prompt, WrappedType &WrappedRef, const int nChars)
void AddItem(const wxString &value, const wxString &name="") override
wxTextCtrl * ShuttleGuiGetDefinition::TieNumericTextBox ( const wxString &  Prompt,
const wxString &  SettingName,
const double &  Default,
const int  nChars 
)
overridevirtual

Variant of the standard TieTextBox which does the two step exchange between gui and stack variable and stack variable and shuttle. This one does it for double values...

Reimplemented from ShuttleGuiBase.

Definition at line 2570 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieNumericTextBox().

2575 {
2576  StartStruct();
2577  AddItem( SettingName, "id" );
2578  AddItem( Prompt, "prompt" );
2579  AddItem( "number", "type" );
2580  AddItem( Default, "default" );
2581  EndStruct();
2582  return ShuttleGui::TieNumericTextBox( Prompt, SettingName, Default, nChars );
2583 }
wxTextCtrl * TieNumericTextBox(const wxString &Prompt, WrappedType &WrappedRef, const int nChars)
void AddItem(const wxString &value, const wxString &name="") override
wxSlider * ShuttleGuiGetDefinition::TieSlider ( const wxString &  Prompt,
const wxString &  SettingName,
const int  iDefault,
const int  max,
const int  min = 0 
)
overridevirtual

Variant of the standard TieSlider which does the two step exchange between gui and stack variable and stack variable and shuttle.

Reimplemented from ShuttleGuiBase.

Definition at line 2584 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieSlider().

2590 {
2591  StartStruct();
2592  AddItem( SettingName, "id" );
2593  AddItem( Prompt, "prompt" );
2594  AddItem( "number", "type" );
2595  AddItem( iDefault, "default" );
2596  EndStruct();
2597  return ShuttleGui::TieSlider( Prompt, SettingName, iDefault, max, min );
2598 }
wxSlider * TieSlider(const wxString &Prompt, WrappedType &WrappedRef, const int max, const int min=0)
int min(int a, int b)
void AddItem(const wxString &value, const wxString &name="") override
wxSpinCtrl * ShuttleGuiGetDefinition::TieSpinCtrl ( const wxString &  Prompt,
const wxString &  SettingName,
const int  Value,
const int  max,
const int  min 
)
overridevirtual

Variant of the standard TieSpinCtrl which does the two step exchange between gui and stack variable and stack variable and shuttle.

Reimplemented from ShuttleGuiBase.

Definition at line 2599 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieSpinCtrl().

2605 {
2606  StartStruct();
2607  AddItem( SettingName, "id" );
2608  AddItem( Prompt, "prompt" );
2609  AddItem( "number", "type" );
2610  AddItem( Value, "default" );
2611  EndStruct();
2612  return ShuttleGui::TieSpinCtrl( Prompt, SettingName, Value, max, min );
2613 }
wxSpinCtrl * TieSpinCtrl(const wxString &Prompt, WrappedType &WrappedRef, const int max, const int min=0)
int min(int a, int b)
void AddItem(const wxString &value, const wxString &name="") override
wxTextCtrl * ShuttleGuiGetDefinition::TieTextBox ( const wxString &  Prompt,
const wxString &  SettingName,
const wxString &  Default,
const int  nChars 
)
overridevirtual

Variant of the standard TieTextBox which does the two step exchange between gui and stack variable and stack variable and shuttle.

Reimplemented from ShuttleGuiBase.

Definition at line 2528 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieTextBox().

2533 {
2534  StartStruct();
2535  AddItem( SettingName, "id" );
2536  AddItem( Prompt, "prompt" );
2537  AddItem( "string", "type" );
2538  AddItem( Default, "default" );
2539  EndStruct();
2540  return ShuttleGui::TieTextBox( Prompt, SettingName, Default, nChars );
2541 }
void AddItem(const wxString &value, const wxString &name="") override
wxTextCtrl * TieTextBox(const wxString &Prompt, WrappedType &WrappedRef, const int nChars)
wxTextCtrl * ShuttleGuiGetDefinition::TieTextBox ( const wxString &  Prompt,
const wxString &  SettingName,
const double &  Default,
const int  nChars 
)
overridevirtual

Variant of the standard TieTextBox which does the two step exchange between gui and stack variable and stack variable and shuttle. This one does it for double values...

Reimplemented from ShuttleGuiBase.

Definition at line 2542 of file ShuttleGui.cpp.

References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), CommandMessageTargetDecorator::StartStruct(), and ShuttleGuiBase::TieTextBox().

2547 {
2548  StartStruct();
2549  AddItem( SettingName, "id" );
2550  AddItem( Prompt, "prompt" );
2551  AddItem( "string", "type" );
2552  AddItem( Default, "default" );
2553  EndStruct();
2554  return ShuttleGui::TieTextBox( Prompt, SettingName, Default, nChars );
2555 }
void AddItem(const wxString &value, const wxString &name="") override
wxTextCtrl * TieTextBox(const wxString &Prompt, WrappedType &WrappedRef, const int nChars)

The documentation for this class was generated from the following files: