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

CLibraryFileView Class Reference

#include <CtrlLibraryFileView.h>

Inheritance diagram for CLibraryFileView:

CLibraryView CLibraryAlbumView CLibraryCollectionView CLibraryDetailView CLibraryThumbView CLibraryIconView CLibraryListView List of all members.

Public Member Functions

 CLibraryFileView ()
virtual ~CLibraryFileView ()
virtual BOOL PreTranslateMessage (MSG *pMsg)

Protected Member Functions

virtual BOOL CheckAvailable (CLibraryTreeItem *pSel)
virtual DWORD HitTestIndex (const CPoint &point) const =0
void StartSelectedFileLoop ()
CLibraryFileGetNextSelectedFile ()
CLibraryFileGetSelectedFile ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnUpdateLibraryLaunch (CCmdUI *pCmdUI)
afx_msg void OnLibraryLaunch ()
afx_msg void OnUpdateLibraryEnqueue (CCmdUI *pCmdUI)
afx_msg void OnLibraryEnqueue ()
afx_msg void OnUpdateLibraryURL (CCmdUI *pCmdUI)
afx_msg void OnLibraryURL ()
afx_msg void OnUpdateLibraryMove (CCmdUI *pCmdUI)
afx_msg void OnLibraryMove ()
afx_msg void OnUpdateLibraryCopy (CCmdUI *pCmdUI)
afx_msg void OnLibraryCopy ()
afx_msg void OnUpdateLibraryDelete (CCmdUI *pCmdUI)
afx_msg void OnLibraryDelete ()
afx_msg void OnUpdateLibraryBitziWeb (CCmdUI *pCmdUI)
afx_msg void OnLibraryBitziWeb ()
afx_msg void OnUpdateLibraryBitziDownload (CCmdUI *pCmdUI)
afx_msg void OnLibraryBitziDownload ()
afx_msg void OnUpdateLibraryShared (CCmdUI *pCmdUI)
afx_msg void OnLibraryShared ()
afx_msg void OnUpdateLibraryProperties (CCmdUI *pCmdUI)
afx_msg void OnLibraryProperties ()
afx_msg void OnUpdateLibraryUnlink (CCmdUI *pCmdUI)
afx_msg void OnLibraryUnlink ()
afx_msg void OnUpdateSearchForThis (CCmdUI *pCmdUI)
afx_msg void OnSearchForThis ()
afx_msg void OnUpdateSearchForSimilar (CCmdUI *pCmdUI)
afx_msg void OnSearchForSimilar ()
afx_msg void OnUpdateSearchForArtist (CCmdUI *pCmdUI)
afx_msg void OnSearchForArtist ()
afx_msg void OnUpdateSearchForAlbum (CCmdUI *pCmdUI)
afx_msg void OnSearchForAlbum ()
afx_msg void OnUpdateSearchForSeries (CCmdUI *pCmdUI)
afx_msg void OnSearchForSeries ()
afx_msg void OnUpdateLibraryCreateTorrent (CCmdUI *pCmdUI)
afx_msg void OnLibraryCreateTorrent ()
afx_msg void OnUpdateLibraryRebuildAnsi (CCmdUI *pCmdUI)
afx_msg void OnLibraryRebuildAnsi ()

Protected Attributes

POSITION m_posSel
BOOL m_bEditing

Constructor & Destructor Documentation

CLibraryFileView::CLibraryFileView  ) 
 

Definition at line 114 of file CtrlLibraryFileView.cpp.

CLibraryFileView::~CLibraryFileView  )  [virtual]
 

Definition at line 119 of file CtrlLibraryFileView.cpp.


Member Function Documentation

BOOL CLibraryFileView::CheckAvailable CLibraryTreeItem pSel  )  [protected, virtual]
 

Reimplemented from CLibraryView.

Reimplemented in CLibraryCollectionView.

Definition at line 126 of file CtrlLibraryFileView.cpp.

References CAlbumFolder::GetFileCount(), CLibraryView::m_bAvailable, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, and NULL.

CLibraryFile * CLibraryFileView::GetNextSelectedFile  )  [protected]
 

