00001 // 00002 // PageSettingsBitTorrent.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_PAGESETTINGSBITTORRENT_H__7A9C2316_0CF6_4251_9BD2_C56B9DA5AD89__INCLUDED_) 00023 #define AFX_PAGESETTINGSBITTORRENT_H__7A9C2316_0CF6_4251_9BD2_C56B9DA5AD89__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "WndSettingsPage.h" 00028 #include "CtrlIconButton.h" 00029 00030 00031 class CBitTorrentSettingsPage : public CSettingsPage 00032 { 00033 // Construction 00034 public: 00035 CBitTorrentSettingsPage(); 00036 virtual ~CBitTorrentSettingsPage(); 00037 00038 DECLARE_DYNCREATE(CBitTorrentSettingsPage) 00039 00040 // Dialog Data 00041 public: 00042 //{{AFX_DATA(CBitTorrentSettingsPage) 00043 enum { IDD = IDD_SETTINGS_BITTORRENT }; 00044 BOOL m_bTorrentInterface; 00045 BOOL m_bEndGame; 00046 CSpinButtonCtrl m_wndLinksSpin; 00047 int m_nLinks; 00048 CSpinButtonCtrl m_wndDownloadsSpin; 00049 int m_nDownloads; 00050 BOOL m_bAutoClear; 00051 CEdit m_wndClearPercentage; 00052 CSpinButtonCtrl m_wndClearPercentageSpin; 00053 int m_nClearPercentage; 00054 BOOL m_bPrefBTSources; 00055 CIconButtonCtrl m_wndTorrentPath; 00056 CString m_sTorrentPath; 00057 CString m_sTracker; 00058 CIconButtonCtrl m_wndMakerPath; 00059 CString m_sMakerPath; 00060 //}}AFX_DATA 00061 00062 // Overrides 00063 public: 00064 //{{AFX_VIRTUAL(CBitTorrentSettingsPage) 00065 public: 00066 virtual void OnOK(); 00067 virtual BOOL OnSetActive(); 00068 protected: 00069 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00070 //}}AFX_VIRTUAL 00071 00072 // Implementation 00073 protected: 00074 // Generated message map functions 00075 //{{AFX_MSG(CLibrarySettingsPage) 00076 virtual BOOL OnInitDialog(); 00077 afx_msg void OnTorrentsAutoClear(); 00078 afx_msg void OnTorrentsBrowse(); 00079 afx_msg void OnMakerBrowse(); 00080 //}}AFX_MSG 00081 00082 DECLARE_MESSAGE_MAP() 00083 00084 }; 00085 00086 //{{AFX_INSERT_LOCATION}} 00087 00088 #endif // !defined(AFX_PAGESETTINGSBITTORRENT_H__7A9C2316_0CF6_4251_9BD2_C56B9DA5AD89__INCLUDED_)