Audacity 3.2.0
|
#include <ViewInfo.h>
Public Member Functions | |
double | t0 () const |
double | t1 () const |
double | f0 () const |
double | f1 () const |
double | fc () const |
bool | isPoint () const |
double | duration () const |
void | WriteXMLAttributes (XMLWriter &xmlFile, const char *legacyT0Name, const char *legacyT1Name) const |
operator const SelectedRegion & () const | |
NotifyingSelectedRegion & | operator= (const SelectedRegion &other) |
bool | setTimes (double t0, double t1) |
bool | setT0 (double t, bool maySwap=true) |
bool | setT1 (double t, bool maySwap=true) |
void | collapseToT0 () |
void | collapseToT1 () |
void | move (double delta) |
bool | setFrequencies (double f0, double f1) |
bool | setF0 (double f, bool maySwap=true) |
bool | setF1 (double f, bool maySwap=true) |
Public Member Functions inherited from Observer::Publisher< NotifyingSelectedRegionMessage > | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
Static Public Member Functions | |
static XMLMethodRegistryBase::Mutators< NotifyingSelectedRegion > | Mutators (const char *legacyT0Name, const char *legacyT1Name) |
Return some information used for deserialization purposes by ViewInfo. More... | |
Private Member Functions | |
void | Notify (bool delayed=false) |
Private Attributes | |
SelectedRegion | mRegion |
Additional Inherited Members | |
Public Types inherited from Observer::Publisher< NotifyingSelectedRegionMessage > | |
using | message_type = NotifyingSelectedRegionMessage |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const NotifyingSelectedRegionMessage &) > |
Type of functions that can be connected to the Publisher. More... | |
Static Public Attributes inherited from Observer::Publisher< NotifyingSelectedRegionMessage > | |
static constexpr bool | notifies_all |
Protected Member Functions inherited from Observer::Publisher< NotifyingSelectedRegionMessage > | |
CallbackReturn | Publish (const NotifyingSelectedRegionMessage &message) |
Send a message to connected callbacks. More... | |
Definition at line 29 of file ViewInfo.h.
void NotifyingSelectedRegion::collapseToT0 | ( | ) |
Definition at line 81 of file ViewInfo.cpp.
References SelectedRegion::collapseToT0(), mRegion, Notify(), SelectedRegion::t0(), and SelectedRegion::t1().
Referenced by SelectActions::Handler::OnSelectNone().
void NotifyingSelectedRegion::collapseToT1 | ( | ) |
Definition at line 89 of file ViewInfo.cpp.
References SelectedRegion::collapseToT1(), mRegion, Notify(), SelectedRegion::t0(), and SelectedRegion::t1().
|
inline |
Definition at line 41 of file ViewInfo.h.
Referenced by EffectBase::DoEffect(), and anonymous_namespace{EditMenus.cpp}::OnDelete().
|
inline |
Definition at line 37 of file ViewInfo.h.
Referenced by anonymous_namespace{SelectHandle.cpp}::ChooseBoundary(), EffectBase::DoEffect(), SelectHandle::MoveSnappingFreqSelection(), anonymous_namespace{SpectrumView.cpp}::Handler::OnToggleSpectralSelection(), and setFrequencies().
|
inline |
Definition at line 38 of file ViewInfo.h.
Referenced by anonymous_namespace{SelectHandle.cpp}::ChooseBoundary(), EffectBase::DoEffect(), SelectHandle::MoveSnappingFreqSelection(), setFrequencies(), and SelectHandle::SnapCenterOnce().
|
inline |
Definition at line 39 of file ViewInfo.h.
Referenced by anonymous_namespace{SelectHandle.cpp}::ChooseBoundary(), and SelectHandle::SnapCenterOnce().
|
inline |
Definition at line 40 of file ViewInfo.h.
Referenced by anonymous_namespace{SelectHandle.cpp}::ChooseBoundary(), SelectUtilities::DoSelectSomething(), TranscriptionToolBar::EnableDisableButtons(), ExportUtils::HasSelectedAudio(), EffectUIHost::OnApply(), and TimeSelectedPred().
void NotifyingSelectedRegion::move | ( | double | delta | ) |
Definition at line 97 of file ViewInfo.cpp.
References SelectedRegion::move(), mRegion, and Notify().
Referenced by TimeShiftHandle::DoSlideVertical().
|
static |
Return some information used for deserialization purposes by ViewInfo.
Definition at line 24 of file ViewInfo.cpp.
References fn, and SelectedRegion::Mutators().
|
private |
Definition at line 135 of file ViewInfo.cpp.
References BasicUI::CallAfter(), and Observer::Publisher< NotifyingSelectedRegionMessage >::Publish().
Referenced by collapseToT0(), collapseToT1(), move(), setF0(), setF1(), setFrequencies(), setT0(), setT1(), and setTimes().
|
inline |
Definition at line 56 of file ViewInfo.h.
NotifyingSelectedRegion & NotifyingSelectedRegion::operator= | ( | const SelectedRegion & | other | ) |
Definition at line 41 of file ViewInfo.cpp.
bool NotifyingSelectedRegion::setF0 | ( | double | f, |
bool | maySwap = true |
||
) |
Definition at line 115 of file ViewInfo.cpp.
References SelectedRegion::f0(), mRegion, Notify(), and SelectedRegion::setF0().
Referenced by SelectHandle::AdjustFreqSelection().
bool NotifyingSelectedRegion::setF1 | ( | double | f, |
bool | maySwap = true |
||
) |
Definition at line 125 of file ViewInfo.cpp.
References SelectedRegion::f1(), mRegion, Notify(), and SelectedRegion::setF1().
Referenced by SelectHandle::AdjustFreqSelection().
bool NotifyingSelectedRegion::setFrequencies | ( | double | f0, |
double | f1 | ||
) |
Definition at line 105 of file ViewInfo.cpp.
References SelectedRegion::f0(), f0(), SelectedRegion::f1(), f1(), mRegion, Notify(), and SelectedRegion::setFrequencies().
Referenced by SelectHandle::AdjustFreqSelection(), SelectHandle::MoveSnappingFreqSelection(), SelectHandle::SnapCenterOnce(), and SelectHandle::StartFreqSelection().
bool NotifyingSelectedRegion::setT0 | ( | double | t, |
bool | maySwap = true |
||
) |
Definition at line 61 of file ViewInfo.cpp.
References mRegion, Notify(), SelectedRegion::setT0(), and SelectedRegion::t0().
bool NotifyingSelectedRegion::setT1 | ( | double | t, |
bool | maySwap = true |
||
) |
Definition at line 71 of file ViewInfo.cpp.
References mRegion, Notify(), SelectedRegion::setT1(), and SelectedRegion::t1().
bool NotifyingSelectedRegion::setTimes | ( | double | t0, |
double | t1 | ||
) |
Definition at line 51 of file ViewInfo.cpp.
References mRegion, Notify(), SelectedRegion::setTimes(), SelectedRegion::t0(), t0(), SelectedRegion::t1(), and t1().
Referenced by SelectHandle::AssignSelection(), CutlineHandle::Cancel(), Effect::Delegate(), EffectBase::DoEffect(), anonymous_namespace{SelectUtilities.cpp}::DoSelectTimeAndAudioTracks(), SelectUtilities::DoSelectTimeAndTracks(), anonymous_namespace{EditMenus.cpp}::OnPaste(), WaveChannelView::SelectNextClip(), and SelectionState::SelectTrackLength().
|
inline |
Definition at line 35 of file ViewInfo.h.
Referenced by ExportCommand::Apply(), LabelTrackView::Char(), anonymous_namespace{SelectHandle.cpp}::ChooseBoundary(), EffectBase::DoEffect(), LabelTrackView::DoKeyDown(), LabelDialog::FindInitialRow(), anonymous_namespace{EditMenus.cpp}::FindSelection(), TranscriptionToolBar::GetSamples(), StretchHandle::GetT0(), NoteTrackShifter::HitTest(), WaveTrackShifter::HitTest(), LabelTrackShifter::HitTest(), ClipMoveState::Init(), LabelTrackView::KeyDown(), ProjectAudioManager::OnRecord(), TransportUtilities::RecordAndWait(), anonymous_namespace{WaveChannelView.cpp}::SelectedClip(), setTimes(), and SelectHandle::StartSnappingFreqSelection().
|
inline |
Definition at line 36 of file ViewInfo.h.
Referenced by LabelTrackView::Char(), anonymous_namespace{SelectHandle.cpp}::ChooseBoundary(), EffectBase::DoEffect(), StretchHandle::GetT1(), NoteTrackShifter::HitTest(), WaveTrackShifter::HitTest(), LabelTrackShifter::HitTest(), ClipMoveState::Init(), LabelTrackView::KeyDown(), PerTrackEffect::ProcessPass(), anonymous_namespace{WaveChannelView.cpp}::SelectedClip(), setTimes(), and SelectHandle::StartSnappingFreqSelection().
|
inline |
Definition at line 45 of file ViewInfo.h.
|
private |
Definition at line 88 of file ViewInfo.h.
Referenced by collapseToT0(), collapseToT1(), move(), setF0(), setF1(), setFrequencies(), setT0(), setT1(), and setTimes().