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
5c790f50
Commit
5c790f50
authored
Dec 23, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added dialog box to edit graphic items
parent
57d9096a
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
181 additions
and
128 deletions
+181
-128
CHANGELOG.txt
CHANGELOG.txt
+8
-0
wxPcbStruct.h
include/wxPcbStruct.h
+3
-2
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+150
-95
CMakeLists.txt
pcbnew/CMakeLists.txt
+2
-0
class_drawsegment.h
pcbnew/class_drawsegment.h
+1
-1
dialog_pad_properties.cpp
pcbnew/dialog_pad_properties.cpp
+7
-3
edit.cpp
pcbnew/edit.cpp
+1
-1
editedge.cpp
pcbnew/editedge.cpp
+0
-25
makefile.include
pcbnew/makefile.include
+2
-0
onleftclick.cpp
pcbnew/onleftclick.cpp
+7
-1
No files found.
CHANGELOG.txt
View file @
5c790f50
...
...
@@ -5,6 +5,14 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.
2008-Dec-22 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
++Pcbnew:
Added dialog box to edit graphic items (graphic segments, circles, arcs)
properties
2008-Dec-22 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
++All
...
...
include/wxPcbStruct.h
View file @
5c790f50
...
...
@@ -209,8 +209,10 @@ public:
void
Place_Module
(
MODULE
*
module
,
wxDC
*
DC
);
void
InstallExchangeModuleFrame
(
MODULE
*
ExchangeModuleModule
,
wxDC
*
DC
,
const
wxPoint
&
pos
);
// Graphic items edition:
void
InstallGraphicItemPropertiesDialog
(
DRAWSEGMENT
*
aItem
,
wxDC
*
aDC
);
// module texts
// module texts
void
RotateTextModule
(
TEXTE_MODULE
*
Text
,
wxDC
*
DC
);
void
DeleteTextModule
(
TEXTE_MODULE
*
Text
,
wxDC
*
DC
);
void
PlaceTexteModule
(
TEXTE_MODULE
*
Text
,
wxDC
*
DC
);
...
...
@@ -661,7 +663,6 @@ public:
// Graphic segments type DRAWSEGMENT handling:
DRAWSEGMENT
*
Begin_DrawSegment
(
DRAWSEGMENT
*
Segment
,
int
shape
,
wxDC
*
DC
);
void
End_Edge
(
DRAWSEGMENT
*
Segment
,
wxDC
*
DC
);
void
Drawing_SetNewWidth
(
DRAWSEGMENT
*
DrawSegm
,
wxDC
*
DC
);
void
Delete_Segment_Edge
(
DRAWSEGMENT
*
Segment
,
wxDC
*
DC
);
void
Delete_Drawings_All_Layer
(
DRAWSEGMENT
*
Segment
,
wxDC
*
DC
);
...
...
internat/fr/kicad.mo
View file @
5c790f50
No preview for this file type
internat/fr/kicad.po
View file @
5c790f50
This diff is collapsed.
Click to expand it.
pcbnew/CMakeLists.txt
View file @
5c790f50
...
...
@@ -56,6 +56,8 @@ set(PCBNEW_SRCS
dialog_general_options.cpp
dialog_general_options_BoardEditor_base.cpp
# dialog_graphic_items_options.cpp
dialog_graphic_item_properties.cpp
dialog_graphic_item_properties_base.cpp
# dialog_initpcb.cpp
# dialog_netlist.cpp
dialog_pcb_text_properties.cpp
...
...
pcbnew/class_drawsegment.h
View file @
5c790f50
...
...
@@ -8,7 +8,7 @@
class
DRAWSEGMENT
:
public
BOARD_ITEM
{
public
:
int
m_Width
;
//
0 = line. if > 0 = tracks, bu
s ...
int
m_Width
;
//
thickness of line
s ...
wxPoint
m_Start
;
// Line start point
wxPoint
m_End
;
// Line end point
...
...
pcbnew/dialog_pad_properties.cpp
View file @
5c790f50
/******************************************************/
/* editpads.cpp: Pad editing functions and dialog box */
/******************************************************/
/*******************************************************************/
/* dialog_pad_properties.cpp: Pad editing functions and dialog box */
/* see also dialog_pad_properties.xxx (built with wxFormBuilder) */
/*******************************************************************/
#include "fctsys.h"
#include "common.h"
...
...
@@ -514,7 +515,10 @@ void DialogPadProperties::PadPropertiesAccept( wxCommandEvent& event )
if
(
m_CurrentPad
->
GetNetname
()
!=
Current_PadNetName
)
{
if
(
Current_PadNetName
.
IsEmpty
()
)
{
m_CurrentPad
->
SetNet
(
0
);
m_CurrentPad
->
SetNetname
(
Current_PadNetName
);
}
else
{
const
EQUIPOT
*
net
=
m_Parent
->
m_Pcb
->
FindNet
(
Current_PadNetName
);
...
...
pcbnew/edit.cpp
View file @
5c790f50
...
...
@@ -842,7 +842,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
break
;
case
ID_POPUP_PCB_EDIT_DRAWING
:
Drawing_SetNewWidth
(
(
DRAWSEGMENT
*
)
GetCurItem
(),
&
dc
);
InstallGraphicItemPropertiesDialog
(
(
DRAWSEGMENT
*
)
GetCurItem
(),
&
dc
);
DrawPanel
->
MouseToCursorSchema
();
break
;
...
...
pcbnew/editedge.cpp
View file @
5c790f50
...
...
@@ -126,31 +126,6 @@ void WinEDA_PcbFrame::Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC )
}
/*************************************************************************/
void
WinEDA_PcbFrame
::
Drawing_SetNewWidth
(
DRAWSEGMENT
*
DrawSegm
,
wxDC
*
DC
)
/*************************************************************************/
/* Met a la largeur courante le segment pointe part la souris
*/
{
if
(
DrawSegm
==
NULL
)
return
;
DrawSegm
->
Draw
(
DrawPanel
,
DC
,
GR_XOR
);
if
(
DrawSegm
->
GetLayer
()
==
EDGE_N
)
DrawSegm
->
m_Width
=
g_DesignSettings
.
m_EdgeSegmentWidth
;
else
DrawSegm
->
m_Width
=
g_DesignSettings
.
m_DrawSegmentWidth
;
DrawSegm
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
DrawSegm
->
Display_Infos
(
this
);
GetScreen
()
->
SetModify
();
}
/******************************************************************************/
void
WinEDA_PcbFrame
::
Delete_Drawings_All_Layer
(
DRAWSEGMENT
*
Segment
,
wxDC
*
DC
)
/******************************************************************************/
...
...
pcbnew/makefile.include
View file @
5c790f50
...
...
@@ -28,6 +28,8 @@ OBJECTS= $(TARGET).o classpcb.o\
dialog_freeroute_exchange.o
\
modedit_undo_redo.o
\
block_module_editor.o
\
dialog_graphic_item_properties.o
\
dialog_graphic_item_properties_base.o
\
dialog_pad_properties.o
\
dialog_pad_properties_base.o
\
dialog_pcb_text_properties.o
\
...
...
pcbnew/onleftclick.cpp
View file @
5c790f50
...
...
@@ -391,13 +391,19 @@ void WinEDA_PcbFrame::OnLeftDClick( wxDC* DC, const wxPoint& MousePos )
DrawPanel
->
MouseToCursorSchema
();
break
;
case
TYPE_COTATION
:
Install_Edit_Cotation
(
(
COTATION
*
)
DrawStruct
,
&
dc
,
pos
);
DrawPanel
->
MouseToCursorSchema
();
break
;
case
TYPE_TEXTE_MODULE
:
InstallTextModOptionsFrame
(
(
TEXTE_MODULE
*
)
DrawStruct
,
&
dc
,
pos
);
DrawPanel
->
MouseToCursorSchema
();
break
;
case
TYPE_DRAWSEGMENT
:
break
;
InstallGraphicItemPropertiesDialog
((
DRAWSEGMENT
*
)
DrawStruct
,
&
dc
);
break
;
case
TYPE_ZONE_CONTAINER
:
if
(
DrawStruct
->
m_Flags
)
...
...
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