2018-12-23 14:09:23 -05:00
|
|
|
/*******************************************************************************
|
|
|
|
* gui/statistics/BandwidthStatsWidget.h *
|
|
|
|
* *
|
|
|
|
* Copyright (c) 2014 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/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
|
|
|
|
2015-07-12 00:04:18 -04:00
|
|
|
#include "ui_BandwidthStatsWidget.h"
|
|
|
|
#include "BWGraph.h"
|
|
|
|
|
|
|
|
class BandwidthStatsWidget: public QWidget
|
|
|
|
{
|
2015-07-12 23:04:36 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
2015-07-12 00:04:18 -04:00
|
|
|
public:
|
|
|
|
BandwidthStatsWidget(QWidget *parent) ;
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void updateFriendSelection(int n);
|
|
|
|
void updateServiceSelection(int n);
|
2015-07-12 23:04:36 -04:00
|
|
|
void updateComboBoxes() ;
|
|
|
|
void updateUpDownSelection(int n);
|
|
|
|
void updateUnitSelection(int n);
|
2016-01-16 11:30:15 -05:00
|
|
|
void toggleLogScale(bool b);
|
2017-04-20 14:54:51 -04:00
|
|
|
void updateLegendType(int n);
|
|
|
|
|
2015-07-12 00:04:18 -04:00
|
|
|
private:
|
|
|
|
Ui::BwStatsWidget ui;
|
2015-07-12 23:04:36 -04:00
|
|
|
|
|
|
|
QTimer *mTimer ;
|
2015-07-12 00:04:18 -04:00
|
|
|
};
|