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_DOWNLOADS_INFO_H__607680D5_1B90_421B_AF4E_1C523B15CCB3__INCLUDED_) 00007 #define AFX_DOWNLOADS_INFO_H__607680D5_1B90_421B_AF4E_1C523B15CCB3__INCLUDED_ 00008 00009 #include "Downloads_InfoFrame.h" 00010 #include "Downloads_Log.h" 00011 #include "Downloads_Progress.h" 00012 #include "Downloads_VideoPreview.h" 00013 #include "Downloads_Opinions.h" 00014 #if _MSC_VER > 1000 00015 #pragma once 00016 #endif 00017 00018 #include "fsDownload.h" 00019 #include "Downloads_Bittorrent.h" 00020 00021 enum CDownloads_Info_Tab 00022 { 00023 DIT_LOG = 0, 00024 DIT_BT = 1, 00025 DIT_PROGRESS = 2, 00026 DIT_MEDIAPREVIEW = 3, 00027 DIT_OPINIONS = 4, 00028 }; 00029 00030 class CDownloads_Info : public CTabCtrl 00031 { 00032 friend class CMainFrame; 00033 00034 public: 00035 CDownloads_Info(); 00036 00037 public: 00038 00039 public: 00040 00041 //{{AFX_VIRTUAL(CDownloads_Info) 00042 //}}AFX_VIRTUAL 00043 00044 public: 00045 void UpdateBtStat(); 00046 CDownloads_Bittorrent m_bt; 00047 int get_CurTab(); 00048 void set_CurTab (int nIndex); 00049 CDownloads_Progress* Get_ProgressWindow(); 00050 CDownloads_Log* Get_LogWindow(); 00051 00052 void AddDownloadEvent (fsDownloadEvents *event); 00053 00054 void UpdateActiveDownload(); 00055 00056 void Set_ActiveDownload (vmsDownloadSmartPtr dld); 00057 vmsDownloadSmartPtr Get_ActiveDownload(); 00058 00059 void SaveState(); 00060 00061 void ApplyLanguage(); 00062 BOOL Create (CWnd *pParent); 00063 virtual ~CDownloads_Info(); 00064 00065 CDownloads_Opinions m_opinions; 00066 CDownloads_VideoPreview m_video; 00067 CDownloads_Progress m_progress; 00068 00069 protected: 00070 void ApplyBtTab(); 00071 bool m_bBtTabShowing; 00072 bool m_bBtTabWasActive; 00073 BOOL IsBtDownloadActive(); 00074 vmsDownloadSmartPtr m_activeDld; 00075 int m_cy; 00076 00077 void ApplyCurTab(); 00078 CDownloads_Log m_log; 00079 CImageList m_images; 00080 CDownloads_InfoFrame m_frame; 00081 CFont m_itemsFont; 00082 //{{AFX_MSG(CDownloads_Info) 00083 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00084 afx_msg void OnSize(UINT nType, int cx, int cy); 00085 afx_msg void OnPaint(); 00086 afx_msg void OnSelchange(NMHDR* pNMHDR, LRESULT* pResult); 00087 afx_msg BOOL OnEraseBkgnd(CDC* pDC); 00088 //}}AFX_MSG 00089 00090 DECLARE_MESSAGE_MAP() 00091 }; 00092 00093 //{{AFX_INSERT_LOCATION}//}} 00094 00095 #endif
1.5.6