Audacity 3.2.0
Public Member Functions | Static Public Member Functions | List of all members
ShuttleGui Class Reference

Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI. More...

#include <ShuttleGui.h>

Inheritance diagram for ShuttleGui:
[legend]
Collaboration diagram for ShuttleGui:
[legend]

Public Member Functions

 ShuttleGui (wxWindow *pParent, teShuttleMode ShuttleMode, bool vertical=true, wxSize minSize={ 250, 100 })
 
 ~ShuttleGui (void)
 
ShuttleGuiOptional (bool &bVar)
 
ShuttleGuiId (int id)
 
ShuttleGuiFocus (bool focused=true)
 
ShuttleGuiDisable (bool disabled=true)
 
ShuttleGuiToolTip (const TranslatableString &tip)
 
ShuttleGuiName (const TranslatableString &name)
 
ShuttleGuiNameSuffix (const TranslatableString &suffix)
 
template<typename Factory >
ShuttleGuiValidator (const Factory &f)
 
template<typename V , typename... Args>
ShuttleGuiValidator (Args &&...args)
 
template<typename Tag , typename Argument , typename Handler >
auto ConnectRoot (wxEventTypeTag< Tag > eventType, void(Handler::*func)(Argument &)) -> std::enable_if_t< std::is_base_of_v< Argument, Tag >, ShuttleGui & >
 
ShuttleGuiPosition (int flags)
 
ShuttleGuiSize (wxSize size)
 
ShuttleGuiProp (int iProp)
 
ShuttleGuiStyle (long iStyle)
 
ShuttleGuiMinSize ()
 
ShuttleGuiMinSize (wxSize sz)
 
void AddStandardButtons (long buttons=eOkButton|eCancelButton, wxWindow *extra=NULL)
 
wxSizerItem * AddSpace (int width, int height, int prop=0)
 
wxSizerItem * AddSpace (int size)
 
teShuttleMode GetMode ()
 
- Public Member Functions inherited from ShuttleGuiBase
 ShuttleGuiBase (wxWindow *pParent, teShuttleMode ShuttleMode, bool vertical, wxSize minSize)
 
virtual ~ShuttleGuiBase ()
 
void Init (bool vertical, wxSize minSize)
 
void ResetId ()
 
void HandleOptionality (const TranslatableString &Prompt)
 
wxStaticText * AddPrompt (const TranslatableString &Prompt, int wrapWidth=0)
 Right aligned text string. More...
 
void AddUnits (const TranslatableString &Prompt, int wrapWidth=0)
 Left aligned text string. More...
 
void AddTitle (const TranslatableString &Prompt, int wrapWidth=0)
 Centred text string. More...
 
wxWindow * AddWindow (wxWindow *pWindow, int PositionFlags=wxALIGN_CENTRE)
 
wxSlider * AddSlider (const TranslatableString &Prompt, int pos, int Max, int Min=0)
 
wxSlider * AddVSlider (const TranslatableString &Prompt, int pos, int Max)
 
wxSpinCtrl * AddSpinCtrl (const TranslatableString &Prompt, int Value, int Max, int Min)
 
wxTreeCtrl * AddTree ()
 
wxRadioButton * AddRadioButton (const TranslatableString &Prompt, int selector=0, int initValue=0)
 
wxRadioButton * AddRadioButtonToGroup (const TranslatableString &Prompt, int selector=1, int initValue=0)
 
wxButton * AddButton (const TranslatableString &Text, int PositionFlags=wxALIGN_CENTRE, bool setDefault=false)
 
wxBitmapButton * AddBitmapButton (const wxBitmap &Bitmap, int PositionFlags=wxALIGN_CENTRE, bool setDefault=false)
 
wxStaticText * AddVariableText (const TranslatableString &Str, bool bCenter=false, int PositionFlags=0, int wrapWidth=0)
 
ReadOnlyTextAddReadOnlyText (const TranslatableString &Caption, const wxString &Value)
 
wxTextCtrl * AddTextBox (const TranslatableString &Caption, const wxString &Value, const int nChars)
 
wxTextCtrl * AddNumericTextBox (const TranslatableString &Caption, const wxString &Value, const int nChars, bool acceptEnter=false)
 
