OSCAR-code/sleepyhead/Graphs/gStatsLine.h
Sean Stangl 9dbe702a40 Standardize project modelines and include license and copyright.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-10 13:29:53 +10:00

37 lines
1016 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
*
* gStatsLine
*
* Copyright (c) 2011-2014 Mark Watkins <jedimark@users.sourceforge.net>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of the Linux
* distribution for more details. */
#ifndef GSTATSLINE_H
#define GSTATSLINE_H
#include "SleepLib/machine.h"
#include "gGraphView.h"
/*! \class gStatsLine
\brief Show a rendered stats area in place of a graph. This is currently unused
*/
class gStatsLine : public Layer
{
public:
gStatsLine(ChannelID code,QString label="",QColor textcolor=Qt::black);
virtual void paint(gGraph & w, int left, int top, int width, int height);
void SetDay(Day *d);
protected:
QString m_label;
QColor m_textcolor;
EventDataType m_min,m_max,m_avg,m_p90;
QString st_min,st_max,st_avg,st_p90;
float m_tx,m_ty;
};
#endif // GSTATSLINE_H