lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
ControllerView.h
Go to the documentation of this file.
1
/*
2
* ControllerView.h - view-component for an control
3
*
4
* Copyright (c) 2008 Paul Giblock <drfaygo/at/gmail.com>
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_CONTROLLER_VIEW_H
26
#define LMMS_GUI_CONTROLLER_VIEW_H
27
28
#include <QFrame>
29
30
#include "
AutomatableModel.h
"
31
#include "
Controller.h
"
32
#include "
ModelView.h
"
33
34
class
QGroupBox;
35
class
QLabel;
36
class
QPushButton;
37
class
QMdiSubWindow;
38
39
namespace
lmms::gui
40
{
41
42
43
class
LedCheckBox
;
44
45
46
class
ControllerView
:
public
QFrame,
public
ModelView
47
{
48
Q_OBJECT
49
public
:
50
ControllerView
(
Controller
* _controller, QWidget * _parent );
51
~ControllerView
()
override
;
52
53
inline
Controller
*
getController
()
54
{
55
return
(
castModel<Controller>
() );
56
}
57
58
inline
const
Controller
*
getController
()
const
59
{
60
return
(
castModel<Controller>
() );
61
}
62
63
64
public
slots:
65
void
editControls
();
66
void
removeController
();
67
void
renameController
();
68
void
moveUp
();
69
void
moveDown
();
70
71
signals:
72
void
movedUp
(
ControllerView
* view);
73
void
movedDown
(
ControllerView
* view);
74
void
removedController
(
ControllerView
* view);
75
76
77
protected
:
78
void
contextMenuEvent
( QContextMenuEvent * _me )
override
;
79
void
modelChanged
()
override
;
80
void
mouseDoubleClickEvent
( QMouseEvent * event )
override
;
81
82
83
private
:
84
QMdiSubWindow *
m_subWindow
;
85
ControllerDialog
*
m_controllerDlg
;
86
QLabel *
m_nameLabel
;
87
};
88
89
90
}
// namespace lmms::gui
91
92
#endif
// LMMS_GUI_CONTROLLER_VIEW_H
AutomatableModel.h
Controller.h
ModelView.h
lmms::Controller
Definition
Controller.h:51
lmms::gui::ControllerDialog
Definition
ControllerDialog.h:42
lmms::gui::ControllerView::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *_me) override
Definition
ControllerView.cpp:156
lmms::gui::ControllerView::removedController
void removedController(ControllerView *view)
lmms::gui::ControllerView::m_controllerDlg
ControllerDialog * m_controllerDlg
Definition
ControllerView.h:85
lmms::gui::ControllerView::getController
Controller * getController()
Definition
ControllerView.h:53
lmms::gui::ControllerView::removeController
void removeController()
Definition
ControllerView.cpp:121
lmms::gui::ControllerView::editControls
void editControls()
Definition
ControllerView.cpp:101
lmms::gui::ControllerView::modelChanged
void modelChanged() override
Definition
ControllerView.cpp:150
lmms::gui::ControllerView::ControllerView
ControllerView(Controller *_controller, QWidget *_parent)
Definition
ControllerView.cpp:47
lmms::gui::ControllerView::moveDown
void moveDown()
Definition
ControllerView.cpp:119
lmms::gui::ControllerView::movedDown
void movedDown(ControllerView *view)
lmms::gui::ControllerView::movedUp
void movedUp(ControllerView *view)
lmms::gui::ControllerView::getController
const Controller * getController() const
Definition
ControllerView.h:58
lmms::gui::ControllerView::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *event) override
Definition
ControllerView.cpp:143
lmms::gui::ControllerView::renameController
void renameController()
Definition
ControllerView.cpp:123
lmms::gui::ControllerView::m_nameLabel
QLabel * m_nameLabel
Definition
ControllerView.h:86
lmms::gui::ControllerView::moveUp
void moveUp()
Definition
ControllerView.cpp:117
lmms::gui::ControllerView::m_subWindow
QMdiSubWindow * m_subWindow
Definition
ControllerView.h:84
lmms::gui::LedCheckBox
Definition
LedCheckBox.h:37
lmms::gui::ModelView::ModelView
ModelView(Model *model, QWidget *widget)
Definition
ModelView.cpp:33
lmms::gui::ModelView::castModel
T * castModel()
Definition
ModelView.h:54
lmms::gui
Definition
AudioPortAudio.cpp:209
Generated on
for lmms by
1.18.0