LMMS
Loading...
Searching...
No Matches
lmms::gui::EnvelopeGraph Class Reference

#include <EnvelopeGraph.h>

Inheritance diagram for lmms::gui::EnvelopeGraph:
lmms::gui::ModelView

Public Types

enum class  ScalingMode { Dynamic , Absolute , Relative }

Public Member Functions

 EnvelopeGraph (QWidget *parent)
Public Member Functions inherited from lmms::gui::ModelView
 ModelView (Model *model, QWidget *widget)
virtual ~ModelView ()
virtual void setModel (Model *model, bool isOldModelValid=true)
virtual void unsetModel ()
Modelmodel ()
const Modelmodel () const
template<class T>
T * castModel ()
template<class T>
const T * castModel () const

Protected Member Functions

void modelChanged () override
void mousePressEvent (QMouseEvent *) override
void contextMenuEvent (QContextMenuEvent *) override
void paintEvent (QPaintEvent *) override
Protected Member Functions inherited from lmms::gui::ModelView
QWidget * widget ()
virtual void doConnections ()

Properties

QColor noAmountColor
QColor fullAmountColor
QColor markerFillColor
QColor markerOutlineColor

Private Member Functions

void toggleAmountModel ()

Private Attributes

QPixmap m_envGraph = embed::getIconPixmap("envelope_graph")
EnvelopeAndLfoParametersm_params = nullptr
ScalingMode m_scaling = ScalingMode::Dynamic
QColor m_noAmountColor
QColor m_fullAmountColor
QColor m_markerFillColor
QColor m_markerOutlineColor

Member Enumeration Documentation

◆ ScalingMode

Enumerator
Dynamic 
Absolute 
Relative 

Constructor & Destructor Documentation

◆ EnvelopeGraph()

lmms::gui::EnvelopeGraph::EnvelopeGraph ( QWidget * parent)

Member Function Documentation

◆ contextMenuEvent()

void lmms::gui::EnvelopeGraph::contextMenuEvent ( QContextMenuEvent * event)
overrideprotected

◆ modelChanged()

void lmms::gui::EnvelopeGraph::modelChanged ( )
overrideprotectedvirtual

Reimplemented from lmms::gui::ModelView.

◆ mousePressEvent()

void lmms::gui::EnvelopeGraph::mousePressEvent ( QMouseEvent * me)
overrideprotected

◆ paintEvent()

void lmms::gui::EnvelopeGraph::paintEvent ( QPaintEvent * )
overrideprotected

◆ toggleAmountModel()

void lmms::gui::EnvelopeGraph::toggleAmountModel ( )
private

Member Data Documentation

◆ m_envGraph

QPixmap lmms::gui::EnvelopeGraph::m_envGraph = embed::getIconPixmap("envelope_graph")
private

◆ m_fullAmountColor

QColor lmms::gui::EnvelopeGraph::m_fullAmountColor
private

◆ m_markerFillColor

QColor lmms::gui::EnvelopeGraph::m_markerFillColor
private

◆ m_markerOutlineColor

QColor lmms::gui::EnvelopeGraph::m_markerOutlineColor
private

◆ m_noAmountColor

QColor lmms::gui::EnvelopeGraph::m_noAmountColor
private

◆ m_params

EnvelopeAndLfoParameters* lmms::gui::EnvelopeGraph::m_params = nullptr
private

◆ m_scaling

ScalingMode lmms::gui::EnvelopeGraph::m_scaling = ScalingMode::Dynamic
private

Property Documentation

◆ fullAmountColor

QColor lmms::gui::EnvelopeGraph::fullAmountColor

◆ markerFillColor

QColor lmms::gui::EnvelopeGraph::markerFillColor

◆ markerOutlineColor

QColor lmms::gui::EnvelopeGraph::markerOutlineColor

◆ noAmountColor

QColor lmms::gui::EnvelopeGraph::noAmountColor

The documentation for this class was generated from the following files: