#include <DownloaderProperties_BtPage.h>
Public Types | |
| enum | { IDD = IDD_DLDR_BT } |
Public Member Functions | |
| CDownloaderProperties_BtPage () | |
| ~CDownloaderProperties_BtPage () | |
| virtual BOOL | OnApply () |
Public Attributes | |
| CComboBox | m_wndLimitDim |
| CTabCtrl | m_tabTrafficModes |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| void | PrepareCHMgr (CPoint point) |
| void | ApplyLanguage () |
| void | UpdateEnabled () |
| void | DlgToMode (int mode) |
| void | ModeToDlg () |
| virtual BOOL | OnInitDialog () |
| afx_msg void | OnSelchangeTrafficmodestab (NMHDR *pNMHDR, LRESULT *pResult) |
| afx_msg void | OnLimit () |
| afx_msg void | OnLimituploads () |
| afx_msg void | OnEnable () |
| afx_msg void | OnChangeLimitval () |
| afx_msg void | OnSelchangeLimitdim () |
| afx_msg void | OnChangeUpllimitval () |
| afx_msg void | OnChangePortFrom () |
| afx_msg void | OnChangePortTo () |
| afx_msg void | OnUseDht () |
| afx_msg void | OnContextMenu (CWnd *pWnd, CPoint point) |
| afx_msg BOOL | OnHelpInfo (HELPINFO *pHelpInfo) |
| afx_msg void | OnWhatisthis () |
| afx_msg void | OnAssocwithtorrent () |
| afx_msg void | OnDisableSeeding () |
Protected Attributes | |
| bool | m_bDontSetModif |
| int | m_iOldMode |
| std::vector< _inc_ModeStgs > | m_vModes |
Classes | |
| struct | _inc_ModeStgs |
Definition at line 13 of file DownloaderProperties_BtPage.h.
| anonymous enum |
| CDownloaderProperties_BtPage::CDownloaderProperties_BtPage | ( | ) |
| CDownloaderProperties_BtPage::~CDownloaderProperties_BtPage | ( | ) |
Definition at line 27 of file DownloaderProperties_BtPage.cpp.
| BOOL CDownloaderProperties_BtPage::OnApply | ( | ) | [virtual] |
Definition at line 115 of file DownloaderProperties_BtPage.cpp.
References _App, _BT, vmsBtSupport::ApplyDHTSettings(), vmsBtSupport::ApplyListenPortSettings(), vmsTorrentExtension::Associate(), vmsTorrentExtension::AssociateWith(), fsAppSettings::Bittorrent_DisableSeedingByDef(), fsAppSettings::Bittorrent_Enable(), fsAppSettings::Bittorrent_EnableDHT(), fsAppSettings::Bittorrent_ListenPort_From(), fsAppSettings::Bittorrent_ListenPort_To(), fsAppSettings::Bittorrent_OldTorrentAssociation(), fsAppSettings::Bittorrent_UploadConnectionLimit(), fsAppSettings::Bittorrent_UploadTrafficLimit(), BOOL, DlgToMode(), FALSE, vmsTorrentExtension::GetCurrentAssociation(), IDC_ASSOCWITHTORRENT, IDC_DISABLE_SEEDING, IDC_ENABLE, IDC_PORT_FROM, IDC_PORT_TO, IDC_USE_DHT, vmsTorrentExtension::IsAssociatedWithUs(), m_iOldMode, and m_vModes.
| void CDownloaderProperties_BtPage::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 31 of file DownloaderProperties_BtPage.cpp.
References IDC_LIMITDIM, IDC_TRAFFICMODESTAB, m_tabTrafficModes, and m_wndLimitDim.
| void CDownloaderProperties_BtPage::PrepareCHMgr | ( | CPoint | point | ) | [protected] |
Definition at line 342 of file DownloaderProperties_BtPage.cpp.
References _CHMgr, IDC__TO, IDC__USEPORTS, IDC_ENABLE, IDC_LIMIT, IDC_LIMITDIM, IDC_LIMITUPLOADS, IDC_LIMITVAL, IDC_PORT_FROM, IDC_PORT_TO, IDC_UPLLIMITVAL, IDC_USE_DHT, L_BT_USEPORTSINRANGE_HERE, L_DIMHERE, L_ENABLEBT_HERE, L_ENABLEDHT_HERE, L_LIMITUPLOADCONNS_HERE, L_LIMITUPLOADTRAF_HERE, LS, and fsContextHelpMgr::PrepareContextMenu().
Referenced by OnContextMenu(), and OnHelpInfo().
| void CDownloaderProperties_BtPage::ApplyLanguage | ( | ) | [protected] |
Definition at line 298 of file DownloaderProperties_BtPage.cpp.
References _LngMgr, fsMFCLangMgr::ApplyLanguage(), IDC__TO, IDC__USEPORTS, IDC_ASSOCWITHTORRENT, IDC_DISABLE_SEEDING, IDC_ENABLE, IDC_LIMIT, IDC_LIMITUPLOADS, IDC_USE_DHT, L_ASSOCWITHTORRENT, L_DISABLE_SEEDING_BYDEF, L_ENABLE_DHT, L_ENABLEBTSUPPORT, L_LIMIT_UPLOAD_CONNECTIONS, L_LIMIT_UPLOAD_TRAFFIC, L_TO, L_USE_PORTS_IN_RANGE_FROM, and TRUE.
Referenced by OnInitDialog().
| void CDownloaderProperties_BtPage::UpdateEnabled | ( | ) | [protected] |
Definition at line 220 of file DownloaderProperties_BtPage.cpp.
References b, BOOL, FALSE, IDC__TO, IDC__USEPORTS, IDC_ENABLE, IDC_LIMIT, IDC_LIMITDIM, IDC_LIMITUPLOADS, IDC_LIMITVAL, IDC_PORT_FROM, IDC_PORT_FROM_SPIN, IDC_PORT_TO, IDC_PORT_TO_SPIN, IDC_TRAFFICMODESTAB, IDC_UPLLIMITVAL, IDC_UPLLIMITVALSPIN, and IDC_USE_DHT.
Referenced by ModeToDlg(), OnEnable(), OnInitDialog(), OnLimit(), and OnLimituploads().
| void CDownloaderProperties_BtPage::DlgToMode | ( | int | mode | ) | [protected] |
Definition at line 203 of file DownloaderProperties_BtPage.cpp.
References vmsDialogHelper::GetDlgBytesGroup(), IDC_LIMIT, IDC_LIMITDIM, IDC_LIMITUPLOADS, IDC_LIMITVAL, IDC_UPLLIMITVAL, and m_vModes.
Referenced by OnApply(), and OnSelchangeTrafficmodestab().
| void CDownloaderProperties_BtPage::ModeToDlg | ( | ) | [protected] |
Definition at line 171 of file DownloaderProperties_BtPage.cpp.
References IDC_LIMIT, IDC_LIMITDIM, IDC_LIMITUPLOADS, IDC_LIMITVAL, IDC_UPLLIMITVAL, m_bDontSetModif, m_tabTrafficModes, m_vModes, vmsDialogHelper::SetDlgBytesGroup(), and UpdateEnabled().
Referenced by OnInitDialog(), and OnSelchangeTrafficmodestab().
| BOOL CDownloaderProperties_BtPage::OnInitDialog | ( | ) | [protected, virtual] |
Definition at line 60 of file DownloaderProperties_BtPage.cpp.
References _App, ApplyLanguage(), fsAppSettings::Bittorrent_DisableSeedingByDef(), fsAppSettings::Bittorrent_Enable(), fsAppSettings::Bittorrent_EnableDHT(), fsAppSettings::Bittorrent_ListenPort_From(), fsAppSettings::Bittorrent_ListenPort_To(), fsAppSettings::Bittorrent_UploadConnectionLimit(), fsAppSettings::Bittorrent_UploadTrafficLimit(), IDC_PORT_FROM_SPIN, IDC_PORT_TO_SPIN, IDC_UPLLIMITVALSPIN, vmsTorrentExtension::IsAssociatedWithUs(), L_B, L_HEAVY, L_KB, L_LIGHT, L_MB, L_MEDIUM, L_S, LS, m_iOldMode, m_tabTrafficModes, m_vModes, m_wndLimitDim, ModeToDlg(), TRUE, and UpdateEnabled().
| void CDownloaderProperties_BtPage::OnSelchangeTrafficmodestab | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
Definition at line 163 of file DownloaderProperties_BtPage.cpp.
References DlgToMode(), m_iOldMode, m_tabTrafficModes, and ModeToDlg().
| void CDownloaderProperties_BtPage::OnLimit | ( | ) | [protected] |
| void CDownloaderProperties_BtPage::OnLimituploads | ( | ) | [protected] |
| void CDownloaderProperties_BtPage::OnEnable | ( | ) | [protected] |
| void CDownloaderProperties_BtPage::OnChangeLimitval | ( | ) | [protected] |
| void CDownloaderProperties_BtPage::OnSelchangeLimitdim | ( | ) | [protected] |
| void CDownloaderProperties_BtPage::OnChangeUpllimitval | ( | ) | [protected] |
| void CDownloaderProperties_BtPage::OnChangePortFrom | ( | ) | [protected] |
Definition at line 283 of file DownloaderProperties_BtPage.cpp.
| void CDownloaderProperties_BtPage::OnChangePortTo | ( | ) | [protected] |
Definition at line 288 of file DownloaderProperties_BtPage.cpp.
| void CDownloaderProperties_BtPage::OnUseDht | ( | ) | [protected] |
Definition at line 293 of file DownloaderProperties_BtPage.cpp.
| void CDownloaderProperties_BtPage::OnContextMenu | ( | CWnd * | pWnd, | |
| CPoint | point | |||
| ) | [protected] |
Definition at line 314 of file DownloaderProperties_BtPage.cpp.
References _CHMgr, PrepareCHMgr(), and fsContextHelpMgr::ShowMenu().
| BOOL CDownloaderProperties_BtPage::OnHelpInfo | ( | HELPINFO * | pHelpInfo | ) | [protected] |
Definition at line 320 of file DownloaderProperties_BtPage.cpp.
References _CHMgr, FALSE, NULL, fsContextHelpMgr::OnWT(), PrepareCHMgr(), and TRUE.
| void CDownloaderProperties_BtPage::OnWhatisthis | ( | ) | [protected] |
Definition at line 337 of file DownloaderProperties_BtPage.cpp.
References _CHMgr, and fsContextHelpMgr::OnWT().
| void CDownloaderProperties_BtPage::OnAssocwithtorrent | ( | ) | [protected] |
Definition at line 364 of file DownloaderProperties_BtPage.cpp.
| void CDownloaderProperties_BtPage::OnDisableSeeding | ( | ) | [protected] |
Definition at line 369 of file DownloaderProperties_BtPage.cpp.
Definition at line 23 of file DownloaderProperties_BtPage.h.
Referenced by DoDataExchange(), and OnInitDialog().
Definition at line 24 of file DownloaderProperties_BtPage.h.
Referenced by DoDataExchange(), ModeToDlg(), OnInitDialog(), and OnSelchangeTrafficmodestab().
bool CDownloaderProperties_BtPage::m_bDontSetModif [protected] |
Definition at line 38 of file DownloaderProperties_BtPage.h.
Referenced by ModeToDlg(), OnChangeLimitval(), OnChangeUpllimitval(), and OnSelchangeLimitdim().
int CDownloaderProperties_BtPage::m_iOldMode [protected] |
Definition at line 39 of file DownloaderProperties_BtPage.h.
Referenced by OnApply(), OnInitDialog(), and OnSelchangeTrafficmodestab().
std::vector<_inc_ModeStgs> CDownloaderProperties_BtPage::m_vModes [protected] |
Definition at line 52 of file DownloaderProperties_BtPage.h.
Referenced by DlgToMode(), ModeToDlg(), OnApply(), and OnInitDialog().
1.5.6