#if !defined(AFX_ALERTDLG_H__8347B6D9_90FA_47C4_9DDD_5606A5EBEEAA__INCLUDED_)
#define AFX_ALERTDLG_H__8347B6D9_90FA_47C4_9DDD_5606A5EBEEAA__INCLUDED_

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

#include "resource.h"
#include "apl_gui.h"

class CaplInstance;
class CaplAPI;
/////////////////////////////////////////////////////////////////////////////
// CAlertDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CAlertDlg)
	enum { IDD = IDD_ALERT_DIALOG };
	CEdit	m_alertSpan;
	CaplButton	m_cancel_btn;
	CaplButton	m_ok_btn;
	CaplStatic	m_textStatic;
	CaplStatic	m_alertTextStatic;
	int		m_iSpan;
	//}}AFX_DATA
	
	CaplAPI* m_api;
	CaplInstance* m_alert;
	bool m_bUserProcessing;//нажатие на "Выполнить" обрабатывается в пользовательском модуле

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

// Implementation
protected:
	void SetNewSpan();
	// Generated message map functions
	//{{AFX_MSG(CAlertDlg)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnChangeAlertSpanEdit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ALERTDLG_H__8347B6D9_90FA_47C4_9DDD_5606A5EBEEAA__INCLUDED_)
