LMMS
Loading...
Searching...
No Matches
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
30namespace lmms::gui
31{
32
33
34class TrackView;
35
36
38{
39 Q_OBJECT
40public:
41 MixerChannelLcdSpinBox(int numDigits, QWidget * parent, const QString& name, TrackView * tv = nullptr) :
43 {}
44 ~MixerChannelLcdSpinBox() override = default;
45
46 void setTrackView(TrackView * tv);
47
48protected:
49 void mouseDoubleClickEvent(QMouseEvent* event) override;
50 void contextMenuEvent(QContextMenuEvent* event) override;
51
52private:
53 void enterValue();
54
56};
57
58
59} // namespace lmms::gui
60
61#endif // LMMS_GUI_MIXER_CHANNEL_LCD_SPIN_BOX_H
LcdSpinBox(int numDigits, QWidget *parent, const QString &name=QString())
Definition LcdSpinBox.cpp:39
int numDigits
Definition LcdWidget.h:60
void contextMenuEvent(QContextMenuEvent *event) override
Definition MixerChannelLcdSpinBox.cpp:61
TrackView * m_tv
Definition MixerChannelLcdSpinBox.h:55
void enterValue()
Definition MixerChannelLcdSpinBox.cpp:82
void mouseDoubleClickEvent(QMouseEvent *event) override
Definition MixerChannelLcdSpinBox.cpp:44
~MixerChannelLcdSpinBox() override=default
void setTrackView(TrackView *tv)
Definition MixerChannelLcdSpinBox.cpp:39
MixerChannelLcdSpinBox(int numDigits, QWidget *parent, const QString &name, TrackView *tv=nullptr)
Definition MixerChannelLcdSpinBox.h:41
Definition TrackView.h:60
static const char * name
Definition pugl.h:1582
static uintptr_t parent
Definition pugl.h:1644
Definition AudioPortAudio.cpp:223