LMMS
Loading...
Searching...
No Matches
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
32namespace lmms
33{
34
35class FloatModel;
36
37namespace gui
38{
39
41class MixerView;
42
43class SendButtonIndicator : public QLabel
44{
45public:
47
48 void mousePressEvent(QMouseEvent* e) override;
49 void updateLightStatus();
50
51private:
52
55 QPixmap m_qpmOff = embed::getIconPixmap("mixer_send_off", 29, 20);
56 QPixmap m_qpmOn = embed::getIconPixmap("mixer_send_on", 29, 20);
57
59};
60
61
62} // namespace gui
63
64} // namespace lmms
65
66#endif // LMMS_GUI_SEND_BUTTON_INDICATOR_H
Definition AutomatableModel.h:463
Definition MixerChannelView.h:51
Definition MixerView.h:52
MixerChannelView * m_parent
Definition SendButtonIndicator.h:53
void mousePressEvent(QMouseEvent *e) override
Definition SendButtonIndicator.cpp:22
void updateLightStatus()
Definition SendButtonIndicator.cpp:49
QPixmap m_qpmOff
Definition SendButtonIndicator.h:55
QPixmap m_qpmOn
Definition SendButtonIndicator.h:56
SendButtonIndicator(QWidget *parent, MixerChannelView *owner, MixerView *mv)
Definition SendButtonIndicator.cpp:11
FloatModel * getSendModel()
Definition SendButtonIndicator.cpp:43
MixerView * m_mv
Definition SendButtonIndicator.h:54
* e
Definition inflate.c:1404
static uintptr_t parent
Definition pugl.h:1644
auto getIconPixmap(std::string_view name, int width, int height, const char *const *xpm) -> QPixmap
Definition embed.cpp:107
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35