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

CNeighboursWnd Class Reference

#include <WndNeighbours.h>

Inheritance diagram for CNeighboursWnd:

CPanelWnd CChildWnd List of all members.

Public Member Functions

 CNeighboursWnd ()
virtual ~CNeighboursWnd ()
void Update ()
CNeighbourGetItem (int nItem)
void OpenPacketWnd (BOOL bIncoming, BOOL bOutgoing)
void DrawEmptyMessage (CDC *pDC)
virtual void OnSkinChange ()
virtual BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)

Protected Member Functions

afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnSortList (NMHDR *pNotifyStruct, LRESULT *pResult)
afx_msg void OnCustomDrawList (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnUpdateNeighboursDisconnect (CCmdUI *pCmdUI)
afx_msg void OnNeighboursDisconnect ()
afx_msg void OnUpdateNeighboursViewAll (CCmdUI *pCmdUI)
afx_msg void OnNeighboursViewAll ()
afx_msg void OnUpdateNeighboursViewIncoming (CCmdUI *pCmdUI)
afx_msg void OnNeighboursViewIncoming ()
afx_msg void OnUpdateNeighboursViewOutgoing (CCmdUI *pCmdUI)
afx_msg void OnNeighboursViewOutgoing ()
afx_msg void OnDestroy ()
afx_msg void OnUpdateNeighboursChat (CCmdUI *pCmdUI)
afx_msg void OnNeighboursChat ()
afx_msg void OnUpdateSecurityBan (CCmdUI *pCmdUI)
afx_msg void OnSecurityBan ()
afx_msg void OnUpdateBrowseLaunch (CCmdUI *pCmdUI)
afx_msg void OnBrowseLaunch ()
afx_msg void OnUpdateNeighboursCopy (CCmdUI *pCmdUI)
afx_msg void OnNeighboursCopy ()
afx_msg void OnNeighboursSettings ()
afx_msg void OnActivate (UINT nState, CWnd *pWndOther, BOOL bMinimized)

Protected Attributes

CCoolBarCtrl m_wndToolBar
CTipListCtrl m_wndList
CNeighbourTipCtrl m_wndTip
CImageList m_gdiImageList
CLiveListSizer m_pSizer
DWORD m_tLastUpdate

Constructor & Destructor Documentation

CNeighboursWnd::CNeighboursWnd  ) 
 

Definition at line 88 of file WndNeighbours.cpp.

References IDR_NEIGHBOURSFRAME.

CNeighboursWnd::~CNeighboursWnd  )  [virtual]
 

Definition at line 93 of file WndNeighbours.cpp.


Member Function Documentation

void CNeighboursWnd::DrawEmptyMessage CDC *  pDC  ) 
 

Definition at line 639 of file WndNeighbours.cpp.

References IDS_NEIGHBOURS_CONNECT, IDS_NEIGHBOURS_NOT_CONNECTED, LoadString(), CShareazaApp::m_gdiFont, m_wndList, and theApp.

Referenced by OnCustomDrawList().

CNeighbour * CNeighboursWnd::GetItem int  nItem  ) 
 

Definition at line 333 of file WndNeighbours.cpp.

References CNeighboursBase::Get(), m_wndList, Neighbours, and NULL.

Referenced by OnBrowseLaunch(), OnNeighboursChat(), OnNeighboursCopy(), OnNeighboursDisconnect(), OnSecurityBan(), OnUpdateBrowseLaunch(), OnUpdateNeighboursChat(), and OpenPacketWnd().

void CNeighboursWnd::OnActivate UINT  nState,
CWnd *  pWndOther,
BOOL  bMinimized
[protected]
 

Definition at line 668 of file WndNeighbours.cpp.

References Update().

void CNeighboursWnd::OnBrowseLaunch  )  [protected]
 

Definition at line 520 of file WndNeighbours.cpp.

References GetItem(), CNetwork::m_pSection, m_wndList, Network, NULL, and PROTOCOL_ED2K.

BOOL CNeighboursWnd::OnCmdMsg UINT  nID,
int  nCode,
void *  pExtra,
AFX_CMDHANDLERINFO *  pHandlerInfo
[virtual]
 

Reimplemented from CChildWnd.

Definition at line 353 of file WndNeighbours.cpp.

References m_wndToolBar, and CChildWnd::OnCmdMsg().

void CNeighboursWnd::OnContextMenu CWnd *  pWnd,
CPoint  point
[protected]
 

Definition at line 390 of file WndNeighbours.cpp.

References CChildWnd::TrackPopupMenu().

int CNeighboursWnd::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CPanelWnd.

Definition at line 100 of file WndNeighbours.cpp.

References CLiveListSizer::Attach(), CCoolTipCtrl::Create(), CCoolBarCtrl::Create(), CreateMirroredBitmap(), IDB_PROTOCOLS, IDC_NEIGHBOURS, CSettings::Interface, CChildWnd::LoadState(), LVS_EX_LABELTIP, CShareazaApp::m_bRTL, CShareazaApp::m_gdiFont, m_gdiImageList, m_pSizer, m_tLastUpdate, m_wndList, m_wndTip, m_wndToolBar, CPanelWnd::OnCreate(), Settings, theApp, and CSettings::sInterface::TipNeighbours.