wxTextCtrl * AddTextWindow (const wxString &Value)
 Multiline text box that grows. More...
 
wxListBox * AddListBox (const wxArrayStringEx &choices)
 
wxListCtrl * AddListControl (std::initializer_list< const ListControlColumn > columns={}, long listControlStyles=0)
 
wxListCtrl * AddListControlReportMode (std::initializer_list< const ListControlColumn > columns={}, long listControlStyles=0)
 
wxGrid * AddGrid ()
 
wxCheckBox * AddCheckBox (const TranslatableString &Prompt, bool Selected)
 
wxCheckBox * AddCheckBoxOnRight (const TranslatableString &Prompt, bool Selected)
 
wxCheckBox * AddCheckBox (const TranslatableString &Prompt, const wxChar *)=delete
 
wxCheckBox * AddCheckBox (const TranslatableString &Prompt, const char *)=delete
 
wxCheckBox * AddCheckBoxOnRight (const TranslatableString &Prompt, const wxChar *)=delete
 
wxCheckBox * AddCheckBoxOnRight (const TranslatableString &Prompt, const char *)=delete
 
wxComboBox * AddCombo (const TranslatableString &Prompt, const wxString &Selected, const wxArrayStringEx &choices)
 
wxChoice * AddChoice (const TranslatableString &Prompt, const TranslatableStrings &choices, int Selected=-1)
 
wxChoice * AddChoice (const TranslatableString &Prompt, const TranslatableStrings &choices, const TranslatableString &selected)
 
void AddIcon (wxBitmap *pBmp)
 
void AddFixedText (const TranslatableString &Str, bool bCenter=false, int wrapWidth=0)
 
void AddConstTextBox (const TranslatableString &Caption, const TranslatableString &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 ()
 
void StartWrapLay (int PositionFlags=wxEXPAND, int iProp=0)
 
void EndWrapLay ()
 
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 TranslatableString &Str, int iProp=0)
 
void EndStatic ()
 
wxNotebook * StartNotebook ()
 
void EndNotebook ()
 
wxSimplebook * StartSimplebook ()
 
void EndSimplebook ()
 
wxNotebookPageStartNotebookPage (const TranslatableString &Name)
 
void EndNotebookPage ()
 
wxPanel * StartInvisiblePanel (int border=0)
 
void EndInvisiblePanel ()
 
void StartRadioButtonGroup (ChoiceSetting &Setting)
 Call this before any TieRadioButton calls. More...
 
void EndRadioButtonGroup ()
 
bool DoStep (int iStep)
 
int TranslateToIndex (const wxString &Value, const wxArrayStringEx &Choices)
 String-to-Index. More...
 
wxString TranslateFromIndex (const int nIn, const wxArrayStringEx &Choices)
 Index-to-String. More...
 
wxTextCtrl * TieTextBox (const TranslatableString &Caption, wxString &Value, const int nChars=0)
 
wxTextCtrl * TieTextBox (const TranslatableString &Prompt, int &Selected, const int nChars=0)
 
wxTextCtrl * TieTextBox (const TranslatableString &Prompt, double &Value, const int nChars=0)
 
wxTextCtrl * TieNumericTextBox (const TranslatableString &Prompt, int &Value, const int nChars=0, bool acceptEnter=false)
 
wxTextCtrl * TieNumericTextBox (const TranslatableString &Prompt, double &Value, const int nChars=0, bool acceptEnter=false)
 
wxCheckBox * TieCheckBox (const TranslatableString &Prompt, bool &Var)
 
wxCheckBox * TieCheckBoxOnRight (const TranslatableString &Prompt, bool &Var)
 
wxChoice * TieChoice (const TranslatableString &Prompt, TranslatableString &Selected, const TranslatableStrings &choices)
 
wxChoice * TieChoice (const TranslatableString &Prompt, int &Selected, const TranslatableStrings &choices)
 
wxSlider * TieSlider (const TranslatableString &Prompt, int &pos, const int max, const int min=0)
 
wxSlider * TieSlider (const TranslatableString &Prompt, double &pos, const double max, const double min=0.0)
 
