Show popup menu also when right-clicking the load meter. It was a blind spot. Added the virtual keyword to the other two load meter view hooks.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24313 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2008-03-08 20:06:50 +00:00
parent 002b33b720
commit 7bed483ae2
2 changed files with 11 additions and 2 deletions

View File

@ -68,6 +68,14 @@ ProgressBar::AttachedToWindow()
}
void
ProgressBar::MouseDown(BPoint point)
{
point = ConvertToParent(point);
Parent()->MouseDown(point);
}
void
ProgressBar::Set(int32 value)
{

View File

@ -24,10 +24,11 @@ typedef struct {
class ProgressBar : public BView {
public:
ProgressBar(BRect r, char* name);
void Draw(BRect rect);
virtual void Draw(BRect rect);
void Set(int32 value);
void UpdateColors(int32 color, bool fade);
void AttachedToWindow();
virtual void AttachedToWindow();
virtual void MouseDown(BPoint point);
enum {
PROGRESS_WIDTH = 146,