Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CGraphItem Class Reference

#include <GraphItem.h>

List of all members.

Public Member Functions

 CGraphItem (DWORD nCode=0, DWORD nParam=0, COLORREF nColour=RGB(255, 255, 255))
virtual ~CGraphItem ()
void SetCode (DWORD nCode)
void Clear ()
DWORD Add (DWORD nValue)
DWORD GetValueAt (DWORD nPosition) const
DWORD GetMaximum () const
void SetHistory (DWORD nSize, BOOL bMax=FALSE)
DWORD Update ()
void Serialize (CArchive &ar)
void MakeGradient (COLORREF crBack)

Static Public Member Functions

static QWORD GetValue (DWORD nCode, DWORD nParam=0)
static GRAPHITEMGetItemDesc (DWORD nCode)

Public Attributes

DWORD m_nCode
DWORD m_nParam
COLORREF m_nColour
CString m_sName
CPen m_pPen [4]
COLORREF m_cPen [4]
DWORD * m_pData
DWORD m_nData
DWORD m_nLength
DWORD m_nPosition

Static Public Attributes

static GRAPHITEM m_pItemDesc []


Constructor & Destructor Documentation

CGraphItem::CGraphItem DWORD  nCode = 0,
DWORD  nParam = 0,
COLORREF  nColour = RGB(255, 255, 255)
 

Definition at line 48 of file GraphItem.cpp.

References m_nCode, m_nColour, m_nData, m_nLength, m_nParam, m_nPosition, m_pData, and SetCode().

CGraphItem::~CGraphItem  )  [virtual]
 

Definition at line 62 of file GraphItem.cpp.

References m_pData.


Member Function Documentation

DWORD CGraphItem::Add DWORD  nValue  ) 
 

Definition at line 94 of file GraphItem.cpp.

References m_nData, m_nLength, m_nPosition, and m_pData.

Referenced by CDownloadMonitorDlg::OnTimer(), CUploadTipCtrl::OnTimer(), CNeighbourTipCtrl::OnTimer(), CDownloadTipCtrl::OnTimer(), SetHistory(), and Update().

void CGraphItem::Clear  ) 
 

Definition at line 85 of file GraphItem.cpp.

References m_nLength, and m_nPosition.

Referenced by SetCode().

GRAPHITEM * CGraphItem::GetItemDesc DWORD  nCode  )  [static]
 

Definition at line 360 of file GraphItem.cpp.

References m_nCode, m_pItemDesc, and NULL.

Referenced by CLineGraph::PaintGrid(), and SetCode().

DWORD CGraphItem::GetMaximum  )  const
 

Definition at line 113 of file GraphItem.cpp.

References m_nData, m_nLength, m_nPosition, and m_pData.

Referenced by CMonitorBarCtrl::OnTimer(), and CLineGraph::ResetMaximum().

QWORD CGraphItem::GetValue DWORD  nCode,
DWORD  nParam = 0
[static]
 

Definition at line 217 of file GraphItem.cpp.

References Datagrams, Downloads, CDownloads::GetCount(), CNeighboursBase::GetCount(), GRC_DOWNLOADS_BANDWIDTH, GRC_DOWNLOADS_FILES, GRC_DOWNLOADS_TRANSFERS, GRC_GNUTELLA_BANDWIDTH_IN, GRC_GNUTELLA_BANDWIDTH_OUT, GRC_GNUTELLA_CONNECTIONS, GRC_GNUTELLA_CONNECTIONS_ALL, GRC_GNUTELLA_DROPPED, GRC_GNUTELLA_LOST, GRC_GNUTELLA_PACKETS_IN, GRC_GNUTELLA_PACKETS_OUT, GRC_GNUTELLA_QUERIES, GRC_GNUTELLA_ROUTED, GRC_RANDOM, GRC_TOTAL_BANDWIDTH_IN, GRC_TOTAL_BANDWIDTH_OUT, GRC_TOTAL_BANDWIDTH_TCP_IN, GRC_TOTAL_BANDWIDTH_TCP_OUT, GRC_TOTAL_BANDWIDTH_UDP_IN, GRC_TOTAL_BANDWIDTH_UDP_OUT, GRC_UPLOADS_BANDWIDTH, GRC_UPLOADS_TRANSFERS, CStatistics::Last, CUploads::m_nBandwidth, CDownloads::m_nBandwidth, CNeighboursBase::m_nBandwidthIn, CNeighboursBase::m_nBandwidthOut, CUploads::m_nCount, CDatagrams::m_nInBandwidth, CDatagrams::m_nOutBandwidth, CDownloads::m_nTransfers, CTransfers::m_pSection, CNetwork::m_pSection, Neighbours, Network, nrsConnected, Statistics, Transfers, CStatistics::Update(), and Uploads.

