-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDlgProjectOptions.h
91 lines (85 loc) · 2.48 KB
/
DlgProjectOptions.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include <afxcoll.h>
#include <afxtempl.h>
// CDlgProjectOptions dialog
class CDlgProjectOptions : public CDialog
{
DECLARE_DYNAMIC(CDlgProjectOptions)
public:
CDlgProjectOptions(CWnd* pParent = NULL); // standard constructor
virtual ~CDlgProjectOptions();
void Init( BOOL new_flag,
CString * name,
CString * path_to_folder,
CString * lib_folder,
int num_layers,
BOOL bSMT_connect_copper,
int glue_w,
int trace_w,
int via_w,
int hole_w,
int auto_interval,
BOOL bAuto_Ratline_Disable,
int auto_ratline_min_pins,
CArray<int> * w,
CArray<int> * v_w,
CArray<int> * v_h_w );
CString GetName(){ return m_name; };
CString GetPathToFolder(){ return m_path_to_folder; };
CString GetLibFolder(){ return m_lib_folder; };
int GetNumCopperLayers(){ return m_layers; };
int GetTraceWidth(){ return m_trace_w; };
int GetViaWidth(){ return m_via_w; };
int GetViaHoleWidth(){ return m_hole_w; };
int GetAutoInterval(){ return m_auto_interval; };
int GetAutoRatlineDisable(){ return m_bAuto_Ratline_Disable; };
int GetGlueWidth(){ return m_glue_w; };
int GetAutoRatlineMinPins(){ return m_auto_ratline_min_pins; };
// Dialog Data
enum { IDD = IDD_PROJECT_OPTIONS };
private:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
BOOL m_new_project;
BOOL m_folder_changed;
BOOL m_folder_has_focus;
CString m_name;
CString m_path_to_folder;
CString m_lib_folder;
int m_glue_w;
int m_trace_w;
int m_via_w;
int m_hole_w;
int m_auto_interval;
BOOL m_bAuto_Ratline_Disable;
int m_auto_ratline_min_pins;
DECLARE_MESSAGE_MAP()
CListCtrl m_list_menu;
CArray<int> *m_w;
CArray<int> *m_v_w;
CArray<int> *m_v_h_w;
afx_msg void OnBnClickedButtonAdd();
afx_msg void OnBnClickedButtonEdit();
afx_msg void OnBnClickedButtonDelete();
afx_msg void OnEnChangeEditName();
afx_msg void OnEnChangeEditFolder();
int m_layers;
CEdit m_edit_name;
CEdit m_edit_folder;
afx_msg void OnEnSetfocusEditFolder();
afx_msg void OnEnKillfocusEditFolder();
CEdit m_edit_lib_folder;
CEdit m_edit_layers;
public:
BOOL m_bSMT_connect_copper;
afx_msg void OnBnClickedCheckAutosave();
CButton m_check_autosave;
CEdit m_edit_auto_interval;
afx_msg void OnBnClickedButtonLib();
CButton m_check_SMT_connect;
CButton m_check_disable_auto_rats;
CEdit m_edit_min_pins;
afx_msg void OnBnClickedCheckAutoRatDisable();
};