-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDlgImportFootprint.h
56 lines (47 loc) · 1.35 KB
/
DlgImportFootprint.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
#include "afxwin.h"
#include "afxcmn.h"
// CDlgImportFootprint dialog
class CDlgImportFootprint : public CDialog
{
DECLARE_DYNAMIC(CDlgImportFootprint)
public:
CDlgImportFootprint(CWnd* pParent = NULL); // standard constructor
virtual ~CDlgImportFootprint();
void InitPartLibTree();
void InitInstance( CMapStringToPtr * shape_cache_map,
CFootLibFolderMap * foldermap,
CDlgLog * log );
// Dialog Data
enum { IDD = IDD_IMPORT_FOOTPRINT };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
CDlgLog * m_dlg_log;
CMapStringToPtr * m_footprint_cache_map;
CFootLibFolderMap * m_foldermap;
CFootLibFolder * m_footlibfolder;
CString m_footprint_name;
CString m_footprint_filename;
CString m_footprint_folder;
CShape m_shape;
BOOL m_in_cache;
int m_ilib; // indices into libraries
int m_ihead;
int m_ifoot;
CButton m_button_browse;
CEdit m_edit_library_folder;
CTreeCtrl part_tree;
CStatic m_preview;
private:
virtual BOOL OnInitDialog();
afx_msg void OnTvnSelchangedPartLibTree(NMHDR *pNMHDR, LRESULT *pResult);
public:
afx_msg void OnBnClickedButtonBrowseLibFolder();
CEdit m_edit_author;
CEdit m_edit_source;
CEdit m_edit_desc;
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedCancel();
};