1
/***************************************************************************
2
* Copyright © 2007 by Krzysztof Kundzicz *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19
***************************************************************************/
26
#include <qtabwidget.h>
27
#include <qgroupbox.h>
29
#include "statspluginsettings.h"
30
#include "statsconwgt.h"
31
#include "ChartDrawer.h"
35
class StatsCon : public StatsConWgt
39
///Layout of peers connections
40
QVBoxLayout * pmPeersConLay;
41
///Layout of DHT stats
42
QVBoxLayout * pmDHTLay;
44
///Chart widget of peers connted
45
ChartDrawer * pmPeersConCht;
46
///Chart widget of DHT
47
ChartDrawer * pmDHTCht;
50
StatsCon(QWidget * p = 0);
53
\brief Adds value to peers connections chart
54
\param idx Dataset index
57
void AddPeersConVal(const size_t idx, const double val);
59
\brief Adds value to DHT chart
60
\param idx Dataset index
63
void AddDHTVal(const size_t idx, const double val);
66
\brief Zeroes data on given idx @ peers connections chart
67
\param idx Dataset index
69
void ZeroPeersConn(const size_t idx);
72
\brief Changes connections chart's measurments count
73
\param cnt Measurements
75
void ChangeConnMsmtCnt(const size_t cnt);
77
\brief Changes DHT chart's measurments count
78
\param cnt Measurements
80
void ChangeDHTMsmtCnt(const size_t cnt);
82
\brief Changes charts OY axis maximum mode
85
void ChangeChartsMaxMode(const ChartDrawer::MaxMode mm);