Old fashion design for PC-104
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.
 
 
 
 
 

151 lines
4.5 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 24/04/2000
// Last modification: 17/11/2003
// Project Intruder Position Indicator
// SUBSYSTEM: Transfer Dialog
// FILE: TransferDlg.h
// AUTHOR: Chizhevskiy Sergey
// OVERVIEW
// ~~~~~~~~
// Header file of class CTransferDlg
//----------------------------------------------------------------------------
#if !defined(_TRANSFERDLG_H_INCLUDED_)
#define _TRANSFERDLG_H_INCLUDED_
#include "Resource.h" // Added by ClassView
class CApplication;
class CProfile;
#include "..\LgLib\Device\LgDeviceLGS.h"
class CTransferDlg
{
public:
CTransferDlg();
~CTransferDlg();
public:
void DrawEmptyMaps( HWND hWnd );
void SetApplication(CApplication *pApplication, CProfile *pProfile );
BOOL DoModal( HWND hWnd );
enum { IDD = IDD_TRANSFER_DLG };
private:
BOOL DialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
static BOOL CALLBACK DialogProcTransferDlg(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
void EnableControls(HWND hWnd, BOOL bEnable);
void EnableParameters(HWND hWnd, BOOL bEnable);
VOID ClearMasterBitmap(HWND hWnd, LPCTSTR lpFileName); // 25/03/2001
void RedrawMap(HWND hWnd , BOOL fDurty = FALSE);
void DrawMaps(HWND hWnd);
void DrawFullMaps(HWND hWnd);
void DrawFixedVideo( HDC hDC, RECT& rect, double scale );
BOOL SendFiles( HWND hWnd );
BOOL OnButtonSetCommSpeed( HWND hWnd, WPARAM, LPARAM );
void OnButtonUpdateAddress( HWND hWnd );
private:
void OnWmDrawMap( HWND, WPARAM, LPARAM );
void OnWmFullDrawMap( HWND, WPARAM, LPARAM );
void OnWmParameters( HWND, WPARAM, LPARAM );
void OnWmSendFile( HWND, WPARAM, LPARAM );
void OnWmRestart( HWND, WPARAM, LPARAM );
void OnWmSoftwareVersion( HWND, WPARAM, LPARAM );
void OnWmSetCommSpeed( HWND, WPARAM, LPARAM );
void OnWmSerialNumber( HWND, WPARAM, LPARAM );
void OnButtonSerialNumber( HWND hWnd, WPARAM, LPARAM );
void OnButtonCameraParameters( HWND hWnd, WPARAM, LPARAM );
void OnWmCameraParameters( HWND, WPARAM, LPARAM );
void OnCheckCameraAuto( HWND, WPARAM, LPARAM );
void OnComboCameraType( HWND, WPARAM, LPARAM );
void OnWmSetAddress( HWND, WPARAM, LPARAM );
void OnButtonRelayUpdate( HWND hWnd, WPARAM, LPARAM );
void OnWmRelayParameters( HWND, WPARAM, LPARAM );
void OnCheckRelayAuto( HWND, WPARAM, LPARAM );
void OnWmVoltageParameters( HWND, WPARAM, LPARAM );
void OnButtonVoltageUpdate( HWND hWnd, WPARAM, LPARAM );
void OnWmLRFDisable( HWND, WPARAM, LPARAM );
void OnButtonLRFDisableUpdate( HWND hWnd, WPARAM, LPARAM );
void OnButtonWidthTableUpdate( HWND hWnd, WPARAM, LPARAM );
void OnWmWidthTable( HWND, WPARAM, LPARAM );
void OnButtonFullReset( HWND, WPARAM, LPARAM );
void OnWmFullReset( HWND, WPARAM, LPARAM );
void OnButtonZoomTiltUpdate( HWND, WPARAM, LPARAM );
void OnButtonZoomTiltDownload( HWND, WPARAM, LPARAM );
void OnButtonZoomTiltGet( HWND, WPARAM, LPARAM );
void OnButtonZoomTiltSet( HWND, WPARAM, LPARAM );
void OnWmZoomTable( HWND, WPARAM, LPARAM );
void OnWmTiltTable( HWND, WPARAM, LPARAM );
void OnWmInitDialog( HWND, WPARAM, LPARAM );
LRESULT OnWmNotify( HWND, WPARAM, LPARAM );
LRESULT OnWmCommand( HWND, WPARAM, LPARAM );
void OnButtonOk( HWND );
void OnButtonFilesDelete( HWND hWnd );
void OnButtonFilesAdd( HWND hWnd );
void OnButtonDrawEdit( HWND hWnd );
void OnButtonDrawClear( HWND hWnd );
void OnCheckDraw( HWND hWnd );
private:
CApplication *m_pApplication;
CProfile *m_pProfile;
private:
HBITMAP m_hBitmap;
BOOL m_bDraw[2];
private:
void OnChangeDrawZeroShift( HWND hWnd );
void OnButtonParameters( HWND hWnd );
BOOL m_bParameterInitiated[2];
INT m_nCurrentFile;
TCHAR m_pCurrentFile[MAX_PATH];
BOOL m_bSendHiddenZones;
INT m_nSendHiddenZones;
BOOL m_bZoomInitiated;
BOOL m_bTiltInitiated;
CLgDeviceLGS::LGS_SERIAL_NUMBER m_SerialNumber;
CLgDeviceLGS::LGS_SOFTWARE_VERSION m_SoftwareVersion;
};
inline
BOOL CALLBACK CTransferDlg::DialogProcTransferDlg( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
if(::IsWindow(hWnd))
{
if(uMsg == WM_INITDIALOG)
::SetWindowLong(hWnd, GWL_USERDATA, (LONG)lParam);
CTransferDlg *pDlg = (CTransferDlg*)::GetWindowLong(hWnd, GWL_USERDATA);
if(pDlg)
return pDlg->DialogProc(hWnd, uMsg, wParam, lParam);
}
return FALSE;
}
#endif // !defined(_TRANSFERDLG_H_INCLUDED_)