Audacity 3.2.0
Classes | Namespaces | Enumerations | Functions
SelectHandle.cpp File Reference
#include "SelectHandle.h"
#include "Scrubbing.h"
#include "ChannelView.h"
#include "AColor.h"
#include "CommandManager.h"
#include "SpectrumAnalyst.h"
#include "LabelTrack.h"
#include "../playabletrack/wavetrack/ui/PitchAndSpeedDialog.h"
#include "NumberScale.h"
#include "Project.h"
#include "ProjectAudioIO.h"
#include "ProjectHistory.h"
#include "../../ProjectSettings.h"
#include "../../ProjectWindow.h"
#include "../../RefreshCode.h"
#include "../../SelectUtilities.h"
#include "SelectionState.h"
#include "SyncLock.h"
#include "../../TrackArt.h"
#include "../../TrackArtist.h"
#include "TrackFocus.h"
#include "../../TrackPanel.h"
#include "../../TrackPanelDrawingContext.h"
#include "../../TrackPanelMouseEvent.h"
#include "ViewInfo.h"
#include "WaveChannelUtilities.h"
#include "WaveClip.h"
#include "WaveTrack.h"
#include "SpectrogramSettings.h"
#include "../../../images/Cursors.h"
Include dependency graph for SelectHandle.cpp:

Go to the source code of this file.

Classes

class  SelectHandle::TimerHandler
 

Namespaces

namespace  anonymous_namespace{SelectHandle.cpp}
 

Enumerations

enum  { SELECTION_RESIZE_REGION = 3 , FREQ_SNAP_DISTANCE = 10 }
 
enum  anonymous_namespace{SelectHandle.cpp}::SelectionBoundary {
  anonymous_namespace{SelectHandle.cpp}::SBNone , anonymous_namespace{SelectHandle.cpp}::SBLeft , anonymous_namespace{SelectHandle.cpp}::SBRight , anonymous_namespace{SelectHandle.cpp}::SBBottom ,
  anonymous_namespace{SelectHandle.cpp}::SBTop , anonymous_namespace{SelectHandle.cpp}::SBCenter , anonymous_namespace{SelectHandle.cpp}::SBWidth
}
 

Functions

wxInt64 anonymous_namespace{SelectHandle.cpp}::FrequencyToPosition (const WaveChannel &wc, double frequency, wxInt64 trackTopEdge, int trackHeight)
 Converts a frequency to screen y position. More...
 
double anonymous_namespace{SelectHandle.cpp}::PositionToFrequency (const WaveChannel &wc, bool maySnap, wxInt64 mouseYCoordinate, wxInt64 trackTopEdge, int trackHeight)
 
template<typename T >
void anonymous_namespace{SelectHandle.cpp}::SetIfNotNull (T *pValue, const T Value)
 
bool anonymous_namespace{SelectHandle.cpp}::isSpectralSelectionView (const ChannelView &channelView)
 
SelectionBoundary anonymous_namespace{SelectHandle.cpp}::ChooseTimeBoundary (const double t0, const double t1, const ViewInfo &viewInfo, double selend, bool onlyWithinSnapDistance, wxInt64 *pPixelDist, double *pPinValue)
 
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)
 
wxCursor * anonymous_namespace{SelectHandle.cpp}::SelectCursor ()
 
wxCursor * anonymous_namespace{SelectHandle.cpp}::EnvelopeCursor ()
 
void anonymous_namespace{SelectHandle.cpp}::SetTipAndCursorForBoundary (SelectionBoundary boundary, bool frequencySnapping, TranslatableString &tip, wxCursor *&pCursor)
 
template<class A , class B , class DIST >
bool anonymous_namespace{SelectHandle.cpp}::within (A a, B b, DIST d)
 
double anonymous_namespace{SelectHandle.cpp}::findMaxRatio (double center, double rate)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SELECTION_RESIZE_REGION 
FREQ_SNAP_DISTANCE 

Definition at line 48 of file SelectHandle.cpp.

48 {
49 //This constant determines the size of the horizontal region (in pixels) around
50 //the right and left selection bounds that can be used for horizontal selection adjusting
51 //(or, vertical distance around top and bottom bounds in spectrograms,
52 // for vertical selection adjusting)
54
55 // Seems 4 is too small to work at the top. Why?
57};
@ FREQ_SNAP_DISTANCE
@ SELECTION_RESIZE_REGION