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

CLibraryHeaderPanel Class Reference

#include <CtrlLibraryHeaderPanel.h>

List of all members.

Public Member Functions

 CLibraryHeaderPanel ()
virtual ~CLibraryHeaderPanel ()
int Update ()
void OnSkinChange ()
virtual BOOL Create (CWnd *pParentWnd)

Protected Member Functions

CAlbumFolderGetSelectedAlbum () const
void DoPaint (CDC *pDC, CRect &rcClient)
void DrawText (CDC *pDC, int nX, int nY, LPCTSTR pszText)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()

Protected Attributes

int m_nIcon32
int m_nIcon48
CString m_sTitle
CString m_sSubtitle
CMetaList m_pMetadata
int m_nMetaWidth
int m_nKeyWidth
CSize m_szBuffer
CDC m_dcBuffer
CBitmap m_bmBuffer
HBITMAP m_hBuffer
CBitmap m_bmWatermark


Constructor & Destructor Documentation

CLibraryHeaderPanel::CLibraryHeaderPanel  ) 
 

Definition at line 59 of file CtrlLibraryHeaderPanel.cpp.

CLibraryHeaderPanel::~CLibraryHeaderPanel  )  [virtual]
 

Definition at line 63 of file CtrlLibraryHeaderPanel.cpp.


Member Function Documentation

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

Definition at line 70 of file CtrlLibraryHeaderPanel.cpp.

References ID_LIBRARY_HEADER, and NULL.

Referenced by CLibraryFrame::OnCreate().

void CLibraryHeaderPanel::DoPaint CDC *  pDC,
CRect &  rcClient
[protected]
 

Definition at line 233 of file CtrlLibraryHeaderPanel.cpp.

References CoolInterface, CShellIcons::Draw(), DrawText(), CSkin::DrawWrappedText(), CMetaList::GetCount(), CMetaList::GetIterator(), CMetaList::GetNext(), CMetaItem::m_bLink, CShareazaApp::m_bRTL, CSkin::m_crBannerText, CCoolInterface::m_fntCaption, CCoolInterface::m_fntNormal, CCoolInterface::m_fntUnder, m_nIcon32, m_nIcon48, m_nKeyWidth, m_nMetaWidth, m_pMetadata, CMetaItem::m_sKey, m_sSubtitle, m_sTitle, CMetaItem::m_sValue, NULL, CMetaItem::SetRect(), ShellIcons, Skin, and theApp.

Referenced by OnPaint().

void CLibraryHeaderPanel::DrawText CDC *  pDC,
int  nX,
int  nY,
LPCTSTR  pszText
[protected]
 

Definition at line 288 of file CtrlLibraryHeaderPanel.cpp.

References CShareazaApp::m_bRTL, NULL, and theApp.

Referenced by DoPaint().

CAlbumFolder * CLibraryHeaderPanel::GetSelectedAlbum  )  const [protected]
 

Definition at line 155 of file CtrlLibraryHeaderPanel.cpp.

References CLibrary::GetAlbumRoot(), Library, CLibraryFrame::m_pFolderSelection, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, and NULL.

Referenced by Update().

int CLibraryHeaderPanel::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 171 of file CtrlLibraryHeaderPanel.cpp.

References m_szBuffer, and OnSkinChange().

void CLibraryHeaderPanel::OnDestroy  )  [protected]
 

Definition at line 181 of file CtrlLibraryHeaderPanel.cpp.

References m_bmBuffer, m_dcBuffer, m_hBuffer, and NULL.

void CLibraryHeaderPanel::OnLButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 305 of file CtrlLibraryHeaderPanel.cpp.

References CLibraryFrame::Display(), CMetaList::HitTest(), and m_pMetadata.

void CLibraryHeaderPanel::OnPaint  )  [protected]
 

Definition at line 199 of file CtrlLibraryHeaderPanel.cpp.

References CoolInterface, DoPaint(), CCoolInterface::DrawWatermark(), m_bmBuffer, m_bmWatermark, CSkin::m_crBannerBack, m_dcBuffer, m_hBuffer, m_szBuffer, NULL, and Skin.

BOOL CLibraryHeaderPanel::OnSetCursor CWnd *  pWnd,
UINT  nHitTest,
UINT  message
[protected]
 

