Audacity 3.2.0
|
Enumerations | |
enum | SelectionBoundary { SBNone , SBLeft , SBRight , SBBottom , SBTop , SBCenter , SBWidth } |
Functions | |
wxInt64 | FrequencyToPosition (const WaveChannel &wc, double frequency, wxInt64 trackTopEdge, int trackHeight) |
Converts a frequency to screen y position. More... | |
double | PositionToFrequency (const WaveChannel &wc, bool maySnap, wxInt64 mouseYCoordinate, wxInt64 trackTopEdge, int trackHeight) |
template<typename T > | |
void | SetIfNotNull (T *pValue, const T Value) |
bool | isSpectralSelectionView (const ChannelView &channelView) |
SelectionBoundary | ChooseTimeBoundary (const double t0, const double t1, const ViewInfo &viewInfo, double selend, bool onlyWithinSnapDistance, wxInt64 *pPixelDist, double *pPinValue) |
SelectionBoundary | ChooseBoundary (const ViewInfo &viewInfo, wxCoord xx, wxCoord yy, const ChannelView &channelView, const wxRect &rect, bool mayDragWidth, bool onlyWithinSnapDistance, double *pPinValue=NULL) |
wxCursor * | SelectCursor () |
wxCursor * | EnvelopeCursor () |
void | SetTipAndCursorForBoundary (SelectionBoundary boundary, bool frequencySnapping, TranslatableString &tip, wxCursor *&pCursor) |
template<class A , class B , class DIST > | |
bool | within (A a, B b, DIST d) |
double | findMaxRatio (double center, double rate) |
enum anonymous_namespace{SelectHandle.cpp}::SelectionBoundary |
Enumerator | |
---|---|
SBNone | |
SBLeft | |
SBRight | |
SBBottom | |
SBTop | |
SBCenter | |
SBWidth |
Definition at line 125 of file SelectHandle.cpp.
SelectionBoundary anonymous_namespace{SelectHandle.cpp}::ChooseBoundary | ( | const ViewInfo & | viewInfo, |
wxCoord | xx, | ||
wxCoord | yy, | ||
const ChannelView & | channelView, | ||
const wxRect & | rect, | ||
bool | mayDragWidth, | ||
bool | onlyWithinSnapDistance, | ||
double * | pPinValue = NULL |
||
) |
Definition at line 171 of file SelectHandle.cpp.
References ChooseTimeBoundary(), NotifyingSelectedRegion::f0(), NotifyingSelectedRegion::f1(), NotifyingSelectedRegion::fc(), CommonChannelCell::FindChannel(), FREQ_SNAP_DISTANCE, FrequencyToPosition(), NotifyingSelectedRegion::isPoint(), isSpectralSelectionView(), ZoomInfo::PositionToTime(), SBBottom, SBCenter, SBNone, SBTop, SBWidth, ViewInfo::selectedRegion, SetIfNotNull(), NotifyingSelectedRegion::t0(), and NotifyingSelectedRegion::t1().
Referenced by SelectHandle::Click(), and SelectHandle::Preview().
SelectionBoundary anonymous_namespace{SelectHandle.cpp}::ChooseTimeBoundary | ( | const double | t0, |
const double | t1, | ||
const ViewInfo & | viewInfo, | ||
double | selend, | ||
bool | onlyWithinSnapDistance, | ||
wxInt64 * | pPixelDist, | ||
double * | pPinValue | ||
) |
Definition at line 131 of file SelectHandle.cpp.
References SBLeft, SBNone, SBRight, SELECTION_RESIZE_REGION, SetIfNotNull(), and ZoomInfo::TimeToPosition().
Referenced by ChooseBoundary().
wxCursor * anonymous_namespace{SelectHandle.cpp}::EnvelopeCursor | ( | ) |
Definition at line 284 of file SelectHandle.cpp.
References MakeCursor().
Referenced by SetTipAndCursorForBoundary().
|
inline |
Definition at line 486 of file SelectHandle.cpp.
References min().
Referenced by SelectHandle::AdjustFreqSelection(), SelectHandle::MoveSnappingFreqSelection(), and SelectHandle::SnapCenterOnce().
wxInt64 anonymous_namespace{SelectHandle.cpp}::FrequencyToPosition | ( | const WaveChannel & | wc, |
double | frequency, | ||
wxInt64 | trackTopEdge, | ||
int | trackHeight | ||
) |
Converts a frequency to screen y position.
Definition at line 69 of file SelectHandle.cpp.
References SpectrogramSettings::Get(), SpectrogramBounds::Get(), SpectrogramBounds::GetBounds(), settings(), and NumberScale::ValueToPosition().
Referenced by ChooseBoundary().
|
inline |
Definition at line 117 of file SelectHandle.cpp.
References CommonChannelCell::FindChannel(), SpectrogramSettings::Get(), ChannelView::IsSpectral(), and SpectrogramSettings::SpectralSelectionEnabled().
Referenced by ChooseBoundary(), SelectHandle::Click(), SelectHandle::MoveSnappingFreqSelection(), SelectHandle::Preview(), and SelectHandle::StartFreqSelection().
double anonymous_namespace{SelectHandle.cpp}::PositionToFrequency | ( | const WaveChannel & | wc, |
bool | maySnap, | ||
wxInt64 | mouseYCoordinate, | ||
wxInt64 | trackTopEdge, | ||
int | trackHeight | ||
) |
Converts a position (mouse Y coordinate) to frequency, in Hz.
Definition at line 84 of file SelectHandle.cpp.
References FREQ_SNAP_DISTANCE, SpectrogramSettings::Get(), SpectrogramBounds::Get(), SpectrogramBounds::GetBounds(), WaveChannel::GetRate(), NumberScale::PositionToValue(), and settings().
Referenced by SelectHandle::AdjustFreqSelection(), SelectHandle::MoveSnappingFreqSelection(), and SelectHandle::StartFreqSelection().
wxCursor * anonymous_namespace{SelectHandle.cpp}::SelectCursor | ( | ) |
Definition at line 277 of file SelectHandle.cpp.
References MakeCursor().
Referenced by SelectHandle::Preview(), and SetTipAndCursorForBoundary().
|
inline |
Definition at line 109 of file SelectHandle.cpp.
Referenced by ChooseBoundary(), and ChooseTimeBoundary().
void anonymous_namespace{SelectHandle.cpp}::SetTipAndCursorForBoundary | ( | SelectionBoundary | boundary, |
bool | frequencySnapping, | ||
TranslatableString & | tip, | ||
wxCursor *& | pCursor | ||
) |
Definition at line 292 of file SelectHandle.cpp.
References EnvelopeCursor(), MakeCursor(), SBBottom, SBCenter, SBLeft, SBNone, SBRight, SBTop, SBWidth, SelectCursor(), and XO().
Referenced by SelectHandle::Preview().
bool anonymous_namespace{SelectHandle.cpp}::within | ( | A | a, |
B | b, | ||
DIST | d | ||
) |
Definition at line 481 of file SelectHandle.cpp.