DlgLayerManager.h
资源名称:QGIS.rar [点击查看]
上传用户:oybseng
上传日期:2015-04-27
资源大小:7831k
文件大小:2k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- #if !defined(AFX_DLGLAYERMANAGER_H__25894510_5C33_4639_88B3_10597FD900F4__INCLUDED_)
- #define AFX_DLGLAYERMANAGER_H__25894510_5C33_4639_88B3_10597FD900F4__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DlgLayerManager.h : header file
- //
- #include "../QObjects/include/QMapObj.h"
- #include "afxtempl.h"
- #include <vector>
- using namespace std;
- /////////////////////////////////////////////////////////////////////////////
- // CDlgLayerManager dialog
- class CDlgLayerManager : public CDialog
- {
- // Construction
- public:
- void SetControlContent(CQLayerObj * pLayer);
- void SetControlEdit(BOOL bEdit);
- void ResetList(CQMapObj * pMap);
- void ResetList(vector<CQLayerObj *> pLyrVector);
- CDlgLayerManager(int nOpflag,CQMapObj * pMap,CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CDlgLayerManager)
- enum { IDD = IDD_DIALOG_LAYER_MANAGER_QGIS };
- CListCtrl m_LayerList;
- long m_lLayerID;
- CString m_szLayerName;
- CString m_szLayerDis;
- int m_nLayerShow;
- int m_nLayerDel;
- int m_nLayerEdit;
- //}}AFX_DATA
- CQMapObj * m_pMap;
- CQLayerObj * m_pcurLyr;
- int m_nIndex;
- int m_nOpflag;
- vector<CQLayerObj *> m_pLyrVector;
- vector<CQLayerObj> m_LyrVector; //存放的是一套副本 用来 进行取消操作
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDlgLayerManager)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- afx_msg void OnClickListLayerQgis(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnButtonNewLayerQgis();
- afx_msg void OnButtonDeleteLayerQgis();
- afx_msg void OnButtonTopQgis();
- afx_msg void OnButtonBottomQgis();
- afx_msg void OnButtonPreQgis();
- afx_msg void OnButtonNextQgis();
- afx_msg void OnButtonSetCurQgis();
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CDlgLayerManager)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- virtual void OnCancel();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DLGLAYERMANAGER_H__25894510_5C33_4639_88B3_10597FD900F4__INCLUDED_)