Chat-O-Matic/libs/libdownload/PercentageWindow.h

38 lines
700 B
C
Raw Normal View History

2010-07-10 08:37:58 -05:00
/*
* Copyright 2010, Andrea Anzani. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _PercentageWindow_H_
#define _PercentageWindow_H_
#include <Window.h>
#include <Looper.h>
#include <Bitmap.h>
#include <String.h>
#include <StatusBar.h>
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