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

CtrlLibraryTreeView.h

Go to the documentation of this file.
00001 //
00002 // CtrlLibraryTreeView.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_CTRLLIBRARYTREEVIEW_H__C1190F39_DB7E_4407_A958_1D3E90EF7318__INCLUDED_)
00023 #define AFX_CTRLLIBRARYTREEVIEW_H__C1190F39_DB7E_4407_A958_1D3E90EF7318__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "CtrlLibraryTree.h"
00028 #include "CtrlTipFolder.h"
00029 #include "CtrlTipAlbum.h"
00030 
00031 
00032 class CLibraryTreeView : public CLibraryTreeCtrl
00033 {
00034 // Construction
00035 public:
00036         CLibraryTreeView();
00037         virtual ~CLibraryTreeView();
00038 
00039         DECLARE_DYNAMIC(CLibraryTreeView)
00040 
00041 // Attributes
00042 public:
00043         BOOL                    m_bVirtual;
00044         CFolderTipCtrl  m_wndFolderTip;
00045         CAlbumTipCtrl   m_wndAlbumTip;
00046 
00047 // Operations
00048 public:
00049         void    SetVirtual(BOOL bVirtual);
00050         void    Update(DWORD nSelectCookie);
00051         BOOL    SelectFolder(LPVOID pSearch);
00052         BOOL    DropShowTarget(CLibraryList* pList, const CPoint& point);
00053         BOOL    DropObjects(CLibraryList* pList, BOOL bCopy, CSingleLock& oLock);
00054 protected:
00055         void    PostUpdate();
00056         void    UpdatePhysical(DWORD nSelectCookie);
00057         void    UpdateVirtual(DWORD nSelectCookie);
00058         BOOL    Update(CLibraryFolder* pFolder, CLibraryTreeItem* pItem, CLibraryTreeItem* pParent, BOOL bVisible, BOOL bShared, DWORD nCleanCookie, DWORD nSelectCookie, BOOL bRecurse);
00059         BOOL    Update(CAlbumFolder* pFolder, CLibraryTreeItem* pItem, CLibraryTreeItem* pParent, BOOL bVisible, DWORD nCleanCookie, DWORD nSelectCookie);
00060 
00061 // Overrides
00062 public:
00063         //{{AFX_VIRTUAL(CLibraryTreeView)
00064         public:
00065         virtual BOOL PreTranslateMessage(MSG* pMsg);
00066         //}}AFX_VIRTUAL
00067 
00068 // Implementation
00069 protected:
00070         //{{AFX_MSG(CLibraryTreeView)
00071         afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00072         afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
00073         afx_msg void OnUpdateLibraryParent(CCmdUI* pCmdUI);
00074         afx_msg void OnLibraryParent();
00075         afx_msg void OnUpdateLibraryExplore(CCmdUI* pCmdUI);
00076         afx_msg void OnLibraryExplore();
00077         afx_msg void OnUpdateLibraryScan(CCmdUI* pCmdUI);
00078         afx_msg void OnLibraryScan();
00079         afx_msg void OnUpdateLibraryShared(CCmdUI* pCmdUI);
00080         afx_msg void OnLibraryShared();
00081         afx_msg void OnLibraryAdd();
00082         afx_msg void OnUpdateLibraryRemove(CCmdUI* pCmdUI);
00083         afx_msg void OnLibraryRemove();
00084         afx_msg void OnUpdateLibraryFolderProperties(CCmdUI* pCmdUI);
00085         afx_msg void OnLibraryFolderProperties();
00086         afx_msg void OnUpdateLibraryFolderNew(CCmdUI* pCmdUI);
00087         afx_msg void OnLibraryFolderNew();
00088         afx_msg void OnUpdateLibraryFolderDelete(CCmdUI* pCmdUI);
00089         afx_msg void OnLibraryFolderDelete();
00090         afx_msg void OnUpdateLibraryFolderMetadata(CCmdUI* pCmdUI);
00091         afx_msg void OnLibraryFolderMetadata();
00092         afx_msg void OnUpdateLibraryFolderEnqueue(CCmdUI* pCmdUI);
00093         afx_msg void OnLibraryFolderEnqueue();
00094         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00095         afx_msg void OnUpdateLibraryFolderFileProperties(CCmdUI* pCmdUI);
00096         afx_msg void OnLibraryFolderFileProperties();
00097         afx_msg void OnUpdateLibraryRebuild(CCmdUI* pCmdUI);
00098         afx_msg void OnLibraryRebuild();
00099         //}}AFX_MSG
00100 
00101         DECLARE_MESSAGE_MAP()
00102 
00103 public:
00104         afx_msg void OnUpdateLibraryExportCollection(CCmdUI *pCmdUI);
00105         afx_msg void OnLibraryExportCollection();
00106 };
00107 
00108 //{{AFX_INSERT_LOCATION}}
00109 
00110 #endif // !defined(AFX_CTRLLIBRARYTREEVIEW_H__C1190F39_DB7E_4407_A958_1D3E90EF7318__INCLUDED_)

Generated on Thu Dec 15 10:39:36 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2