00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "StdAfx.h"
00023 #include "Shareaza.h"
00024 #include "Settings.h"
00025 #include "Library.h"
00026 #include "CtrlLibraryFrame.h"
00027 #include "CtrlLibraryPanel.h"
00028
00029 #ifdef _DEBUG
00030 #define new DEBUG_NEW
00031 #undef THIS_FILE
00032 static char THIS_FILE[] = __FILE__;
00033 #endif
00034
00035 IMPLEMENT_DYNAMIC(CLibraryPanel, CWnd)
00036
00037 BEGIN_MESSAGE_MAP(CLibraryPanel, CWnd)
00038
00039
00040 END_MESSAGE_MAP()
00041
00042
00044
00045
00046 CLibraryPanel::CLibraryPanel()
00047 {
00048 m_bAvailable = FALSE;
00049 }
00050
00051 CLibraryPanel::~CLibraryPanel()
00052 {
00053 }
00054
00056
00057
00058 BOOL CLibraryPanel::Create(CWnd* pParentWnd)
00059 {
00060 CRect rect;
00061 return CWnd::Create( NULL, NULL, WS_CHILD, rect, pParentWnd, IDC_LIBRARY_PANEL, NULL );
00062 }
00063
00064 BOOL CLibraryPanel::CheckAvailable(CLibraryTreeItem* pFolders, CLibraryList* pObjects)
00065 {
00066 return ( m_bAvailable = FALSE );
00067 }
00068
00069 void CLibraryPanel::Update()
00070 {
00071 }
00072
00074
00075
00076 CLibraryTreeItem* CLibraryPanel::GetFolderSelection()
00077 {
00078 CLibraryFrame* pFrame = (CLibraryFrame*)GetOwner();
00079 ASSERT_KINDOF(CLibraryFrame, pFrame);
00080 return pFrame->GetFolderSelection();
00081 }
00082
00083 CLibraryList* CLibraryPanel::GetViewSelection()
00084 {
00085 CLibraryFrame* pFrame = (CLibraryFrame*)GetOwner();
00086 ASSERT_KINDOF(CLibraryFrame, pFrame);
00087 return pFrame->GetViewSelection();
00088 }
00089