00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_DOWNLOADERPROPERTIES_BTPAGE_H__D0AE310B_373D_4D46_B06F_37634BB7AB9A__INCLUDED_) 00007 #define AFX_DOWNLOADERPROPERTIES_BTPAGE_H__D0AE310B_373D_4D46_B06F_37634BB7AB9A__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 class CDownloaderProperties_BtPage : public CPropertyPage 00014 { 00015 DECLARE_DYNCREATE(CDownloaderProperties_BtPage) 00016 00017 public: 00018 CDownloaderProperties_BtPage(); 00019 ~CDownloaderProperties_BtPage(); 00020 00021 //{{AFX_DATA(CDownloaderProperties_BtPage) 00022 enum { IDD = IDD_DLDR_BT }; 00023 CComboBox m_wndLimitDim; 00024 CTabCtrl m_tabTrafficModes; 00025 //}}AFX_DATA 00026 00027 //{{AFX_VIRTUAL(CDownloaderProperties_BtPage) 00028 public: 00029 virtual BOOL OnApply(); 00030 protected: 00031 virtual void DoDataExchange(CDataExchange* pDX); 00032 //}}AFX_VIRTUAL 00033 00034 protected: 00035 void PrepareCHMgr(CPoint point); 00036 void ApplyLanguage(); 00037 00038 bool m_bDontSetModif; 00039 int m_iOldMode; 00040 void UpdateEnabled(); 00041 00042 void DlgToMode(int mode); 00043 00044 void ModeToDlg(); 00045 00046 struct _inc_ModeStgs { 00047 int iUplTrafLim; 00048 int iUplConnLim; 00049 _inc_ModeStgs (int t = -1, int c = -1) : iUplTrafLim (t), iUplConnLim (c) {} 00050 }; 00051 00052 std::vector <_inc_ModeStgs> m_vModes; 00053 00054 //{{AFX_MSG(CDownloaderProperties_BtPage) 00055 virtual BOOL OnInitDialog(); 00056 afx_msg void OnSelchangeTrafficmodestab(NMHDR* pNMHDR, LRESULT* pResult); 00057 afx_msg void OnLimit(); 00058 afx_msg void OnLimituploads(); 00059 afx_msg void OnEnable(); 00060 afx_msg void OnChangeLimitval(); 00061 afx_msg void OnSelchangeLimitdim(); 00062 afx_msg void OnChangeUpllimitval(); 00063 afx_msg void OnChangePortFrom(); 00064 afx_msg void OnChangePortTo(); 00065 afx_msg void OnUseDht(); 00066 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); 00067 afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); 00068 afx_msg void OnWhatisthis(); 00069 afx_msg void OnAssocwithtorrent(); 00070 afx_msg void OnDisableSeeding(); 00071 //}}AFX_MSG 00072 DECLARE_MESSAGE_MAP() 00073 00074 }; 00075 00076 //{{AFX_INSERT_LOCATION}//}} 00077 00078 #endif
1.5.6