Definition at line 145 of file CtrlLibraryFileView.cpp.

References CLibraryList::GetNext(), CLibraryFile::IsAvailable(), Library, CLibrary::LookupFile(), m_posSel, CLibraryView::m_pSelection, and NULL.

Referenced by OnLibraryBitziDownload(), OnLibraryCopy(), OnLibraryDelete(), OnLibraryEnqueue(), OnLibraryLaunch(), OnLibraryMove(), OnLibraryProperties(), OnLibraryRebuildAnsi(), OnLibraryShared(), OnLibraryUnlink(), OnLibraryURL(), OnUpdateLibraryEnqueue(), and OnUpdateLibraryShared().

CLibraryFile * CLibraryFileView::GetSelectedFile  )  [protected]
 

Definition at line 156 of file CtrlLibraryFileView.cpp.

References CLibraryList::GetCount(), CLibraryList::GetHead(), CLibraryFile::IsAvailable(), Library, CLibrary::LookupFile(), CLibraryView::m_pSelection, and NULL.

Referenced by OnLibraryBitziWeb(), OnLibraryCreateTorrent(), OnLibraryURL(), OnSearchForAlbum(), OnSearchForArtist(), OnSearchForSeries(), OnSearchForSimilar(), OnSearchForThis(), OnUpdateSearchForAlbum(), OnUpdateSearchForArtist(), OnUpdateSearchForSeries(), OnUpdateSearchForSimilar(), and OnUpdateSearchForThis().

virtual DWORD CLibraryFileView::HitTestIndex const CPoint &  point  )  const [protected, pure virtual]
 

Implemented in CLibraryAlbumView, CLibraryCollectionView, CLibraryDetailView, and CLibraryThumbView.

Referenced by OnMouseMove().

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

Reimplemented in CLibraryDetailView.

Definition at line 197 of file CtrlLibraryFileView.cpp.

References ID_LIBRARY_LAUNCH, CSettings::Library, CLibraryView::m_pszToolBar, Settings, CSettings::sLibrary::ShowVirtual, Skin, and CSkin::TrackPopupMenu().

Referenced by CLibraryDetailView::OnContextMenu().

int CLibraryFileView::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented in CLibraryAlbumView, CLibraryCollectionView, CLibraryDetailView, and CLibraryThumbView.

Definition at line 167 of file CtrlLibraryFileView.cpp.

References m_bEditing.

Referenced by CLibraryThumbView::OnCreate(), CLibraryDetailView::OnCreate(), CLibraryCollectionView::OnCreate(), and CLibraryAlbumView::OnCreate().

void CLibraryFileView::OnKeyDown UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected]
 

Reimplemented in CLibraryAlbumView, and CLibraryThumbView.

Definition at line 230 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetToolTip().

Referenced by CLibraryThumbView::OnKeyDown(), and CLibraryAlbumView::OnKeyDown().

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

Reimplemented in CLibraryAlbumView, and CLibraryThumbView.

Definition at line 216 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetToolTip().

Referenced by CLibraryThumbView::OnLButtonDown(), and CLibraryAlbumView::OnLButtonDown().

void CLibraryFileView::OnLibraryBitziDownload  )  [protected]
 

Definition at line 609 of file CtrlLibraryFileView.cpp.

References CBitziDownloadDlg::AddFile(), CSettings::sLibrary::BitziOkay, GetNextSelectedFile(), IDS_LIBRARY_BITZI_MESSAGE, Library, CSettings::Library, CSkin::LoadString(), CLibrary::m_pSection, CSettings::Save(), Settings, Skin, and StartSelectedFileLoop().

void CLibraryFileView::OnLibraryBitziWeb  )  [protected]
 

Definition at line 489 of file CtrlLibraryFileView.cpp.

References GetSelectedFile(), Library, CLibrary::m_pSection, and CFileExecutor::ShowBitziTicket().

void CLibraryFileView::OnLibraryCopy  )  [protected]
 

Definition at line 420 of file CtrlLibraryFileView.cpp.

References CFileCopyDlg::AddFile(), GetNextSelectedFile(), Library, CLibrary::m_pSection, NULL, and StartSelectedFileLoop().

