/* 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(QPainter &painter, gGraph &w, const QRegion &region);
    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