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

CBrowseFrameCtrl Class Reference

#include <CtrlBrowseFrame.h>

List of all members.

Public Member Functions

 CBrowseFrameCtrl ()
virtual ~CBrowseFrameCtrl ()
virtual BOOL Create (CWnd *pParentWnd, CMatchCtrl *pMatch)
void OnSkinChange ()
void OnPhysicalTree (CG2Packet *pPacket)
void OnVirtualTree (CG2Packet *pPacket)
void OnSelChangeMatches ()

Protected Member Functions

BOOL DoSizeTree ()
BOOL DoSizePanel ()
void SelectTree (CBrowseTreeItem *pItem, CQueryHit *pHit)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
afx_msg void OnUpdateSearchDetails (CCmdUI *pCmdUI)
afx_msg void OnSearchDetails ()
afx_msg void OnUpdateLibraryTreePhysical (CCmdUI *pCmdUI)
afx_msg void OnLibraryTreePhysical ()
afx_msg void OnUpdateLibraryTreeVirtual (CCmdUI *pCmdUI)
afx_msg void OnLibraryTreeVirtual ()
afx_msg void OnTreeSelection (NMHDR *pNotify, LRESULT *pResult)

Protected Attributes

CCoolBarCtrl m_wndTreeTop
CBrowseTreeCtrl m_wndTree
CSearchDetailPanel m_wndDetails
CMatchCtrlm_wndList
BOOL m_bTreeVisible
int m_nTreeSize
BOOL m_bPanelEnable
BOOL m_bPanelVisible
int m_nPanelSize
CG2Packetm_pTree [2]
int m_nTree


Constructor & Destructor Documentation

CBrowseFrameCtrl::CBrowseFrameCtrl  ) 
 

Definition at line 67 of file CtrlBrowseFrame.cpp.

References CSettings::sSearch::BrowseTreeSize, CSettings::sSearch::DetailPanelSize, CSettings::sSearch::DetailPanelVisible, NULL, CSettings::Search, and Settings.

CBrowseFrameCtrl::~CBrowseFrameCtrl  )  [virtual]
 

Definition at line 79 of file CtrlBrowseFrame.cpp.

References m_pTree, NULL, and CPacket::Release().


Member Function Documentation

BOOL CBrowseFrameCtrl::Create CWnd *  pParentWnd,
CMatchCtrl pMatch
[virtual]
 

Definition at line 88 of file CtrlBrowseFrame.cpp.

References IDC_BROWSE_FRAME, m_wndList, NULL, and CMatchCtrl::SetBrowseMode().

Referenced by CBrowseHostWnd::OnCreate().

BOOL CBrowseFrameCtrl::DoSizePanel  )  [protected]
 

Definition at line 354 of file CtrlBrowseFrame.cpp.

References CSettings::sSearch::DetailPanelSize, m_bTreeVisible, m_nPanelSize, m_nTreeSize, NULL, OnSize(), CSettings::Search, Settings, SIZE_INTERNAL, and SPLIT_SIZE.

Referenced by OnLButtonDown().

BOOL CBrowseFrameCtrl::DoSizeTree  )  [protected]
 

Definition at line 298 of file CtrlBrowseFrame.cpp.

References CSettings::sSearch::BrowseTreeSize, m_nTreeSize, NULL, OnSize(), CSettings::Search, Settings, SIZE_INTERNAL, and SPLIT_SIZE.

Referenced by OnLButtonDown().

int CBrowseFrameCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 97 of file CtrlBrowseFrame.cpp.

References CSearchDetailPanel::Create(), CBrowseTreeCtrl::Create(), CCoolBarCtrl::Create(), m_wndDetails, m_wndList, m_wndTree, and m_wndTreeTop.

void CBrowseFrameCtrl::OnDestroy  )  [protected]
 

Definition at line 113 of file CtrlBrowseFrame.cpp.

Referenced by CMatchTipCtrl::OnDestroy().

void CBrowseFrameCtrl::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 266 of file CtrlBrowseFrame.cpp.

References DoSizePanel(), DoSizeTree(), m_nPanelSize, m_nTreeSize, m_wndDetails, m_wndTree, and SPLIT_SIZE.

void CBrowseFrameCtrl::OnLibraryTreePhysical  )  [protected]
 

Definition at line 545 of file CtrlBrowseFrame.cpp.

References m_nTree, m_pTree, m_wndTree, NULL, CBrowseTreeCtrl::OnTreePacket(), and CBrowseTreeCtrl::SyncRoot().

