4 * Copyright 2013, Haiku, Inc. All rights reserved.
5 * Distributed under the terms of the MIT License.
7 * Revisions by Pete Goodeve
9 * Copyright 1999, Be Incorporated. All Rights Reserved.
10 * This file may be used under the terms of the Be Sample Code License.
17 extern const float ROW_LEFT
;
18 extern const float ROW_TOP
;
19 extern const float ROW_HEIGHT
;
20 extern const float COLUMN_WIDTH
;
21 extern const float METER_PADDING
;
22 extern const uint32 MSG_CONNECT_REQUEST
;
26 class PatchRow
: public BView
29 PatchRow(int32 producerID
);
34 void AttachedToWindow();
35 void MessageReceived(BMessage
* msg
);
37 void Draw(BRect updateRect
);
39 void AddColumn(int32 consumerID
);
40 void RemoveColumn(int32 consumerID
);
41 void Connect(int32 consumerID
);
42 void Disconnect(int32 consumerID
);
46 MidiEventMeter
* fEventMeter
;
49 #endif /* PATCHROW_H */