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
226648f6
Commit
226648f6
authored
Nov 26, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
radio button vulnerabilities
parent
6abee417
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
dialog_edit_component_in_schematic.cpp
eeschema/dialog_edit_component_in_schematic.cpp
+4
-1
dialog_edit_component_in_schematic.fbp
eeschema/dialog_edit_component_in_schematic.fbp
+1
-1
dialog_edit_component_in_schematic_fbp.cpp
eeschema/dialog_edit_component_in_schematic_fbp.cpp
+1
-1
No files found.
eeschema/dialog_edit_component_in_schematic.cpp
View file @
226648f6
...
...
@@ -440,13 +440,14 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyOptionsToPanel()
int
orientation
=
m_Cmp
->
GetRotationMiroir
()
&
~
(
CMP_MIROIR_X
|
CMP_MIROIR_Y
);
// if we don't change it, the default selection of the radio box is "0".
if
(
orientation
==
CMP_ORIENT_90
)
orientationRadioBox
->
SetSelection
(
1
);
else
if
(
orientation
==
CMP_ORIENT_180
)
orientationRadioBox
->
SetSelection
(
2
);
else
if
(
orientation
==
CMP_ORIENT_270
)
orientationRadioBox
->
SetSelection
(
3
);
else
orientationRadioBox
->
SetSelection
(
0
);
int
mirror
=
m_Cmp
->
GetRotationMiroir
()
&
(
CMP_MIROIR_X
|
CMP_MIROIR_Y
);
...
...
@@ -460,6 +461,8 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyOptionsToPanel()
mirrorRadioBox
->
SetSelection
(
2
);
D
(
printf
(
"mirror=Y,2
\n
"
);)
}
else
mirrorRadioBox
->
SetSelection
(
0
);
// Positionnement de la selection normal/convert
if
(
m_Cmp
->
m_Convert
>
1
)
...
...
eeschema/dialog_edit_component_in_schematic.fbp
View file @
226648f6
...
...
@@ -198,7 +198,7 @@
<property
name=
"name"
>
orientationRadioBox
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pos"
></property>
<property
name=
"selection"
>
3
</property>
<property
name=
"selection"
>
0
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
wxRA_SPECIFY_COLS
</property>
<property
name=
"subclass"
></property>
...
...
eeschema/dialog_edit_component_in_schematic_fbp.cpp
View file @
226648f6
...
...
@@ -39,7 +39,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
wxString
orientationRadioBoxChoices
[]
=
{
_
(
"0"
),
_
(
"+90"
),
_
(
"180"
),
_
(
"-90"
)
};
int
orientationRadioBoxNChoices
=
sizeof
(
orientationRadioBoxChoices
)
/
sizeof
(
wxString
);
orientationRadioBox
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Orientation (Degrees)"
),
wxDefaultPosition
,
wxDefaultSize
,
orientationRadioBoxNChoices
,
orientationRadioBoxChoices
,
1
,
wxRA_SPECIFY_COLS
);
orientationRadioBox
->
SetSelection
(
3
);
orientationRadioBox
->
SetSelection
(
0
);
orientationRadioBox
->
SetToolTip
(
_
(
"Select if the component is to be rotated when drawn"
)
);
orientationSizer
->
Add
(
orientationRadioBox
,
1
,
wxALL
,
8
);
...
...
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