void CBrowseFrameCtrl::OnLibraryTreeVirtual  )  [protected]
 

Definition at line 562 of file CtrlBrowseFrame.cpp.

References m_nTree, m_pTree, m_wndTree, NULL, CBrowseTreeCtrl::OnTreePacket(), and CBrowseTreeCtrl::SyncRoot().

void CBrowseFrameCtrl::OnPaint  )  [protected]
 

Definition at line 178 of file CtrlBrowseFrame.cpp.

References m_nPanelSize, m_nTreeSize, m_wndDetails, m_wndTree, and SPLIT_SIZE.

void CBrowseFrameCtrl::OnPhysicalTree CG2Packet pPacket  ) 
 

Definition at line 408 of file CtrlBrowseFrame.cpp.

References CPacket::AddRef(), m_bTreeVisible, m_nTree, m_pTree, m_wndTree, NULL, CBrowseTreeCtrl::OnTreePacket(), CPacket::Release(), SIZE_INTERNAL, and CBrowseTreeCtrl::SyncRoot().

Referenced by CBrowseHostWnd::OnPhysicalTree().

void CBrowseFrameCtrl::OnSearchDetails  )  [protected]
 

Definition at line 533 of file CtrlBrowseFrame.cpp.

References CSettings::sSearch::DetailPanelVisible, m_bPanelVisible, OnSize(), CSettings::Search, Settings, and SIZE_INTERNAL.

void CBrowseFrameCtrl::OnSelChangeMatches  ) 
 

Definition at line 513 of file CtrlBrowseFrame.cpp.

References CMatchList::GetSelectedFile(), m_bPanelEnable, CMatchCtrl::m_pMatches, CMatchList::m_pSection, m_wndDetails, m_wndList, OnSize(), SIZE_INTERNAL, and CSearchDetailPanel::Update().

Referenced by CBrowseHostWnd::OnSelChangeMatches().

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

Definition at line 222 of file CtrlBrowseFrame.cpp.

References CShareazaApp::m_bRTL, m_nPanelSize, m_nTreeSize, m_wndDetails, m_wndTree, SPLIT_SIZE, and theApp.

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

Definition at line 124 of file CtrlBrowseFrame.cpp.

References BAR_HEIGHT, m_bPanelEnable, m_bPanelVisible, m_bTreeVisible, m_nPanelSize, m_nTreeSize, m_wndDetails, m_wndList, m_wndTree, m_wndTreeTop, NULL, and SPLIT_SIZE.

Referenced by DoSizePanel(), DoSizeTree(), OnSearchDetails(), and OnSelChangeMatches().

void CBrowseFrameCtrl::OnSkinChange  ) 
 

Definition at line 118 of file CtrlBrowseFrame.cpp.

References CSkin::CreateToolBar(), CMatchCtrl::m_wndHeader, m_wndList, m_wndTreeTop, Skin, and CSkin::Translate().

Referenced by CBrowseHostWnd::OnSkinChange().

void CBrowseFrameCtrl::OnTreeSelection NMHDR *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 440 of file CtrlBrowseFrame.cpp.

References CMatchList::Filter(), CSchemaCache::Get(), CSchema::GetContainedURI(), CBrowseTreeCtrl::GetFirstSelected(), CBrowseTreeCtrl::GetSelectedCount(), IDC_MATCHES, CSchemaColumnsDlg::LoadColumns(), CMatchList::m_nFiles, CMatchList::m_pFiles, CMatchFile::m_pHits, CMatchCtrl::m_pMatches, CQueryHit::m_pNext, CMatchCtrl::m_pSchema, CBrowseTreeItem::m_pSchema, CMatchList::m_pSection, CBrowseTreeItem::m_pSelNext, CSchema::m_sURI, m_wndList, m_wndTree, NULL, SchemaCache, CMatchCtrl::SelectSchema(), SelectTree(), CSchema::stFile, CBrowseTreeCtrl::SyncRoot(), and CMatchCtrl::Update().

void CBrowseFrameCtrl::OnUpdateLibraryTreePhysical CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 539 of file CtrlBrowseFrame.cpp.

References m_nTree, m_pTree, and NULL.

void CBrowseFrameCtrl::OnUpdateLibraryTreeVirtual CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 556 of file CtrlBrowseFrame.cpp.

References m_nTree, m_pTree, and NULL.

void CBrowseFrameCtrl::OnUpdateSearchDetails CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 526 of file CtrlBrowseFrame.cpp.

