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
24aa7aa5
Commit
24aa7aa5
authored
Sep 16, 2014
by
Brian Sidebotham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary changes
parent
56f44e2f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
673 additions
and
102 deletions
+673
-102
dialog_eeschema_options.cpp
eeschema/dialogs/dialog_eeschema_options.cpp
+78
-15
dialog_eeschema_options.h
eeschema/dialogs/dialog_eeschema_options.h
+5
-3
dialog_eeschema_options_base.cpp
eeschema/dialogs/dialog_eeschema_options_base.cpp
+105
-79
dialog_eeschema_options_base.fbp
eeschema/dialogs/dialog_eeschema_options_base.fbp
+453
-3
dialog_eeschema_options_base.h
eeschema/dialogs/dialog_eeschema_options_base.h
+14
-1
eeschema_config.cpp
eeschema/eeschema_config.cpp
+11
-1
template_fieldnames.h
eeschema/template_fieldnames.h
+7
-0
No files found.
eeschema/dialogs/dialog_eeschema_options.cpp
View file @
24aa7aa5
...
...
@@ -40,18 +40,18 @@ DIALOG_EESCHEMA_OPTIONS::DIALOG_EESCHEMA_OPTIONS( wxWindow* parent ) :
wxListItem
col0
;
col0
.
SetId
(
0
);
col0
.
SetText
(
_
(
"
ID
"
)
);
col0
.
SetWidth
(
50
);
col0
.
SetText
(
_
(
"
Field Name
"
)
);
col0
.
SetWidth
(
1
50
);
wxListItem
col1
;
col1
.
SetId
(
1
);
col1
.
SetText
(
_
(
"
Nam
e"
)
);
col1
.
SetWidth
(
1
50
);
col1
.
SetText
(
_
(
"
Default Valu
e"
)
);
col1
.
SetWidth
(
2
50
);
wxListItem
col2
;
col2
.
SetId
(
2
);
col2
.
SetText
(
_
(
"
Default Valu
e"
)
);
col2
.
SetWidth
(
25
0
);
col2
.
SetText
(
_
(
"
Visibl
e"
)
);
col2
.
SetWidth
(
10
0
);
templateFieldListCtrl
->
InsertColumn
(
0
,
col0
);
templateFieldListCtrl
->
InsertColumn
(
1
,
col1
);
...
...
@@ -142,29 +142,92 @@ void DIALOG_EESCHEMA_OPTIONS::SetGridSizes( const GRIDS& grid_sizes, int grid_id
void
DIALOG_EESCHEMA_OPTIONS
::
OnAddButtonClick
(
wxCommandEvent
&
event
)
{
long
itemindex
=
templateFieldListCtrl
->
InsertItem
(
0
,
wxT
(
"ID
"
)
);
templateFieldListCtrl
->
SetItem
(
itemindex
,
1
,
wxT
(
"
Next Fieldnam
e"
)
);
templateFieldListCtrl
->
SetItem
(
itemindex
,
2
,
wxT
(
"
A Default value
"
)
);
long
itemindex
=
templateFieldListCtrl
->
InsertItem
(
templateFieldListCtrl
->
GetItemCount
(),
wxT
(
"New Fieldname
"
)
);
templateFieldListCtrl
->
SetItem
(
itemindex
,
1
,
wxT
(
"
Default Valu
e"
)
);
templateFieldListCtrl
->
SetItem
(
itemindex
,
2
,
wxT
(
"
Hidden
"
)
);
event
.
Skip
();
}
void
DIALOG_EESCHEMA_OPTIONS
::
copyPanelToSelected
(
void
)
{
wxListItem
iteminfo
;
iteminfo
.
m_itemId
=
selectedField
;
iteminfo
.
m_mask
=
wxLIST_MASK_TEXT
;
iteminfo
.
m_col
=
0
;
iteminfo
.
m_text
=
fieldNameTextCtrl
->
GetValue
();
templateFieldListCtrl
->
SetItem
(
iteminfo
);
iteminfo
.
m_col
=
1
;
iteminfo
.
m_text
=
fieldDefaultValueTextCtrl
->
GetValue
();
templateFieldListCtrl
->
SetItem
(
iteminfo
);
/* TODO: Fixme! */
iteminfo
.
m_col
=
2
;
iteminfo
.
m_text
=
fieldNameTextCtrl
->
GetValue
();
templateFieldListCtrl
->
SetItem
(
iteminfo
);
}
void
DIALOG_EESCHEMA_OPTIONS
::
copySelectedToPanel
(
void
)
{
wxListItem
iteminfo
;
iteminfo
.
m_itemId
=
selectedField
;
iteminfo
.
m_mask
=
wxLIST_MASK_TEXT
;
iteminfo
.
m_col
=
0
;
if
(
!
templateFieldListCtrl
->
GetItem
(
iteminfo
)
)
return
;
fieldNameTextCtrl
->
SetValue
(
iteminfo
.
m_text
);
iteminfo
.
m_col
=
1
;
if
(
!
templateFieldListCtrl
->
GetItem
(
iteminfo
)
)
return
;
fieldDefaultValueTextCtrl
->
SetValue
(
iteminfo
.
m_text
);
iteminfo
.
m_col
=
2
;
if
(
!
templateFieldListCtrl
->
GetItem
(
iteminfo
)
)
return
;
if
(
iteminfo
.
m_text
==
wxT
(
"Hidden"
)
)
fieldVisibleCheckbox
->
SetValue
(
false
);
else
fieldVisibleCheckbox
->
SetValue
(
true
);
}
void
DIALOG_EESCHEMA_OPTIONS
::
OnTemplateFieldSelected
(
wxListEvent
&
event
)
{
selectedField
=
event
.
GetIndex
();
printf
(
"selectedField = %d
\n
"
,
selectedField
);
copySelectedToPanel
();
event
.
Skip
();
}
void
DIALOG_EESCHEMA_OPTIONS
::
OnTemplateFieldDeselected
(
wxListEvent
&
event
)
{
event
.
Skip
();
}
void
DIALOG_EESCHEMA_OPTIONS
::
SetTemplateFields
(
const
TEMPLATE_FIELDNAMES
&
aFields
)
{
printf
(
"SetTemplateFields %d
\n
"
,
aFields
.
size
()
)
;
templateFields
=
aFields
;
for
(
size_t
i
=
0
;
i
<
aFields
.
size
();
i
++
)
for
(
TEMPLATE_FIELDNAMES
::
iterator
fld
=
templateFields
.
begin
();
fld
!=
templateFields
.
end
();
++
fld
)
{
long
itemindex
=
templateFieldListCtrl
->
InsertItem
(
0
,
wxT
(
"?"
)
);
templateFieldListCtrl
->
SetItem
(
itemindex
,
1
,
aFields
[
i
].
m_Name
);
templateFieldListCtrl
->
SetItem
(
itemindex
,
2
,
aFields
[
i
].
m_Value
);
templateFieldListCtrl
->
SetItem
(
itemindex
,
1
,
fld
->
m_Name
);
templateFieldListCtrl
->
SetItem
(
itemindex
,
2
,
fld
->
m_Value
);
printf
(
"Parsed new templateField
\n
"
);
}
}
TEMPLATE_FIELDNAMES
*
DIALOG_EESCHEMA_OPTIONS
::
GetTemplateFields
(
void
)
TEMPLATE_FIELDNAMES
DIALOG_EESCHEMA_OPTIONS
::
GetTemplateFields
(
void
)
{
return
&
templateFields
;
return
templateFields
;
}
eeschema/dialogs/dialog_eeschema_options.h
View file @
24aa7aa5
...
...
@@ -38,9 +38,11 @@ class DIALOG_EESCHEMA_OPTIONS : public DIALOG_EESCHEMA_OPTIONS_BASE
{
protected
:
TEMPLATE_FIELDNAMES
templateFields
;
int
selectedField
;
void
OnAddButtonClick
(
wxCommandEvent
&
event
);
void
copySelectedToPanel
(
void
);
void
OnTemplateFieldSelected
(
wxListEvent
&
event
);
void
OnTemplateFieldDeselected
(
wxListEvent
&
event
);
public
:
DIALOG_EESCHEMA_OPTIONS
(
wxWindow
*
parent
);
...
...
@@ -131,7 +133,7 @@ public:
bool
GetShowPageLimits
(
void
)
{
return
m_checkPageLimits
->
GetValue
();
}
void
SetTemplateFields
(
const
TEMPLATE_FIELDNAMES
&
aFields
);
TEMPLATE_FIELDNAMES
*
GetTemplateFields
(
void
);
TEMPLATE_FIELDNAMES
GetTemplateFields
(
void
);
private
:
void
OnMiddleBtnPanEnbl
(
wxCommandEvent
&
event
)
...
...
eeschema/dialogs/dialog_eeschema_options_base.cpp
View file @
24aa7aa5
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Apr 10
2012)
// C++ code generated with wxFormBuilder (version
Oct 8
2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
@@ -12,6 +12,8 @@
BEGIN_EVENT_TABLE
(
DIALOG_EESCHEMA_OPTIONS_BASE
,
DIALOG_SHIM
)
EVT_CHOICE
(
wxID_ANY
,
DIALOG_EESCHEMA_OPTIONS_BASE
::
_wxFB_OnChooseUnits
)
EVT_CHECKBOX
(
xwID_ANY
,
DIALOG_EESCHEMA_OPTIONS_BASE
::
_wxFB_OnMiddleBtnPanEnbl
)
EVT_LIST_ITEM_DESELECTED
(
wxID_ANY
,
DIALOG_EESCHEMA_OPTIONS_BASE
::
_wxFB_OnTemplateFieldDeselected
)
EVT_LIST_ITEM_SELECTED
(
wxID_ANY
,
DIALOG_EESCHEMA_OPTIONS_BASE
::
_wxFB_OnTemplateFieldSelected
)
EVT_BUTTON
(
wxID_ADD_FIELD
,
DIALOG_EESCHEMA_OPTIONS_BASE
::
_wxFB_OnAddButtonClick
)
EVT_BUTTON
(
wxID_DELETE_FIELD
,
DIALOG_EESCHEMA_OPTIONS_BASE
::
_wxFB_OnDeleteButtonClick
)
END_EVENT_TABLE
()
...
...
@@ -19,23 +21,23 @@ END_EVENT_TABLE()
DIALOG_EESCHEMA_OPTIONS_BASE
::
DIALOG_EESCHEMA_OPTIONS_BASE
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
title
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
:
DIALOG_SHIM
(
parent
,
id
,
title
,
pos
,
size
,
style
)
{
this
->
SetSizeHints
(
wxDefaultSize
,
wxDefaultSize
);
wxBoxSizer
*
mainSizer
;
mainSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
bOptionsSizer
;
bOptionsSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_notebook1
=
new
wxNotebook
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_notebook1
->
SetBackgroundColour
(
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_BTNFACE
)
);
m_panel1
=
new
wxPanel
(
m_notebook1
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxTAB_TRAVERSAL
);
wxBoxSizer
*
p1mainSizer
;
p1mainSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
bSizer3
;
bSizer3
=
new
wxBoxSizer
(
wxVERTICAL
);
wxFlexGridSizer
*
fgSizer1
;
fgSizer1
=
new
wxFlexGridSizer
(
11
,
3
,
0
,
0
);
fgSizer1
->
AddGrowableCol
(
0
);
...
...
@@ -43,223 +45,247 @@ DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wx
fgSizer1
->
AddGrowableCol
(
2
);
fgSizer1
->
SetFlexibleDirection
(
wxHORIZONTAL
);
fgSizer1
->
SetNonFlexibleGrowMode
(
wxFLEX_GROWMODE_SPECIFIED
);
m_staticText2
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Measurement &units:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText2
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText2
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
wxArrayString
m_choiceUnitsChoices
;
m_choiceUnits
=
new
wxChoice
(
m_panel1
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
m_choiceUnitsChoices
,
0
);
m_choiceUnits
->
SetSelection
(
0
);
fgSizer1
->
Add
(
m_choiceUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
|
wxEXPAND
,
3
);
fgSizer1
->
Add
(
0
,
0
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
,
3
);
m_staticText3
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"&Grid size:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText3
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText3
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
wxArrayString
m_choiceGridSizeChoices
;
m_choiceGridSize
=
new
wxChoice
(
m_panel1
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
m_choiceGridSizeChoices
,
0
);
m_choiceGridSize
->
SetSelection
(
0
);
fgSizer1
->
Add
(
m_choiceGridSize
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
|
wxALL
,
3
);
m_staticGridUnits
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"mils"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticGridUnits
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticGridUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_staticText51
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Default &bus width:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText51
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText51
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_spinBusWidth
=
new
wxSpinCtrl
(
m_panel1
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
|
wxSP_WRAP
,
1
,
100
,
1
);
fgSizer1
->
Add
(
m_spinBusWidth
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
|
wxEXPAND
,
3
);
m_staticBusWidthUnits
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"mils"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticBusWidthUnits
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticBusWidthUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_staticText5
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Default &line width:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText5
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText5
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_spinLineWidth
=
new
wxSpinCtrl
(
m_panel1
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
|
wxSP_WRAP
,
1
,
100
,
1
);
fgSizer1
->
Add
(
m_spinLineWidth
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
|
wxEXPAND
,
3
);
m_staticLineWidthUnits
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"mils"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticLineWidthUnits
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticLineWidthUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_staticText52
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Default pin length:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText52
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText52
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxLEFT
|
wxRIGHT
,
3
);
m_spinPinLength
=
new
wxSpinCtrl
(
m_panel1
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
|
wxSP_WRAP
,
50
,
1000
,
100
);
fgSizer1
->
Add
(
m_spinPinLength
,
0
,
wxALIGN_CENTER
|
wxALL
|
wxEXPAND
,
3
);
m_staticPinLengthUnits
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"mils"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticPinLengthUnits
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticPinLengthUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxLEFT
|
wxRIGHT
,
3
);
m_staticText7
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Default text &size:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText7
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText7
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_spinTextSize
=
new
wxSpinCtrl
(
m_panel1
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
|
wxSP_WRAP
,
0
,
1000
,
0
);
fgSizer1
->
Add
(
m_spinTextSize
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
|
wxEXPAND
,
3
);
m_staticTextSizeUnits
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"mils"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextSizeUnits
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticTextSizeUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_staticText9
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Repeat draw item &horizontal displacement:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText9
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText9
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_spinRepeatHorizontal
=
new
wxSpinCtrl
(
m_panel1
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
|
wxSP_WRAP
,
-
5000
,
5000
,
0
);
fgSizer1
->
Add
(
m_spinRepeatHorizontal
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
|
wxEXPAND
,
3
);
m_staticRepeatXUnits
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"mils"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticRepeatXUnits
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticRepeatXUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_staticText12
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Repeat draw item &vertical displacement:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText12
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText12
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_spinRepeatVertical
=
new
wxSpinCtrl
(
m_panel1
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
|
wxSP_WRAP
,
-
5000
,
5000
,
100
);
fgSizer1
->
Add
(
m_spinRepeatVertical
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
|
wxEXPAND
,
3
);
m_staticRepeatYUnits
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"mils"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticRepeatYUnits
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticRepeatYUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_staticText16
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"&Repeat label increment:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText16
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText16
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_spinRepeatLabel
=
new
wxSpinCtrl
(
m_panel1
,
wxID_ANY
,
wxT
(
"1"
),
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
|
wxSP_WRAP
,
0
,
10
,
1
);
fgSizer1
->
Add
(
m_spinRepeatLabel
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
|
wxEXPAND
,
3
);
fgSizer1
->
Add
(
0
,
0
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
,
3
);
m_staticText221
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Auto save &time interval:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText221
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText221
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_spinAutoSaveInterval
=
new
wxSpinCtrl
(
m_panel1
,
ID_M_SPINAUTOSAVEINTERVAL
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
,
0
,
1000
,
10
);
fgSizer1
->
Add
(
m_spinAutoSaveInterval
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
|
wxEXPAND
,
3
);
m_staticText23
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"minutes"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText23
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText23
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
|
wxLEFT
,
3
);
m_staticText26
=
new
wxStaticText
(
m_panel1
,
wxID_ANY
,
_
(
"Part id notation:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText26
->
Wrap
(
-
1
);
fgSizer1
->
Add
(
m_staticText26
,
0
,
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER_VERTICAL
,
5
);
wxString
m_choiceSeparatorRefIdChoices
[]
=
{
_
(
"A"
),
_
(
".A"
),
_
(
"-A"
),
_
(
"_A"
),
_
(
".1"
),
_
(
"-1"
),
_
(
"_1"
)
};
int
m_choiceSeparatorRefIdNChoices
=
sizeof
(
m_choiceSeparatorRefIdChoices
)
/
sizeof
(
wxString
);
m_choiceSeparatorRefId
=
new
wxChoice
(
m_panel1
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
m_choiceSeparatorRefIdNChoices
,
m_choiceSeparatorRefIdChoices
,
0
);
m_choiceSeparatorRefId
->
SetSelection
(
0
);
fgSizer1
->
Add
(
m_choiceSeparatorRefId
,
0
,
wxALL
|
wxEXPAND
,
5
);
fgSizer1
->
Add
(
0
,
0
,
1
,
wxEXPAND
,
5
);
bSizer3
->
Add
(
fgSizer1
,
0
,
wxALIGN_CENTER
|
wxEXPAND
,
0
);
wxBoxSizer
*
bSizer2
;
bSizer2
=
new
wxBoxSizer
(
wxVERTICAL
);
m_staticline1
=
new
wxStaticLine
(
m_panel1
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
bSizer2
->
Add
(
m_staticline1
,
0
,
wxEXPAND
|
wxALL
,
5
);
m_checkShowGrid
=
new
wxCheckBox
(
m_panel1
,
wxID_ANY
,
_
(
"Show gr&id"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizer2
->
Add
(
m_checkShowGrid
,
0
,
wxEXPAND
|
wxTOP
|
wxRIGHT
|
wxLEFT
,
3
);
m_checkShowHiddenPins
=
new
wxCheckBox
(
m_panel1
,
wxID_ANY
,
_
(
"Show hi&dden pins"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizer2
->
Add
(
m_checkShowHiddenPins
,
0
,
wxEXPAND
|
wxTOP
|
wxRIGHT
|
wxLEFT
,
3
);
m_checkEnableZoomNoCenter
=
new
wxCheckBox
(
m_panel1
,
wxID_ANY
,
_
(
"Do not center and &warp cursor on zoom"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_checkEnableZoomNoCenter
->
SetToolTip
(
_
(
"Keep the cursor at its current location when zooming"
)
);
bSizer2
->
Add
(
m_checkEnableZoomNoCenter
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
3
);
m_checkEnableMiddleButtonPan
=
new
wxCheckBox
(
m_panel1
,
xwID_ANY
,
_
(
"Use &middle mouse button to pan"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_checkEnableMiddleButtonPan
->
SetToolTip
(
_
(
"Use middle mouse button dragging to pan"
)
);
bSizer2
->
Add
(
m_checkEnableMiddleButtonPan
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
3
);
m_checkMiddleButtonPanLimited
=
new
wxCheckBox
(
m_panel1
,
wxID_ANY
,
_
(
"&Limit panning to scroll size"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_checkMiddleButtonPanLimited
->
SetToolTip
(
_
(
"Middle mouse button panning limited by current scrollbar size"
)
);
bSizer2
->
Add
(
m_checkMiddleButtonPanLimited
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
3
);
m_checkAutoPan
=
new
wxCheckBox
(
m_panel1
,
wxID_ANY
,
_
(
"Pan while moving ob&ject"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizer2
->
Add
(
m_checkAutoPan
,
0
,
wxEXPAND
|
wxTOP
|
wxRIGHT
|
wxLEFT
,
3
);
m_checkHVOrientation
=
new
wxCheckBox
(
m_panel1
,
wxID_ANY
,
_
(
"Allow buses and wires to be placed in H or V &orientation only"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizer2
->
Add
(
m_checkHVOrientation
,
0
,
wxEXPAND
|
wxTOP
|
wxRIGHT
|
wxLEFT
,
3
);
m_checkPageLimits
=
new
wxCheckBox
(
m_panel1
,
wxID_ANY
,
_
(
"Show p&age limits"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizer2
->
Add
(
m_checkPageLimits
,
0
,
wxALL
|
wxEXPAND
,
3
);
bSizer3
->
Add
(
bSizer2
,
0
,
wxEXPAND
,
0
);
p1mainSizer
->
Add
(
bSizer3
,
1
,
wxALL
|
wxEXPAND
,
6
);
m_panel1
->
SetSizer
(
p1mainSizer
);
m_panel1
->
Layout
();
p1mainSizer
->
Fit
(
m_panel1
);
m_notebook1
->
AddPage
(
m_panel1
,
_
(
"General Options"
),
false
);
m_panel2
=
new
wxPanel
(
m_notebook1
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxTAB_TRAVERSAL
);
m_panel2
->
SetToolTip
(
_
(
"User defined field names for schematic components. "
)
);
wxBoxSizer
*
bSizer6
;
bSizer6
=
new
wxBoxSizer
(
wxVERTICAL
);
templateFieldListCtrl
=
new
wxListCtrl
(
m_panel2
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLC_HRULES
|
wxLC_REPORT
|
wxLC_VRULES
);
templateFieldListCtrl
=
new
wxListCtrl
(
m_panel2
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLC_HRULES
|
wxLC_REPORT
|
wxLC_
SINGLE_SEL
|
wxLC_
VRULES
);
templateFieldListCtrl
->
SetMinSize
(
wxSize
(
220
,
-
1
)
);
bSizer6
->
Add
(
templateFieldListCtrl
,
1
,
wxALIGN_TOP
|
wxBOTTOM
|
wxEXPAND
|
wxLEFT
|
wxRIGHT
|
wxTOP
,
8
);
wxStaticBoxSizer
*
fieldSizer
;
fieldSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_panel2
,
wxID_ANY
,
_
(
"Field"
)
),
wxVERTICAL
);
fieldNameLabel
=
new
wxStaticText
(
m_panel2
,
wxID_ANY
,
_
(
"Name"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
fieldNameLabel
->
Wrap
(
-
1
);
fieldSizer
->
Add
(
fieldNameLabel
,
0
,
wxLEFT
|
wxRIGHT
|
wxTOP
,
5
);
fieldNameTextCtrl
=
new
wxTextCtrl
(
m_panel2
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
fieldSizer
->
Add
(
fieldNameTextCtrl
,
0
,
wxBOTTOM
|
wxEXPAND
|
wxLEFT
|
wxRIGHT
,
5
);
fieldDefaultValueLabel
=
new
wxStaticText
(
m_panel2
,
wxID_ANY
,
_
(
"Default Value"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
fieldDefaultValueLabel
->
Wrap
(
-
1
);
fieldSizer
->
Add
(
fieldDefaultValueLabel
,
0
,
wxLEFT
|
wxRIGHT
|
wxTOP
,
5
);
fieldDefaultValueTextCtrl
=
new
wxTextCtrl
(
m_panel2
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
fieldSizer
->
Add
(
fieldDefaultValueTextCtrl
,
0
,
wxBOTTOM
|
wxEXPAND
|
wxLEFT
|
wxRIGHT
,
5
);
fieldVisibleCheckbox
=
new
wxCheckBox
(
m_panel2
,
wxID_ANY
,
_
(
"Visible"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
fieldSizer
->
Add
(
fieldVisibleCheckbox
,
0
,
wxALL
,
5
);
bSizer6
->
Add
(
fieldSizer
,
1
,
wxEXPAND
,
5
);
addFieldButton
=
new
wxButton
(
m_panel2
,
wxID_ADD_FIELD
,
_
(
"Add"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizer6
->
Add
(
addFieldButton
,
0
,
wxALL
|
wxEXPAND
,
5
);
deleteFieldButton
=
new
wxButton
(
m_panel2
,
wxID_DELETE_FIELD
,
_
(
"Delete"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizer6
->
Add
(
deleteFieldButton
,
0
,
wxALL
|
wxEXPAND
,
5
);
m_panel2
->
SetSizer
(
bSizer6
);
m_panel2
->
Layout
();
bSizer6
->
Fit
(
m_panel2
);
m_notebook1
->
AddPage
(
m_panel2
,
_
(
"Template Field Names"
),
true
);
bOptionsSizer
->
Add
(
m_notebook1
,
1
,
wxALL
|
wxEXPAND
,
5
);
m_sdbSizer1
=
new
wxStdDialogButtonSizer
();
m_sdbSizer1OK
=
new
wxButton
(
this
,
wxID_OK
);
m_sdbSizer1
->
AddButton
(
m_sdbSizer1OK
);
m_sdbSizer1Cancel
=
new
wxButton
(
this
,
wxID_CANCEL
);
m_sdbSizer1
->
AddButton
(
m_sdbSizer1Cancel
);
m_sdbSizer1
->
Realize
();
bOptionsSizer
->
Add
(
m_sdbSizer1
,
0
,
wxALIGN_BOTTOM
|
wxALL
|
wxEXPAND
,
6
);
mainSizer
->
Add
(
bOptionsSizer
,
1
,
wxEXPAND
,
12
);
this
->
SetSizer
(
mainSizer
);
this
->
Layout
();
mainSizer
->
Fit
(
this
);
this
->
Centre
(
wxBOTH
);
}
...
...
eeschema/dialogs/dialog_eeschema_options_base.fbp
View file @
24aa7aa5
...
...
@@ -3792,7 +3792,7 @@
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
wxLC_HRULES|wxLC_REPORT|wxLC_VRULES
</property>
<property
name=
"style"
>
wxLC_HRULES|wxLC_REPORT|wxLC_
SINGLE_SEL|wxLC_
VRULES
</property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
...
...
@@ -3827,11 +3827,11 @@
<event
name=
"OnListEndLabelEdit"
></event>
<event
name=
"OnListInsertItem"
></event>
<event
name=
"OnListItemActivated"
></event>
<event
name=
"OnListItemDeselected"
></event>
<event
name=
"OnListItemDeselected"
>
OnTemplateFieldDeselected
</event>
<event
name=
"OnListItemFocused"
></event>
<event
name=
"OnListItemMiddleClick"
></event>
<event
name=
"OnListItemRightClick"
></event>
<event
name=
"OnListItemSelected"
></event>
<event
name=
"OnListItemSelected"
>
OnTemplateFieldSelected
</event>
<event
name=
"OnListKeyDown"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
...
...
@@ -3848,6 +3848,456 @@
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"1"
>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Field
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
fieldSizer
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
none
</property>
<event
name=
"OnUpdateUI"
></event>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxLEFT|wxRIGHT|wxTOP
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
<property
name=
"TopDockable"
>
1
</property>
<property
name=
"aui_layer"
></property>
<property
name=
"aui_name"
></property>
<property
name=
"aui_position"
></property>
<property
name=
"aui_row"
></property>
<property
name=
"best_size"
></property>
<property
name=
"bg"
></property>
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
<property
name=
"docking"
>
Left
</property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"floatable"
>
1
</property>
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Name
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
fieldNameLabel
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pin_button"
>
1
</property>
<property
name=
"pos"
></property>
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<property
name=
"wrap"
>
-1
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxTextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
<property
name=
"TopDockable"
>
1
</property>
<property
name=
"aui_layer"
></property>
<property
name=
"aui_name"
></property>
<property
name=
"aui_position"
></property>
<property
name=
"aui_row"
></property>
<property
name=
"best_size"
></property>
<property
name=
"bg"
></property>
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
<property
name=
"docking"
>
Left
</property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"floatable"
>
1
</property>
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
></property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
fieldNameTextCtrl
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pin_button"
>
1
</property>
<property
name=
"pos"
></property>
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"value"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnText"
></event>
<event
name=
"OnTextEnter"
></event>
<event
name=
"OnTextMaxLen"
></event>
<event
name=
"OnTextURL"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxLEFT|wxRIGHT|wxTOP
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
<property
name=
"TopDockable"
>
1
</property>
<property
name=
"aui_layer"
></property>
<property
name=
"aui_name"
></property>
<property
name=
"aui_position"
></property>
<property
name=
"aui_row"
></property>
<property
name=
"best_size"
></property>
<property
name=
"bg"
></property>
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
<property
name=
"docking"
>
Left
</property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"floatable"
>
1
</property>
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Default Value
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
fieldDefaultValueLabel
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pin_button"
>
1
</property>
<property
name=
"pos"
></property>
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<property
name=
"wrap"
>
-1
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxTextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
<property
name=
"TopDockable"
>
1
</property>
<property
name=
"aui_layer"
></property>
<property
name=
"aui_name"
></property>
<property
name=
"aui_position"
></property>
<property
name=
"aui_row"
></property>
<property
name=
"best_size"
></property>
<property
name=
"bg"
></property>
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
<property
name=
"docking"
>
Left
</property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"floatable"
>
1
</property>
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
></property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
fieldDefaultValueTextCtrl
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pin_button"
>
1
</property>
<property
name=
"pos"
></property>
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"value"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnText"
></event>
<event
name=
"OnTextEnter"
></event>
<event
name=
"OnTextMaxLen"
></event>
<event
name=
"OnTextURL"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxCheckBox"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
<property
name=
"TopDockable"
>
1
</property>
<property
name=
"aui_layer"
></property>
<property
name=
"aui_name"
></property>
<property
name=
"aui_position"
></property>
<property
name=
"aui_row"
></property>
<property
name=
"best_size"
></property>
<property
name=
"bg"
></property>
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"checked"
>
0
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
<property
name=
"docking"
>
Left
</property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"floatable"
>
1
</property>
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Visible
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
fieldVisibleCheckbox
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pin_button"
>
1
</property>
<property
name=
"pos"
></property>
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnChar"
></event>
<event
name=
"OnCheckBox"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
...
...
eeschema/dialogs/dialog_eeschema_options_base.h
View file @
24aa7aa5
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Apr 10
2012)
// C++ code generated with wxFormBuilder (version
Oct 8
2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
@@ -11,6 +11,8 @@
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/stattext.h>
...
...
@@ -28,6 +30,8 @@
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/listctrl.h>
#include <wx/textctrl.h>
#include <wx/statbox.h>
#include <wx/button.h>
#include <wx/notebook.h>
#include <wx/dialog.h>
...
...
@@ -45,6 +49,8 @@ class DIALOG_EESCHEMA_OPTIONS_BASE : public DIALOG_SHIM
// Private event handlers
void
_wxFB_OnChooseUnits
(
wxCommandEvent
&
event
){
OnChooseUnits
(
event
);
}
void
_wxFB_OnMiddleBtnPanEnbl
(
wxCommandEvent
&
event
){
OnMiddleBtnPanEnbl
(
event
);
}
void
_wxFB_OnTemplateFieldDeselected
(
wxListEvent
&
event
){
OnTemplateFieldDeselected
(
event
);
}
void
_wxFB_OnTemplateFieldSelected
(
wxListEvent
&
event
){
OnTemplateFieldSelected
(
event
);
}
void
_wxFB_OnAddButtonClick
(
wxCommandEvent
&
event
){
OnAddButtonClick
(
event
);
}
void
_wxFB_OnDeleteButtonClick
(
wxCommandEvent
&
event
){
OnDeleteButtonClick
(
event
);
}
...
...
@@ -101,6 +107,11 @@ class DIALOG_EESCHEMA_OPTIONS_BASE : public DIALOG_SHIM
wxCheckBox
*
m_checkPageLimits
;
wxPanel
*
m_panel2
;
wxListCtrl
*
templateFieldListCtrl
;
wxStaticText
*
fieldNameLabel
;
wxTextCtrl
*
fieldNameTextCtrl
;
wxStaticText
*
fieldDefaultValueLabel
;
wxTextCtrl
*
fieldDefaultValueTextCtrl
;
wxCheckBox
*
fieldVisibleCheckbox
;
wxButton
*
addFieldButton
;
wxButton
*
deleteFieldButton
;
wxStdDialogButtonSizer
*
m_sdbSizer1
;
...
...
@@ -110,6 +121,8 @@ class DIALOG_EESCHEMA_OPTIONS_BASE : public DIALOG_SHIM
// Virtual event handlers, overide them in your derived class
virtual
void
OnChooseUnits
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnMiddleBtnPanEnbl
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnTemplateFieldDeselected
(
wxListEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnTemplateFieldSelected
(
wxListEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnAddButtonClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnDeleteButtonClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
...
...
eeschema/eeschema_config.cpp
View file @
24aa7aa5
...
...
@@ -366,6 +366,16 @@ void SCH_EDIT_FRAME::OnSetOptions( wxCommandEvent& event )
// look like the component field property editor, showing visibility and value also
DeleteAllTemplateFieldNames
();
TEMPLATE_FIELDNAMES
newFieldNames
=
dlg
.
GetTemplateFields
();
for
(
TEMPLATE_FIELDNAMES
::
iterator
dlgfld
=
newFieldNames
.
begin
();
dlgfld
!=
newFieldNames
.
end
();
++
dlgfld
)
{
TEMPLATE_FIELDNAME
fld
=
*
dlgfld
;
/* fld.m_Name = dlgfld->m_Name;
fld.m_Value = dlgfld->m_Value;
fld.m_Visible = dlgfld->m_Visible; */
AddTemplateFieldName
(
fld
);
}
/*
for( int i=0; i<8; ++i ) // no. fields in this dialog window
{
...
...
@@ -786,7 +796,7 @@ void SCH_EDIT_FRAME::SaveSettings( wxConfigBase* aCfg )
m_TemplateFieldNames
.
Format
(
&
sf
,
0
);
DBG
(
printf
(
"saving formatted template fieldnames:'%s'
\n
"
,
sf
.
GetString
().
c_str
()
);)
printf
(
"saving formatted template fieldnames:'%s'
\n
"
,
sf
.
GetString
().
c_str
()
);
wxString
record
=
FROM_UTF8
(
sf
.
GetString
().
c_str
()
);
record
.
Replace
(
wxT
(
"
\n
"
),
wxT
(
""
),
true
);
// strip all newlines
...
...
eeschema/template_fieldnames.h
View file @
24aa7aa5
...
...
@@ -62,6 +62,13 @@ struct TEMPLATE_FIELDNAME
{
}
TEMPLATE_FIELDNAME
(
const
TEMPLATE_FIELDNAME
&
ref
)
{
m_Name
=
ref
.
m_Name
;
m_Value
=
ref
.
m_Value
;
m_Visible
=
ref
.
m_Visible
;
}
/**
* Function Format
* serializes this object out as text into the given OUTPUTFORMATTER.
...
...
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