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

PageSettingsDownloads.h

Go to the documentation of this file.
00001 //
00002 // PageSettingsDownloads.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_PAGESETTINGSDOWNLOADS_H__07DD1C53_0E05_459B_812F_CE9FCA0BA808__INCLUDED_)
00023 #define AFX_PAGESETTINGSDOWNLOADS_H__07DD1C53_0E05_459B_812F_CE9FCA0BA808__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "WndSettingsPage.h"
00028 #include "CtrlIconButton.h"
00029 #include "afxcmn.h"
00030 
00031 
00032 class CDownloadsSettingsPage : public CSettingsPage
00033 {
00034 // Construction
00035 public:
00036         CDownloadsSettingsPage();
00037         virtual ~CDownloadsSettingsPage();
00038 
00039         DECLARE_DYNCREATE(CDownloadsSettingsPage)
00040 
00041 // Dialog Data
00042 public:
00043         //{{AFX_DATA(CDownloadsSettingsPage)
00044         enum { IDD = IDD_SETTINGS_DOWNLOADS };
00045         CSpinButtonCtrl m_wndMaxDownTransfers;
00046         CSpinButtonCtrl m_wndMaxFileTransfers;
00047         CSpinButtonCtrl m_wndMaxDownFiles;
00048         CIconButtonCtrl m_wndIncompletePath;
00049         CIconButtonCtrl m_wndDownloadsPath;
00050         CComboBox               m_wndBandwidthLimit;
00051         CComboBox               m_wndQueueLimit;
00052         CString                 m_sDownloadsPath;
00053         CString                 m_sIncompletePath;
00054         int                             m_nMaxDownFiles;
00055         int                             m_nMaxFileTransfers;
00056         int                             m_nMaxDownTransfers;
00057         CString                 m_sBandwidthLimit;
00058         CString                 m_sQueueLimit;
00059         BOOL                    m_bRequireConnect;
00060         //}}AFX_DATA
00061 
00062         BOOL m_bDownloadsChanged;
00063 
00064 // Overrides
00065 public:
00066         //{{AFX_VIRTUAL(CDownloadsSettingsPage)
00067         public:
00068         virtual void OnOK();
00069         virtual BOOL OnKillActive();
00070         protected:
00071         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00072         //}}AFX_VIRTUAL
00073 
00074 // Implementation
00075 protected:
00076         BOOL IsNotLimited(LPCTSTR pText);
00077         //{{AFX_MSG(CDownloadsSettingsPage)
00078         virtual BOOL OnInitDialog();
00079         afx_msg void OnDownloadsBrowse();
00080         afx_msg void OnIncompleteBrowse();
00081         //}}AFX_MSG
00082         afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
00083         DECLARE_MESSAGE_MAP()
00084 };
00085 
00086 //{{AFX_INSERT_LOCATION}}
00087 
00088 #endif // !defined(AFX_PAGESETTINGSDOWNLOADS_H__07DD1C53_0E05_459B_812F_CE9FCA0BA808__INCLUDED_)

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