/* * Copyright 2010, Andrea Anzani. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef _PercentageWindow_H_ #define _PercentageWindow_H_ #include #include #include #include #include class ReflowingTextView; class BStringView; class PercentageWindow : public BWindow { public: PercentageWindow(const char* title, const char* text, BBitmap* icon = NULL); void Go(BLooper* lop = NULL, int32 msg = 0); void SetPercentage(int perc); int GetPercentage(); bool QuitRequested(); private: BLooper* fLooper; int32 fMsg; float kTextIconOffset; BStringView* perc; BStatusBar* pw; }; #endif