![]() |
Audacity 3.2.0
|
Pop up dialog used with an LWSlider. More...
#include <ASlider.h>
Public Member Functions | |
| SliderDialog (wxWindow *parent, wxWindowID id, const TranslatableString &title, wxPoint position, wxSize size, int style, float value, float line, float page, LWSlider *pSlider=nullptr) | |
| ~SliderDialog () | |
| float | Get () |
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 | |
| bool | TransferDataToWindow () override |
| bool | TransferDataFromWindow () override |
| void | OnSlider (wxCommandEvent &event) |
| void | OnTextChange (wxCommandEvent &event) |
Private Attributes | |
| ASlider * | mSlider |
| wxTextCtrl * | mTextCtrl |
| int | mStyle |
| LWSlider * | mpOrigin |
| float | mValue |
| SliderDialog::SliderDialog | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const TranslatableString & | title, | ||
| wxPoint | position, | ||
| wxSize | size, | ||
| int | style, | ||
| float | value, | ||
| float | line, | ||
| float | page, | ||
| LWSlider * | pSlider = nullptr |
||
| ) |
Definition at line 257 of file ASlider.cpp.
References DB_SLIDER, eCancelButton, eIsCreating, eOkButton, ASlider::Options::Line(), ASlider::Options::Page(), PAN_SLIDER, PERCENT_SLIDER, ASlider::Options::Popup(), S, safenew, size, SPEED_SLIDER, anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, ASlider::Options::Style(), title, and VEL_SLIDER.
| SliderDialog::~SliderDialog | ( | ) |
Definition at line 337 of file ASlider.cpp.
| float SliderDialog::Get | ( | ) |
Definition at line 391 of file ASlider.cpp.
References ASlider::Get(), and mSlider.
Referenced by LWSlider::DoShowDialog().
|
private |
Definition at line 376 of file ASlider.cpp.
References TransferDataToWindow().
|
private |
Definition at line 382 of file ASlider.cpp.
References mTextCtrl, and TransferDataFromWindow().
|
overrideprivate |
Definition at line 357 of file ASlider.cpp.
References DB_SLIDER, DB_TO_LINEAR, mpOrigin, mSlider, mStyle, mTextCtrl, mValue, PAN_SLIDER, PERCENT_SLIDER, LWSlider::SendUpdate(), LWSlider::Set(), and ASlider::Set().
Referenced by OnTextChange().
|
overrideprivate |
Definition at line 341 of file ASlider.cpp.
References ASlider::Get(), mpOrigin, mSlider, mStyle, mTextCtrl, mValue, PAN_SLIDER, PERCENT_SLIDER, LWSlider::SendUpdate(), and LWSlider::Set().
Referenced by OnSlider().
|
private |
Definition at line 393 of file ASlider.h.
Referenced by TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 390 of file ASlider.h.
Referenced by Get(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 392 of file ASlider.h.
Referenced by TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 391 of file ASlider.h.
Referenced by OnTextChange(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 394 of file ASlider.h.
Referenced by TransferDataFromWindow(), and TransferDataToWindow().