|
lmms
Cross-platform music production software
|
#include <AudioFileProcessorWaveView.h>
Classes | |
| class | knob |
Public Types | |
| enum class | Point { Start , End , Loop } |
Public Slots | |
| void | update () |
| void | isPlaying (lmms::f_cnt_t current_frame) |
Public Member Functions | |
| AudioFileProcessorWaveView (QWidget *parent, int w, int h, Sample const *buf, knob *start, knob *end, knob *loop) | |
| void | updateSampleRange () |
Protected Member Functions | |
| virtual void | enterEvent (QEvent *e) |
| virtual void | leaveEvent (QEvent *e) |
| virtual void | mousePressEvent (QMouseEvent *me) |
| virtual void | mouseReleaseEvent (QMouseEvent *me) |
| virtual void | mouseMoveEvent (QMouseEvent *me) |
| virtual void | wheelEvent (QWheelEvent *we) |
| virtual void | paintEvent (QPaintEvent *pe) |
Private Types | |
| enum class | DraggingType { Wave , SlideWave , ZoomWave , SampleStart , SampleEnd , SampleLoop } |
Private Member Functions | |
| void | setTo (int to) |
| void | setFrom (int from) |
| int | range () const |
| void | zoom (const bool out=false) |
| void | slide (int px) |
| void | slideSamplePointByPx (Point point, int px) |
| void | slideSamplePointByFrames (Point point, long frameOffset, bool slideTo=false) |
| void | slideSampleByFrames (long frameOffset) |
| void | slideSamplePointToFrames (Point point, f_cnt_t frames) |
| void | updateGraph () |
| void | reverse () |
| void | updateCursor (const QMouseEvent *me=nullptr) |
| bool | pointerCloseToStartEndOrLoop (const QMouseEvent *me) const |
| void | configureKnobRelationsAndWaveViews () |
Static Private Member Functions | |
| static bool | isCloseTo (int a, int b) |
Private Attributes | |
| Sample const * | m_sample |
| QPixmap | m_graph |
| int | m_from |
| int | m_to |
| int | m_last_from |
| int | m_last_to |
| float | m_last_amp |
| knob * | m_startKnob |
| knob * | m_endKnob |
| knob * | m_loopKnob |
| int | m_startFrameX |
| int | m_endFrameX |
| int | m_loopFrameX |
| bool | m_isDragging |
| QPoint | m_draggingLastPoint |
| DraggingType | m_draggingType |
| bool | m_reversed |
| f_cnt_t | m_framesPlayed |
| bool | m_animation |
| SampleThumbnail | m_sampleThumbnail |
Static Private Attributes | |
| static const int | s_padding = 2 |
Friends | |
| class | AudioFileProcessorView |
|
strongprivate |
|
strong |
| lmms::gui::AudioFileProcessorWaveView::AudioFileProcessorWaveView | ( | QWidget * | parent, |
| int | w, | ||
| int | h, | ||
| Sample const * | buf, | ||
| knob * | start, | ||
| knob * | end, | ||
| knob * | loop ) |
|
private |
|
protectedvirtual |
|
inlinestaticprivate |
|
slot |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlineprivate |
|
inlineslot |
|
private |
|
private |
| void lmms::gui::AudioFileProcessorWaveView::updateSampleRange | ( | ) |
|
protectedvirtual |
|
private |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |