LMMS
Loading...
Searching...
No Matches
AutomationClipView.h
Go to the documentation of this file.
1/*
2 * AutomationClipView.h - declaration of class AutomationClipView
3 *
4 * Copyright (c) 2008-2010 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_AUTOMATION_CLIP_VIEW_H
26#define LMMS_GUI_AUTOMATION_CLIP_VIEW_H
27
28#include <QStaticText>
29
30#include "ClipView.h"
31
32namespace lmms
33{
34
35class AutomationClip;
36
37namespace gui
38{
39
40
42{
43 Q_OBJECT
44
45
46public:
47 AutomationClipView( AutomationClip * _clip, TrackView * _parent );
48 ~AutomationClipView() override = default;
49
50public slots:
53 void update() override;
54
55
56protected slots:
57 void resetName();
58 void changeName();
59 void disconnectObject( QAction * _a );
60 void toggleRecording();
61 void flipY();
62 void flipX();
63
64protected:
65 void constructContextMenu( QMenu * ) override;
66 void mouseDoubleClickEvent(QMouseEvent * me ) override;
67 void paintEvent( QPaintEvent * pe ) override;
68 void dragEnterEvent( QDragEnterEvent * _dee ) override;
69 void dropEvent( QDropEvent * _de ) override;
70
71
72private:
75
76 QStaticText m_staticTextName;
77 void scaleTimemapToFit( float oldMin, float oldMax );
78
79 bool isResizableBeforeStart() override { return false; }
80} ;
81
82
83} // namespace gui
84
85} // namespace lmms
86
87#endif // LMMS_GUI_AUTOMATION_CLIP_VIEW_H
Definition AutomationClip.h:52
AutomationClip * m_clip
Definition AutomationClipView.h:73
AutomationClipView(AutomationClip *_clip, TrackView *_parent)
Definition AutomationClipView.cpp:49
void openInAutomationEditor()
Opens this view's clip in the global automation editor.
Definition AutomationClipView.cpp:68
void disconnectObject(QAction *_a)
Definition AutomationClipView.cpp:104
void toggleRecording()
Definition AutomationClipView.cpp:134
void flipY()
Definition AutomationClipView.cpp:143
void paintEvent(QPaintEvent *pe) override
Definition AutomationClipView.cpp:226
void mouseDoubleClickEvent(QMouseEvent *me) override
Definition AutomationClipView.cpp:211
QStaticText m_staticTextName
Definition AutomationClipView.h:76
QPixmap m_paintPixmap
Definition AutomationClipView.h:74
void changeName()
Definition AutomationClipView.cpp:92
void scaleTimemapToFit(float oldMin, float oldMax)
Preserves the auto points over different scale.
Definition AutomationClipView.cpp:464
void constructContextMenu(QMenu *) override
Definition AutomationClipView.cpp:161
void update() override
Definition AutomationClipView.cpp:75
void resetName()
Definition AutomationClipView.cpp:84
~AutomationClipView() override=default
void dragEnterEvent(QDragEnterEvent *_dee) override
Definition AutomationClipView.cpp:413
void flipX()
Definition AutomationClipView.cpp:152
bool isResizableBeforeStart() override
Returns whether the user can left-resize this clip so that the start of the clip bounds is before the...
Definition AutomationClipView.h:79
void dropEvent(QDropEvent *_de) override
Definition AutomationClipView.cpp:425
ClipView(Clip *clip, TrackView *tv)
Create a new ClipView.
Definition ClipView.cpp:80
Definition TrackView.h:60
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35