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

CtrlLibraryPanel.cpp

Go to the documentation of this file.
00001 //
00002 // CtrlLibraryPanel.cpp
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 #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         //{{AFX_MSG_MAP(CLibraryPanel)
00039         //}}AFX_MSG_MAP
00040 END_MESSAGE_MAP()
00041 
00042 
00044 // CLibraryPanel construction
00045 
00046 CLibraryPanel::CLibraryPanel()
00047 {
00048         m_bAvailable = FALSE;
00049 }
00050 
00051 CLibraryPanel::~CLibraryPanel()
00052 {
00053 }
00054 
00056 // CLibraryPanel operations
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 // CLibraryPanel helper operations
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 

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