#if !defined(AFX_DLGACCESSPATTERNS_H__166A1508_63AB_4381_9F23_4AF818EBC717__INCLUDED_)
#define AFX_DLGACCESSPATTERNS_H__166A1508_63AB_4381_9F23_4AF818EBC717__INCLUDED_

#include <apl_gui.h>
#include "aplNetStepData.h"
#include <afxwin.h>

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgAccessPatterns.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgAccessPatterns dialog

class CDlgAccessPatterns : public CaplResizableDialog
{
// Construction
public:
	CDlgAccessPatterns(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgAccessPatterns)
	enum { IDD = IDD_DLG_ACCESS_PATTERN_LIST };
	CaplButton	m_BtnCancel;
	CaplButton	m_BtnOk;
	CSortListCtrl m_list;
	CaplButton	m_BtnProp;
	CaplButton	m_BtnDel;
	CaplButton	m_BtnAdd;
	CStatic	m_st_list;
	//}}AFX_DATA
	
	CaplNetStepData *m_data;
	aplExtent m_ext;
	CString m_mode;
	bool m_RO;
	CaplInstance* m_curr_pattern;
	aplExtent m_list_missed;
	aplExtent m_list_temp_users;

	bool ( *m_IsUsed)(CString &pattern_name, CString &option_used);
	//double m_add_param;

	bool m_show_base_patterns;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgAccessPatterns)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// предотвращаем потерю модальности после диалога с бочками из aplSocketTransport
	CaplParentWndProcesser m_pwp;

	// Generated message map functions
	//{{AFX_MSG(CDlgAccessPatterns)
	afx_msg void OnBtnAdd();
	afx_msg void OnBtnDel();
	afx_msg void OnBtnProp();
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnRclickList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClkList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CStatic m_Caption;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGACCESSPATTERNS_H__166A1508_63AB_4381_9F23_4AF818EBC717__INCLUDED_)
