#if !defined(AFX_OPTIONDLG_H__11AF68EF_1B61_48BC_99A1_93A3073CF732__INCLUDED_)
#define AFX_OPTIONDLG_H__11AF68EF_1B61_48BC_99A1_93A3073CF732__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OptionDlg.h : header file
//
#include "resource.h"
#include "apl_gui.h"
#include "apl_api.h"

// тип опции
enum
{
		OPT_TYPE_STRING = 0		// строка
	,	OPT_TYPE_INT			// целое число
	,	OPT_TYPE_REAL			// вещественное число
	,	OPT_TYPE_INST			// ссылка на объект БД
	,	OPT_TYPE_COUNT
};

/////////////////////////////////////////////////////////////////////////////
// COptionDlg dialog

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

	CaplAPI *m_api;
	CaplInstance *m_option;
	CString m_name;
	CString m_str_value;
	CaplInstance *m_inst;
// Dialog Data
	//{{AFX_DATA(COptionDlg)
	enum { IDD = IDD_OPTION_DLG };
	CButton	m_sel_inst_btn;
	CEdit	m_value_ctrl;
	CComboBox	m_type_ctrl;
	CEdit	m_name_ctrl;
	CaplButton	m_ok_btn;
	CaplButton	m_cancel_btn;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(COptionDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnSelInstBtn();
	afx_msg void OnSelchangeType();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_OPTIONDLG_H__11AF68EF_1B61_48BC_99A1_93A3073CF732__INCLUDED_)
