You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
3.5 KiB
133 lines
3.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: TabReportDlg.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of TabReportDlg.h
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(AFX_TABREPORTDLG_H__E4084058_490D_46F6_A3F9_A9379C0B1214__INCLUDED_)
|
|
#define AFX_TABREPORTDLG_H__E4084058_490D_46F6_A3F9_A9379C0B1214__INCLUDED_
|
|
|
|
#include "ImageViewWnd.h" // Added by ClassView
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "ProgramSkin.h"
|
|
|
|
class CMainDlg;
|
|
|
|
class CTabReportDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CTabReportDlg(CWnd* pParent = NULL); // standard constructor
|
|
virtual ~CTabReportDlg();
|
|
|
|
public:
|
|
void SetReportFile( PBYTE pList, INT nSize );
|
|
void SetReportList( PBYTE pBuffer, INT nSize );
|
|
|
|
public:
|
|
// Dialog Data
|
|
//{{AFX_DATA(CTabReportDlg)
|
|
enum { IDD = IDD_REPORT_DLG };
|
|
CButton m_ButtonDetection;
|
|
CStatic m_StaticPreview;
|
|
CSliderCtrl m_SliderPreview;
|
|
CSliderCtrl m_SliderImage;
|
|
CStatic m_StaticImage;
|
|
CRichEditCtrl m_RichEdit;
|
|
CStatic m_StaticLocator;
|
|
CTreeCtrl m_Tree;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CTabReportDlg)
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CTabReportDlg)
|
|
afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
|
|
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnButtonDetection();
|
|
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
public:
|
|
void DownloadListFromHost();
|
|
void DownloadFileFromHost();
|
|
void SetMainDlg( CMainDlg *pDlg ) { m_pMainDlg = pDlg; }
|
|
|
|
private:
|
|
HTREEITEM m_hListTreeNode;
|
|
BOOL m_bListWait;
|
|
INT m_nListLevel;
|
|
PCHAR m_pListBuffer;
|
|
INT m_nListBufferSize;
|
|
TCHAR m_pListName[MAX_PATH];
|
|
PCHAR *m_ppListPtr;
|
|
INT m_nListPtrCount;
|
|
PCHAR m_pListLocator;
|
|
PCHAR m_pListImage;
|
|
PCHAR m_pListPreview;
|
|
PCHAR m_pListText;
|
|
|
|
|
|
private:
|
|
TCHAR m_pFileName[MAX_PATH];
|
|
BOOL m_bFileWait;
|
|
INT m_nFileLevel;
|
|
|
|
private:
|
|
CMainDlg *m_pMainDlg;
|
|
|
|
private:
|
|
INT MakeTreePath( HTREEITEM hNode, LPTSTR pName, PINT pLength );
|
|
|
|
private:
|
|
CImageViewWnd m_ImageWnd;
|
|
CImageViewWnd m_PreviewWnd;
|
|
CImageViewWnd m_LocatorWnd;
|
|
|
|
public:
|
|
void SetSkin( CProgramSkin *pProgramSkin );
|
|
void UpdateControlPosition();
|
|
|
|
private:
|
|
void ClearCurrentReport();
|
|
void InitFromCache();
|
|
BOOL CheckFile( LPCTSTR pFileName, DWORD dwFileSize );
|
|
BOOL IsInCache( LPCTSTR pFileName, PDWORD pFileSize );
|
|
BOOL PlaceToCache( LPCTSTR pFileName, PBYTE pData, INT nCount );
|
|
BOOL OpenFromCache( LPCTSTR pFolderName );
|
|
BOOL ShowDataFile( LPCTSTR pFileName );
|
|
void DeleteOldFiles( PBYTE pList, INT nSize );
|
|
|
|
private:
|
|
CProgramSkin *m_pSkin;
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_TABREPORTDLG_H__E4084058_490D_46F6_A3F9_A9379C0B1214__INCLUDED_)
|