// ActivityDiagramInfoDlg.cpp : implementation file
//

#include "stdafx.h"
#include "AG_MDA.h"
#include "ActivityDiagramInfoDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// ActivityDiagramInfoDlg dialog


ActivityDiagramInfoDlg::ActivityDiagramInfoDlg(CWnd* pParent /*=NULL*/)
	: CDialog(ActivityDiagramInfoDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(ActivityDiagramInfoDlg)
	m_Name = _T("");
	m_MappedMethodName = _T("");
	//}}AFX_DATA_INIT
}


void ActivityDiagramInfoDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(ActivityDiagramInfoDlg)
	DDX_Control(pDX, IDC_LIST_PARAMETER, m_ParameterListCtrl);
	DDX_Control(pDX, IDC_LIST_REFERENCE, m_ReferenceListCtrl);
	DDX_Text(pDX, IDC_EDIT_NAME, m_Name);
	DDX_Text(pDX, IDC_EDIT_METHOD_NAME, m_MappedMethodName);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(ActivityDiagramInfoDlg, CDialog)
	//{{AFX_MSG_MAP(ActivityDiagramInfoDlg)
	ON_EN_CHANGE(IDC_EDIT_NAME, OnChangeEditName)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// ActivityDiagramInfoDlg message handlers

BOOL ActivityDiagramInfoDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_ParameterListCtrl.InsertColumn( 0 , "Name" , LVCFMT_LEFT , 100 );
	m_ParameterListCtrl.InsertColumn( 1 , "Type" , LVCFMT_LEFT , 100 );
	m_ParameterListCtrl.InsertColumn( 2 , "Pos" , LVCFMT_LEFT , 100 );

	m_ReferenceListCtrl.InsertColumn( 0 , "Name" , LVCFMT_LEFT , 100 );
	m_ReferenceListCtrl.InsertColumn( 1 , "Type" , LVCFMT_LEFT , 100 );
	m_ReferenceListCtrl.InsertColumn( 2 , "Visibility" , LVCFMT_LEFT , 100 );
	m_ReferenceListCtrl.InsertColumn( 3 , "Get" , LVCFMT_LEFT , 100 );
	m_ReferenceListCtrl.InsertColumn( 4 , "Set" , LVCFMT_LEFT , 100 );

	m_ParameterListCtrl.SetExtendedStyle( 33 );
	m_ReferenceListCtrl.SetExtendedStyle ( 33 );
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void ActivityDiagramInfoDlg::OnChangeEditName() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	
}

void ActivityDiagramInfoDlg::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}
