| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_YOUTUBE_VIDEOLIST |
| 14 |
#define H_YOUTUBE_VIDEOLIST |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
using namespace smooth; |
| 20 |
|
| 21 |
using namespace BoCA; |
| 22 |
|
| 23 |
namespace BoCA |
| 24 |
{ |
| 25 |
class VideoList : public List |
| 26 |
{ |
| 27 |
private: |
| 28 |
Scrollbar *scrollbar; |
| 29 |
Int scrollbarPos; |
| 30 |
|
| 31 |
UnsignedInt32 visibleEntriesChecksum; |
| 32 |
|
| 33 |
Int GetEntriesWidth() const; |
| 34 |
public: |
| 35 |
VideoList(const Point &, const Size &); |
| 36 |
virtual ~VideoList(); |
| 37 |
|
| 38 |
virtual Int Paint(Int); |
| 39 |
|
| 40 |
Bool ScrollToEndOfList(); |
| 41 |
accessors: |
| 42 |
Rect GetVisibleArea() const; |
| 43 |
slots: |
| 44 |
Void OnScrollbarValueChange(); |
| 45 |
Void OnChangeSize(const Size &); |
| 46 |
}; |
| 47 |
}; |
| 48 |
|
| 49 |
#endif |