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
f05b6d49
Commit
f05b6d49
authored
Nov 11, 2010
by
Macor Mattila
Committed by
jean-pierre charras
Nov 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: Commit block move patch from Marco Mattila
parent
37ad67df
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
599 additions
and
447 deletions
+599
-447
load_one_schematic_file.cpp
eeschema/load_one_schematic_file.cpp
+1
-1
onrightclick.cpp
eeschema/onrightclick.cpp
+2
-1
block_commande.h
include/block_commande.h
+9
-0
block.cpp
pcbnew/block.cpp
+192
-80
class_dimension.cpp
pcbnew/class_dimension.cpp
+2
-2
class_drawsegment.cpp
pcbnew/class_drawsegment.cpp
+5
-5
class_drawsegment.h
pcbnew/class_drawsegment.h
+1
-1
class_track.cpp
pcbnew/class_track.cpp
+66
-36
class_track.h
pcbnew/class_track.h
+2
-2
dialog_export_3Dfiles_base.fbp
pcbnew/dialog_export_3Dfiles_base.fbp
+319
-319
No files found.
eeschema/load_one_schematic_file.cpp
View file @
f05b6d49
...
...
@@ -30,7 +30,7 @@ static void LoadLayers( LINE_READER* aLine );
bool
WinEDA_SchematicFrame
::
LoadOneEEFile
(
SCH_SCREEN
*
screen
,
const
wxString
&
FullFileName
)
{
char
Name1
[
256
];
bool
itemLoaded
;
bool
itemLoaded
=
false
;
SCH_ITEM
*
Phead
;
SCH_ITEM
*
Pnext
;
SCH_ITEM
*
item
;
...
...
eeschema/onrightclick.cpp
View file @
f05b6d49
...
...
@@ -238,7 +238,8 @@ void AddMenusForComponentField( wxMenu* PopMenu, SCH_FIELD* Field )
msg
=
AddHotkeyName
(
_
(
"Rotate Field"
),
s_Schematic_Hokeys_Descr
,
HK_ROTATE
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_FIELD
,
msg
,
rotate_field_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_FIELD
,
_
(
"Edit Field"
),
edit_text_xpm
);
msg
=
AddHotkeyName
(
_
(
"Edit Field"
),
s_Schematic_Hokeys_Descr
,
HK_EDIT
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_FIELD
,
msg
,
edit_text_xpm
);
}
...
...
include/block_commande.h
View file @
f05b6d49
...
...
@@ -110,6 +110,15 @@ public:
{
return
m_ItemsSelection
.
GetCount
();
}
/** Function SetLastCursorPosition
* sets m_BlockLastCursorPosition
* @param aPosition = new position
**/
void
SetLastCursorPosition
(
wxPoint
aPosition
)
{
m_BlockLastCursorPosition
=
aPosition
;
}
};
...
...
pcbnew/block.cpp
View file @
f05b6d49
This diff is collapsed.
Click to expand it.
pcbnew/class_dimension.cpp
View file @
f05b6d49
...
...
@@ -532,8 +532,8 @@ void DIMENSION::Draw( WinEDA_DrawPanel* panel, wxDC* DC,
{
int
ox
,
oy
,
typeaff
,
width
,
gcolor
;
ox
=
offset
.
x
;
oy
=
offset
.
y
;
ox
=
-
offset
.
x
;
oy
=
-
offset
.
y
;
m_Text
->
Draw
(
panel
,
DC
,
mode_color
,
offset
);
...
...
pcbnew/class_drawsegment.cpp
View file @
f05b6d49
...
...
@@ -229,7 +229,7 @@ wxPoint DRAWSEGMENT::GetEnd() const
void
DRAWSEGMENT
::
Draw
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
int
draw_mode
,
const
wxPoint
&
notUsed
)
int
draw_mode
,
const
wxPoint
&
aOffset
)
{
int
ux0
,
uy0
,
dx
,
dy
;
int
l_piste
;
...
...
@@ -246,12 +246,12 @@ void DRAWSEGMENT::Draw( WinEDA_DrawPanel* panel, wxDC* DC,
l_piste
=
m_Width
>>
1
;
/* half trace width */
// Line start point or Circle and Arc center
ux0
=
m_Start
.
x
;
uy0
=
m_Start
.
y
;
ux0
=
m_Start
.
x
+
aOffset
.
x
;
uy0
=
m_Start
.
y
+
aOffset
.
y
;
// Line end point or circle and arc start point
dx
=
m_End
.
x
;
dy
=
m_End
.
y
;
dx
=
m_End
.
x
+
aOffset
.
x
;
dy
=
m_End
.
y
+
aOffset
.
y
;
mode
=
DisplayOpt
.
DisplayDrawItems
;
if
(
m_Flags
&
FORCE_SKETCH
)
...
...
pcbnew/class_drawsegment.h
View file @
f05b6d49
...
...
@@ -65,7 +65,7 @@ public:
void
Draw
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
int
aDrawMode
,
const
wxPoint
&
o
ffset
=
ZeroOffset
);
int
aDrawMode
,
const
wxPoint
&
aO
ffset
=
ZeroOffset
);
/**
* Function DisplayInfo
...
...
pcbnew/class_track.cpp
View file @
f05b6d49
This diff is collapsed.
Click to expand it.
pcbnew/class_track.h
View file @
f05b6d49
...
...
@@ -144,7 +144,7 @@ public:
/* Display on screen: */
void
Draw
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
int
aDrawMode
,
const
wxPoint
&
o
ffset
=
ZeroOffset
);
void
Draw
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
int
aDrawMode
,
const
wxPoint
&
aO
ffset
=
ZeroOffset
);
/* divers */
int
Shape
()
const
{
return
m_Shape
&
0xFF
;
}
...
...
@@ -341,7 +341,7 @@ public:
}
void
Draw
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
int
aDrawMode
,
const
wxPoint
&
o
ffset
=
ZeroOffset
);
void
Draw
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
int
aDrawMode
,
const
wxPoint
&
aO
ffset
=
ZeroOffset
);
/**
...
...
pcbnew/dialog_export_3Dfiles_base.fbp
View file @
f05b6d49
This diff is collapsed.
Click to expand it.
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