2 * Copyright 2003-2010 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Fernando Francisco de Oliveira
9 #ifndef SHOW_IMAGE_STATUS_VIEW_H
10 #define SHOW_IMAGE_STATUS_VIEW_H
27 class ShowImageStatusView
: public BView
{
29 ShowImageStatusView(BScrollView
* scrollView
);
31 virtual void AttachedToWindow();
32 virtual void GetPreferredSize(float* _width
, float* _height
);
33 virtual void ResizeToPreferred();
34 virtual void Draw(BRect updateRect
);
35 virtual void MouseDown(BPoint where
);
37 void Update(const entry_ref
& ref
,
38 const BString
& text
, const BString
& pages
,
39 const BString
& imageType
, float zoom
);
40 void SetZoom(float zoom
);
42 void _SetFrameText(const BString
& text
);
43 void _SetZoomText(float zoom
);
44 void _SetPagesText(const BString
& pages
);
45 void _SetImageTypeText(const BString
& imageType
);
46 void _ValidatePreferredSize();
47 BScrollView
* fScrollView
;
49 BString fCellText
[kStatusCellCount
];
50 float fCellWidth
[kStatusCellCount
];
55 #endif // SHOW_IMAGE_STATUS_VIEW_H