1#ifndef _PatchRow_h 2#define _PatchRow_h 3 4#include <View.h> 5 6extern const float ROW_LEFT; 7extern const float ROW_TOP; 8extern const float ROW_HEIGHT; 9extern const float COLUMN_WIDTH; 10extern const float METER_PADDING; 11extern const uint32 MSG_CONNECT_REQUEST; 12 13class MidiEventMeter; 14 15class PatchRow : public BView 16{ 17public: 18 PatchRow(int32 producerID); 19 ~PatchRow(); 20 21 int32 ID() const; 22 23 void AttachedToWindow(); 24 void MessageReceived(BMessage* msg); 25 void Pulse(); 26 void Draw(BRect updateRect); 27 28 void AddColumn(int32 consumerID); 29 void RemoveColumn(int32 consumerID); 30 void Connect(int32 consumerID); 31 void Disconnect(int32 consumerID); 32 33private: 34 int32 m_producerID; 35 MidiEventMeter* m_eventMeter; 36}; 37 38#endif /* _PatchRow_h */ 39