2013-09-29 03:10:19 -04:00
|
|
|
/****************************************************************
|
|
|
|
* RetroShare is distributed under the following license:
|
|
|
|
*
|
|
|
|
* Copyright (C) 20011, RetroShare Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QPoint>
|
|
|
|
#include <retroshare/rsrtt.h>
|
|
|
|
#include "ui_RttStatistics.h"
|
|
|
|
#include "RsAutoUpdatePage.h"
|
2014-10-13 18:05:50 -04:00
|
|
|
#include <gui/common/RSGraphWidget.h>
|
2013-09-29 03:10:19 -04:00
|
|
|
|
|
|
|
class RttStatisticsWidget ;
|
|
|
|
|
2014-10-13 18:05:50 -04:00
|
|
|
class RttGraphSource: public RSGraphSource
|
|
|
|
{
|
|
|
|
public:
|
2014-10-14 16:25:23 -04:00
|
|
|
RttGraphSource() {}
|
2014-10-13 18:05:50 -04:00
|
|
|
|
2014-10-14 16:25:23 -04:00
|
|
|
virtual void getValues(std::map<std::string,float>& vals) const ;
|
|
|
|
virtual QString unitName() const ;
|
2014-10-16 15:17:17 -04:00
|
|
|
virtual QString displayName(int i) const ;
|
2014-10-13 18:05:50 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
class RttStatisticsGraph: public RSGraphWidget
|
|
|
|
{
|
2014-10-14 16:25:23 -04:00
|
|
|
public:
|
|
|
|
RttStatisticsGraph(QWidget *parent);
|
2014-10-13 18:05:50 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
class RttStatistics: public MainPage, public Ui::RttStatistics
|
2013-09-29 03:10:19 -04:00
|
|
|
{
|
2014-10-14 16:36:22 -04:00
|
|
|
public:
|
|
|
|
RttStatistics(QWidget *parent = NULL) ;
|
|
|
|
~RttStatistics();
|
2013-09-29 03:10:19 -04:00
|
|
|
|
2014-10-14 16:36:22 -04:00
|
|
|
private:
|
|
|
|
void processSettings(bool bLoad);
|
|
|
|
bool m_bProcessSettings;
|
2013-09-29 03:10:19 -04:00
|
|
|
|
2014-10-14 16:36:22 -04:00
|
|
|
RttStatisticsGraph *_tst_CW ;
|
2013-09-29 03:10:19 -04:00
|
|
|
} ;
|
|
|
|
|
2014-10-13 18:05:50 -04:00
|
|
|
|
|
|
|
|
|
|
|
|