void CLibraryFileView::OnLibraryCreateTorrent  )  [protected]
 

Definition at line 507 of file CtrlLibraryFileView.cpp.

References CSettings::BitTorrent, CSettings::sBitTorrent::DefaultTracker, CSettings::Downloads, GetSelectedFile(), Library, CLibrary::m_pSection, NULL, Settings, CSettings::sBitTorrent::TorrentCreatorPath, and CSettings::sDownloads::TorrentPath.

void CLibraryFileView::OnLibraryDelete  )  [protected]
 

Definition at line 442 of file CtrlLibraryFileView.cpp.

References CLibraryList::AddTail(), CDeleteFileDlg::Apply(), CLibraryFile::Delete, CLibraryList::GetCount(), CLibraryList::GetHead(), GetNextSelectedFile(), CLibraryList::IsEmpty(), Library, CLibrary::LookupFile(), CDeleteFileDlg::m_bAll, CLibrary::m_pSection, CLibraryFile::m_sName, CDeleteFileDlg::m_sName, NULL, CLibraryList::RemoveHead(), StartSelectedFileLoop(), and CLibrary::Update().

Referenced by PreTranslateMessage().

void CLibraryFileView::OnLibraryEnqueue  )  [protected]
 

Definition at line 327 of file CtrlLibraryFileView.cpp.

References CFileExecutor::Enqueue(), GetNextSelectedFile(), Library, CLibrary::m_pSection, and StartSelectedFileLoop().

void CLibraryFileView::OnLibraryLaunch  )  [protected]
 

Definition at line 245 of file CtrlLibraryFileView.cpp.

References CFileExecutor::Execute(), GetNextSelectedFile(), IDS_LIBRARY_VERIFY_FAIL, IDS_LIBRARY_VERIFY_FIX, Library, LoadString(), CLibrary::LookupFile(), CLibrary::m_pSection, NULL, StartSelectedFileLoop(), TS_FALSE, TS_UNKNOWN, and CLibrary::Update().

Referenced by PreTranslateMessage().

void CLibraryFileView::OnLibraryMove  )  [protected]
 

Definition at line 398 of file CtrlLibraryFileView.cpp.

References CFileCopyDlg::AddFile(), GetNextSelectedFile(), Library, CLibrary::m_pSection, NULL, and StartSelectedFileLoop().

void CLibraryFileView::OnLibraryProperties  )  [protected]
 

Definition at line 640 of file CtrlLibraryFileView.cpp.

References CFilePropertiesSheet::Add(), CFilePropertiesSheet::DoModal(), GetNextSelectedFile(), Library, CLibrary::m_pSection, and StartSelectedFileLoop().

Referenced by PreTranslateMessage().

void CLibraryFileView::OnLibraryRebuildAnsi  )  [protected]
 

Definition at line 581 of file CtrlLibraryFileView.cpp.

References CDecodeMetadataDlg::AddFile(), GetNextSelectedFile(), Library, CDecodeMetadataDlg::m_pFiles, CLibrary::m_pSection, and StartSelectedFileLoop().

void CLibraryFileView::OnLibraryShared  )  [protected]
 

Definition at line 684 of file CtrlLibraryFileView.cpp.

References GetNextSelectedFile(), Library, CLibrary::m_pSection, StartSelectedFileLoop(), TS_FALSE, TS_TRUE, TS_UNKNOWN, and CLibrary::Update().

void CLibraryFileView::OnLibraryUnlink  )  [protected]
 

Definition at line 708 of file CtrlLibraryFileView.cpp.

References CLibraryFolders::CheckAlbum(), CLibraryView::GetFolderSelection(), GetNextSelectedFile(), Library, LibraryFolders, CLibrary::m_pSection, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, NULL, CAlbumFolder::RemoveFile(), and StartSelectedFileLoop().

void CLibraryFileView::OnLibraryURL  )  [protected]
 

Definition at line 351 of file CtrlLibraryFileView.cpp.

