-
Notifications
You must be signed in to change notification settings - Fork 1
/
DlgPartlist.h
55 lines (49 loc) · 1.48 KB
/
DlgPartlist.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
#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include "Partlist.h"
// CDlgPartlist dialog
class CDlgPartlist : public CDialog
{
DECLARE_DYNAMIC(CDlgPartlist)
public:
CDlgPartlist(CWnd* pParent = NULL); // standard constructor
virtual ~CDlgPartlist();
// Dialog Data
enum { IDD = IDD_PARTLIST };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
void DrawListCtrl();
void Initialize( CPartList * plist,
CMapStringToPtr * shape_cache_map,
CFootLibFolderMap * footlibfoldermap,
int units, CDlgLog * log );
void SaveSelections();
void RestoreSelections();
CPartList * m_plist;
CMapStringToPtr * m_footprint_cache_map;
CFootLibFolderMap * m_footlibfoldermap;
int m_units;
int m_sort_type;
CListCtrl m_list_ctrl;
CButton m_button_add;
CButton m_button_edit;
CButton m_button_delete;
CDlgLog * m_dlg_log;
CArray<BOOL> bSelected;
afx_msg void OnBnClickedButtonAdd();
afx_msg void OnBnClickedButtonEdit();
afx_msg void OnBnClickedButtonDelete();
afx_msg void OnLvnColumnClickList1(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedValueVisible();
afx_msg void OnBnClickedValueInvisible();
afx_msg void OnBnClickedRefVisible();
afx_msg void OnBnClickedRefInvisible();
CButton m_check_footprint;
CButton m_check_package;
CButton m_check_value;
afx_msg void OnNMClickList1(NMHDR *pNMHDR, LRESULT *pResult);
};