wxSlider * TieSlider (const TranslatableString &Prompt, float &pos, const float fMin, const float fMax)
 
wxSlider * TieVSlider (const TranslatableString &Prompt, float &pos, const float fMin, const float fMax)
 
wxRadioButton * TieRadioButton ()
 This function must be within a StartRadioButtonGroup - EndRadioButtonGroup pair. More...
 
wxSpinCtrl * TieSpinCtrl (const TranslatableString &Prompt, int &Value, const int max, const int min=0)
 
virtual wxCheckBox * TieCheckBox (const TranslatableString &Prompt, const BoolSetting &Setting)
 
virtual wxCheckBox * TieCheckBoxOnRight (const TranslatableString &Prompt, const BoolSetting &Setting)
 
virtual wxChoice * TieChoice (const TranslatableString &Prompt, ChoiceSetting &choiceSetting)
 
virtual wxChoice * TieNumberAsChoice (const TranslatableString &Prompt, IntSetting &Setting, const TranslatableStrings &Choices, const std::vector< int > *pInternalChoices=nullptr, int iNoMatchSelector=0)
 
virtual wxTextCtrl * TieTextBox (const TranslatableString &Prompt, const StringSetting &Setting, const int nChars)
 
virtual wxTextCtrl * TieIntegerTextBox (const TranslatableString &Prompt, const IntSetting &Setting, const int nChars)
 
virtual wxTextCtrl * TieNumericTextBox (const TranslatableString &Prompt, const DoubleSetting &Setting, const int nChars, bool acceptEnter=false)
 
virtual wxSlider * TieSlider (const TranslatableString &Prompt, const IntSetting &Setting, const int max, const int min=0)
 
virtual wxSpinCtrl * TieSpinCtrl (const TranslatableString &Prompt, const IntSetting &Setting, const int max, const int min)
 
void SetBorder (int Border)
 
int GetBorder () const noexcept
 
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 ()
 

Static Public Member Functions

static void SetMinSize (wxWindow *window, const TranslatableStrings &items)
 
static void SetMinSize (wxWindow *window, const wxArrayStringEx &items)
 
- Static Public Member Functions inherited from ShuttleGuiBase
static void ApplyItem (int step, const DialogDefinition::Item &item, wxWindow *pWind, wxWindow *pDlg)
 

Additional Inherited Members

- Protected Member Functions inherited from ShuttleGuiBase
void SetProportions (int Default)
 
void PushSizer ()
 
void PopSizer ()
 
void UpdateSizersCore (bool bPrepend, int Flags, bool prompt=false)
 
void UpdateSizers ()
 
void UpdateSizersC ()
 
void UpdateSizersAtStart ()
 
long GetStyle (long Style)
 
- Protected Attributes inherited from ShuttleGuiBase
wxWindow *const mpDlg
 
wxSizer * pSizerStack [nMaxNestedSizers]
 
std::unique_ptr< ShuttlePrefsmpShuttle
 
int miNoMatchSelector
 
teShuttleMode mShuttleMode
 Used in choices to determine which item to use on no match. More...
 
int miSizerProp
 
int mSizerDepth
 
int miBorder
 
int miProp
 
int miId
 
int miIdNext
 
int miIdSetByUser
 
int miPropSetByUser
 
bool * mpbOptionalFlag
 
std::unique_ptr< wxSizer > mpSubSizer
 
wxSizer * mpSizer
 
wxWindow * mpParent
 
wxWindow * mpWind
 
DialogDefinition::Item mItem
 

Detailed Description

Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.

ShuttleGui extends the idea of the data Shuttle class to include creation of dialog controls. As part of this it provides an interface to sizers that leads to shorter more readable code.

It also allows the code that is used to create dialogs to be reused to shuttle information in and out.

Most of the ShuttleGui functions are actually defined in ShuttleGuiBase.

There is documentation on how to use this class in The Shuttle System

Definition at line 629 of file ShuttleGui.h.

Constructor & Destructor Documentation

◆ ShuttleGui()

ShuttleGui::ShuttleGui ( wxWindow *  pParent,
teShuttleMode  ShuttleMode,
bool  vertical = true,
wxSize  minSize = { 250, 100 } 
)

