blob: 0f1cea7282c3f46bd7f93869d4718a9f73892655 (
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
|
/*
Rosegarden
A MIDI and audio sequencer and musical notation editor.
This program is Copyright 2000-2008
Guillaume Laurent <glaurent@telegraph-road.org>,
Chris Cannam <cannam@all-day-breakfast.com>,
Richard Bown <richard.bown@ferventsoftware.com>
The moral rights of Guillaume Laurent, Chris Cannam, and Richard
Bown to claim authorship of this work have been asserted.
This file is Copyright 2006
Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
D. Michael McIntyre <dmmcintyr@users.sourceforge.net>
Other copyrights also apply to some parts of this work. Please
see the AUTHORS file and individual file headers for details.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version. See the file
COPYING included with this distribution for more information.
*/
#ifndef _RG_TRACKPARAMETERBOX_H_
#define _RG_TRACKPARAMETERBOX_H_
#include "base/MidiProgram.h"
#include "base/Track.h"
#include "gui/widgets/ColourTable.h"
#include <map>
#include "RosegardenParameterArea.h"
#include "RosegardenParameterBox.h"
#include <tqstring.h>
#include <tqcheckbox.h> // #include <TQCheckBox> in QT4, thinking ahead
#include <vector>
class TQWidget;
class TQPushButton;
class TQLabel;
class TQFrame;
class KComboBox;
class TQCheckBox;
namespace Rosegarden
{
class RosegardenGUIDoc;
class TrackParameterBox : public RosegardenParameterBox
{
TQ_OBJECT
public:
TrackParameterBox( RosegardenGUIDoc *doc,
TQWidget *parent=0);
~TrackParameterBox();
void setDocument( RosegardenGUIDoc *doc );
void populateDeviceLists();
virtual void showAdditionalControls(bool showThem);
virtual TQString getPreviousBox(RosegardenParameterArea::Arrangement) const;
public slots:
void slotSelectedTrackChanged();
void slotSelectedTrackNameChanged();
void slotPlaybackDeviceChanged(int index);
void slotInstrumentChanged(int index);
void slotRecordingDeviceChanged(int index);
void slotRecordingChannelChanged(int index);
void slotUpdateControls(int);
void slotInstrumentLabelChanged(InstrumentId id, TQString label);
void slotClefChanged(int clef);
void slotTransposeChanged(int transpose);
void slotTransposeIndexChanged(int index);
void slotTransposeTextChanged(TQString text);
void slotDocColoursChanged();
void slotColorChanged(int index);
void slotHighestPressed();
void slotLowestPressed();
void slotPresetPressed();
void slotStaffSizeChanged(int index);
void slotStaffBracketChanged(int index);
signals:
void instrumentSelected(TrackId, int);
protected:
void populatePlaybackDeviceList();
void populateRecordingDeviceList();
void updateHighLow();
private:
RosegardenGUIDoc *m_doc;
KComboBox *m_playDevice;
KComboBox *m_instrument;
KComboBox *m_recDevice;
KComboBox *m_recChannel;
TQPushButton *m_presetButton;
TQPushButton *m_highButton;
TQPushButton *m_lowButton;
KComboBox *m_defClef;
KComboBox *m_defColor;
KComboBox *m_defTranspose;
KComboBox *m_staffSizeCombo;
KComboBox *m_staffBracketCombo;
int m_addColourPos;
int m_highestPlayable;
int m_lowestPlayable;
ColourTable::ColourList m_colourList;
TQLabel *m_trackLabel;
typedef std::vector<DeviceId> IdsVector;
IdsVector m_playDeviceIds;
IdsVector m_recDeviceIds;
std::map<DeviceId, IdsVector> m_instrumentIds;
std::map<DeviceId, TQStringList> m_instrumentNames;
int m_selectedTrackId;
char m_lastInstrumentType;
// Additional elements that may be hidden in vertical stacked mode
//TQFrame *m_separator2;
TQFrame *m_playbackGroup;
TQFrame *m_recordGroup;
TQFrame *m_defaultsGroup;
TQFrame *m_staffGroup;
TQLabel *m_segHeader;
TQLabel *m_presetLbl;
TQLabel *m_staffGrpLbl;
TQLabel *m_grandStaffLbl;
TQLabel *m_clefLbl;
TQLabel *m_transpLbl;
TQLabel *m_colorLbl;
TQLabel *m_rangeLbl;
TQLabel *m_psetLbl;
};
}
#endif
|