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

CLibraryTipCtrl Class Reference

#include <CtrlLibraryTip.h>

Inheritance diagram for CLibraryTipCtrl:

CCoolTipCtrl List of all members.

Public Member Functions

 CLibraryTipCtrl ()
virtual ~CLibraryTipCtrl ()
virtual BOOL OnPrepare ()
virtual void OnCalcSize (CDC *pDC)
virtual void OnShow ()
virtual void OnHide ()
virtual void OnPaint (CDC *pDC)

Protected Member Functions

void DrawThumb (CDC *pDC, CRect &rcThumb)
void StopThread ()
void OnRun ()
afx_msg void OnDestroy ()
afx_msg void OnTimer (UINT nIDEvent)

Static Protected Member Functions

static UINT ThreadStart (LPVOID pParam)

Protected Attributes

CString m_sName
CString m_sPath
CString m_sFolder
CString m_sSize
CString m_sType
CString m_sSHA1
CString m_sTTH
CString m_sED2K
int m_nIndex
int m_nIcon
CMetaList m_pMetadata
int m_nKeyWidth
COLORREF m_crLight
CCriticalSection m_pSection
CEvent m_pWakeup
HANDLE m_hThread
BOOL m_bThread
CSize m_szThumb
CBitmap m_bmThumb
DWORD m_tHidden

Constructor & Destructor Documentation

CLibraryTipCtrl::CLibraryTipCtrl  ) 
 

Definition at line 59 of file CtrlLibraryTip.cpp.

References CCoolInterface::CalculateColour(), CoolInterface, CCoolInterface::m_crTipBack, and NULL.

CLibraryTipCtrl::~CLibraryTipCtrl  )  [virtual]
 

Definition at line 66 of file CtrlLibraryTip.cpp.


Member Function Documentation

void CLibraryTipCtrl::DrawThumb CDC *  pDC,
CRect &  rcThumb
[protected]
 

Definition at line 245 of file CtrlLibraryTip.cpp.

References CoolInterface, CShellIcons::GetHandle(), m_bmThumb, m_crLight, CCoolInterface::m_crTipBorder, m_nIcon, m_szThumb, and ShellIcons.

Referenced by OnPaint().

void CLibraryTipCtrl::OnCalcSize CDC *  pDC  )  [virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 155 of file CtrlLibraryTip.cpp.

References CCoolTipCtrl::AddSize(), CMetaList::ComputeWidth(), CoolInterface, CMetaList::GetCount(), CCoolInterface::m_fntNormal, m_nKeyWidth, m_pMetadata, m_sED2K, m_sName, m_sSHA1, m_sTTH, CCoolTipCtrl::m_sz, TIP_GAP, TIP_RULE, and TIP_TEXTHEIGHT.

void CLibraryTipCtrl::OnDestroy  )  [protected]
 

Reimplemented from CCoolTipCtrl.

Definition at line 317 of file CtrlLibraryTip.cpp.

References m_hThread, NULL, CCoolTipCtrl::OnDestroy(), and StopThread().

void CLibraryTipCtrl::OnHide  )  [virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 299 of file CtrlLibraryTip.cpp.

References m_bmThumb, m_pSection, and m_tHidden.

Referenced by OnShow().

void CLibraryTipCtrl::OnPaint CDC *  pDC  )  [virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 194 of file CtrlLibraryTip.cpp.

References CoolInterface, CCoolTipCtrl::DrawRule(), CCoolTipCtrl::DrawText(), DrawThumb(), CMetaList::GetIterator(), CMetaList::GetNext(), CShareazaApp::m_bRTL, CCoolInterface::m_fntNormal, m_nKeyWidth, m_pMetadata, m_pSection, m_sED2K, CMetaItem::m_sKey, m_sName, m_sSHA1, m_sTTH, CMetaItem::m_sValue, theApp, and TIP_TEXTHEIGHT.

BOOL CLibraryTipCtrl::OnPrepare  )  [virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 73 of file CtrlLibraryTip.cpp.

References CMetaList::Add(), CCoolTipCtrl::CalcSizeHelper(), CMetaList::Clean(), CMetaList::Clear(), CMetaList::Combine(), CSettings::General, CShellIcons::Get(), CLibraryFile::GetPath(), CLibraryFile::GetSize(), CShellIcons::GetTypeString(), GUI_BASIC, CSettings::sGeneral::GUIMode, CED2K::HashToString(), CTigerNode::HashToString(), CSHA::HashToString(), IDS_TIP_HITS, IDS_TIP_LOCATION, IDS_TIP_SIZE, IDS_TIP_TODAYTOTAL, IDS_TIP_TYPE, IDS_TIP_UPLOADS, Library, LoadString(), CLibrary::LookupFile(), CLibraryFile::m_bED2K, CLibraryFile::m_bSHA1, CLibraryFile::m_bTiger, CLibraryFile::m_nHitsToday, CLibraryFile::m_nHitsTotal, m_nIcon, CLibraryFile::m_nIndex, m_nIndex, CLibraryFile::m_nUploadsToday, CLibraryFile::m_nUploadsTotal, CCoolTipCtrl::m_pContext, CLibraryFile::m_pED2K, CLibraryFile::m_pFolder, CLibraryFile::m_pMetadata, m_pMetadata, CLibraryFile::m_pSchema, m_pSection, CLibrary::m_pSection, CLibraryFile::m_pSHA1, CLibraryFile::m_pTiger, m_sED2K, m_sFolder, CLibraryFile::m_sName, m_sName, CLibraryFolder::m_sPath, m_sPath, m_sSHA1, m_sSize, m_sTTH, m_sType, CCoolTipCtrl::m_sz, NULL, Settings, CMetaList::Setup(), ShellIcons, and CSettings::SmartVolume().

void CLibraryTipCtrl::OnRun  )  [protected]
 