References CURLExportDlg::AddFile(), GetNextSelectedFile(), CLibraryView::GetSelectedCount(), GetSelectedFile(), CLibraryFile::GetSize(), Library, CLibraryFile::m_bED2K, CURLCopyDlg::m_bED2K, CLibraryFile::m_bSHA1, CURLCopyDlg::m_bSHA1, CURLCopyDlg::m_bSize, CLibraryFile::m_bTiger, CURLCopyDlg::m_bTiger, CURLCopyDlg::m_nSize, CLibraryFile::m_pED2K, CURLCopyDlg::m_pED2K, CURLExportDlg::m_pFiles, CLibrary::m_pSection, CLibraryFile::m_pSHA1, CURLCopyDlg::m_pSHA1, CLibraryFile::m_pTiger, CURLCopyDlg::m_pTiger, CLibraryFile::m_sName, CURLCopyDlg::m_sName, and StartSelectedFileLoop().

void CLibraryFileView::OnMouseMove UINT  nFlags,
CPoint  point
[protected]
 

Reimplemented in CLibraryAlbumView, and CLibraryThumbView.

Definition at line 204 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetToolTip(), and HitTestIndex().

Referenced by CLibraryThumbView::OnMouseMove().

void CLibraryFileView::OnRButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Reimplemented in CLibraryAlbumView, and CLibraryThumbView.

Definition at line 223 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetToolTip().

Referenced by CLibraryThumbView::OnRButtonDown(), and CLibraryAlbumView::OnRButtonDown().

void CLibraryFileView::OnSearchForAlbum  )  [protected]
 

Definition at line 779 of file CtrlLibraryFileView.cpp.

References GetSelectedFile(), Library, CLibrary::m_pSection, and CRelatedSearch::RunSearchForAlbum().

void CLibraryFileView::OnSearchForArtist  )  [protected]
 

Definition at line 764 of file CtrlLibraryFileView.cpp.

References GetSelectedFile(), Library, CLibrary::m_pSection, and CRelatedSearch::RunSearchForArtist().

void CLibraryFileView::OnSearchForSeries  )  [protected]
 

Definition at line 794 of file CtrlLibraryFileView.cpp.

References GetSelectedFile(), Library, CLibrary::m_pSection, and CRelatedSearch::RunSearchForSeries().

void CLibraryFileView::OnSearchForSimilar  )  [protected]
 

Definition at line 749 of file CtrlLibraryFileView.cpp.

References GetSelectedFile(), Library, CLibrary::m_pSection, and CRelatedSearch::RunSearchForSimilar().

void CLibraryFileView::OnSearchForThis  )  [protected]
 

Definition at line 734 of file CtrlLibraryFileView.cpp.

References GetSelectedFile(), Library, CLibrary::m_pSection, and CRelatedSearch::RunSearchForThis().

void CLibraryFileView::OnUpdateLibraryBitziDownload CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 604 of file CtrlLibraryFileView.cpp.

References CSettings::sLibrary::BitziXML, CLibraryView::GetSelectedCount(), CSettings::Library, and Settings.

void CLibraryFileView::OnUpdateLibraryBitziWeb CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 484 of file CtrlLibraryFileView.cpp.

References CSettings::sLibrary::BitziWebSubmit, CLibraryView::GetSelectedCount(), CSettings::Library, and Settings.

void CLibraryFileView::OnUpdateLibraryCopy CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 415 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetSelectedCount().

void CLibraryFileView::OnUpdateLibraryCreateTorrent CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 502 of file CtrlLibraryFileView.cpp.

References CSettings::BitTorrent, CSettings::sBitTorrent::DefaultTracker, CLibraryView::GetSelectedCount(), Settings, and CSettings::sBitTorrent::TorrentCreatorPath.

void CLibraryFileView::OnUpdateLibraryDelete CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 437 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetSelectedCount().

void CLibraryFileView::OnUpdateLibraryEnqueue CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 300 of file CtrlLibraryFileView.cpp.

References _tcsistr(), CSettings::sMediaPlayer::FileTypes, GetNextSelectedFile(), CLibraryView::GetSelectedCount(), Library, CLibrary::m_pSection, CSettings::MediaPlayer, NULL, Settings, and StartSelectedFileLoop().

void CLibraryFileView::OnUpdateLibraryLaunch CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 240 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetSelectedCount().

