lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
SendButtonIndicator.h
Go to the documentation of this file.
1
/*
2
* SendButtonIndicator.h
3
*
4
* Copyright (c) 2014-2022 Tobias Doerffel <tobydox/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_SEND_BUTTON_INDICATOR_H
26
#define LMMS_GUI_SEND_BUTTON_INDICATOR_H
27
28
#include <QLabel>
29
#include "
embed.h
"
30
31
32
namespace
lmms
33
{
34
35
class
FloatModel
;
36
37
namespace
gui
38
{
39
40
class
MixerChannelView
;
41
class
MixerView
;
42
43
class
SendButtonIndicator
:
public
QLabel
44
{
45
public
:
46
SendButtonIndicator
(QWidget* parent,
MixerChannelView
* owner,
MixerView
* mv);
47
48
void
mousePressEvent
(QMouseEvent* e)
override
;
49
void
updateLightStatus
();
50
51
private
:
52
53
MixerChannelView
*
m_parent
;
54
MixerView
*
m_mv
;
55
QPixmap
m_qpmOff
=
embed::getIconPixmap
(
"mixer_send_off"
, 29, 20);
56
QPixmap
m_qpmOn
=
embed::getIconPixmap
(
"mixer_send_on"
, 29, 20);
57
58
FloatModel
*
getSendModel
();
59
};
60
61
62
}
// namespace gui
63
64
}
// namespace lmms
65
66
#endif
// LMMS_GUI_SEND_BUTTON_INDICATOR_H
lmms::FloatModel
Definition
AutomatableModel.h:468
lmms::gui::MixerChannelView
Definition
MixerChannelView.h:51
lmms::gui::MixerView
Definition
MixerView.h:52
lmms::gui::SendButtonIndicator::m_parent
MixerChannelView * m_parent
Definition
SendButtonIndicator.h:53
lmms::gui::SendButtonIndicator::mousePressEvent
void mousePressEvent(QMouseEvent *e) override
Definition
SendButtonIndicator.cpp:22
lmms::gui::SendButtonIndicator::updateLightStatus
void updateLightStatus()
Definition
SendButtonIndicator.cpp:49
lmms::gui::SendButtonIndicator::m_qpmOff
QPixmap m_qpmOff
Definition
SendButtonIndicator.h:55
lmms::gui::SendButtonIndicator::m_qpmOn
QPixmap m_qpmOn
Definition
SendButtonIndicator.h:56
lmms::gui::SendButtonIndicator::SendButtonIndicator
SendButtonIndicator(QWidget *parent, MixerChannelView *owner, MixerView *mv)
Definition
SendButtonIndicator.cpp:11
lmms::gui::SendButtonIndicator::getSendModel
FloatModel * getSendModel()
Definition
SendButtonIndicator.cpp:43
lmms::gui::SendButtonIndicator::m_mv
MixerView * m_mv
Definition
SendButtonIndicator.h:54
embed.h
lmms::embed::getIconPixmap
auto getIconPixmap(std::string_view name, int width, int height, const char *const *xpm) -> QPixmap
Return an image for the icon pixmap cache.
Definition
embed.cpp:107
lmms::gui
Definition
AudioPortAudio.cpp:209
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0