Debian Codegraph @

src/configureview.h

raw symbols SCIP
1 /*
2 * midisnoop - MIDI monitor and prober
3 * Copyright (C) 2012 Devin Anderson
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 675 Mass
17 * Ave, Cambridge, MA 02139, USA.
18 */
19
20 #ifndef __CONFIGUREVIEW_H__
21 #define __CONFIGUREVIEW_H__
22
23 #include <QtWidgets/QCheckBox>
24 #include <QtWidgets/QComboBox>
25 #include <QtWidgets/QPushButton>
26
27 #include "designerview.h"
28
29 class ConfigureView: public DesignerView {
30
31 Q_OBJECT
32
33 public:
34
35 explicit
36 ConfigureView(QObject *parent=0);
37
38 ~ConfigureView();
39
40 public slots:
41
42 void
43 addDriver(int index, const QString &name);
44
45 void
46 addInputPort(int index, const QString &name);
47
48 void
49 addOutputPort(int index, const QString &name);
50
51 void
52 removeInputPort(int index);
53
54 void
55 removeOutputPort(int index);
56
57 void
58 setDriver(int index);
59
60 void
61 setIgnoreActiveSensingEvents(bool ignore);
62
63 void
64 setIgnoreSystemExclusiveEvents(bool ignore);
65
66 void
67 setIgnoreTimeEvents(bool ignore);
68
69 void
70 setInputPort(int index);
71
72 void
73 setOutputPort(int index);
74
75 signals:
76
77 void
78 driverChangeRequest(int index);
79
80 void
81 ignoreActiveSensingEventsChangeRequest(bool ignore);
82
83 void
84 ignoreSystemExclusiveEventsChangeRequest(bool ignore);
85
86 void
87 ignoreTimeEventsChangeRequest(bool ignore);
88
89 void
90 inputPortChangeRequest(int index);
91
92 void
93 outputPortChangeRequest(int index);
94
95 private slots:
96
97 void
98 handleDriverActivation(int index);
99
100 void
101 handleInputPortActivation(int index);
102
103 void
104 handleOutputPortActivation(int index);
105
106 private:
107
108 QPushButton *closeButton;
109 QComboBox *driver;
110 QCheckBox *ignoreActiveSensingEvents;
111 QCheckBox *ignoreSystemExclusiveEvents;
112 QCheckBox *ignoreTimeEvents;
113 QComboBox *inputPort;
114 QComboBox *outputPort;
115
116 };
117
118 #endif