21 AreaSelectionComp(
bool drawBackground,
bool drawMarqueeBackground,
bool useEndPoint);
27 void paint(Graphics& g)
override;
42 void mouseDown(
const MouseEvent& event)
override;
43 void mouseDrag(
const MouseEvent& event)
override;
44 void mouseUp(
const MouseEvent& event)
override;
Definition AreaSelectionComp.h:15
virtual void sampleAreaChanged(AreaSelectionComp *areaSelectionComp, float startPos, float endPos)=0
virtual ~Listener()=default
Definition AreaSelectionComp.h:4
int m_selectionStart
Definition AreaSelectionComp.h:62
const float m_epsilon
Definition AreaSelectionComp.h:58
bool m_leftBarWasSelected
Definition AreaSelectionComp.h:75
~AreaSelectionComp() override
Definition AreaSelectionComp.cpp:8
void modifierKeysChanged(const ModifierKeys &modifiers) override
Definition AreaSelectionComp.cpp:161
void setStartPointInPercentage(float percentage, float nonModulatedPercentage=-1)
Definition AreaSelectionComp.cpp:91
ListenerList< Listener > m_listeners
Definition AreaSelectionComp.h:46
const int m_clickingThreshold
Definition AreaSelectionComp.h:71
bool m_shiftDragging
Definition AreaSelectionComp.h:55
float m_diff
Definition AreaSelectionComp.h:48
void setEndPointInPercentage(float percentage)
Definition AreaSelectionComp.cpp:110
float m_endPosPercentage
Definition AreaSelectionComp.h:66
AreaSelectionComp(bool drawBackground, bool drawMarqueeBackground, bool useEndPoint)
Definition AreaSelectionComp.cpp:3
int m_grabAreaWidth
Definition AreaSelectionComp.h:59
float getStartPosInPercentage()
Definition AreaSelectionComp.cpp:127
float getEndPosInPercentage()
Definition AreaSelectionComp.cpp:133
int m_selectionEnd
Definition AreaSelectionComp.h:63
bool m_drawMarqueeBackground
Definition AreaSelectionComp.h:51
int m_minSelectionWidth
Definition AreaSelectionComp.h:73
void addListener(Listener *Listener)
Definition AreaSelectionComp.cpp:10
const int m_lineWidth
Definition AreaSelectionComp.h:70
bool m_shiftKeyPressed
Definition AreaSelectionComp.h:54
bool m_drawBackground
Definition AreaSelectionComp.h:50
void setWaveformMode(WaveformMode mode)
Definition AreaSelectionComp.cpp:282
bool m_rightBarWasSelected
Definition AreaSelectionComp.h:76
float m_additionalPercentHack
Definition AreaSelectionComp.h:68
bool m_useEndPoint
Definition AreaSelectionComp.h:52
WaveformMode m_waveformMode
Definition AreaSelectionComp.h:79
void mouseDown(const MouseEvent &event) override
Definition AreaSelectionComp.cpp:169
void toggleAreaOrControl(bool toggleState)
Definition AreaSelectionComp.cpp:139
void removeListener(Listener *Listener)
Definition AreaSelectionComp.cpp:12
void mouseUp(const MouseEvent &event) override
Definition AreaSelectionComp.cpp:268
WaveformMode
Definition AreaSelectionComp.h:7
void determineMinSelectionWidth(float sampleRate, float numSamples)
Definition AreaSelectionComp.cpp:154
bool m_dragging
Definition AreaSelectionComp.h:77
void mouseDrag(const MouseEvent &event) override
Definition AreaSelectionComp.cpp:215
void paint(Graphics &g) override
Definition AreaSelectionComp.cpp:14
int m_selectionWidth
Definition AreaSelectionComp.h:61
const int m_minSelectionWidthMin
Definition AreaSelectionComp.h:72
bool inAreaSelectMode
Definition AreaSelectionComp.h:56
float m_startPosPercentage
Definition AreaSelectionComp.h:65
Enables zooming of a painted component using special drawing methods.
Definition ZoomableComponent.h:7
Definition AirAbsorptionFilter.cpp:2