2018-12-23 14:09:23 -05:00
|
|
|
/*******************************************************************************
|
|
|
|
* gui/statistics/RttStatistics.h *
|
|
|
|
* *
|
|
|
|
* Copyright (c) 2011 Retroshare Team <retroshare.project@gmail.com> *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
* published by the Free Software Foundation, either version 3 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 Affero General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
2013-09-29 03:10:19 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QPoint>
|
|
|
|
#include <retroshare/rsrtt.h>
|
2020-08-18 08:43:45 -04:00
|
|
|
#include <retroshare-gui/RsAutoUpdatePage.h>
|
|
|
|
|
2013-09-29 03:10:19 -04:00
|
|
|
#include "ui_RttStatistics.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
|
|
|
|
|
|
|
|
|
|
|
|