Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <trafficgraphwidget.h>
Public Slots | |
void | updateRates () |
void | setGraphRangeMins (int value) |
void | clear () |
Public Member Functions | |
TrafficGraphWidget (QWidget *parent=0) | |
void | setClientModel (ClientModel *model) |
int | getGraphRangeMins () const |
Protected Member Functions | |
void | paintEvent (QPaintEvent *) |
Private Types | |
typedef boost::function< float(const TrafficSample &)> | SampleChooser |
Private Member Functions | |
void | paintPath (QPainterPath &path, const TrafficGraphData::SampleQueue &queue, SampleChooser chooser) |
Private Attributes | |
QTimer * | timer |
float | fMax |
int | nMins |
ClientModel * | clientModel |
TrafficGraphData | trafficGraphData |
Detailed Description
Definition at line 22 of file trafficgraphwidget.h.
Member Typedef Documentation
◆ SampleChooser
|
private |
Definition at line 40 of file trafficgraphwidget.h.
Constructor & Destructor Documentation
◆ TrafficGraphWidget()
|
explicit |
Definition at line 22 of file trafficgraphwidget.cpp.
References TrafficGraphData::SMALLEST_SAMPLE_PERIOD, timer, and updateRates().
Member Function Documentation
◆ clear
|
slot |
Definition at line 250 of file trafficgraphwidget.cpp.
References TrafficGraphData::clear(), clientModel, DEFAULT_SAMPLE_HEIGHT, fMax, ClientModel::getTotalBytesRecv(), ClientModel::getTotalBytesSent(), TrafficGraphData::setLastBytes(), and trafficGraphData.
◆ getGraphRangeMins()
int TrafficGraphWidget::getGraphRangeMins | ( | ) | const |
Definition at line 44 of file trafficgraphwidget.cpp.
References nMins.
◆ paintEvent()
|
protected |
Definition at line 78 of file trafficgraphwidget.cpp.
References GUIUtil::BACKGROUND_NETSTATS, GUIUtil::BACKGROUND_WIDGET, GUIUtil::Bold, GUIUtil::BORDER_NETSTATS, GUIUtil::BORDER_WIDGET, count, GUIUtil::DEFAULT, fMax, GUIUtil::formatBytes(), TrafficGraphData::getCurrentRangeQueueWithAverageBandwidth(), GUIUtil::getFont(), TrafficGraphData::getLastBytesIn(), TrafficGraphData::getLastBytesOut(), GUIUtil::getThemedQColor(), GUIUtil::GREEN, GUIUtil::Normal, paintPath(), GUIUtil::RED, trafficGraphData, XMARGIN, and YMARGIN.
◆ paintPath()
|
private |
Definition at line 50 of file trafficgraphwidget.cpp.
References TrafficGraphData::DESIRED_DATA_SAMPLES, fMax, XMARGIN, and YMARGIN.
Referenced by paintEvent().
◆ setClientModel()
void TrafficGraphWidget::setClientModel | ( | ClientModel * | model | ) |
Definition at line 36 of file trafficgraphwidget.cpp.
References clientModel, ClientModel::getTotalBytesRecv(), ClientModel::getTotalBytesSent(), TrafficGraphData::setLastBytes(), and trafficGraphData.
◆ setGraphRangeMins
|
slot |
Definition at line 244 of file trafficgraphwidget.cpp.
References TrafficGraphData::switchRange(), and trafficGraphData.
◆ updateRates
|
slot |
Definition at line 227 of file trafficgraphwidget.cpp.
References clientModel, DEFAULT_SAMPLE_HEIGHT, fMax, TrafficGraphData::getCurrentRangeQueueWithAverageBandwidth(), ClientModel::getTotalBytesRecv(), ClientModel::getTotalBytesSent(), trafficGraphData, and TrafficGraphData::update().
Referenced by TrafficGraphWidget().
Member Data Documentation
◆ clientModel
|
private |
Definition at line 46 of file trafficgraphwidget.h.
Referenced by clear(), setClientModel(), and updateRates().
◆ fMax
|
private |
Definition at line 44 of file trafficgraphwidget.h.
Referenced by clear(), paintEvent(), paintPath(), and updateRates().
◆ nMins
|
private |
Definition at line 45 of file trafficgraphwidget.h.
Referenced by getGraphRangeMins().
◆ timer
|
private |
Definition at line 43 of file trafficgraphwidget.h.
Referenced by TrafficGraphWidget().
◆ trafficGraphData
|
private |
Definition at line 47 of file trafficgraphwidget.h.
Referenced by clear(), paintEvent(), setClientModel(), setGraphRangeMins(), and updateRates().
The documentation for this class was generated from the following files:
- src/qt/trafficgraphwidget.h
- src/qt/trafficgraphwidget.cpp