2 * Copyright 2010, Stephan Aßmus <superstippi@gmx.de>.
3 * Distributed under the terms of the MIT License.
5 #ifndef DURATION_VIEW_H
6 #define DURATION_VIEW_H
10 #include <StringView.h>
13 class DurationView
: public BStringView
{
15 DurationView(const char* name
);
17 // BStringView interface
18 virtual void AttachedToWindow();
19 virtual void MouseDown(BPoint where
);
20 virtual void MessageReceived(BMessage
* message
);
21 virtual BSize
MinSize();
22 virtual BSize
MaxSize();
25 void Update(bigtime_t position
, bigtime_t duration
);
35 void SetMode(uint32 mode
);
39 void SetSymbolScale(float scale
);
43 void _UpdateTextColor();
44 void _GenerateString(bigtime_t duration
);
50 bigtime_t fDisplayDuration
;
54 #endif // DURATION_VIEW_H