You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.3 KiB
C++

//////////////////////////////////////////////////////////////////////////////
//文件: ProjectionDlg.h
//主要功能:
// 投影参数设置
//
//程序编写: 2008-11-09
//
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PROJECTIONDLG_H__BFAF0D21_6722_449D_B84C_DC25393609FC__INCLUDED_)
#define AFX_PROJECTIONDLG_H__BFAF0D21_6722_449D_B84C_DC25393609FC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ProjectionDlg.h : header file
//
#include "ZoneDlg.h"
#include "TaperDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CProjectionDlg dialog
class CProjectionDlg : public CDialog
{
DECLARE_DYNAMIC(CProjectionDlg)
// Construction
public:
CProjectionDlg(CWnd* pParent = NULL); // standard constructor
void SetUnit(CComboBox &cb, int csel, int usel);
int GetUnit(CComboBox &cb, int sel);
void SetUnit(CComboBox &cb, int sel);
BOOL SetProjection(CString ss);
BOOL GetStandardString(CString &ss);
void CreateDefaultProjection(CString file);
void Init(CString projection_file);
CString m_projection_file;
CTaperDlg TaperDlg;
CZoneDlg ZoneDlg;
enum { IDD = IDD_DIALOG_Projection };
// Dialog Data
//{{AFX_DATA(CProjectionDlg)
CComboBox m_unit;
CComboBox m_coordinate;
CComboBox m_ellipsoid;
CString m_other;
int m_projection;
int m_nWithZone;
CString projection;
int m_latitude;
int m_longitude;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CProjectionDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CProjectionDlg)
afx_msg void OnBUTTONEllipsoid();
afx_msg void OnBUTTONProjection();
afx_msg void OnBUTTONOther();
afx_msg void OnBUTTONCoodinate();
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeCOMBOCoodinate();
virtual void OnOK();
afx_msg void OnSelchangeCOMBOProjection();
afx_msg void OnSelchangeCOMBOWithZone();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PROJECTIONDLG_H__BFAF0D21_6722_449D_B84C_DC25393609FC__INCLUDED_)