forked from nkhorman/archive-freepcb-atlassian
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDlgEditNet.h
72 lines (67 loc) · 1.91 KB
/
DlgEditNet.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
64
65
66
67
68
69
70
71
72
#pragma once
#include "afxwin.h"
#include "NetList.h"
// CDlgEditNet dialog
class CDlgEditNet : public CDialog
{
DECLARE_DYNAMIC(CDlgEditNet)
public:
CDlgEditNet(CWnd* pParent = NULL);
virtual ~CDlgEditNet();
void Initialize( netlist_info * nl, // netlist_info struct
int i, // index into nl (ignored if new net)
CPartList * plist, // partlist
BOOL new_net, // flag for new net
BOOL visible, // visibility flag
int units, // MIL or MM
CArray<int> * w, // array of default trace widths
CArray<int> * v_w, // array of default via widths
CArray<int> * v_h_w ); // array of default via hole widths
void SetFields();
void GetFields();
// Dialog Data
enum { IDD = IDD_EDIT_NET };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
CString m_name;
BOOL m_new_net;
CArray<net_info> *m_nl;
CPartList * m_plist;
int m_in;
BOOL m_visible;
int m_def_w;
int m_def_v_w;
int m_def_v_h_w;
// pointers to arrays of default trace and via widths
CArray<int> *m_w;
CArray<int> *m_v_w;
CArray<int> *m_v_h_w;
protected:
int m_units;
BOOL m_pins_edited;
CButton m_button_def_width;
CButton m_button_set_width;
CEdit m_edit_pad_w;
CEdit m_edit_hole_w;
CListBox m_list_pins;
afx_msg void OnBnClickedButtonDelete();
afx_msg void OnBnClickedButtonAdd();
afx_msg void OnBnClickedRadioDefWidth();
afx_msg void OnBnClickedRadioSetWidth();
afx_msg void OnEnChangeEditWidth();
void ChangeTraceWidth( CString str );
virtual BOOL OnInitDialog();
CEdit m_edit_name;
CButton m_check_visible;
afx_msg void OnCbnSelchangeComboWidth();
afx_msg void OnCbnEditchangeComboWidth();
CComboBox m_combo_width;
CEdit m_edit_addpin;
public:
CButton m_check_apply;
afx_msg void OnEnUpdateEditAddPin();
CButton m_button_add_pin;
CButton m_button_OK;
afx_msg void OnBnClickedOk();
};