Audacity 3.2.0
Classes | Namespaces | Enumerations | Functions
SelectHandle.cpp File Reference
#include "SelectHandle.h"
#include "Scrubbing.h"
#include "TrackView.h"
#include "AColor.h"
#include "../../SpectrumAnalyst.h"
#include "../../LabelTrack.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 "../../TrackArtist.h"
#include "../../TrackPanelAx.h"
#include "../../TrackPanel.h"
#include "../../TrackPanelDrawingContext.h"
#include "../../TrackPanelMouseEvent.h"
#include "ViewInfo.h"
#include "../../WaveClip.h"
#include "../../WaveTrack.h"
#include "../../prefs/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 }
 

Functions

wxInt64 anonymous_namespace{SelectHandle.cpp}::FrequencyToPosition (const WaveTrack *wt, double frequency, wxInt64 trackTopEdge, int trackHeight)
 Converts a frequency to screen y position. More...
 
double anonymous_namespace{SelectHandle.cpp}::PositionToFrequency (const WaveTrack *wt, 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 TrackView *pTrackView)
 
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 TrackView *pTrackView, 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 43 of file SelectHandle.cpp.

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