Definition at line 298 of file CtrlLibraryHeaderPanel.cpp.

References m_pMetadata, and CMetaList::OnSetCursor().

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

Definition at line 193 of file CtrlLibraryHeaderPanel.cpp.

void CLibraryHeaderPanel::OnSkinChange  ) 
 

Definition at line 141 of file CtrlLibraryHeaderPanel.cpp.

References CSkin::GetWatermark(), IDB_BANNER_MARK, m_bmWatermark, CSkin::m_crBannerBack, NULL, and Skin.

Referenced by OnCreate(), and CLibraryFrame::OnSkinChange().

int CLibraryHeaderPanel::Update  ) 
 

Definition at line 77 of file CtrlLibraryHeaderPanel.cpp.

References CMetaList::Clean(), CMetaList::Combine(), CMetaList::ComputeWidth(), CoolInterface, CMetaList::CreateLinks(), CMetaList::GetCount(), CSchema::GetFirstMemberName(), GetSelectedAlbum(), CLibraryMaps::GetStatistics(), LibraryMaps, CCoolInterface::m_fntNormal, CSchema::m_nIcon32, m_nIcon32, CSchema::m_nIcon48, m_nIcon48, m_nKeyWidth, m_nMetaWidth, m_pMetadata, CAlbumFolder::m_pParent, CAlbumFolder::m_pSchema, CAlbumFolder::m_pXML, CSchema::m_sHeaderSubtitle, CSchema::m_sHeaderTitle, CAlbumFolder::m_sName, m_sSubtitle, m_sTitle, NULL, CMetaList::Remove(), Replace(), CSchema::ResolveTokens(), Settings, CMetaList::Setup(), and CSettings::SmartVolume().

Referenced by CLibraryFrame::Update().


Member Data Documentation

CBitmap CLibraryHeaderPanel::m_bmBuffer [protected]
 

Definition at line 51 of file CtrlLibraryHeaderPanel.h.

Referenced by OnDestroy(), and OnPaint().

CBitmap CLibraryHeaderPanel::m_bmWatermark [protected]
 

Definition at line 53 of file CtrlLibraryHeaderPanel.h.

Referenced by OnPaint(), and OnSkinChange().

CDC CLibraryHeaderPanel::m_dcBuffer [protected]
 

Definition at line 50 of file CtrlLibraryHeaderPanel.h.

Referenced by OnDestroy(), and OnPaint().

HBITMAP CLibraryHeaderPanel::m_hBuffer [protected]
 

Definition at line 52 of file CtrlLibraryHeaderPanel.h.

Referenced by OnDestroy(), and OnPaint().

int CLibraryHeaderPanel::m_nIcon32 [protected]
 

Definition at line 41 of file CtrlLibraryHeaderPanel.h.

Referenced by DoPaint(), and Update().

int CLibraryHeaderPanel::m_nIcon48 [protected]
 

Definition at line 42 of file CtrlLibraryHeaderPanel.h.

Referenced by DoPaint(), and Update().

int CLibraryHeaderPanel::m_nKeyWidth [protected]
 

Definition at line 47 of file CtrlLibraryHeaderPanel.h.

Referenced by DoPaint(), and Update().

int CLibraryHeaderPanel::m_nMetaWidth [protected]
 

Definition at line 46 of file CtrlLibraryHeaderPanel.h.

Referenced by DoPaint(), and Update().

CMetaList CLibraryHeaderPanel::m_pMetadata [protected]
 

Definition at line 45 of file CtrlLibraryHeaderPanel.h.

Referenced by DoPaint(), OnLButtonUp(), OnSetCursor(), and Update().

CString CLibraryHeaderPanel::m_sSubtitle [protected]
 

Definition at line 44 of file CtrlLibraryHeaderPanel.h.

Referenced by DoPaint(), and Update().

CString CLibraryHeaderPanel::m_sTitle [protected]
 

Definition at line 43 of file CtrlLibraryHeaderPanel.h.

Referenced by DoPaint(), and Update().

CSize CLibraryHeaderPanel::m_szBuffer [protected]
 

Definition at line 49 of file CtrlLibraryHeaderPanel.h.

Referenced by OnCreate(), and OnPaint().


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