summaryrefslogtreecommitdiff
path: root/muse_qt4_evolution/muse/trackinfo.h
blob: bea98d70b0de284aa7146a9f6958fb4d1021cc27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
//=============================================================================
//  MusE
//  Linux Music Editor
//  $Id:$
//
//  Copyright (C) 2002-2006 by Werner Schweer and others
//
//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License version 2.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//=============================================================================

#ifndef __TRACKINFO_H__
#define __TRACKINFO_H__

#include "ui_miditrackinfo.h"
#include "ui_midiportinfo.h"

class Track;
class MidiTrack;
class AudioOutput;
class AudioInput;
class AudioGroup;
class AudioAux;
class SynthI;
class MidiInPort;
class MidiOutPort;
class MidiChannel;
class WaveTrack;
class TLLineEdit;

//---------------------------------------------------------
//   TrackInfo
//---------------------------------------------------------

class TrackInfo : public QWidget {
      Q_OBJECT

      QLabel* label;
      TLLineEdit* name;

   protected:
      QGridLayout* grid;
      QPointer<Track> track;

   private slots:
      void nameChanged(QString s);
      void songChanged(int);

   public:
      TrackInfo();
      virtual void init(Track*);
      };

//---------------------------------------------------------
//   MidiTrackInfo
//---------------------------------------------------------

class MidiTrackInfo : public TrackInfo {
      Q_OBJECT

      Ui::MidiTrackInfoBase mt;
      Ui::MidiPortInfoBase mp;
      QComboBox* port;
      QComboBox* channel;
      QMenu* pop;

   private slots:
      void transpositionChanged(int val);
      void velocityChanged(int val);
      void delayChanged(int val);
      void lenChanged(int val);
      void iKomprChanged(int val);
      void patchClicked();
      void instrumentSelected(int);
      void instrumentChanged();
      void autoChanged(Track*,bool);
      void controllerChanged(int);
      void portSelected(int);
      void deviceIdChanged(int);

   public:
      MidiTrackInfo();
      virtual void init(Track*);
      };

//---------------------------------------------------------
//   AudioOutputInfo
//---------------------------------------------------------

class AudioOutputInfo : public TrackInfo {
      Q_OBJECT

   public:
      AudioOutputInfo();
      };

//---------------------------------------------------------
//   AudioInputInfo
//---------------------------------------------------------

class AudioInputInfo : public TrackInfo {
      Q_OBJECT

   public:
      AudioInputInfo();
      };

//---------------------------------------------------------
//   AudioGroupInfo
//---------------------------------------------------------

class AudioGroupInfo : public TrackInfo {
      Q_OBJECT

   public:
      AudioGroupInfo();
      };

//---------------------------------------------------------
//   AudioAuxInfo
//---------------------------------------------------------

class AudioAuxInfo : public TrackInfo {
      Q_OBJECT

   public:
      AudioAuxInfo();
      };

//---------------------------------------------------------
//   WaveTrackInfo
//---------------------------------------------------------

class WaveTrackInfo : public TrackInfo {
      Q_OBJECT

   public:
      WaveTrackInfo();
      };

//---------------------------------------------------------
//   SynthIInfo
//---------------------------------------------------------

class SynthIInfo : public TrackInfo {
      Q_OBJECT

   public:
      SynthIInfo();
      };

//---------------------------------------------------------
//   MidiSynthIInfo
//---------------------------------------------------------

class MidiSynthIInfo : public TrackInfo {
      Q_OBJECT

   public:
      MidiSynthIInfo();
      };

//---------------------------------------------------------
//   MidiOutPortInfo
//---------------------------------------------------------

class MidiOutPortInfo : public TrackInfo {
      Q_OBJECT

      Ui::MidiPortInfoBase mp;

   private slots:
      void instrumentSelected(int);
      void instrumentChanged();
      void deviceIdChanged(int);

   public:
      MidiOutPortInfo();
      virtual void init(Track*);
      };

//---------------------------------------------------------
//   MidiInPortInfo
//---------------------------------------------------------

class MidiInPortInfo : public TrackInfo {
      Q_OBJECT

   public:
      MidiInPortInfo();
      };

#endif