Definition at line 2244 of file ShuttleGui.cpp.

2246 : ShuttleGuiBase( pParent, ShuttleMode, vertical, minSize )
2247{
2248 if( ShuttleMode == eIsCreatingFromPrefs )
2249 {
2251 Init( vertical, minSize ); // Wasn't fully done in base constructor because it is only done when eIsCreating is set.
2252 }
2253 else if( ShuttleMode == eIsSavingToPrefs )
2254 {
2256 }
2257 else
2258 {
2259 return;
2260 }
2261
2262 mpShuttle = std::make_unique<ShuttlePrefs>();
2263 // In this case the client is the GUI, so if creating we do want to
2264 // store in the client.
2265 mpShuttle->mbStoreInClient = (mShuttleMode == eIsCreating );
2266};
@ eIsCreating
Definition: ShuttleGui.h:37
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46
@ eIsSavingToPrefs
Definition: ShuttleGui.h:47
@ eIsGettingFromDialog
Definition: ShuttleGui.h:38
ShuttleGuiBase(wxWindow *pParent, teShuttleMode ShuttleMode, bool vertical, wxSize minSize)
Definition: ShuttleGui.cpp:127
std::unique_ptr< ShuttlePrefs > mpShuttle
Definition: ShuttleGui.h:532
void Init(bool vertical, wxSize minSize)
Definition: ShuttleGui.cpp:142
teShuttleMode mShuttleMode
Used in choices to determine which item to use on no match.
Definition: ShuttleGui.h:536

References eIsCreating, eIsCreatingFromPrefs, eIsGettingFromDialog, eIsSavingToPrefs, ShuttleGuiBase::Init(), ShuttleGuiBase::mpShuttle, and ShuttleGuiBase::mShuttleMode.

Here is the call graph for this function:

◆ ~ShuttleGui()

ShuttleGui::~ShuttleGui ( void  )

Definition at line 2268 of file ShuttleGui.cpp.

2269{
2270}

Member Function Documentation

◆ AddSpace() [1/2]

wxSizerItem * ShuttleGui::AddSpace ( int  size)
inline

Definition at line 742 of file ShuttleGui.h.

742{ return AddSpace( size, size ); };
wxSizerItem * AddSpace(int width, int height, int prop=0)

References AddSpace(), and size.

Referenced by AddSpace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddSpace() [2/2]

wxSizerItem * ShuttleGui::AddSpace ( int  width,
int  height,
int  prop = 0 
)

Definition at line 2458 of file ShuttleGui.cpp.

2459{
2460 if( mShuttleMode != eIsCreating )
2461 return NULL;
2462
2463// SetProportions(0);
2464 // return mpSizer->Add( width, height, miProp);
2465
2466 return mpSizer->Add( width, height, prop );
2467}
wxSizer * mpSizer
Definition: ShuttleGui.h:553

References eIsCreating, ShuttleGuiBase::mpSizer, and ShuttleGuiBase::mShuttleMode.

Referenced by ErrorReportDialog::ErrorReportDialog(), cloud::audiocom::ShareAudioDialog::Populate(), cloud::audiocom::ShareAudioDialog::InitialStatePanel::PopulateInitialStatePanel(), PitchAndSpeedDialog::PopulateOrExchange(), and cloud::audiocom::ShareAudioDialog::ProgressPanel::PopulateProgressPanel().

Here is the caller graph for this function:

◆ AddStandardButtons()

void ShuttleGui::AddStandardButtons ( long  buttons = eOkButton | eCancelButton,
wxWindow *  extra = NULL 
)

Definition at line 2443 of file ShuttleGui.cpp.

2444{
2445 if( mShuttleMode != eIsCreating )
2446 return;
2447
2448 StartVerticalLay( false );
2449
2450 miSizerProp = false;
2451 mpSubSizer = CreateStdButtonSizer( mpParent, buttons, extra );
2452 UpdateSizers();
2453 PopSizer();
2454
2456}
std::unique_ptr< wxSizer > CreateStdButtonSizer(wxWindow *parent, long buttons, wxWindow *extra)
void EndVerticalLay()
void StartVerticalLay(int iProp=1)
wxWindow * mpParent
Definition: ShuttleGui.h:554
std::unique_ptr< wxSizer > mpSubSizer
Definition: ShuttleGui.h:552

