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.
 
 
 
 
 

265 lines
7.8 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 12/11/2003
// PROJECT:
// SUBSYSTEM:
// FILE: ChicagoDlg.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of ChicagoDlg.h
//----------------------------------------------------------------------------
// ChicagoDlg.h : header file
//
#if !defined(AFX_CHICAGODLG_H__9B1BD4E7_71EC_11D4_A1EF_0010B55CB330__INCLUDED_)
#define AFX_CHICAGODLG_H__9B1BD4E7_71EC_11D4_A1EF_0010B55CB330__INCLUDED_
#include "Report.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "EventWnd.h"
#include "AutorizationDlg.h" // Added by ClassView
//#include "ClockWnd.h" // Added by ClassView
#include "..\DLIB\EventQueue.h" // Added by ClassView
//#include "..\DLIB\Alarm.h" // Added by ClassView
#include "..\..\LgLib\LgAlarm.h" // Added by ClassView
#include "ResetDlg.h"
#include "LogoWnd.h"
#include "PropertySPRUDlg.h"
//#include "TroubleWnd.h"
//#include "EventPrinter.h"
#include "StatisticDlg.h" // Added by ClassView
#include "ToolBarDlg.h" // Added by ClassView
//#include "ReportDlg.h" // Added by ClassView
#include "SoundDlg.h"
//#include "TroubleDlg.h" // Added by ClassView
#include "..\DLIB\VideoWnd.h" // Added by ClassView
#include "GuardDlg.h" // Added by ClassView
#include "PatrolDlg.h" // Added by ClassView
#include "TaskSwitch.h" // Added by ClassView
//#include "CameraDlg.h" // Added by ClassView
#include "..\DLIB\VideoCamera.h" // Added by ClassView
#include "..\DLIB\VideoCapture.h" // Added by ClassView
#include "VideoFrameWnd.h"
#include "WholeAreaWnd.h" // Added by ClassView
#include "ZoomAreaWnd.h" // Added by ClassView
#include "TroubleListWnd.h" // Added by ClassView
#include "VideoBase.h"
#include "VideoListWnd.h"
#include "PanelWnd.h"
//#include "..\DLIB\GenericArchive.h" // Added by ClassView
#include "..\DLIB\Settings.h" // Added by ClassView
#include "ResetLgsDlg.h" // Added by ClassView
// new implementation
#include "..\..\LgLib\UIMap\LgUIMapWholeWnd.h"
#include "..\..\LgLib\UIMap\LgUIMapZoomWnd.h"
#include "AlarmExternal.h" // Added by ClassView
#include "MaskSchedule.h"
/////////////////////////////////////////////////////////////////////////////
// CChicagoDlg dialog
class CChicagoDlg : public CDialog
{
// Construction
public:
void Capture( EVENT& event );
CChicagoDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CChicagoDlg)
enum { IDD = IDD_CHICAGO_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChicagoDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual int DoModal();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void InterfaceEnableFly( BOOL bEnable );
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CChicagoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
virtual void OnCancel();
afx_msg void OnViewMain();
afx_msg void OnViewAlarm();
afx_msg void OnInitMenu(CMenu* pMenu);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnSystemReset();
afx_msg void OnSystemRepair();
afx_msg void OnSystemEnable();
afx_msg void OnSupportReport();
afx_msg void OnSupportStatistic();
afx_msg void OnViewOptions();
afx_msg void OnSupportSound();
afx_msg void OnSupportDatetime();
afx_msg void OnSupportMute();
afx_msg void OnSupportGuard();
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
afx_msg void OnHelpAbout();
afx_msg void OnSupportInterfaceFly();
afx_msg void OnSupportInterfaceFix();
afx_msg void OnSupportLgsReset();
afx_msg void OnSupportInterfaceDefault();
afx_msg void OnSupportVideoSettings();
afx_msg void OnSupportSettings();
afx_msg void OnSupportReportSettings();
afx_msg void OnSupportPhonecalllist();
afx_msg void OnViewEvents();
afx_msg void OnViewMagnifiedmap();
afx_msg void OnViewMap();
afx_msg void OnViewPtzcontrol();
afx_msg void OnViewSensorproperties();
afx_msg void OnViewTroubles();
afx_msg void OnViewVideo();
afx_msg void OnViewVideolist();
afx_msg void OnViewToolbar();
afx_msg void OnSupportLgsHzSchedule();
//}}AFX_MSG
afx_msg LRESULT OnWMPowerBroadcast( WPARAM wParam, LPARAM lParam );
DECLARE_MESSAGE_MAP()
private:
LRESULT OnWMSensorShow( WPARAM wParam, LPARAM lParam );
LRESULT OnWMSensorUpdate( WPARAM wParam, LPARAM lParam );
LRESULT OnWMEnableZone( WPARAM wParam, LPARAM lParam );
LRESULT OnWMEnableSensor( WPARAM wParam, LPARAM lParam );
LRESULT OnWMEnableDTRBit( WPARAM wParam, LPARAM lParam );
private:
virtual void OnOK() {}
LRESULT OnWMAutorization( WPARAM wParam, LPARAM lParam );
LRESULT OnWMShowTrouble(WPARAM wParam, LPARAM lParam);
private:
BOOL Autorization();
HACCEL m_hAccelerators;
BOOL m_bStarted;
BOOL m_bSoundEnabled;
int m_nRunningMode;
// double m_ScaleFactor;
private:
// CGenericArchive *m_pArchiveEvent;
// CGenericArchive *m_pArchiveImage;
private:
BOOL Reposition( INT nViewMode );
BOOL LoadControlSettings();
BOOL LoadControlDefaultSettings();
BOOL SaveControlSettings();
void StoreEvent( EVENT &event );
// LRESULT OnWMPrintFile(WPARAM wParam, LPARAM lParam);
private:
CAlarmExternal m_AlarmExternal;
private:
void CheckCopyright();
CResetLgsDlg m_ResetLgsDlg;
CSettings m_Settings;
CVideoCapture *m_pVideoCapture;
CTaskSwitch m_TaskSwitch;
CPatrolDlg *m_pPatrolDlg;
CGuardDlg *m_pGuardDlg;
// CTroubleDlg *m_pTroubleDlg;
// CReportDlg *m_pReportDlg;
CToolBarCtrl *m_pToolBarCtrl;
CMenu *m_pMainMenu;
CToolBarDlg *m_pToolBarDlg;
/* struct PRINT
{
BOOL bPresent;
BOOL bDlg;
}m_Print;
*/
CStatisticDlg *m_pStatisticDlg;
// CEventPrinter *m_pEventPrinter;
CFont *m_pFont;
CPropertySensorFrameWnd *m_pPropertySensorDlg;
CResetDlg m_ResetDlg;
CLgAlarm *m_pAlarm;
BOOL m_bTimerOdd;
CEventQueue *m_pEventQueue;
enum { VIEW_NONE, VIEW_MAIN, VIEW_DETAIL, VIEW_BACKUP };
INT m_nViewMode;
CAutorizationDlg *m_pAutorizationDlg;
CSensor *m_pSensorCurrent;
CEventWnd *m_pEventWnd;
CSensorArray *m_pSensorArray;
CSoundDlg *m_pSoundDlg;
BOOL m_bWaitDisconnect;
BOOL m_bWaitConnect;
CVideoBase *m_pVideoBase;
CVideoCaptureWnd *m_pVideoWnd;
CVideoFrameWnd *m_pVideoFrameWnd;
CVideoListWnd *m_pVideoListWnd;
CWholeAreaWnd *m_pWholeAreaWnd;
// CZoomAreaWnd *m_pZoomAreaWnd;
CLgUIMapZoomWnd *m_pZoomAreaWnd;
CTroubleListWnd *m_pTroubleListWnd;
CCameraNavigateDlg *m_pCameraNavigateDlg;
enum
{
CONTROL_SENSOR_PROPERTY = 0,
CONTROL_WHOLE_MAP = 1,
CONTROL_ZOOM_MAP = 2,
CONTROL_EVENT_LIST = 3,
CONTROL_TROUBLE_LIST = 4,
CONTROL_VIDEO_MAIN = 5,
CONTROL_VIDEO_NAVIGATE = 6,
CONTROL_VIDEO_LIST = 7,
CONTROL_TOOLBAR = 8,
CONTROL_COUNT = 9
};
CPanelWnd *m_pControlPanel[ CONTROL_COUNT ];
class CControlState : public CLgDRect
{
public:
BOOL bVisible;
}m_pControlRect[ CONTROL_COUNT ];
BOOL m_bDebugMode;
BOOL m_bDemoMode;
private:
CMaskSchedule *m_pMaskSchedule;
public:
void SwitchMask( INT nLgsId, INT nMask, BOOL bOn );
private:
CReport *m_pReport;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHICAGODLG_H__9B1BD4E7_71EC_11D4_A1EF_0010B55CB330__INCLUDED_)