// GapPlotDlg.cpp : implementation file // #include "stdafx.h" #include "femm.h" #include #include #include "problem.h" #include "xyplot.h" #include "femmviewDoc.h" #include "femmviewView.h" #include "MainFrm.h" #include "lua.h" #include "GapPlotDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CGapPlotDlg dialog CGapPlotDlg::CGapPlotDlg(CWnd* pParent /*=NULL*/) : CDialog(CGapPlotDlg::IDD, pParent) { //{{AFX_DATA_INIT(CGapPlotDlg) m_ToFile = FALSE; m_npoints = 150; m_age=0; //}}AFX_DATA_INIT XYPlotType=0; FileFormat=0; } void CGapPlotDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CGapPlotDlg) DDX_Control(pDX, IDC_FILEFORMAT, m_fileformat); DDX_Control(pDX, IDC_XYPLOTTYPE, m_XYPlotType); DDX_Control(pDX, IDC_BDRYNAME, m_BdryName); DDX_Check(pDX, IDC_TOFILE, m_ToFile); DDX_Text(pDX, IDC_NPOINTS, m_npoints); DDV_MinMaxInt(pDX, m_npoints, 10, 100000); //}}AFX_DATA_MAP DDX_Control(pDX, IDC_NPOINTS, m_IDC_npoints); } BEGIN_MESSAGE_MAP(CGapPlotDlg, CDialog) //{{AFX_MSG_MAP(CGapPlotDlg) ON_BN_CLICKED(IDC_TOFILE, OnToFileClicked) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CGapPlotDlg message handlers BOOL CGapPlotDlg::OnInitDialog() { CDialog::OnInitDialog(); CArray &agelist=*pagelist; for (int k=0;k