lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
LfoGraph.h
Go to the documentation of this file.
1
/*
2
* LfoGraph.h - Displays LFO graphs
3
*
4
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5
* Copyright (c) 2024- Michael Gregorius
6
*
7
* This file is part of LMMS - https://lmms.io
8
*
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public
11
* License as published by the Free Software Foundation; either
12
* version 2 of the License, or (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public
20
* License along with this program (see COPYING); if not, write to the
21
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
* Boston, MA 02110-1301 USA.
23
*
24
*/
25
26
#ifndef LMMS_GUI_LFO_GRAPH_H
27
#define LMMS_GUI_LFO_GRAPH_H
28
29
#include <QWidget>
30
31
#include "
ModelView.h
"
32
#include "
embed.h
"
33
34
namespace
lmms
35
{
36
37
class
EnvelopeAndLfoParameters
;
38
39
namespace
gui
40
{
41
42
class
LfoGraph
:
public
QWidget,
public
ModelView
43
{
44
Q_OBJECT
45
Q_PROPERTY(QColor
noAmountColor
MEMBER
m_noAmountColor
)
46
Q_PROPERTY(QColor
fullAmountColor
MEMBER
m_fullAmountColor
)
47
48
public:
49
LfoGraph
(QWidget* parent);
50
51
protected:
52
void
mousePressEvent
(QMouseEvent* me) override;
53
void
paintEvent
(QPaintEvent* pe) override;
54
55
private:
56
void
drawInfoText
(const
EnvelopeAndLfoParameters
&);
57
void
toggleAmountModel
();
58
59
private:
60
QPixmap
m_lfoGraph
=
embed
::getIconPixmap(
"lfo_graph"
);
61
62
float
m_randomGraph
{0.};
63
QColor
m_noAmountColor
;
64
QColor
m_fullAmountColor
;
65
};
66
67
}
// namespace gui
68
69
}
// namespace lmms
70
71
#endif
// LMMS_GUI_LFO_GRAPH_H
ModelView.h
lmms::EnvelopeAndLfoParameters
Definition
EnvelopeAndLfoParameters.h:47
lmms::gui::LfoGraph::LfoGraph
LfoGraph(QWidget *parent)
Definition
LfoGraph.cpp:45
lmms::gui::LfoGraph::m_noAmountColor
QColor m_noAmountColor
Definition
LfoGraph.h:63
lmms::gui::LfoGraph::m_randomGraph
float m_randomGraph
Definition
LfoGraph.h:62
lmms::gui::LfoGraph::m_fullAmountColor
QColor m_fullAmountColor
Definition
LfoGraph.h:64
lmms::gui::LfoGraph::fullAmountColor
QColor fullAmountColor
Definition
LfoGraph.h:46
lmms::gui::LfoGraph::noAmountColor
QColor noAmountColor
Definition
LfoGraph.h:45
lmms::gui::LfoGraph::paintEvent
void paintEvent(QPaintEvent *pe) override
Definition
LfoGraph.cpp:62
lmms::gui::LfoGraph::mousePressEvent
void mousePressEvent(QMouseEvent *me) override
Definition
LfoGraph.cpp:54
lmms::gui::LfoGraph::drawInfoText
void drawInfoText(const EnvelopeAndLfoParameters &)
Definition
LfoGraph.cpp:157
lmms::gui::LfoGraph::m_lfoGraph
QPixmap m_lfoGraph
Definition
LfoGraph.h:60
lmms::gui::LfoGraph::toggleAmountModel
void toggleAmountModel()
Definition
LfoGraph.cpp:186
lmms::gui::ModelView::ModelView
ModelView(Model *model, QWidget *widget)
Definition
ModelView.cpp:33
embed.h
lmms::embed
Definition
embed.cpp:36
lmms::gui
Definition
AudioPortAudio.cpp:209
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0