Audacity 3.2.0
Public Attributes | List of all members
BasicUI::MessageBoxOptions Struct Reference

#include <BasicUI.h>

Collaboration diagram for BasicUI::MessageBoxOptions:
[legend]

Public Member Functions

Chain-call style initializers
MessageBoxOptions && Parent (WindowPlacement *parent_) &&
 
MessageBoxOptions && Caption (TranslatableString caption_) &&
 
MessageBoxOptions && IconStyle (Icon style) &&
 
MessageBoxOptions && ButtonStyle (Button style) &&
 
MessageBoxOptions && DefaultIsNo () &&
 Override the usual defaulting to Yes; affects only the YesNo case. More...
 
MessageBoxOptions && CancelButton () &&
 
MessageBoxOptions && Centered () &&
 Center the dialog on its parent window, if any. More...
 

Public Attributes

WindowPlacementparent { nullptr }
 
TranslatableString caption { DefaultCaption() }
 
Icon iconStyle { Icon::None }
 
Button buttonStyle { Button::Default }
 
bool yesOrOkDefaultButton { true }
 
bool cancelButton { false }
 
bool centered { false }
 

Detailed Description

Definition at line 94 of file BasicUI.h.

Member Function Documentation

◆ ButtonStyle()

MessageBoxOptions && BasicUI::MessageBoxOptions::ButtonStyle ( Button  style) &&
inline

Definition at line 107 of file BasicUI.h.

References buttonStyle, and anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style.

Referenced by WaveTrackMenuTable::OnMergeStereo().

Here is the caller graph for this function:

◆ CancelButton()

MessageBoxOptions && BasicUI::MessageBoxOptions::CancelButton ( ) &&
inline

Definition at line 114 of file BasicUI.h.

115 { cancelButton = true; return std::move(*this); }

References cancelButton.

◆ Caption()

MessageBoxOptions && BasicUI::MessageBoxOptions::Caption ( TranslatableString  caption_) &&
inline

◆ Centered()

MessageBoxOptions && BasicUI::MessageBoxOptions::Centered ( ) &&
inline

Center the dialog on its parent window, if any.

Definition at line 118 of file BasicUI.h.

119 { centered = true; return std::move(*this); }

References centered.

◆ DefaultIsNo()

MessageBoxOptions && BasicUI::MessageBoxOptions::DefaultIsNo ( ) &&
inline

Override the usual defaulting to Yes; affects only the YesNo case.

Definition at line 111 of file BasicUI.h.

112 { yesOrOkDefaultButton = false; return std::move(*this); }

References yesOrOkDefaultButton.

◆ IconStyle()

MessageBoxOptions && BasicUI::MessageBoxOptions::IconStyle ( Icon  style) &&
inline

◆ Parent()

MessageBoxOptions && BasicUI::MessageBoxOptions::Parent ( WindowPlacement parent_) &&
inline

Definition at line 98 of file BasicUI.h.

99 { parent = parent_; return std::move(*this); }
WindowPlacement * parent
Definition: BasicUI.h:123

References parent.

Member Data Documentation

◆ buttonStyle

Button BasicUI::MessageBoxOptions::buttonStyle { Button::Default }

Definition at line 126 of file BasicUI.h.

Referenced by ButtonStyle(), and wxWidgetsBasicUI::DoMessageBox().

◆ cancelButton

bool BasicUI::MessageBoxOptions::cancelButton { false }

Definition at line 128 of file BasicUI.h.

Referenced by CancelButton(), and wxWidgetsBasicUI::DoMessageBox().

◆ caption

TranslatableString BasicUI::MessageBoxOptions::caption { DefaultCaption() }

Definition at line 124 of file BasicUI.h.

Referenced by Caption(), and wxWidgetsBasicUI::DoMessageBox().

◆ centered

bool BasicUI::MessageBoxOptions::centered { false }

Definition at line 129 of file BasicUI.h.

Referenced by Centered(), and wxWidgetsBasicUI::DoMessageBox().

◆ iconStyle

Icon BasicUI::MessageBoxOptions::iconStyle { Icon::None }

Definition at line 125 of file BasicUI.h.

Referenced by wxWidgetsBasicUI::DoMessageBox(), and IconStyle().

◆ parent

WindowPlacement* BasicUI::MessageBoxOptions::parent { nullptr }

Definition at line 123 of file BasicUI.h.

Referenced by wxWidgetsBasicUI::DoMessageBox(), and Parent().

◆ yesOrOkDefaultButton

bool BasicUI::MessageBoxOptions::yesOrOkDefaultButton { true }

Definition at line 127 of file BasicUI.h.

Referenced by DefaultIsNo(), and wxWidgetsBasicUI::DoMessageBox().


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