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
9f69193a
Commit
9f69193a
authored
Nov 01, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting and compiler warnings
parent
9bf1f390
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
28 deletions
+17
-28
3d_canvas.cpp
3d-viewer/3d_canvas.cpp
+15
-26
bitmap2component.cpp
bitmap2component/bitmap2component.cpp
+2
-2
No files found.
3d-viewer/3d_canvas.cpp
View file @
9f69193a
...
...
@@ -336,69 +336,58 @@ void EDA_3D_CANVAS::OnRightClick( wxMouseEvent& event )
wxPoint
pos
;
wxMenu
PopUpMenu
;
pos
.
x
=
event
.
GetX
();
pos
.
y
=
event
.
GetY
();
wxMenuItem
*
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMIN
,
_
(
"Zoom +"
)
);
pos
.
x
=
event
.
GetX
();
pos
.
y
=
event
.
GetY
();
wxMenuItem
*
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMIN
,
_
(
"Zoom +"
)
);
item
->
SetBitmap
(
KiBitmap
(
zoom_in_xpm
));
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMOUT
,
_
(
"Zoom -"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMOUT
,
_
(
"Zoom -"
)
);
item
->
SetBitmap
(
KiBitmap
(
zoom_out_xpm
));
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZPOS
,
_
(
"Top View"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZPOS
,
_
(
"Top View"
)
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_top_xpm
));
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZNEG
,
_
(
"Bottom View"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZNEG
,
_
(
"Bottom View"
)
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_bottom_xpm
));
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XPOS
,
_
(
"Right View"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XPOS
,
_
(
"Right View"
)
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_right_xpm
));
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XNEG
,
_
(
"Left View"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XNEG
,
_
(
"Left View"
)
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_left_xpm
));
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YPOS
,
_
(
"Front View"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YPOS
,
_
(
"Front View"
)
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_front_xpm
));
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YNEG
,
_
(
"Back View"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YNEG
,
_
(
"Back View"
)
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_back_xpm
));
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_LEFT
,
_
(
"Move left <-"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_LEFT
,
_
(
"Move left <-"
)
);
item
->
SetBitmap
(
KiBitmap
(
left_xpm
));
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_RIGHT
,
_
(
"Move right ->"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_RIGHT
,
_
(
"Move right ->"
)
);
item
->
SetBitmap
(
KiBitmap
(
right_xpm
));
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_UP
,
_
(
"Move Up ^"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_UP
,
_
(
"Move Up ^"
)
);
item
->
SetBitmap
(
KiBitmap
(
up_xpm
));
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_DOWN
,
_
(
"Move Down"
)
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_DOWN
,
_
(
"Move Down"
)
);
item
->
SetBitmap
(
KiBitmap
(
down_xpm
));
PopUpMenu
.
Append
(
item
);
...
...
bitmap2component/bitmap2component.cpp
View file @
9f69193a
...
...
@@ -315,7 +315,7 @@ void BITMAPCONV_INFO::OuputOnePolygon( KPolygon & aPolygon )
int
width
=
1
;
fprintf
(
m_Outfile
,
"DP %d %d %d %d %d %d %d
\n
"
,
0
,
0
,
0
,
0
,
aPolygon
.
size
()
+
1
,
width
,
layer
);
(
int
)
aPolygon
.
size
()
+
1
,
width
,
layer
);
for
(
ii
=
0
;
ii
<
aPolygon
.
size
();
ii
++
)
{
...
...
@@ -331,7 +331,7 @@ void BITMAPCONV_INFO::OuputOnePolygon( KPolygon & aPolygon )
break
;
case
EESCHEMA_FMT
:
fprintf
(
m_Outfile
,
"P %d 0 0 1"
,
aPolygon
.
size
()
+
1
);
fprintf
(
m_Outfile
,
"P %d 0 0 1"
,
(
int
)
aPolygon
.
size
()
+
1
);
for
(
ii
=
0
;
ii
<
aPolygon
.
size
();
ii
++
)
{
currpoint
=
*
(
aPolygon
.
begin
()
+
ii
);
...
...
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