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.
131 lines
3.3 KiB
131 lines
3.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: TabControlDlg.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of TabControlDlg.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __TAB__CONTROL__DLG__H__INCLUDED__
|
|
#define __TAB__CONTROL__DLG__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "LocatorWnd.h"
|
|
#include "CameraPositionWnd.h"
|
|
#include "LgButton.h"
|
|
#include <afxcmn.h>
|
|
#include "ProgramSkin.h"
|
|
//#include "ImageViewWnd.h"
|
|
#include "VideoWnd.h"
|
|
|
|
class CMainDlg;
|
|
|
|
class CTabControlDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CTabControlDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
public:
|
|
|
|
void OnVideo( CLgImageDIB *pDIB, BYTE bSequence );
|
|
BYTE GetVideoQuality() { return m_Slider.GetPos(); }
|
|
void SetVideoQuality( BYTE bQuality ) { m_Slider.SetPos( bQuality ); }
|
|
CLocatorWnd *GetLocatorWnd() { return &m_Locator; }
|
|
|
|
public:
|
|
//{{AFX_DATA(CTabControlDlg)
|
|
enum { IDD = IDD_CONTROL_DLG };
|
|
CButton m_ButtonReport;
|
|
CLgButton m_ButtonPhoto;
|
|
CLgButton m_CheckIrisNight;
|
|
CLgButton m_CheckIrisDay;
|
|
CButton m_CheckMute;
|
|
CLgButton m_CheckHidden4;
|
|
CLgButton m_CheckHidden3;
|
|
CLgButton m_CheckHidden2;
|
|
CLgButton m_CheckHidden1;
|
|
CButton m_ButtonClear;
|
|
CButton m_ButtonReset;
|
|
CSliderCtrl m_Slider;
|
|
CStatic m_StaticVideo;
|
|
CStatic m_StaticLocator;
|
|
CLgButton m_ButtonDown;
|
|
CLgButton m_ButtonUp;
|
|
CLgButton m_ButtonLeft;
|
|
CLgButton m_ButtonRight;
|
|
CLgButton m_ButtonWide;
|
|
CLgButton m_ButtonTele;
|
|
int m_RadioSensitivity;
|
|
//}}AFX_DATA
|
|
|
|
|
|
//{{AFX_VIRTUAL(CTabControlDlg)
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
protected:
|
|
|
|
//{{AFX_MSG(CTabControlDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnButtonClear();
|
|
afx_msg void OnButtonReset();
|
|
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
|
|
afx_msg void OnRadioSensitivity();
|
|
afx_msg void OnCheckHidden();
|
|
afx_msg void OnCheckMute();
|
|
afx_msg void OnCheckIrisDay();
|
|
afx_msg void OnCheckIrisNight();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnButtonPhoto();
|
|
afx_msg void OnButtonReport();
|
|
//}}AFX_MSG
|
|
afx_msg LRESULT OnLgButtonSetState( WPARAM, LPARAM );
|
|
afx_msg LRESULT OnVideoReady( WPARAM, LPARAM );
|
|
afx_msg LRESULT OnLgCameraPositionChanged( WPARAM, LPARAM );
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
void OnDraw( CDC *pDC );
|
|
|
|
public:
|
|
BOOL SetIris( BOOL bDay );
|
|
void OnConnect( BOOL bConnected );
|
|
void SetMainDlg( CMainDlg *pDlg ) { m_pMainDlg = pDlg; }
|
|
|
|
private:
|
|
CMainDlg *m_pMainDlg;
|
|
|
|
public:
|
|
void SetSkin( CProgramSkin *pProgramSkin );
|
|
void UpdateControlPosition();
|
|
|
|
private:
|
|
CLocatorWnd m_Locator;
|
|
// CLgMemoryDC m_VideoDC;
|
|
CCameraPositionWnd m_CameraPositionWnd;
|
|
CRect m_CameraPositionWndRect;
|
|
// CLgImageDIB m_VideoDIB;
|
|
|
|
private:
|
|
CProgramSkin *m_pSkin;
|
|
|
|
private:
|
|
CVideoWnd m_VideoWnd;
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
|
|
#endif
|