LMMS
Loading...
Searching...
No Matches
ControllerConnectionDialog.h
Go to the documentation of this file.
1/*
2 * ControllerConnectionDialog.h - dialog allowing the user to create and
3 * modify links between controllers and models
4 *
5 * Copyright (c) 2008 Paul Giblock <drfaygo/at/gmail.com>
6 *
7 * This file is part of LMMS - https://lmms.io
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this program (see COPYING); if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301 USA.
23 *
24 */
25
26#ifndef LMMS_GUI_CONTROLLER_CONNECTION_DIALOG_H
27#define LMMS_GUI_CONTROLLER_CONNECTION_DIALOG_H
28
29#include <QDialog>
30#include <QSortFilterProxyModel>
31#include <QStandardItemModel>
32
33#include "Controller.h"
34#include "AutomatableModel.h"
35
36
37class QLineEdit;
38class QListView;
39class QScrollArea;
40
41namespace lmms
42{
43
45
46namespace gui
47{
48
49class ComboBox;
50class GroupBox;
51class TabWidget;
52class LcdSpinBox;
53class LedCheckBox;
54class MidiPortMenu;
55
56
57class ControllerConnectionDialog : public QDialog
58{
59 Q_OBJECT
60public:
61 ControllerConnectionDialog( QWidget * _parent,
62 const AutomatableModel * _target_model );
64
66 {
67 return m_controller;
68 }
69
70public slots:
71// void setSelection( const effectKey & _selection );
72 void selectController();
73 void midiToggled();
74 void userToggled();
75 void userSelected();
76 void autoDetectToggled();
77 void enableAutoDetect( QAction * _a );
78
79
80protected slots:
81 void midiValueChanged();
82
83
84private:
85 // Midi
92
93 // User
96
97 // Mapping
99 QLineEdit * m_mappingFunction;
100
103
104 // Temporary midiController
106} ;
107
108
109} // namespace gui
110
111} // namespace lmms
112
113#endif // LMMS_GUI_CONTROLLER_CONNECTION_DIALOG_H
Definition ControllerConnectionDialog.cpp:52
Definition AutomatableModel.h:77
Definition AutomatableModel.h:497
Definition Controller.h:51
Definition ComboBox.h:38
GroupBox * m_userGroupBox
Definition ControllerConnectionDialog.h:94
MidiPortMenu * m_readablePorts
Definition ControllerConnectionDialog.h:90
LcdSpinBox * m_midiControllerSpinBox
Definition ControllerConnectionDialog.h:88
QLineEdit * m_mappingFunction
Definition ControllerConnectionDialog.h:99
LedCheckBox * m_midiAutoDetectCheckBox
Definition ControllerConnectionDialog.h:89
void userToggled()
Definition ControllerConnectionDialog.cpp:386
void userSelected()
Definition ControllerConnectionDialog.cpp:398
void enableAutoDetect(QAction *_a)
Definition ControllerConnectionDialog.cpp:432
TabWidget * m_mappingBox
Definition ControllerConnectionDialog.h:98
void midiToggled()
Definition ControllerConnectionDialog.cpp:344
void selectController()
Definition ControllerConnectionDialog.cpp:295
void autoDetectToggled()
Definition ControllerConnectionDialog.cpp:407
LcdSpinBox * m_midiChannelSpinBox
Definition ControllerConnectionDialog.h:87
GroupBox * m_midiGroupBox
Definition ControllerConnectionDialog.h:86
Controller * m_controller
Definition ControllerConnectionDialog.h:101
void midiValueChanged()
Definition ControllerConnectionDialog.cpp:418
ComboBox * m_userController
Definition ControllerConnectionDialog.h:95
const AutomatableModel * m_targetModel
Definition ControllerConnectionDialog.h:102
BoolModel m_midiAutoDetect
Definition ControllerConnectionDialog.h:91
ControllerConnectionDialog(QWidget *_parent, const AutomatableModel *_target_model)
Definition ControllerConnectionDialog.cpp:128
AutoDetectMidiController * m_midiController
Definition ControllerConnectionDialog.h:105
Controller * chosenController()
Definition ControllerConnectionDialog.h:65
~ControllerConnectionDialog() override
Definition ControllerConnectionDialog.cpp:285
Definition GroupBox.h:40
Definition LcdSpinBox.h:35
Definition LedCheckBox.h:37
Definition MidiPortMenu.h:40
Definition TabWidget.h:38
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35