References CreateStdButtonSizer(), eIsCreating, ShuttleGuiBase::EndVerticalLay(), ShuttleGuiBase::miSizerProp, ShuttleGuiBase::mpParent, ShuttleGuiBase::mpSubSizer, ShuttleGuiBase::mShuttleMode, ShuttleGuiBase::PopSizer(), ShuttleGuiBase::StartVerticalLay(), and ShuttleGuiBase::UpdateSizers().

Here is the call graph for this function:

◆ ConnectRoot()

template<typename Tag , typename Argument , typename Handler >
auto ShuttleGui::ConnectRoot ( wxEventTypeTag< Tag >  eventType,
void(Handler::*)(Argument &)  func 
) -> std::enable_if_t< std::is_base_of_v<Argument, Tag>, ShuttleGui& >
inline

Definition at line 698 of file ShuttleGui.h.

705 {
706 std::move( mItem ).ConnectRoot( eventType, func );
707 return *this;
708 }
DialogDefinition::Item mItem
Definition: ShuttleGui.h:582

References ConnectRoot().

Referenced by ConnectRoot().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Disable()

ShuttleGui & ShuttleGui::Disable ( bool  disabled = true)
inline

Definition at line 649 of file ShuttleGui.h.

650 {
651 std::move( mItem ).Disable( disabled );
652 return *this;
653 }

References Disable().

Referenced by Disable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Focus()

ShuttleGui & ShuttleGui::Focus ( bool  focused = true)
inline

Definition at line 643 of file ShuttleGui.h.

644 {
645 std::move( mItem ).Focus( focused );
646 return *this;
647 }

References Focus().

Referenced by Focus().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMode()

teShuttleMode ShuttleGui::GetMode ( )
inline

Definition at line 750 of file ShuttleGui.h.

750{ return mShuttleMode; };

◆ Id()

ShuttleGui & ShuttleGui::Id ( int  id)

Definition at line 2273 of file ShuttleGui.cpp.

2274{
2275 miIdSetByUser = id;
2276 return *this;
2277}
int id

References id, and ShuttleGuiBase::miIdSetByUser.

◆ MinSize() [1/2]

ShuttleGui & ShuttleGui::MinSize ( )
inline

Definition at line 731 of file ShuttleGui.h.

732 { std::move( mItem ).MinSize(); return *this; }

References MinSize().

Referenced by ErrorReportDialog::ErrorReportDialog(), and MinSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MinSize() [2/2]

ShuttleGui & ShuttleGui::MinSize ( wxSize  sz)
inline

Definition at line 733 of file ShuttleGui.h.

734 { std::move( mItem ).MinSize( sz ); return *this; }

References MinSize().

Here is the call graph for this function:

◆ Name()

ShuttleGui & ShuttleGui::Name ( const TranslatableString name)
inline

Definition at line 662 of file ShuttleGui.h.

663 {
664 std::move( mItem ).Name( name );
665 return *this;
666 }
const TranslatableString name
Definition: Distortion.cpp:76

References Name(), and name.

Referenced by ErrorReportDialog::ErrorReportDialog(), Name(), and PitchAndSpeedDialog::PopulateOrExchange().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NameSuffix()

ShuttleGui & ShuttleGui::NameSuffix ( const TranslatableString suffix)
inline

Definition at line 670 of file ShuttleGui.h.

671 {
672 std::move( mItem ).NameSuffix( suffix );
673 return *this;
674 }

References NameSuffix().

Referenced by NameSuffix(), and PitchAndSpeedDialog::PopulateOrExchange().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Optional()

ShuttleGui & ShuttleGui::Optional ( bool &  bVar)

Definition at line 2279 of file ShuttleGui.cpp.

2279 {
2280 mpbOptionalFlag = &bVar;
2281 return *this;
2282};
bool * mpbOptionalFlag
Definition: ShuttleGui.h:550

References ShuttleGuiBase::mpbOptionalFlag.

◆ Position()

ShuttleGui & ShuttleGui::Position ( int  flags)
inline

