OSCAR-code/Graphs/gFooBar.h
2011-08-25 19:00:19 +10:00

36 lines
848 B
C++

/*
gFooBar Header
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
License: GPL
*/
#ifndef GFOOBAR_H
#define GFOOBAR_H
#include "gGraphView.h"
class gShadowArea:public Layer
{
public:
gShadowArea(QColor shadow_color=QColor(40,40,40,40));
virtual ~gShadowArea();
virtual void paint(gGraph & w,int left, int top, int width, int height);
protected:
QColor m_shadow_color;
};
class gFooBar:public Layer
{
public:
gFooBar(int offset=10,QColor handle_color=QColor("orange"),QColor line_color=QColor("dark grey"));
virtual ~gFooBar();
virtual void paint(gGraph & w,int left, int top, int width, int height);
static const int Margin=15;
protected:
int m_offset;
QColor m_handle_color;
QColor m_line_color;
};
#endif // GFOOBAR_H