Referenced by CRemoteWnd::OnTimer(), CMonitorBarCtrl::PaintCurrent(), CRemoteWnd::PaintFlow(), Update(), CHomeUploadsBox::Update(), CHomeDownloadsBox::Update(), and CMainWnd::UpdateMessages().

DWORD CGraphItem::GetValueAt DWORD  nPosition  )  const
 

Definition at line 105 of file GraphItem.cpp.

References m_nData, m_nPosition, and m_pData.

Referenced by CLineGraph::Paint(), CRemoteWnd::PaintHistory(), and CMonitorBarCtrl::PaintHistory().

void CGraphItem::MakeGradient COLORREF  crBack  ) 
 

Definition at line 189 of file GraphItem.cpp.

References m_cPen, m_nColour, m_pPen, and NULL.

Referenced by CLineGraph::Paint().

void CGraphItem::Serialize CArchive &  ar  ) 
 

Definition at line 168 of file GraphItem.cpp.

References m_nCode, m_nColour, m_nParam, and SetCode().

Referenced by CLineGraph::Serialize().

void CGraphItem::SetCode DWORD  nCode  ) 
 

Definition at line 70 of file GraphItem.cpp.

References Clear(), GetItemDesc(), CSkin::LoadString(), m_nCode, GRAPHITEM::m_nStringID, m_sName, and Skin.

Referenced by CGraphItem(), CGraphItemDlg::OnOK(), and Serialize().

void CGraphItem::SetHistory DWORD  nSize,
BOOL  bMax = FALSE
 

Definition at line 130 of file GraphItem.cpp.

References Add(), m_nData, m_nLength, m_nPosition, m_pData, and NULL.

Referenced by CMonitorBarCtrl::DoPaint(), CLineGraph::Paint(), and CRemoteWnd::PaintHistory().

DWORD CGraphItem::Update  ) 
 

Definition at line 160 of file GraphItem.cpp.

References Add(), GetValue(), m_nCode, and m_nParam.

Referenced by CMonitorBarCtrl::OnTimer(), and CLineGraph::Update().


Member Data Documentation

COLORREF CGraphItem::m_cPen[4]
 

Definition at line 50 of file GraphItem.h.

Referenced by MakeGradient().

DWORD CGraphItem::m_nCode
 

Definition at line 44 of file GraphItem.h.

Referenced by CGraphItem(), GetItemDesc(), CGraphItemDlg::OnInitDialog(), CMonitorBarCtrl::PaintCurrent(), CRemoteWnd::PaintFlow(), CLineGraph::PaintGrid(), Serialize(), SetCode(), and Update().

COLORREF CGraphItem::m_nColour
 

Definition at line 46 of file GraphItem.h.

Referenced by CGraphItem(), MakeGradient(), CGraphListDlg::OnCustomDrawItems(), CGraphItemDlg::OnInitDialog(), CGraphItemDlg::OnOK(), CNeighbourTipCtrl::OnPaint(), CMonitorBarCtrl::PaintCurrent(), CLineGraph::PaintLegend(), and Serialize().

DWORD CGraphItem::m_nData
 

Definition at line 53 of file GraphItem.h.

Referenced by Add(), CGraphItem(), GetMaximum(), GetValueAt(), and SetHistory().

DWORD CGraphItem::m_nLength
 

Definition at line 54 of file GraphItem.h.

Referenced by Add(), CGraphItem(), Clear(), GetMaximum(), CLineGraph::Paint(), CMonitorBarCtrl::PaintCurrent(), CRemoteWnd::PaintFlow(), CRemoteWnd::PaintHistory(), CMonitorBarCtrl::PaintHistory(), and SetHistory().

DWORD CGraphItem::m_nParam
 

Definition at line 45 of file GraphItem.h.

Referenced by CGraphItem(), Serialize(), and Update().

DWORD CGraphItem::m_nPosition
 

Definition at line 55 of file GraphItem.h.

Referenced by Add(), CGraphItem(), Clear(), GetMaximum(), GetValueAt(), and SetHistory().

DWORD* CGraphItem::m_pData
 

Definition at line 52 of file GraphItem.h.

Referenced by Add(), CGraphItem(), GetMaximum(), GetValueAt(), SetHistory(), and ~CGraphItem().

GRAPHITEM CGraphItem::m_pItemDesc [static]
 

Definition at line 327 of file GraphItem.cpp.

Referenced by GetItemDesc(), and CGraphItemDlg::OnInitDialog().

CPen CGraphItem::m_pPen[4]
 

Definition at line 49 of file GraphItem.h.

Referenced by MakeGradient(), and CLineGraph::Paint().

CString CGraphItem::m_sName
 

Definition at line 48 of file GraphItem.h.

Referenced by CLineGraph::PaintLegend(), and SetCode().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:07 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2