-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDlgNetlist.h
63 lines (55 loc) · 1.8 KB
/
DlgNetlist.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
57
58
59
60
61
62
63
#pragma once
#include "afxcmn.h"
#include "NetList.h"
#include "afxwin.h"
// CDlgNetlist dialog
class CDlgNetlist : public CDialog
{
DECLARE_DYNAMIC(CDlgNetlist)
public:
CDlgNetlist(CWnd* pParent = NULL); // standard constructor
virtual ~CDlgNetlist();
// Dialog Data
enum { IDD = IDD_NET_LIST };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
int m_visible_state;
int m_item_selected;
CArray<int> *m_w; // array of default widths
CArray<int> *m_v_w; // array of via widths (matching m_w[] entries)
CArray<int> *m_v_h_w; // array of via hole widths
CNetList * m_nlist;
CPartList * m_plist;
netlist_info * m_nl;
void Initialize( CNetList * nlist, CPartList * plist,
CArray<int> * w, CArray<int> * v_w, CArray<int> * v_h_w );
private:
int m_sort_type;
CListCtrl m_list_ctrl;
virtual BOOL OnInitDialog();
void DrawListCtrl();
CString CDlgNetlist::GetItemText(CInheritableInfo::Item &item) const;
afx_msg void OnLvnColumnclickListNet(NMHDR *pNMHDR, LRESULT *pResult);
CButton m_button_visible;
CButton m_button_delete_single;
CButton m_button_delete;
CButton m_button_edit;
CButton m_button_add;
CButton m_button_nl_width;
CButton m_button_select_all;
CButton m_OK;
CButton m_cancel;
afx_msg void OnBnClickedButtonAdd();
afx_msg void OnBnClickedButtonDelete();
afx_msg void OnBnClickedButtonVisible();
afx_msg void OnBnClickedButtonEdit();
afx_msg void OnBnClickedButtonSelectAll();
afx_msg void OnBnClickedButtonNLWidth();
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedCancel();
afx_msg void OnBnClickedDeleteNetsWithNoPins();
afx_msg void OnNMClickListNet(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMDblclkListNet(NMHDR *pNMHDR, LRESULT *pResult);
};