void CNeighboursWnd::OnCustomDrawList NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 601 of file WndNeighbours.cpp.

References DrawEmptyMessage(), CNetwork::IsConnected(), m_wndList, Network, PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, and PROTOCOL_NULL.

void CNeighboursWnd::OnDestroy  )  [protected]
 

Reimplemented from CChildWnd.

Definition at line 149 of file WndNeighbours.cpp.

References m_wndList, CChildWnd::OnDestroy(), CSettings::SaveList(), CChildWnd::SaveState(), and Settings.

void CNeighboursWnd::OnNeighboursChat  )  [protected]
 

Definition at line 463 of file WndNeighbours.cpp.

References ChatWindows, GetItem(), CNetwork::m_pSection, m_wndList, Network, NULL, CChatWindows::OpenPrivate(), and PROTOCOL_ED2K.

void CNeighboursWnd::OnNeighboursCopy  )  [protected]
 

Definition at line 422 of file WndNeighbours.cpp.

References GetItem(), CNeighbour::m_nProtocol, CConnection::m_pHost, CNetwork::m_pSection, CConnection::m_sAddress, m_wndList, Network, PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, and CURLCopyDlg::SetClipboardText().

void CNeighboursWnd::OnNeighboursDisconnect  )  [protected]
 

Definition at line 400 of file WndNeighbours.cpp.

References GetItem(), HostCache, CNetwork::m_pSection, m_wndList, Network, and CHostCache::OnFailure().

void CNeighboursWnd::OnNeighboursSettings  )  [protected]
 

Definition at line 569 of file WndNeighbours.cpp.

References CSettingsManagerDlg::Run().

void CNeighboursWnd::OnNeighboursViewAll  )  [protected]
 

Definition at line 544 of file WndNeighbours.cpp.

References OpenPacketWnd().

void CNeighboursWnd::OnNeighboursViewIncoming  )  [protected]
 

Definition at line 554 of file WndNeighbours.cpp.

References OpenPacketWnd().

void CNeighboursWnd::OnNeighboursViewOutgoing  )  [protected]
 

Definition at line 564 of file WndNeighbours.cpp.

References OpenPacketWnd().

void CNeighboursWnd::OnSecurityBan  )  [protected]
 

Definition at line 485 of file WndNeighbours.cpp.

References CSecurity::Ban(), banSession, GetItem(), CNetwork::m_pSection, m_wndList, Network, and Security.

void CNeighboursWnd::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Reimplemented from CPanelWnd.

Definition at line 363 of file WndNeighbours.cpp.

References m_pSizer, m_wndList, m_wndToolBar, CPanelWnd::OnSize(), CLiveListSizer::Resize(), and CChildWnd::SizeListAndBar().

void CNeighboursWnd::OnSkinChange  )  [virtual]
 

Reimplemented from CChildWnd.

Definition at line 343 of file WndNeighbours.cpp.

References CSkin::CreateToolBar(), CSettings::LoadList(), m_wndList, m_wndToolBar, CChildWnd::OnSkinChange(), Settings, and Skin.

void CNeighboursWnd::OnSortList NMHDR *  pNotifyStruct,
LRESULT *  pResult
[protected]
 

Definition at line 383 of file WndNeighbours.cpp.

References m_wndList, and CLiveList::Sort().

void CNeighboursWnd::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 374 of file WndNeighbours.cpp.

References CChildWnd::IsPartiallyVisible(), m_tLastUpdate, and Update().

void CNeighboursWnd::OnUpdateBrowseLaunch CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 502 of file WndNeighbours.cpp.

References GetItem(), CNeighbour::m_nProtocol, CNetwork::m_pSection, m_wndList, Network, and PROTOCOL_ED2K.

void CNeighboursWnd::OnUpdateNeighboursChat CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 445 of file WndNeighbours.cpp.

References CSettings::sCommunity::ChatEnable, CSettings::Community, GetItem(), CNeighbour::m_nProtocol, CNetwork::m_pSection, m_wndList, Network, PROTOCOL_ED2K, and Settings.

void CNeighboursWnd::OnUpdateNeighboursCopy CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 416 of file WndNeighbours.cpp.

References m_wndList.

void CNeighboursWnd::OnUpdateNeighboursDisconnect CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 395 of file WndNeighbours.cpp.

References m_wndList.

void CNeighboursWnd::OnUpdateNeighboursViewAll CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 539 of file WndNeighbours.cpp.

References m_wndList.

void CNeighboursWnd::OnUpdateNeighboursViewIncoming CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 549 of file WndNeighbours.cpp.

References m_wndList.

void CNeighboursWnd::OnUpdateNeighboursViewOutgoing CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 559 of file WndNeighbours.cpp.

References m_wndList.

void CNeighboursWnd::OnUpdateSecurityBan CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 480 of file WndNeighbours.cpp.

