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.
92 lines
2.4 KiB
92 lines
2.4 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: ConnectionDlg.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of ConnectionDlg.h
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(AFX_CONNECTIONDLG_H__3698FB21_F9D6_11D4_B7C2_D46D48E22851__INCLUDED_)
|
|
#define AFX_CONNECTIONDLG_H__3698FB21_F9D6_11D4_B7C2_D46D48E22851__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// ConnectionDlg.h : header file
|
|
//
|
|
#include "..\DLIB\ObjectFactory.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CConnectionDlg dialog
|
|
using namespace OFNS;
|
|
|
|
class CConnectionDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
int DoModal( COFDevice* pSrc, COFDevice *pDest );
|
|
CConnectionDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CConnectionDlg)
|
|
enum { IDD = IDD_CONNECTION_DLG };
|
|
CListBox m_ListLink;
|
|
CButton m_ButtonDelAll;
|
|
CButton m_ButtonDel;
|
|
CButton m_ButtonAddAll;
|
|
CButton m_ButtonAdd;
|
|
CButton m_Ok;
|
|
CListBox m_Src;
|
|
CListBox m_Dest;
|
|
CStatic m_sDest;
|
|
CStatic m_sSrc;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CConnectionDlg)
|
|
public:
|
|
virtual BOOL DestroyWindow();
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CConnectionDlg)
|
|
virtual BOOL OnInitDialog();
|
|
virtual void OnOK();
|
|
afx_msg void OnButtonAdd();
|
|
afx_msg void OnButtonAddAll();
|
|
afx_msg void OnButtonDel();
|
|
afx_msg void OnButtonDelAll();
|
|
afx_msg void OnSelchangeList();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
void FillControls();
|
|
COFDevice *m_pSrc;
|
|
COFDevice *m_pDest;
|
|
|
|
private:
|
|
typedef struct tagDATAPTR
|
|
{
|
|
COFPin *dataS;
|
|
COFPin *dataD;
|
|
BOOL bConnected;
|
|
}DATAPTR, *PDATAPTR;
|
|
CArray<DATAPTR, DATAPTR> m_LinkArray;
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_CONNECTIONDLG_H__3698FB21_F9D6_11D4_B7C2_D46D48E22851__INCLUDED_)
|