Definition at line 710 of file ShuttleGui.h.

711 {
712 std::move( mItem ).Position( flags );
713 return *this;
714 }

References Position().

Referenced by Position().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Prop()

ShuttleGui & ShuttleGui::Prop ( int  iProp)
inline

Definition at line 723 of file ShuttleGui.h.

723{ ShuttleGuiBase::Prop(iProp); return *this;}; // Has to be here too, to return a ShuttleGui and not a ShuttleGuiBase.
ShuttleGuiBase & Prop(int iProp)
Definition: ShuttleGui.cpp:887

References ShuttleGuiBase::Prop().

Here is the call graph for this function:

◆ SetMinSize() [1/2]

void ShuttleGui::SetMinSize ( wxWindow *  window,
const TranslatableStrings items 
)
static

Definition at line 2469 of file ShuttleGui.cpp.

2470{
2471 SetMinSize( window,
2472 transform_container<wxArrayStringEx>(
2473 items, std::mem_fn( &TranslatableString::StrippedTranslation ) ) );
2474}
static void SetMinSize(wxWindow *window, const TranslatableStrings &items)
wxString StrippedTranslation() const

References SetMinSize(), and TranslatableString::StrippedTranslation().

Referenced by DevicePrefs::OnDevice(), DevicePrefs::OnHost(), SetMinSize(), and ShuttleGuiBase::TieChoice().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetMinSize() [2/2]

void ShuttleGui::SetMinSize ( wxWindow *  window,
const wxArrayStringEx items 
)
static

Definition at line 2476 of file ShuttleGui.cpp.

2477{
2478 int maxw = 0;
2479
2480 for( size_t i = 0; i < items.size(); i++ )
2481 {
2482 int x;
2483 int y;
2484
2485 window->GetTextExtent(items[i], &x, &y );
2486 if( x > maxw )
2487 {
2488 maxw = x;
2489 }
2490 }
2491
2492 // Would be nice to know the sizes of the button and borders, but this is
2493 // the best we can do for now.
2494#if defined(__WXMAC__)
2495 maxw += 50;
2496#elif defined(__WXMSW__)
2497 maxw += 50;
2498#elif defined(__WXGTK__)
2499 maxw += 50;
2500#else
2501 maxw += 50;
2502#endif
2503
2504 window->SetMinSize( { maxw, -1 } );
2505}

◆ Size()

ShuttleGui & ShuttleGui::Size ( wxSize  size)
inline

Definition at line 716 of file ShuttleGui.h.

717 {
718 std::move( mItem ).Size( size );
719 return *this;
720 }

References Size(), and size.

Referenced by Size().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Style()

ShuttleGui & ShuttleGui::Style ( long  iStyle)
inline

Definition at line 725 of file ShuttleGui.h.

726 {
727 std::move( mItem ).Style( iStyle );
728 return *this;
729 }

References Style().

Referenced by ErrorReportDialog::ErrorReportDialog(), and Style().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToolTip()

ShuttleGui & ShuttleGui::ToolTip ( const TranslatableString tip)
inline

Definition at line 655 of file ShuttleGui.h.

656 {
657 std::move( mItem ).ToolTip( tip );
658 return *this;
659 }

References ToolTip().

Referenced by ToolTip().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Validator() [1/2]

template<typename V , typename... Args>
ShuttleGui & ShuttleGui::Validator ( Args &&...  args)
inline

Definition at line 686 of file ShuttleGui.h.

687 {
688 if ( GetMode() == eIsCreating )
689 std::move( mItem ).Validator<V>( std::forward<Args>(args)... );
690 return *this;
691 }
teShuttleMode GetMode()
Definition: ShuttleGui.h:750

References eIsCreating, and Validator().

Here is the call graph for this function:

◆ Validator() [2/2]

template<typename Factory >
ShuttleGui & ShuttleGui::Validator ( const Factory &  f)
inline

Definition at line 677 of file ShuttleGui.h.

678 {
679 if ( GetMode() == eIsCreating )
680 std::move( mItem ).Validator( f );
681 return *this;
682 }

References eIsCreating, and Validator().

Referenced by Validator().

Here is the call graph for this function:
Here is the caller graph for this function:

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