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

CBrowseProfileCtrl Class Reference

#include <CtrlBrowseProfile.h>

List of all members.

Public Member Functions

 CBrowseProfileCtrl ()
virtual ~CBrowseProfileCtrl ()
void OnSkinChange ()
void Update (CHostBrowser *pBrowser)
void OnHeadPacket (CG2Packet *pPacket)
virtual BOOL Create (CWnd *pParentWnd)

Protected Member Functions

void UpdateDocument1 (CGProfile *pProfile)
void UpdateDocument2 (CHostBrowser *pBrowser)
void LoadDefaultHead ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnClickView (RVN_ELEMENTEVENT *pNotify, LRESULT *pResult)

Protected Attributes

CCriticalSection m_pSection
CRichViewCtrl m_wndDoc1
CRichDocumentm_pDocument1
CRichElementm_pdNick
CRichElementm_pdFullName
CRichElementm_pdFullLocation
CRichElementm_pdGenderMale
CRichElementm_pdGenderFemale
CRichElementm_pdAge
CRichElementm_pdContactEmail
CRichElementm_pdContactMSN
CRichElementm_pdContactYahoo
CRichElementm_pdContactICQ
CRichElementm_pdContactAOL
CRichElementm_pdContactJabber
CRichElementm_pdBioText
CRichElementm_pdInterests
CRichViewCtrl m_wndDoc2
CRichDocumentm_pDocument2
CRichElementm_pdBookmarks
CBitmap m_bmHead


Constructor & Destructor Documentation

CBrowseProfileCtrl::CBrowseProfileCtrl  ) 
 

Definition at line 58 of file CtrlBrowseProfile.cpp.

References NULL.

CBrowseProfileCtrl::~CBrowseProfileCtrl  )  [virtual]
 

Definition at line 64 of file CtrlBrowseProfile.cpp.


Member Function Documentation

BOOL CBrowseProfileCtrl::Create CWnd *  pParentWnd  )  [virtual]
 

Definition at line 71 of file CtrlBrowseProfile.cpp.

References IDC_BROWSE_PROFILE, and NULL.

Referenced by CBrowseHostWnd::OnCreate().

void CBrowseProfileCtrl::LoadDefaultHead  )  [protected]
 

Definition at line 390 of file CtrlBrowseProfile.cpp.

References CoolInterface, CImageFile::CreateBitmap(), CImageFile::EnsureRGB(), CSettings::General, CImageFile::LoadFromFile(), m_bmHead, CCoolInterface::m_crWindow, m_pSection, NULL, CSettings::sGeneral::Path, CImageFile::Resample(), and Settings.

Referenced by Update().

void CBrowseProfileCtrl::OnClickView RVN_ELEMENTEVENT pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 487 of file CtrlBrowseProfile.cpp.

References CShareazaApp::InternalURI(), RVN_ELEMENTEVENT::pElement, and theApp.

int CBrowseProfileCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 412 of file CtrlBrowseProfile.cpp.

References CRichViewCtrl::Create(), IDC_BROWSE_PROFILE, m_wndDoc1, m_wndDoc2, and CRichViewCtrl::SetSelectable().

void CBrowseProfileCtrl::OnDestroy  )  [protected]
 

Definition at line 424 of file CtrlBrowseProfile.cpp.

References m_pDocument1, m_pDocument2, and NULL.

void CBrowseProfileCtrl::OnHeadPacket CG2Packet pPacket  ) 
 

Definition at line 354 of file CtrlBrowseProfile.cpp.

References CoolInterface, CImageFile::CreateBitmap(), CImageFile::EnsureRGB(), CImageFile::LoadFromMemory(), m_bmHead, CCoolInterface::m_crWindow, m_pSection, and CImageFile::Resample().

Referenced by CBrowseHostWnd::OnHeadPacket().

void CBrowseProfileCtrl::OnPaint  )  [protected]
 

Definition at line 450 of file CtrlBrowseProfile.cpp.

References CoolInterface, m_bmHead, CCoolInterface::m_crWindow, m_pSection, m_wndDoc1, and NULL.

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

Definition at line 435 of file CtrlBrowseProfile.cpp.

References m_wndDoc1, m_wndDoc2, and NULL.

void CBrowseProfileCtrl::OnSkinChange  ) 
 

Definition at line 78 of file CtrlBrowseProfile.cpp.

References CRichDocument::Clear(), CSkin::GetDocument(), CRichDocument::LoadXML(), m_pdAge, m_pdBioText, m_pdBookmarks, m_pdContactAOL, m_pdContactEmail, m_pdContactICQ, m_pdContactJabber, m_pdContactMSN, m_pdContactYahoo, m_pdFullLocation, m_pdFullName, m_pdGenderFemale, m_pdGenderMale, m_pdInterests, m_pdNick, m_pDocument1, m_pDocument2, m_pSection, m_wndDoc1, m_wndDoc2, NULL, CRichViewCtrl::SetDocument(), and Skin.

