svgui
1.9
|
Horizontal audio fader and meter widget. More...
#include <Fader.h>
Signals | |
void | valueChanged (float) |
void | mouseEntered () |
void | mouseLeft () |
Public Member Functions | |
Fader (QWidget *parent, bool withoutKnob=false) | |
Horizontal audio fader and meter widget. More... | |
~Fader () | |
void | setValue (float newValue) |
float | getValue () |
void | setPeakLeft (float) |
float | getPeakLeft () |
void | setPeakRight (float) |
float | getPeakRight () |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *ev) override |
void | mouseDoubleClickEvent (QMouseEvent *ev) override |
void | mouseMoveEvent (QMouseEvent *ev) override |
void | mouseReleaseEvent (QMouseEvent *ev) override |
void | wheelEvent (QWheelEvent *ev) override |
void | paintEvent (QPaintEvent *ev) override |
void | enterEvent (QEvent *) override |
void | leaveEvent (QEvent *) override |
int | getMaxX () const |
Protected Attributes | |
bool | m_withoutKnob |
float | m_value |
float | m_peakLeft |
float | m_peakRight |
bool | m_mousePressed |
int | m_mousePressX |
float | m_mousePressValue |
QPixmap | m_back |
QPixmap | m_leds |
QPixmap | m_knob |
QPixmap | m_clip |
Detailed Description
Horizontal audio fader and meter widget.
Based on the vertical fader and meter widget from:
Hydrogen Copyright(c) 2002-2005 by Alex >Comix< Cominu [comix] @use rs.so urce forge .nethttp://www.hydrogen-music.org
Constructor & Destructor Documentation
Fader::Fader | ( | QWidget * | parent, |
bool | withoutKnob = false |
||
) |
Horizontal audio fader and meter widget.
Based on the vertical fader and meter widget from the Hydrogen drum machine. (Any poor taste that has crept in during the modifications for this application is entirely my own, however.) The following copyright notice applies to code from this file, and also to the files in icons/fader_*.png (also modified by me). –cc Hydrogen Copyright(c) 2002-2005 by Alex >Comix< Cominu [comix] @use rs.so urce forge .nethttp://www.hydrogen-music.org
Member Function Documentation
void Fader::setValue | ( | float | newValue | ) |
Definition at line 204 of file Fader.cpp.
References m_value.
Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and wheelEvent().
float Fader::getValue | ( | ) |
Definition at line 235 of file Fader.cpp.
References m_value.
Referenced by mousePressEvent(), and wheelEvent().
void Fader::setPeakLeft | ( | float | peak | ) |
Definition at line 243 of file Fader.cpp.
References m_peakLeft.
|
inline |
Definition at line 51 of file Fader.h.
References m_peakLeft, and setPeakRight().
void Fader::setPeakRight | ( | float | peak | ) |
|
inline |
Definition at line 54 of file Fader.h.
References enterEvent(), getMaxX(), leaveEvent(), m_peakRight, mouseDoubleClickEvent(), mouseEntered(), mouseLeft(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), paintEvent(), valueChanged(), and wheelEvent().
|
signal |
Referenced by getPeakRight(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and wheelEvent().
|
signal |
Referenced by enterEvent(), and getPeakRight().
|
signal |
Referenced by getPeakRight(), and leaveEvent().
|
overrideprotected |
Definition at line 156 of file Fader.cpp.
References getValue(), m_mousePressed, m_mousePressValue, m_mousePressX, setValue(), and valueChanged().
Referenced by getPeakRight().
|
overrideprotected |
Definition at line 132 of file Fader.cpp.
References getMaxX(), m_value, setValue(), and valueChanged().
Referenced by getPeakRight().
|
overrideprotected |
Definition at line 90 of file Fader.cpp.
References getMaxX(), m_mousePressed, m_mousePressValue, m_mousePressX, setValue(), and valueChanged().
Referenced by getPeakRight(), and mouseReleaseEvent().
|
overrideprotected |
Definition at line 123 of file Fader.cpp.
References m_mousePressed, and mouseMoveEvent().
Referenced by getPeakRight().
|
overrideprotected |
!! needs improvement
Definition at line 175 of file Fader.cpp.
References getValue(), m_value, setValue(), and valueChanged().
Referenced by getPeakRight().
|
overrideprotected |
Definition at line 263 of file Fader.cpp.
References m_back, m_clip, m_knob, m_leds, m_peakLeft, m_peakRight, m_value, and m_withoutKnob.
Referenced by getPeakRight().
|
overrideprotected |
|
overrideprotected |
|
protected |
Definition at line 299 of file Fader.cpp.
Referenced by getPeakRight(), mouseDoubleClickEvent(), and mouseMoveEvent().
Member Data Documentation
|
protected |
Definition at line 74 of file Fader.h.
Referenced by paintEvent().
|
protected |
Definition at line 75 of file Fader.h.
Referenced by getValue(), mouseDoubleClickEvent(), paintEvent(), setValue(), and wheelEvent().
|
protected |
Definition at line 76 of file Fader.h.
Referenced by getPeakLeft(), paintEvent(), and setPeakLeft().
|
protected |
Definition at line 77 of file Fader.h.
Referenced by getPeakRight(), paintEvent(), and setPeakRight().
|
protected |
Definition at line 79 of file Fader.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
protected |
Definition at line 80 of file Fader.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
protected |
Definition at line 81 of file Fader.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
protected |
Definition at line 83 of file Fader.h.
Referenced by Fader(), and paintEvent().
|
protected |
Definition at line 84 of file Fader.h.
Referenced by Fader(), and paintEvent().
|
protected |
Definition at line 85 of file Fader.h.
Referenced by Fader(), and paintEvent().
|
protected |
Definition at line 86 of file Fader.h.
Referenced by Fader(), and paintEvent().
The documentation for this class was generated from the following files:
Generated by 1.8.11