References m_bPanelEnable, m_bPanelVisible, and m_wndList.

void CBrowseFrameCtrl::OnVirtualTree CG2Packet pPacket  ) 
 

Definition at line 424 of file CtrlBrowseFrame.cpp.

References CPacket::AddRef(), m_bTreeVisible, m_nTree, m_pTree, m_wndTree, NULL, CBrowseTreeCtrl::OnTreePacket(), CPacket::Release(), SIZE_INTERNAL, and CBrowseTreeCtrl::SyncRoot().

Referenced by CBrowseHostWnd::OnVirtualTree().

void CBrowseFrameCtrl::SelectTree CBrowseTreeItem pItem,
CQueryHit pHit
[protected]
 

Definition at line 490 of file CtrlBrowseFrame.cpp.

References CBrowseTreeItem::m_bExpanded, CQueryHit::m_bMatched, CBrowseTreeItem::m_nCount, CBrowseTreeItem::m_nFiles, CQueryHit::m_nIndex, CBrowseTreeItem::m_pFiles, and CBrowseTreeItem::m_pList.

Referenced by OnTreeSelection().


Member Data Documentation

BOOL CBrowseFrameCtrl::m_bPanelEnable [protected]
 

Definition at line 51 of file CtrlBrowseFrame.h.

Referenced by OnSelChangeMatches(), OnSize(), and OnUpdateSearchDetails().

BOOL CBrowseFrameCtrl::m_bPanelVisible [protected]
 

Definition at line 52 of file CtrlBrowseFrame.h.

Referenced by OnSearchDetails(), OnSize(), and OnUpdateSearchDetails().

BOOL CBrowseFrameCtrl::m_bTreeVisible [protected]
 

Definition at line 49 of file CtrlBrowseFrame.h.

Referenced by DoSizePanel(), OnPhysicalTree(), OnSize(), and OnVirtualTree().

int CBrowseFrameCtrl::m_nPanelSize [protected]
 

Definition at line 53 of file CtrlBrowseFrame.h.

Referenced by DoSizePanel(), OnLButtonDown(), OnPaint(), OnSetCursor(), and OnSize().

int CBrowseFrameCtrl::m_nTree [protected]
 

Definition at line 55 of file CtrlBrowseFrame.h.

Referenced by OnLibraryTreePhysical(), OnLibraryTreeVirtual(), OnPhysicalTree(), OnUpdateLibraryTreePhysical(), OnUpdateLibraryTreeVirtual(), and OnVirtualTree().

int CBrowseFrameCtrl::m_nTreeSize [protected]
 

Definition at line 50 of file CtrlBrowseFrame.h.

Referenced by DoSizePanel(), DoSizeTree(), OnLButtonDown(), OnPaint(), OnSetCursor(), and OnSize().

CG2Packet* CBrowseFrameCtrl::m_pTree[2] [protected]
 

Definition at line 54 of file CtrlBrowseFrame.h.

Referenced by OnLibraryTreePhysical(), OnLibraryTreeVirtual(), OnPhysicalTree(), OnUpdateLibraryTreePhysical(), OnUpdateLibraryTreeVirtual(), OnVirtualTree(), and ~CBrowseFrameCtrl().

CSearchDetailPanel CBrowseFrameCtrl::m_wndDetails [protected]
 

Definition at line 47 of file CtrlBrowseFrame.h.

Referenced by OnCreate(), OnLButtonDown(), OnPaint(), OnSelChangeMatches(), OnSetCursor(), and OnSize().

CMatchCtrl* CBrowseFrameCtrl::m_wndList [protected]
 

Definition at line 48 of file CtrlBrowseFrame.h.

Referenced by Create(), OnCreate(), OnSelChangeMatches(), OnSize(), OnSkinChange(), OnTreeSelection(), and OnUpdateSearchDetails().

CBrowseTreeCtrl CBrowseFrameCtrl::m_wndTree [protected]
 

Definition at line 46 of file CtrlBrowseFrame.h.

Referenced by OnCreate(), OnLButtonDown(), OnLibraryTreePhysical(), OnLibraryTreeVirtual(), OnPaint(), OnPhysicalTree(), OnSetCursor(), OnSize(), OnTreeSelection(), and OnVirtualTree().

CCoolBarCtrl CBrowseFrameCtrl::m_wndTreeTop [protected]
 

Definition at line 45 of file CtrlBrowseFrame.h.

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


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