![]() |
Audacity 3.2.0
|
Dialog used to request a time value. More...
#include <TimeDialog.h>
Public Member Functions | |
| TimeDialog (wxWindow *parent, const TranslatableString &title, const NumericFormatID &format, const AudacityProject &project, double time, const TranslatableString &prompt=XO("Duration")) | |
| void | SetFormatString (const NumericFormatID &formatString) |
| void | SetTimeValue (double newTime) |
| const double | GetTimeValue () |
Public Member Functions inherited from wxDialogWrapper | |
| wxDialogWrapper () | |
| wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
| bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
| void | SetTitle (const TranslatableString &title) |
| void | SetLabel (const TranslatableString &title) |
| void | SetName (const TranslatableString &title) |
| void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxDialog > | |
| wxTabTraversalWrapper (Args &&... args) | |
| wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
| wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
| wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
| wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
| void | PopulateOrExchange (ShuttleGui &S) |
| bool | TransferDataToWindow () override |
| bool | TransferDataFromWindow () override |
| void | OnUpdate (wxCommandEvent &event) |
Private Attributes | |
| TranslatableString | mPrompt |
| NumericFormatID | mFormat |
| const AudacityProject & | mProject |
| double | mTime |
| NumericTextCtrl * | mTimeCtrl |
Dialog used to request a time value.
Definition at line 24 of file TimeDialog.h.
| TimeDialog::TimeDialog | ( | wxWindow * | parent, |
| const TranslatableString & | title, | ||
| const NumericFormatID & | format, | ||
| const AudacityProject & | project, | ||
| double | time, | ||
| const TranslatableString & | prompt = XO("Duration") |
||
| ) |
Definition at line 29 of file TimeDialog.cpp.
References eIsCreating, and S.
| const double TimeDialog::GetTimeValue | ( | ) |
Definition at line 94 of file TimeDialog.cpp.
References mTime.
Referenced by SelectUtilities::OnSetRegion().
|
private |
Definition at line 112 of file TimeDialog.cpp.
|
private |
Definition at line 47 of file TimeDialog.cpp.
References NumericTextCtrl::Options::AutoPos(), mFormat, mProject, mPrompt, mTime, mTimeCtrl, NumericConverterType_TIME(), FormatterContext::ProjectContext(), S, safenew, and TransferDataToWindow().
| void TimeDialog::SetFormatString | ( | const NumericFormatID & | formatString | ) |
Definition at line 99 of file TimeDialog.cpp.
References mFormat, and TransferDataToWindow().
| void TimeDialog::SetTimeValue | ( | double | newTime | ) |
Definition at line 106 of file TimeDialog.cpp.
References mTime, and TransferDataToWindow().
|
overrideprivate |
Definition at line 87 of file TimeDialog.cpp.
References NumericConverter::GetValue(), mTime, and mTimeCtrl.
|
overrideprivate |
Definition at line 78 of file TimeDialog.cpp.
References mFormat, mTime, mTimeCtrl, NumericTextCtrl::SetFormatName(), and NumericTextCtrl::SetValue().
Referenced by PopulateOrExchange(), SetFormatString(), and SetTimeValue().
|
private |
Definition at line 50 of file TimeDialog.h.
Referenced by PopulateOrExchange(), SetFormatString(), and TransferDataToWindow().
|
private |
Definition at line 51 of file TimeDialog.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 49 of file TimeDialog.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 52 of file TimeDialog.h.
Referenced by GetTimeValue(), PopulateOrExchange(), SetTimeValue(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 54 of file TimeDialog.h.
Referenced by PopulateOrExchange(), TransferDataFromWindow(), and TransferDataToWindow().