BandwidthGraph Class Reference

#include <bwgraph.h>

Inheritance diagram for BandwidthGraph:

VidaliaWindow List of all members.

Public Slots

void show ()

Public Member Functions

 BandwidthGraph (QWidget *parent=0, Qt::WFlags flags=0)

Protected Member Functions

void customEvent (QEvent *event)

Private Slots

void updateGraph (quint64 bytesRead, quint64 bytesWritten)
void showSettingsFrame (bool show)
void setOpacity (int value)
void saveChanges ()
void cancelChanges ()
void reset ()

Private Member Functions

void createActions ()
void loadSettings ()

Private Attributes

TorControl_torControl
VidaliaSettings_settings
Ui::BandwidthGraph ui

Detailed Description

Definition at line 44 of file bwgraph.h.


Constructor & Destructor Documentation

BandwidthGraph::BandwidthGraph ( QWidget *  parent = 0,
Qt::WFlags  flags = 0 
)

Default constructor

Definition at line 48 of file bwgraph.cpp.

References _torControl, TorEvents::Bandwidth, VidaliaWindow::close(), createActions(), loadSettings(), reset(), TorControl::setEvent(), VidaliaWindow::setShortcut(), showSettingsFrame(), Vidalia::torControl(), and ui.


Member Function Documentation

void BandwidthGraph::show (  )  [slot]

Overloaded QWidget.show

Reimplemented from VidaliaWindow.

Definition at line 259 of file bwgraph.cpp.

References loadSettings(), and VidaliaWindow::show().

Referenced by MainWindow::showBandwidthGraph().

void BandwidthGraph::customEvent ( QEvent *  event  )  [protected]

Called to deliver a bandwidth update event from Tor.

Definition at line 88 of file bwgraph.cpp.

References CustomEventType::BandwidthEvent, and updateGraph().

void BandwidthGraph::updateGraph ( quint64  bytesRead,
quint64  bytesWritten 
) [private, slot]

Adds new data to the graph

Definition at line 118 of file bwgraph.cpp.

References ui.

Referenced by customEvent().

void BandwidthGraph::showSettingsFrame ( bool  show  )  [private, slot]

Called when settings button is toggled

Definition at line 211 of file bwgraph.cpp.

References ui.

Referenced by BandwidthGraph(), cancelChanges(), createActions(), and saveChanges().

void BandwidthGraph::setOpacity ( int  value  )  [private, slot]

Called when the settings button is toggled

Definition at line 239 of file bwgraph.cpp.

References ui.

Referenced by createActions(), loadSettings(), and saveChanges().

void BandwidthGraph::saveChanges (  )  [private, slot]

Called when the user saves settings

Definition at line 165 of file bwgraph.cpp.

References ADD_TO_FILTER, BWGRAPH_LINE_RECV, BWGRAPH_LINE_SEND, VidaliaWindow::saveSetting(), setOpacity(), SETTING_ALWAYS_ON_TOP, SETTING_FILTER, SETTING_OPACITY, showSettingsFrame(), and ui.

Referenced by createActions().

void BandwidthGraph::cancelChanges (  )  [private, slot]

Called when the user cancels changes settings

Definition at line 200 of file bwgraph.cpp.

References loadSettings(), and showSettingsFrame().

Referenced by createActions().

void BandwidthGraph::reset (  )  [private, slot]

Called when the reset button is pressed

Definition at line 153 of file bwgraph.cpp.

References DATETIME_FMT, and ui.

Referenced by BandwidthGraph(), and createActions().

void BandwidthGraph::createActions (  )  [private]

Create and bind actions to events

Definition at line 98 of file bwgraph.cpp.

References cancelChanges(), reset(), saveChanges(), setOpacity(), showSettingsFrame(), and ui.

Referenced by BandwidthGraph().

void BandwidthGraph::loadSettings (  )  [private]

Loads the saved Bandwidth Graph settings

Definition at line 126 of file bwgraph.cpp.

References BWGRAPH_LINE_RECV, BWGRAPH_LINE_SEND, DEFAULT_ALWAYS_ON_TOP, DEFAULT_FILTER, DEFAULT_OPACITY, VidaliaWindow::getSetting(), setOpacity(), SETTING_ALWAYS_ON_TOP, SETTING_FILTER, SETTING_OPACITY, and ui.

Referenced by BandwidthGraph(), cancelChanges(), and show().


Member Data Documentation

TorControl* BandwidthGraph::_torControl [private]

A TorControl object used to talk to Tor.

Definition at line 81 of file bwgraph.h.

Referenced by BandwidthGraph().

VidaliaSettings* BandwidthGraph::_settings [private]

A VidaliaSettings object that handles getting/saving settings

Reimplemented from VidaliaWindow.

Definition at line 83 of file bwgraph.h.

Ui::BandwidthGraph BandwidthGraph::ui [private]

Qt Designer generated object

Definition at line 86 of file bwgraph.h.

Referenced by BandwidthGraph(), createActions(), loadSettings(), reset(), saveChanges(), setOpacity(), showSettingsFrame(), and updateGraph().


The documentation for this class was generated from the following files:
Generated on Mon Oct 23 20:08:16 2006 for Vidalia by  doxygen 1.5.0