References m_wndList.

void CNeighboursWnd::OpenPacketWnd BOOL  bIncoming,
BOOL  bOutgoing
 

Definition at line 574 of file WndNeighbours.cpp.

References CWindowManager::Find(), GetItem(), CChildWnd::GetManager(), CPacketWnd::m_bPaused, CPacketWnd::m_nInputFilter, CPacketWnd::m_nOutputFilter, CPacketWnd::m_pOwner, CNetwork::m_pSection, m_wndList, Network, and NULL.

Referenced by OnNeighboursViewAll(), OnNeighboursViewIncoming(), and OnNeighboursViewOutgoing().

void CNeighboursWnd::Update  ) 
 

Definition at line 159 of file WndNeighbours.cpp.

References CLiveList::Add(), CLiveList::Apply(), CLiveItem::Format(), CSettings::General, CNeighboursBase::GetIterator(), CNeighboursBase::GetNext(), CGProfile::GetNick(), IDS_NEIGHBOUR_CLOSING, IDS_NEIGHBOUR_CONNECTING, IDS_NEIGHBOUR_ED2K_HIGHID, IDS_NEIGHBOUR_ED2K_LOWID, IDS_NEIGHBOUR_ED2K_SERVER, IDS_NEIGHBOUR_G1LEAF, IDS_NEIGHBOUR_G1PEER, IDS_NEIGHBOUR_G1ULTRA, IDS_NEIGHBOUR_G2HUB, IDS_NEIGHBOUR_G2LEAF, IDS_NEIGHBOUR_G2PEER, IDS_NEIGHBOUR_HANDSHAKING, IDS_NEIGHBOUR_REJECTED, IDS_NEIGHBOUR_UNKNOWN, CEDPacket::IsLowID(), LoadString(), CShareazaApp::m_bRTL, m_gdiImageList, CConnection::m_mInput, CConnection::m_mOutput, CEDNeighbour::m_nClientID, CLiveItem::m_nImage, CNeighbour::m_nInputCount, CG2Neighbour::m_nLeafCount, CG2Neighbour::m_nLeafLimit, CNeighbour::m_nLostCount, CNeighbour::m_nNodeType, CNeighbour::m_nOutbound, CNeighbour::m_nOutputCount, CNeighbour::m_nProtocol, CNeighbour::m_nState, CNeighbour::m_nUnique, CEDNeighbour::m_nUserCount, CEDNeighbour::m_nUserLimit, CConnection::m_pHost, CNeighbour::m_pProfile, CNetwork::m_pSection, CConnection::m_sAddress, CEDNeighbour::m_sServerName, CConnection::m_sUserAgent, CConnection::m_tConnected, m_tLastUpdate, m_wndList, CConnection::Measure(), Neighbours, Network, TCPBandwidthMeter::nMeasure, nrsClosing, nrsConnected, nrsConnecting, nrsHandshake1, nrsHandshake2, nrsHandshake3, nrsRejected, ntHub, ntLeaf, ntNode, TCPBandwidthMeter::nTotal, NULL, PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, PROTOCOL_NULL, CSettings::sGeneral::RatesInBytes, CLiveItem::Set(), Settings, CSettings::SmartVolume(), and theApp.

Referenced by OnActivate(), and OnTimer().


Member Data Documentation

CImageList CNeighboursWnd::m_gdiImageList [protected]
 

Definition at line 48 of file WndNeighbours.h.

Referenced by OnCreate(), and Update().

CLiveListSizer CNeighboursWnd::m_pSizer [protected]
 

Definition at line 49 of file WndNeighbours.h.

Referenced by OnCreate(), and OnSize().

DWORD CNeighboursWnd::m_tLastUpdate [protected]
 

Definition at line 50 of file WndNeighbours.h.

Referenced by OnCreate(), OnTimer(), and Update().

CTipListCtrl CNeighboursWnd::m_wndList [protected]
 

Definition at line 46 of file WndNeighbours.h.

Referenced by DrawEmptyMessage(), GetItem(), OnBrowseLaunch(), OnCreate(), OnCustomDrawList(), OnDestroy(), OnNeighboursChat(), OnNeighboursCopy(), OnNeighboursDisconnect(), OnSecurityBan(), OnSize(), OnSkinChange(), OnSortList(), OnUpdateBrowseLaunch(), OnUpdateNeighboursChat(), OnUpdateNeighboursCopy(), OnUpdateNeighboursDisconnect(), OnUpdateNeighboursViewAll(), OnUpdateNeighboursViewIncoming(), OnUpdateNeighboursViewOutgoing(), OnUpdateSecurityBan(), OpenPacketWnd(), and Update().

CNeighbourTipCtrl CNeighboursWnd::m_wndTip [protected]
 

Definition at line 47 of file WndNeighbours.h.

Referenced by OnCreate().

CCoolBarCtrl CNeighboursWnd::m_wndToolBar [protected]
 

Definition at line 45 of file WndNeighbours.h.

Referenced by OnCmdMsg(), OnCreate(), OnSize(), and OnSkinChange().


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