Referenced by CBrowseHostWnd::OnSkinChange().

void CBrowseProfileCtrl::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 479 of file CtrlBrowseProfile.cpp.

void CBrowseProfileCtrl::Update CHostBrowser pBrowser  ) 
 

Definition at line 132 of file CtrlBrowseProfile.cpp.

References CGProfile::IsValid(), LoadDefaultHead(), m_bmHead, m_pDocument1, m_pDocument2, m_pSection, m_wndDoc1, m_wndDoc2, NULL, UpdateDocument1(), and UpdateDocument2().

Referenced by CBrowseHostWnd::OnBrowseProfile().

void CBrowseProfileCtrl::UpdateDocument1 CGProfile pProfile  )  [protected]
 

Definition at line 154 of file CtrlBrowseProfile.cpp.

References CXMLNode::GetValue(), CRichViewCtrl::InvalidateIfModified(), CXMLNode::IsNamed(), m_pdAge, m_pdBioText, m_pdContactAOL, m_pdContactEmail, m_pdContactICQ, m_pdContactJabber, m_pdContactMSN, m_pdContactYahoo, m_pdFullLocation, m_pdFullName, m_pdGenderFemale, m_pdGenderMale, m_pdInterests, m_pdNick, m_pDocument1, CRichDocument::m_pSection, CRichElement::m_sLink, m_wndDoc1, NULL, CRichElement::SetText(), CRichElement::Show(), and CRichDocument::ShowGroup().

Referenced by Update().

void CBrowseProfileCtrl::UpdateDocument2 CHostBrowser pBrowser  )  [protected]
 

Definition at line 296 of file CtrlBrowseProfile.cpp.

References CRichDocument::Add(), CRichElement::Delete(), CRichDocument::Find(), CXMLElement::GetAttributeValue(), CRichDocument::GetNext(), CGProfile::GetXML(), IDI_WEB_URL, CRichViewCtrl::InvalidateIfModified(), CXMLNode::IsNamed(), CRichElement::m_nGroup, m_pdBookmarks, m_pDocument2, CRichDocument::m_pSection, m_wndDoc2, NULL, retfMiddle, retGap, retIcon, retLink, retNewline, and CRichDocument::ShowGroup().

Referenced by Update().


Member Data Documentation

CBitmap CBrowseProfileCtrl::m_bmHead [protected]
 

Definition at line 65 of file CtrlBrowseProfile.h.

Referenced by LoadDefaultHead(), OnHeadPacket(), OnPaint(), and Update().

CRichElement* CBrowseProfileCtrl::m_pdAge [protected]
 

Definition at line 51 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdBioText [protected]
 

Definition at line 58 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdBookmarks [protected]
 

Definition at line 63 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument2().

CRichElement* CBrowseProfileCtrl::m_pdContactAOL [protected]
 

Definition at line 56 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdContactEmail [protected]
 

Definition at line 52 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdContactICQ [protected]
 

Definition at line 55 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdContactJabber [protected]
 

Definition at line 57 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdContactMSN [protected]
 

Definition at line 53 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdContactYahoo [protected]
 

Definition at line 54 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdFullLocation [protected]
 

Definition at line 48 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdFullName [protected]
 

Definition at line 47 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdGenderFemale [protected]
 

Definition at line 50 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdGenderMale [protected]
 

Definition at line 49 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdInterests [protected]
 

Definition at line 59 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichElement* CBrowseProfileCtrl::m_pdNick [protected]
 

Definition at line 46 of file CtrlBrowseProfile.h.

Referenced by OnSkinChange(), and UpdateDocument1().

CRichDocument* CBrowseProfileCtrl::m_pDocument1 [protected]
 

Definition at line 45 of file CtrlBrowseProfile.h.

Referenced by OnDestroy(), OnSkinChange(), Update(), and UpdateDocument1().

CRichDocument* CBrowseProfileCtrl::m_pDocument2 [protected]
 

Definition at line 62 of file CtrlBrowseProfile.h.

Referenced by OnDestroy(), OnSkinChange(), Update(), and UpdateDocument2().

CCriticalSection CBrowseProfileCtrl::m_pSection [protected]
 

Definition at line 43 of file CtrlBrowseProfile.h.

Referenced by LoadDefaultHead(), OnHeadPacket(), OnPaint(), OnSkinChange(), and Update().

CRichViewCtrl CBrowseProfileCtrl::m_wndDoc1 [protected]
 

Definition at line 44 of file CtrlBrowseProfile.h.

Referenced by OnCreate(), OnPaint(), OnSize(), OnSkinChange(), Update(), and UpdateDocument1().

CRichViewCtrl CBrowseProfileCtrl::m_wndDoc2 [protected]
 

Definition at line 61 of file CtrlBrowseProfile.h.

Referenced by OnCreate(), OnSize(), OnSkinChange(), Update(), and UpdateDocument2().


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