Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
248343c0
Commit
248343c0
authored
Mar 04, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refinements
parent
c1f6576f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
56 deletions
+56
-56
dialog_edit_module_for_BoardEditor_base.cpp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.cpp
+17
-17
dialog_edit_module_for_BoardEditor_base.fbp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.fbp
+17
-17
dialog_edit_module_for_Modedit_base.cpp
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.cpp
+10
-10
dialog_edit_module_for_Modedit_base.fbp
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.fbp
+11
-11
dialog_edit_module_for_Modedit_base.h
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.h
+1
-1
No files found.
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.cpp
View file @
248343c0
...
...
@@ -32,10 +32,10 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
m_ReferenceCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
m_ReferenceCtrl
->
SetMaxLength
(
0
);
bSizerRef
->
Add
(
m_ReferenceCtrl
,
1
,
wxALIGN_CENTER_VERTICAL
|
wx
ALL
,
5
);
bSizerRef
->
Add
(
m_ReferenceCtrl
,
1
,
wxALIGN_CENTER_VERTICAL
|
wx
BOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
m_button4
=
new
wxButton
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Edit"
),
wxDefaultPosition
,
wxDefaultSize
,
wxBU_EXACTFIT
);
bSizerRef
->
Add
(
m_button4
,
0
,
wxALIGN_CENTER_VERTICAL
|
wx
TOP
|
wxBOTTOM
|
wx
RIGHT
,
5
);
bSizerRef
->
Add
(
m_button4
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
,
5
);
bSizerLeft
->
Add
(
bSizerRef
,
0
,
wxEXPAND
,
5
);
...
...
@@ -49,10 +49,10 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
m_ValueCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
m_ValueCtrl
->
SetMaxLength
(
0
);
bSizerVal
->
Add
(
m_ValueCtrl
,
1
,
wxALIGN_CENTER_VERTICAL
|
wx
ALL
,
5
);
bSizerVal
->
Add
(
m_ValueCtrl
,
1
,
wxALIGN_CENTER_VERTICAL
|
wx
BOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
m_button5
=
new
wxButton
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Edit"
),
wxDefaultPosition
,
wxDefaultSize
,
wxBU_EXACTFIT
);
bSizerVal
->
Add
(
m_button5
,
0
,
wxALIGN_CENTER_VERTICAL
|
wx
TOP
|
wxBOTTOM
|
wx
RIGHT
,
5
);
bSizerVal
->
Add
(
m_button5
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
,
5
);
bSizerLeft
->
Add
(
bSizerVal
,
0
,
wxEXPAND
,
5
);
...
...
@@ -75,7 +75,7 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
m_OrientValue
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_OrientValue
->
SetMaxLength
(
0
);
bSizerLeft
->
Add
(
m_OrientValue
,
0
,
wxEXPAND
|
wx
ALL
,
5
);
bSizerLeft
->
Add
(
m_OrientValue
,
0
,
wxEXPAND
|
wx
BOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
m_staticTextPos
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Position"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextPos
->
Wrap
(
-
1
);
...
...
@@ -89,30 +89,30 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
m_XPosLabel
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"X"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_XPosLabel
->
Wrap
(
-
1
);
fgSizerPos
->
Add
(
m_XPosLabel
,
0
,
wxALIGN_CENTER_VERTICAL
|
wx
ALL
,
5
);
fgSizerPos
->
Add
(
m_XPosLabel
,
0
,
wxALIGN_CENTER_VERTICAL
|
wx
RIGHT
|
wxLEFT
,
5
);
m_ModPositionX
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_ModPositionX
->
SetMaxLength
(
0
);
fgSizerPos
->
Add
(
m_ModPositionX
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
|
wx
TOP
|
wxBOTTOM
|
wx
RIGHT
,
5
);
fgSizerPos
->
Add
(
m_ModPositionX
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
|
wxRIGHT
,
5
);
m_XPosUnit
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"unit"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_XPosUnit
->
Wrap
(
-
1
);
fgSizerPos
->
Add
(
m_XPosUnit
,
0
,
wx
TOP
|
wxBOTTOM
|
wxRIGHT
|
wxALIGN_CENTER_VERTICAL
,
5
);
fgSizerPos
->
Add
(
m_XPosUnit
,
0
,
wx
ALIGN_CENTER_VERTICAL
|
wxRIGHT
,
5
);
m_YPosLabel
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Y"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_YPosLabel
->
Wrap
(
-
1
);
fgSizerPos
->
Add
(
m_YPosLabel
,
0
,
wxALIGN_CENTER_VERTICAL
|
wx
ALL
,
5
);
fgSizerPos
->
Add
(
m_YPosLabel
,
0
,
wxALIGN_CENTER_VERTICAL
|
wx
RIGHT
|
wxLEFT
,
5
);
m_ModPositionY
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_ModPositionY
->
SetMaxLength
(
0
);
fgSizerPos
->
Add
(
m_ModPositionY
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
|
wx
TOP
|
wxBOTTOM
|
wx
RIGHT
,
5
);
fgSizerPos
->
Add
(
m_ModPositionY
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
|
wxRIGHT
,
5
);
m_YPosUnit
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"unit"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_YPosUnit
->
Wrap
(
-
1
);
fgSizerPos
->
Add
(
m_YPosUnit
,
0
,
wx
TOP
|
wxBOTTOM
|
wxRIGHT
|
wxALIGN_CENTER_VERTICAL
,
5
);
fgSizerPos
->
Add
(
m_YPosUnit
,
0
,
wx
ALIGN_CENTER_VERTICAL
|
wxRIGHT
,
5
);
bSizerLeft
->
Add
(
fgSizerPos
,
0
,
wxEXPAND
,
5
);
bSizerLeft
->
Add
(
fgSizerPos
,
0
,
wxEXPAND
|
wxBOTTOM
,
5
);
m_PanelPropertiesBoxSizer
->
Add
(
bSizerLeft
,
1
,
wxEXPAND
,
5
);
...
...
@@ -137,7 +137,7 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
wxString
m_AutoPlaceCtrlChoices
[]
=
{
_
(
"Free"
),
_
(
"Locked"
)
};
int
m_AutoPlaceCtrlNChoices
=
sizeof
(
m_AutoPlaceCtrlChoices
)
/
sizeof
(
wxString
);
m_AutoPlaceCtrl
=
new
wxRadioBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Move and Place"
),
wxDefaultPosition
,
wxDefaultSize
,
m_AutoPlaceCtrlNChoices
,
m_AutoPlaceCtrlChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_AutoPlaceCtrl
->
SetSelection
(
1
);
m_AutoPlaceCtrl
->
SetSelection
(
0
);
bSizerAttrib
->
Add
(
m_AutoPlaceCtrl
,
1
,
wxALL
|
wxEXPAND
,
5
);
...
...
@@ -173,7 +173,7 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
sbSizerAP
->
Add
(
bSizerMoveOpt
,
1
,
wxEXPAND
,
5
);
m_PropRightSizer
->
Add
(
sbSizerAP
,
0
,
wxEXPAND
,
5
);
m_PropRightSizer
->
Add
(
sbSizerAP
,
0
,
wxEXPAND
|
wxALL
,
5
);
wxStaticBoxSizer
*
sbSizerLocalProperties
;
sbSizerLocalProperties
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Local Settings"
)
),
wxVERTICAL
);
...
...
@@ -227,13 +227,13 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
fgSizerClearances
->
Add
(
m_NetClearanceUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxTOP
|
wxBOTTOM
|
wxRIGHT
,
5
);
m_staticline1
=
new
wxStaticLine
(
m_PanelProperties
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
fgSizerClearances
->
Add
(
m_staticline1
,
1
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
,
5
);
fgSizerClearances
->
Add
(
m_staticline1
,
1
,
wxEXPAND
,
5
);
m_staticline2
=
new
wxStaticLine
(
m_PanelProperties
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
fgSizerClearances
->
Add
(
m_staticline2
,
1
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
,
5
);
fgSizerClearances
->
Add
(
m_staticline2
,
1
,
wxEXPAND
,
5
);
m_staticline3
=
new
wxStaticLine
(
m_PanelProperties
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
fgSizerClearances
->
Add
(
m_staticline3
,
1
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
,
5
);
fgSizerClearances
->
Add
(
m_staticline3
,
1
,
wxEXPAND
,
5
);
m_MaskClearanceTitle
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Solder mask clearance:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_MaskClearanceTitle
->
Wrap
(
-
1
);
...
...
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.fbp
View file @
248343c0
...
...
@@ -359,7 +359,7 @@
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
ALL
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
BOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxTextCtrl"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -450,7 +450,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
TOP|wxBOTTOM|wx
RIGHT
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wxRIGHT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxButton"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -632,7 +632,7 @@
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
ALL
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
BOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxTextCtrl"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -723,7 +723,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
TOP|wxBOTTOM|wx
RIGHT
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wxRIGHT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxButton"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1076,7 +1076,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND|wx
ALL
</property>
<property
name=
"flag"
>
wxEXPAND|wx
BOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxTextCtrl"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1250,7 +1250,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"flag"
>
wxEXPAND
|wxBOTTOM
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxFlexGridSizer"
expanded=
"1"
>
<property
name=
"cols"
>
3
</property>
...
...
@@ -1266,7 +1266,7 @@
<property
name=
"vgap"
>
0
</property>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
ALL
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
RIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1349,7 +1349,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wxEXPAND|wx
TOP|wxBOTTOM|wx
RIGHT
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxTextCtrl"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1440,7 +1440,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
TOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL
</property>
<property
name=
"flag"
>
wx
ALIGN_CENTER_VERTICAL|wxRIGHT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1523,7 +1523,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
ALL
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wx
RIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1606,7 +1606,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wxEXPAND|wx
TOP|wxBOTTOM|wx
RIGHT
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxTextCtrl"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1697,7 +1697,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
TOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL
</property>
<property
name=
"flag"
>
wx
ALIGN_CENTER_VERTICAL|wxRIGHT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -2116,7 +2116,7 @@
<property
name=
"pin_button"
>
1
</property>
<property
name=
"pos"
></property>
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"selection"
>
1
</property>
<property
name=
"selection"
>
0
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
wxRA_SPECIFY_COLS
</property>
...
...
@@ -2160,7 +2160,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"flag"
>
wxEXPAND
|wxALL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"1"
>
<property
name=
"id"
>
wxID_ANY
</property>
...
...
@@ -3139,7 +3139,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxStaticLine"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -3220,7 +3220,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxStaticLine"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -3301,7 +3301,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxStaticLine"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.cpp
View file @
248343c0
...
...
@@ -153,6 +153,7 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
wxFlexGridSizer
*
fgSizer1
;
fgSizer1
=
new
wxFlexGridSizer
(
5
,
3
,
0
,
0
);
fgSizer1
->
AddGrowableCol
(
1
);
fgSizer1
->
SetFlexibleDirection
(
wxBOTH
);
fgSizer1
->
SetNonFlexibleGrowMode
(
wxFLEX_GROWMODE_SPECIFIED
);
...
...
@@ -162,20 +163,20 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
m_NetClearanceValueCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_NetClearanceValueCtrl
->
SetMaxLength
(
0
);
fgSizer1
->
Add
(
m_NetClearanceValueCtrl
,
0
,
wxALL
,
5
);
fgSizer1
->
Add
(
m_NetClearanceValueCtrl
,
0
,
wxALL
|
wxEXPAND
,
5
);
m_NetClearanceUnits
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Inch"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_NetClearanceUnits
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_NetClearanceUnits
,
0
,
wxRIGHT
|
wxALIGN_CENTER_VERTICAL
,
5
);
m_staticline1
=
new
wxStaticLine
(
m_PanelProperties
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
fgSizer1
->
Add
(
m_staticline1
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
,
5
);
fgSizer1
->
Add
(
m_staticline1
,
0
,
wxEXPAND
,
5
);
m_staticline2
=
new
wxStaticLine
(
m_PanelProperties
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
fgSizer1
->
Add
(
m_staticline2
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
,
5
);
fgSizer1
->
Add
(
m_staticline2
,
0
,
wxEXPAND
,
5
);
m_staticline3
=
new
wxStaticLine
(
m_PanelProperties
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
fgSizer1
->
Add
(
m_staticline3
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
,
5
);
fgSizer1
->
Add
(
m_staticline3
,
0
,
wxEXPAND
,
5
);
m_MaskClearanceTitle
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Solder mask clearance:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_MaskClearanceTitle
->
Wrap
(
-
1
);
...
...
@@ -185,7 +186,7 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
m_SolderMaskMarginCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_SolderMaskMarginCtrl
->
SetMaxLength
(
0
);
fgSizer1
->
Add
(
m_SolderMaskMarginCtrl
,
0
,
wxALL
,
5
);
fgSizer1
->
Add
(
m_SolderMaskMarginCtrl
,
0
,
wxALL
|
wxEXPAND
,
5
);
m_SolderMaskMarginUnits
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"inch"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_SolderMaskMarginUnits
->
Wrap
(
-
1
);
...
...
@@ -199,7 +200,7 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
m_SolderPasteMarginCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_SolderPasteMarginCtrl
->
SetMaxLength
(
0
);
fgSizer1
->
Add
(
m_SolderPasteMarginCtrl
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
fgSizer1
->
Add
(
m_SolderPasteMarginCtrl
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
m_SolderPasteMarginUnits
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Inch"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_SolderPasteMarginUnits
->
Wrap
(
-
1
);
...
...
@@ -213,7 +214,7 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
m_SolderPasteMarginRatioCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_SolderPasteMarginRatioCtrl
->
SetMaxLength
(
0
);
fgSizer1
->
Add
(
m_SolderPasteMarginRatioCtrl
,
0
,
wxALL
,
5
);
fgSizer1
->
Add
(
m_SolderPasteMarginRatioCtrl
,
0
,
wxALL
|
wxEXPAND
,
5
);
m_SolderPasteRatioMarginUnits
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"%"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_SolderPasteRatioMarginUnits
->
Wrap
(
-
1
);
...
...
@@ -232,7 +233,7 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
m_PanelProperties
->
SetSizer
(
m_PanelPropertiesBoxSizer
);
m_PanelProperties
->
Layout
();
m_PanelPropertiesBoxSizer
->
Fit
(
m_PanelProperties
);
m_NoteBook
->
AddPage
(
m_PanelProperties
,
_
(
"Properties"
),
fals
e
);
m_NoteBook
->
AddPage
(
m_PanelProperties
,
_
(
"Properties"
),
tru
e
);
m_Panel3D
=
new
wxPanel
(
m_NoteBook
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxSUNKEN_BORDER
|
wxTAB_TRAVERSAL
);
wxBoxSizer
*
bSizerMain3D
;
bSizerMain3D
=
new
wxBoxSizer
(
wxVERTICAL
);
...
...
@@ -271,7 +272,7 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
m_Panel3D
->
SetSizer
(
bSizerMain3D
);
m_Panel3D
->
Layout
();
bSizerMain3D
->
Fit
(
m_Panel3D
);
m_NoteBook
->
AddPage
(
m_Panel3D
,
_
(
"3D settings"
),
tru
e
);
m_NoteBook
->
AddPage
(
m_Panel3D
,
_
(
"3D settings"
),
fals
e
);
m_GeneralBoxSizer
->
Add
(
m_NoteBook
,
1
,
wxEXPAND
|
wxALL
,
5
);
...
...
@@ -287,7 +288,6 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
this
->
SetSizer
(
m_GeneralBoxSizer
);
this
->
Layout
();
m_GeneralBoxSizer
->
Fit
(
this
);
// Connect Events
m_button4
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_MODULE_MODULE_EDITOR_BASE
::
OnEditReference
),
NULL
,
this
);
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.fbp
View file @
248343c0
...
...
@@ -42,7 +42,7 @@
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
DIALOG_MODULE_MODULE_EDITOR_BASE
</property>
<property
name=
"pos"
></property>
<property
name=
"size"
>
-1,-1
</property>
<property
name=
"size"
>
486,462
</property>
<property
name=
"style"
>
wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
</property>
<property
name=
"subclass"
>
DIALOG_SHIM; dialog_shim.h
</property>
<property
name=
"title"
>
Module Properties
</property>
...
...
@@ -176,7 +176,7 @@
<object
class=
"notebookpage"
expanded=
"1"
>
<property
name=
"bitmap"
></property>
<property
name=
"label"
>
Properties
</property>
<property
name=
"select"
>
0
</property>
<property
name=
"select"
>
1
</property>
<object
class=
"wxPanel"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
...
...
@@ -2078,7 +2078,7 @@
<object
class=
"wxFlexGridSizer"
expanded=
"1"
>
<property
name=
"cols"
>
3
</property>
<property
name=
"flexible_direction"
>
wxBOTH
</property>
<property
name=
"growablecols"
></property>
<property
name=
"growablecols"
>
1
</property>
<property
name=
"growablerows"
></property>
<property
name=
"hgap"
>
0
</property>
<property
name=
"minimum_size"
></property>
...
...
@@ -2172,7 +2172,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL
</property>
<property
name=
"flag"
>
wxALL
|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxTextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -2346,7 +2346,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticLine"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -2427,7 +2427,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticLine"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -2508,7 +2508,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticLine"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -2672,7 +2672,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL
</property>
<property
name=
"flag"
>
wxALL
|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxTextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -2929,7 +2929,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxTOP|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxTOP|wxRIGHT|wxLEFT
|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxTextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -3186,7 +3186,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL
</property>
<property
name=
"flag"
>
wxALL
|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxTextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -3370,7 +3370,7 @@
<object
class=
"notebookpage"
expanded=
"1"
>
<property
name=
"bitmap"
></property>
<property
name=
"label"
>
3D settings
</property>
<property
name=
"select"
>
1
</property>
<property
name=
"select"
>
0
</property>
<object
class=
"wxPanel"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.h
View file @
248343c0
...
...
@@ -109,7 +109,7 @@ class DIALOG_MODULE_MODULE_EDITOR_BASE : public DIALOG_SHIM
public
:
wxStaticBoxSizer
*
m_Sizer3DValues
;
DIALOG_MODULE_MODULE_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
DIALOG_MODULE_MODULE_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
486
,
462
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_MODULE_MODULE_EDITOR_BASE
();
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment