00001 // 00002 // PageSettingsLibrary.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_PAGESETTINGSLIBRARY_H__7A9C2316_0CF6_4251_9BD2_C56B9DA5AD89__INCLUDED_) 00023 #define AFX_PAGESETTINGSLIBRARY_H__7A9C2316_0CF6_4251_9BD2_C56B9DA5AD89__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "WndSettingsPage.h" 00028 #include "CtrlIconButton.h" 00029 00030 00031 class CLibrarySettingsPage : public CSettingsPage 00032 { 00033 // Construction 00034 public: 00035 CLibrarySettingsPage(); 00036 virtual ~CLibrarySettingsPage(); 00037 00038 DECLARE_DYNCREATE(CLibrarySettingsPage) 00039 00040 // Dialog Data 00041 public: 00042 //{{AFX_DATA(CLibrarySettingsPage) 00043 enum { IDD = IDD_SETTINGS_LIBRARY }; 00044 CSpinButtonCtrl m_wndRecentTotal; 00045 CSpinButtonCtrl m_wndRecentDays; 00046 CButton m_wndSafeRemove; 00047 CButton m_wndSafeAdd; 00048 CComboBox m_wndSafeList; 00049 CButton m_wndPrivateRemove; 00050 CButton m_wndPrivateAdd; 00051 CComboBox m_wndPrivateList; 00052 BOOL m_bWatchFolders; 00053 DWORD m_nRecentDays; 00054 int m_nRecentTotal; 00055 BOOL m_bStoreViews; 00056 BOOL m_bHighPriorityHash; 00057 BOOL m_bBrowseFiles; 00058 CIconButtonCtrl m_wndCollectionPath; 00059 CString m_sCollectionPath; 00060 //}}AFX_DATA 00061 00062 // Overrides 00063 public: 00064 //{{AFX_VIRTUAL(CLibrarySettingsPage) 00065 public: 00066 virtual void OnOK(); 00067 protected: 00068 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00069 //}}AFX_VIRTUAL 00070 00071 // Implementation 00072 protected: 00073 // Generated message map functions 00074 //{{AFX_MSG(CLibrarySettingsPage) 00075 virtual BOOL OnInitDialog(); 00076 afx_msg void OnSelChangeSafeTypes(); 00077 afx_msg void OnEditChangeSafeTypes(); 00078 afx_msg void OnSafeAdd(); 00079 afx_msg void OnSafeRemove(); 00080 afx_msg void OnSelChangePrivateTypes(); 00081 afx_msg void OnEditChangePrivateTypes(); 00082 afx_msg void OnPrivateAdd(); 00083 afx_msg void OnPrivateRemove(); 00084 afx_msg void OnRecentClear(); 00085 afx_msg void OnCollectionsBrowse(); 00086 //}}AFX_MSG 00087 00088 DECLARE_MESSAGE_MAP() 00089 00090 }; 00091 00092 //{{AFX_INSERT_LOCATION}} 00093 00094 #endif // !defined(AFX_PAGESETTINGSLIBRARY_H__7A9C2316_0CF6_4251_9BD2_C56B9DA5AD89__INCLUDED_)