2011-08-25 09:00:19 +00:00
|
|
|
/*
|
2011-06-26 08:30:44 +00:00
|
|
|
gFooBar Header
|
|
|
|
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
|
|
|
|
License: GPL
|
2011-08-25 09:00:19 +00:00
|
|
|
*/
|
2011-06-26 08:30:44 +00:00
|
|
|
|
|
|
|
#ifndef GFOOBAR_H
|
|
|
|
#define GFOOBAR_H
|
|
|
|
|
2011-08-25 09:00:19 +00:00
|
|
|
#include "gGraphView.h"
|
2011-06-26 08:30:44 +00:00
|
|
|
|
2011-08-25 09:00:19 +00:00
|
|
|
class gShadowArea:public Layer
|
2011-06-26 08:30:44 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-08-25 09:00:19 +00:00
|
|
|
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"));
|
2011-06-26 08:30:44 +00:00
|
|
|
virtual ~gFooBar();
|
2011-08-25 09:00:19 +00:00
|
|
|
virtual void paint(gGraph & w,int left, int top, int width, int height);
|
2011-06-26 08:30:44 +00:00
|
|
|
static const int Margin=15;
|
|
|
|
protected:
|
|
|
|
int m_offset;
|
2011-08-02 04:20:26 +00:00
|
|
|
QColor m_handle_color;
|
2011-08-02 10:28:29 +00:00
|
|
|
QColor m_line_color;
|
2011-06-26 08:30:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GFOOBAR_H
|