lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
MixerChannelLcdSpinBox.h
Go to the documentation of this file.
1
/*
2
* MixerChannelLcdSpinBox.h - a specialization of LcdSpnBox for setting mixer channels
3
*
4
* Copyright (c) 2004-2014 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_MIXER_CHANNEL_LCD_SPIN_BOX_H
26
#define LMMS_GUI_MIXER_CHANNEL_LCD_SPIN_BOX_H
27
28
#include "
LcdSpinBox.h
"
29
30
namespace
lmms::gui
31
{
32
33
34
class
TrackView
;
35
36
37
class
MixerChannelLcdSpinBox
:
public
LcdSpinBox
38
{
39
Q_OBJECT
40
public
:
41
MixerChannelLcdSpinBox
(
int
numDigits
, QWidget * parent,
const
QString& name,
TrackView
* tv =
nullptr
) :
42
LcdSpinBox
(
numDigits
, parent, name),
m_tv
(tv)
43
{}
44
~MixerChannelLcdSpinBox
()
override
=
default
;
45
46
void
setTrackView
(
TrackView
* tv);
47
48
protected
:
49
void
mouseDoubleClickEvent
(QMouseEvent* event)
override
;
50
void
contextMenuEvent
(QContextMenuEvent* event)
override
;
51
52
private
:
53
void
enterValue
();
54
55
TrackView
*
m_tv
;
56
};
57
58
59
}
// namespace lmms::gui
60
61
#endif
// LMMS_GUI_MIXER_CHANNEL_LCD_SPIN_BOX_H
LcdSpinBox.h
lmms::gui::LcdSpinBox::LcdSpinBox
LcdSpinBox(int numDigits, QWidget *parent, const QString &name=QString())
Definition
LcdSpinBox.cpp:39
lmms::gui::LcdWidget::numDigits
int numDigits
Definition
LcdWidget.h:60
lmms::gui::MixerChannelLcdSpinBox::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *event) override
Definition
MixerChannelLcdSpinBox.cpp:61
lmms::gui::MixerChannelLcdSpinBox::m_tv
TrackView * m_tv
Definition
MixerChannelLcdSpinBox.h:55
lmms::gui::MixerChannelLcdSpinBox::enterValue
void enterValue()
Definition
MixerChannelLcdSpinBox.cpp:82
lmms::gui::MixerChannelLcdSpinBox::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *event) override
Definition
MixerChannelLcdSpinBox.cpp:44
lmms::gui::MixerChannelLcdSpinBox::~MixerChannelLcdSpinBox
~MixerChannelLcdSpinBox() override=default
lmms::gui::MixerChannelLcdSpinBox::setTrackView
void setTrackView(TrackView *tv)
Definition
MixerChannelLcdSpinBox.cpp:39
lmms::gui::MixerChannelLcdSpinBox::MixerChannelLcdSpinBox
MixerChannelLcdSpinBox(int numDigits, QWidget *parent, const QString &name, TrackView *tv=nullptr)
Definition
MixerChannelLcdSpinBox.h:41
lmms::gui::TrackView
Definition
TrackView.h:60
lmms::gui
Definition
AudioPortAudio.cpp:209
Generated on
for lmms by
1.18.0