lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
AutomatableSlider.h
Go to the documentation of this file.
1
/*
2
* AutomatableSlider.h - class AutomatableSlider, a QSlider with automation
3
*
4
* Copyright (c) 2006-2008 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
5
*
6
* This file is part of LMMS - https://lmms.io
7
*
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public
19
* License along with this program (see COPYING); if not, write to the
20
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
* Boston, MA 02110-1301 USA.
22
*
23
*/
24
25
#ifndef LMMS_GUI_AUTOMATABLE_SLIDER_H
26
#define LMMS_GUI_AUTOMATABLE_SLIDER_H
27
28
#include <QSlider>
29
30
#include "
AutomatableModelView.h
"
31
32
33
namespace
lmms::gui
34
{
35
36
class
AutomatableSlider
:
public
QSlider,
public
IntModelView
37
{
38
Q_OBJECT
39
public
:
40
AutomatableSlider
( QWidget * _parent,
const
QString & _name = QString() );
41
~AutomatableSlider
()
override
=
default
;
42
43
bool
showStatus
()
44
{
45
return
(
m_showStatus
);
46
}
47
48
49
signals:
50
void
logicValueChanged
(
int
_value );
51
void
logicSliderMoved
(
int
_value );
52
53
54
protected
:
55
void
contextMenuEvent
( QContextMenuEvent * _me )
override
;
56
void
mousePressEvent
( QMouseEvent * _me )
override
;
57
void
mouseReleaseEvent
( QMouseEvent * _me )
override
;
58
void
wheelEvent
( QWheelEvent * _me )
override
;
59
void
mouseDoubleClickEvent
(QMouseEvent*)
override
;
60
61
void
modelChanged
()
override
;
62
63
64
private
:
65
bool
m_showStatus
;
66
void
enterValue
();
67
68
69
private
slots:
70
void
changeValue
(
int
_value );
71
void
moveSlider
(
int
_value );
72
void
updateSlider
();
73
74
} ;
75
76
77
using
sliderModel
=
IntModel
;
78
79
}
// namespace lmms::gui
80
81
#endif
// LMMS_GUI_AUTOMATABLE_SLIDER_H
AutomatableModelView.h
lmms::IntModel
Definition
AutomatableModel.h:486
lmms::gui::AutomatableSlider::changeValue
void changeValue(int _value)
Definition
AutomatableSlider.cpp:145
lmms::gui::AutomatableSlider::wheelEvent
void wheelEvent(QWheelEvent *_me) override
Definition
AutomatableSlider.cpp:107
lmms::gui::AutomatableSlider::updateSlider
void updateSlider()
Definition
AutomatableSlider.cpp:163
lmms::gui::AutomatableSlider::logicSliderMoved
void logicSliderMoved(int _value)
lmms::gui::AutomatableSlider::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *_me) override
Definition
AutomatableSlider.cpp:58
lmms::gui::AutomatableSlider::showStatus
bool showStatus()
Definition
AutomatableSlider.h:43
lmms::gui::AutomatableSlider::m_showStatus
bool m_showStatus
Definition
AutomatableSlider.h:65
lmms::gui::AutomatableSlider::AutomatableSlider
AutomatableSlider(QWidget *_parent, const QString &_name=QString())
Definition
AutomatableSlider.cpp:38
lmms::gui::AutomatableSlider::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *_me) override
Definition
AutomatableSlider.cpp:92
lmms::gui::AutomatableSlider::modelChanged
void modelChanged() override
Definition
AutomatableSlider.cpp:134
lmms::gui::AutomatableSlider::logicValueChanged
void logicValueChanged(int _value)
lmms::gui::AutomatableSlider::mousePressEvent
void mousePressEvent(QMouseEvent *_me) override
Definition
AutomatableSlider.cpp:68
lmms::gui::AutomatableSlider::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *) override
Definition
AutomatableSlider.cpp:115
lmms::gui::AutomatableSlider::enterValue
void enterValue()
Definition
AutomatableSlider.cpp:117
lmms::gui::AutomatableSlider::~AutomatableSlider
~AutomatableSlider() override=default
lmms::gui::AutomatableSlider::moveSlider
void moveSlider(int _value)
Definition
AutomatableSlider.cpp:154
lmms::gui
Definition
AudioPortAudio.cpp:209
lmms::gui::IntModelView
TypedModelView< IntModel > IntModelView
Definition
AutomatableModelView.h:132
lmms::gui::sliderModel
IntModel sliderModel
Definition
AutomatableSlider.h:77
Generated on
for lmms by
1.18.0