LMMS
Loading...
Searching...
No Matches
SampleTrackView.h
Go to the documentation of this file.
1/*
2 * SampleTrackView.h
3 *
4 * Copyright (c) 2005-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_SAMPLE_TRACK_VIEW_H
26#define LMMS_GUI_SAMPLE_TRACK_VIEW_H
27
28
29#include "SampleTrack.h"
30#include "TrackView.h"
31
32namespace lmms
33{
34
35namespace gui
36{
37
38class Knob;
42
43
45{
46 Q_OBJECT
47public:
49 ~SampleTrackView() override;
50
55
57 {
59 }
60
61 const SampleTrack * model() const
62 {
64 }
65
66
67 QMenu * createMixerMenu( QString title, QString newMixerLabel ) override;
68
69
70public slots:
71 void showEffects();
72 void updateIndicator();
73
74
75protected:
76 void modelChanged() override;
77 QString nodeName() const override
78 {
79 return "SampleTrackView";
80 }
81
82 void dragEnterEvent(QDragEnterEvent *dee) override;
83 void dropEvent(QDropEvent *de) override;
84
85private slots:
86 void assignMixerLine( int channelIndex );
87 void createMixerLine();
88
89
90private:
96
98
100 {
101 return m_activityIndicator;
102 }
103
104 friend class SampleTrackWindow;
105} ;
106
107
108} // namespace gui
109
110} // namespace lmms
111
112#endif // LMMS_GUI_SAMPLE_TRACK_VIEW_H
Definition SampleTrack.h:45
Base-class for all tracks.
Definition Track.h:68
Definition FadeButton.h:38
Definition Knob.h:47
Definition MixerChannelLcdSpinBox.h:38
T * castModel()
Definition ModelView.h:54
void dragEnterEvent(QDragEnterEvent *dee) override
Definition SampleTrackView.cpp:192
QMenu * createMixerMenu(QString title, QString newMixerLabel) override
Create a menu for assigning/creating channels for this track.
Definition SampleTrackView.cpp:136
void assignMixerLine(int channelIndex)
Assign a specific mixer Channel for this track.
Definition SampleTrackView.cpp:247
void updateIndicator()
Definition SampleTrackView.cpp:114
Knob * m_panningKnob
Definition SampleTrackView.h:94
QString nodeName() const override
Definition SampleTrackView.h:77
SampleTrackView(SampleTrack *Track, TrackContainerView *tcv)
Definition SampleTrackView.cpp:55
void modelChanged() override
Definition SampleTrackView.cpp:180
friend class SampleTrackWindow
Definition SampleTrackView.h:104
void dropEvent(QDropEvent *de) override
Definition SampleTrackView.cpp:200
void createMixerLine()
Create and assign a new mixer Channel for this track.
Definition SampleTrackView.cpp:232
MixerChannelLcdSpinBox * m_mixerChannelNumber
Definition SampleTrackView.h:92
const SampleTrack * model() const
Definition SampleTrackView.h:61
SampleTrackWindow * m_window
Definition SampleTrackView.h:91
void showEffects()
Definition SampleTrackView.cpp:173
SampleTrack * model()
Definition SampleTrackView.h:56
FadeButton * getActivityIndicator() override
Definition SampleTrackView.h:99
TrackLabelButton * m_tlb
Definition SampleTrackView.h:97
FadeButton * m_activityIndicator
Definition SampleTrackView.h:95
~SampleTrackView() override
Definition SampleTrackView.cpp:123
SampleTrackWindow * getSampleTrackWindow()
Definition SampleTrackView.h:51
Knob * m_volumeKnob
Definition SampleTrackView.h:93
Definition SampleTrackWindow.h:47
Definition TrackContainerView.h:71
Definition TrackLabelButton.h:41
friend class TrackLabelButton
Definition TrackView.h:168
TrackView(Track *_track, TrackContainerView *tcv)
Create a new track View.
Definition TrackView.cpp:61
static const char * title
Definition pugl.h:1747
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35