00001 // 00002 // DlgQueueProperties.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_DLGQUEUEPROPERTIES_H__930ED48C_23D4_4BA3_8F4C_66B115DE5083__INCLUDED_) 00023 #define AFX_DLGQUEUEPROPERTIES_H__930ED48C_23D4_4BA3_8F4C_66B115DE5083__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "DlgSkinDialog.h" 00028 00029 class CUploadQueue; 00030 00031 00032 class CQueuePropertiesDlg : public CSkinDialog 00033 { 00034 // Construction 00035 public: 00036 CQueuePropertiesDlg(CUploadQueue* pQueue, BOOL bEnable, CWnd* pParent = NULL); 00037 00038 // Dialog Data 00039 public: 00040 //{{AFX_DATA(CQueuePropertiesDlg) 00041 enum { IDD = IDD_QUEUE_PROPERTIES }; 00042 CEdit m_wndMatch; 00043 CEdit m_wndBandwidthPoints; 00044 CEdit m_wndBandwidthValue; 00045 CSpinButtonCtrl m_wndTransfersMin; 00046 CSpinButtonCtrl m_wndTransfersMax; 00047 CSpinButtonCtrl m_wndRotateTimeSpin; 00048 CEdit m_wndRotateTime; 00049 CListCtrl m_wndProtocols; 00050 CEdit m_wndMinSize; 00051 CEdit m_wndMaxSize; 00052 CComboBox m_wndMarked; 00053 CSpinButtonCtrl m_wndCapacity; 00054 CSliderCtrl m_wndBandwidthSlider; 00055 int m_nCapacity; 00056 BOOL m_bMaxSize; 00057 CString m_sMaxSize; 00058 BOOL m_bMinSize; 00059 CString m_sMinSize; 00060 BOOL m_bMarked; 00061 CString m_sName; 00062 BOOL m_bPartial; 00063 BOOL m_bProtocols; 00064 BOOL m_bRotate; 00065 BOOL m_bReward; 00066 int m_nRotateTime; 00067 int m_nTransfersMax; 00068 int m_nTransfersMin; 00069 BOOL m_bMatch; 00070 CString m_sMatch; 00071 BOOL m_bEnable; 00072 CString m_sMarked; 00073 //}}AFX_DATA 00074 00075 CImageList m_gdiProtocols; 00076 CUploadQueue* m_pQueue; 00077 BOOL m_bEnableOverride; 00078 00079 // Overrides 00080 public: 00081 //{{AFX_VIRTUAL(CQueuePropertiesDlg) 00082 protected: 00083 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00084 //}}AFX_VIRTUAL 00085 00086 // Implementation 00087 protected: 00088 //{{AFX_MSG(CQueuePropertiesDlg) 00089 virtual BOOL OnInitDialog(); 00090 virtual void OnOK(); 00091 afx_msg void OnMinimumCheck(); 00092 afx_msg void OnMaximumCheck(); 00093 afx_msg void OnProtocolsCheck(); 00094 afx_msg void OnMarkedCheck(); 00095 afx_msg void OnRotateEnable(); 00096 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 00097 afx_msg void OnChangeTransfersMax(); 00098 afx_msg void OnMatchCheck(); 00099 //}}AFX_MSG 00100 00101 // Get the protcol checkbox 00102 CButton* GetProtocolCheckbox() 00103 { 00104 return ((CButton*)GetDlgItem(IDC_PROTOCOLS_CHECK)); 00105 } 00106 00107 DECLARE_MESSAGE_MAP() 00108 }; 00109 00110 //{{AFX_INSERT_LOCATION}} 00111 00112 #endif // !defined(AFX_DLGQUEUEPROPERTIES_H__930ED48C_23D4_4BA3_8F4C_66B115DE5083__INCLUDED_)