Definition at line 360 of file CtrlLibraryTip.cpp.

References CImageFile::CreateBitmap(), CImageFile::EnsureRGB(), CThumbCache::Load(), CImageFile::LoadFromFile(), m_bmThumb, m_bThread, CImageFile::m_nHeight, m_nIndex, CImageFile::m_nWidth, m_pSection, m_pWakeup, m_sPath, m_szThumb, CImageFile::Resample(), CThumbCache::Store(), and THUMB_STORE_SIZE.

Referenced by ThreadStart().

void CLibraryTipCtrl::OnShow  )  [virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 285 of file CtrlLibraryTip.cpp.

References m_bThread, m_hThread, m_pWakeup, NULL, OnHide(), and ThreadStart().

void CLibraryTipCtrl::OnTimer UINT  nIDEvent  )  [protected]
 

Reimplemented from CCoolTipCtrl.

Definition at line 307 of file CtrlLibraryTip.cpp.

References CCoolTipCtrl::m_bVisible, m_hThread, m_tHidden, NULL, CCoolTipCtrl::OnTimer(), and StopThread().

void CLibraryTipCtrl::StopThread  )  [protected]
 

Definition at line 324 of file CtrlLibraryTip.cpp.

References m_bThread, m_hThread, m_pWakeup, CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp.

Referenced by OnDestroy(), and OnTimer().

UINT CLibraryTipCtrl::ThreadStart LPVOID  pParam  )  [static, protected]
 

Definition at line 353 of file CtrlLibraryTip.cpp.

References OnRun().

Referenced by OnShow().


Member Data Documentation

CBitmap CLibraryTipCtrl::m_bmThumb [protected]
 

Definition at line 61 of file CtrlLibraryTip.h.

Referenced by DrawThumb(), OnHide(), and OnRun().

BOOL CLibraryTipCtrl::m_bThread [protected]
 

Definition at line 59 of file CtrlLibraryTip.h.

Referenced by OnRun(), OnShow(), and StopThread().

COLORREF CLibraryTipCtrl::m_crLight [protected]
 

Definition at line 54 of file CtrlLibraryTip.h.

Referenced by DrawThumb().

HANDLE CLibraryTipCtrl::m_hThread [protected]
 

Definition at line 58 of file CtrlLibraryTip.h.

Referenced by OnDestroy(), OnShow(), OnTimer(), and StopThread().

int CLibraryTipCtrl::m_nIcon [protected]
 

Definition at line 51 of file CtrlLibraryTip.h.

Referenced by DrawThumb(), and OnPrepare().

int CLibraryTipCtrl::m_nIndex [protected]
 

Definition at line 50 of file CtrlLibraryTip.h.

Referenced by OnPrepare(), and OnRun().

int CLibraryTipCtrl::m_nKeyWidth [protected]
 

Definition at line 53 of file CtrlLibraryTip.h.

Referenced by OnCalcSize(), and OnPaint().

CMetaList CLibraryTipCtrl::m_pMetadata [protected]
 

Definition at line 52 of file CtrlLibraryTip.h.

Referenced by OnCalcSize(), OnPaint(), and OnPrepare().

CCriticalSection CLibraryTipCtrl::m_pSection [protected]
 

Definition at line 56 of file CtrlLibraryTip.h.

Referenced by OnHide(), OnPaint(), OnPrepare(), and OnRun().

CEvent CLibraryTipCtrl::m_pWakeup [protected]
 

Definition at line 57 of file CtrlLibraryTip.h.

Referenced by OnRun(), OnShow(), and StopThread().

CString CLibraryTipCtrl::m_sED2K [protected]
 

Definition at line 49 of file CtrlLibraryTip.h.

Referenced by OnCalcSize(), OnPaint(), and OnPrepare().

CString CLibraryTipCtrl::m_sFolder [protected]
 

Definition at line 44 of file CtrlLibraryTip.h.

Referenced by OnPrepare().

CString CLibraryTipCtrl::m_sName [protected]
 

Definition at line 42 of file CtrlLibraryTip.h.

Referenced by OnCalcSize(), OnPaint(), and OnPrepare().

CString CLibraryTipCtrl::m_sPath [protected]
 

Definition at line 43 of file CtrlLibraryTip.h.

Referenced by OnPrepare(), and OnRun().

CString CLibraryTipCtrl::m_sSHA1 [protected]
 

Definition at line 47 of file CtrlLibraryTip.h.

Referenced by OnCalcSize(), OnPaint(), and OnPrepare().

CString CLibraryTipCtrl::m_sSize [protected]
 

Definition at line 45 of file CtrlLibraryTip.h.

Referenced by OnPrepare().

CString CLibraryTipCtrl::m_sTTH [protected]
 

Definition at line 48 of file CtrlLibraryTip.h.

Referenced by OnCalcSize(), OnPaint(), and OnPrepare().

CString CLibraryTipCtrl::m_sType [protected]
 

Definition at line 46 of file CtrlLibraryTip.h.

Referenced by OnPrepare().

CSize CLibraryTipCtrl::m_szThumb [protected]
 

Definition at line 60 of file CtrlLibraryTip.h.

Referenced by DrawThumb(), and OnRun().

DWORD CLibraryTipCtrl::m_tHidden [protected]
 

Definition at line 62 of file CtrlLibraryTip.h.

Referenced by OnHide(), and OnTimer().


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