void CLibraryFileView::OnUpdateLibraryMove CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 393 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetSelectedCount().

void CLibraryFileView::OnUpdateLibraryProperties CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 635 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetSelectedCount().

void CLibraryFileView::OnUpdateLibraryRebuildAnsi CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 527 of file CtrlLibraryFileView.cpp.

References CLibraryList::GetNext(), CLibraryView::GetSelectedCount(), Library, CLibrary::LookupFile(), m_posSel, CLibrary::m_pSection, CLibraryView::m_pSelection, NULL, and StartSelectedFileLoop().

void CLibraryFileView::OnUpdateLibraryShared CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 657 of file CtrlLibraryFileView.cpp.

References GetNextSelectedFile(), CLibraryView::GetSelectedCount(), Library, CLibrary::m_pSection, StartSelectedFileLoop(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.

void CLibraryFileView::OnUpdateLibraryUnlink CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 702 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetFolderSelection(), CLibraryView::GetSelectedCount(), CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, and NULL.

void CLibraryFileView::OnUpdateLibraryURL CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 342 of file CtrlLibraryFileView.cpp.

References CLibraryView::GetSelectedCount(), IDS_LIBRARY_COPYURI, IDS_LIBRARY_EXPORTURIS, and LoadString().

void CLibraryFileView::OnUpdateSearchForAlbum CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 772 of file CtrlLibraryFileView.cpp.

References CRelatedSearch::CanSearchForAlbum(), GetSelectedFile(), Library, and CLibrary::m_pSection.

void CLibraryFileView::OnUpdateSearchForArtist CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 757 of file CtrlLibraryFileView.cpp.

References CRelatedSearch::CanSearchForArtist(), GetSelectedFile(), Library, and CLibrary::m_pSection.

void CLibraryFileView::OnUpdateSearchForSeries CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 787 of file CtrlLibraryFileView.cpp.

References CRelatedSearch::CanSearchForSeries(), GetSelectedFile(), Library, and CLibrary::m_pSection.

void CLibraryFileView::OnUpdateSearchForSimilar CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 742 of file CtrlLibraryFileView.cpp.

References CRelatedSearch::CanSearchForSimilar(), GetSelectedFile(), Library, and CLibrary::m_pSection.

void CLibraryFileView::OnUpdateSearchForThis CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 727 of file CtrlLibraryFileView.cpp.

References CRelatedSearch::CanSearchForThis(), GetSelectedFile(), Library, and CLibrary::m_pSection.

BOOL CLibraryFileView::PreTranslateMessage MSG *  pMsg  )  [virtual]
 

Definition at line 174 of file CtrlLibraryFileView.cpp.

References m_bEditing, OnLibraryDelete(), OnLibraryLaunch(), and OnLibraryProperties().

void CLibraryFileView::StartSelectedFileLoop  )  [protected]
 

Definition at line 140 of file CtrlLibraryFileView.cpp.

References CLibraryList::GetHeadPosition(), m_posSel, and CLibraryView::m_pSelection.

Referenced by OnLibraryBitziDownload(), OnLibraryCopy(), OnLibraryDelete(), OnLibraryEnqueue(), OnLibraryLaunch(), OnLibraryMove(), OnLibraryProperties(), OnLibraryRebuildAnsi(), OnLibraryShared(), OnLibraryUnlink(), OnLibraryURL(), OnUpdateLibraryEnqueue(), OnUpdateLibraryRebuildAnsi(), and OnUpdateLibraryShared().


Member Data Documentation

BOOL CLibraryFileView::m_bEditing [protected]
 

Definition at line 44 of file CtrlLibraryFileView.h.

Referenced by CLibraryDetailView::OnBeginLabelEdit(), OnCreate(), CLibraryDetailView::OnEndLabelEditA(), CLibraryDetailView::OnEndLabelEditW(), and PreTranslateMessage().

POSITION CLibraryFileView::m_posSel [protected]
 

Definition at line 43 of file CtrlLibraryFileView.h.

Referenced by GetNextSelectedFile(), OnUpdateLibraryRebuildAnsi(), and StartSelectedFileLoop().


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