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
a70a5805
Commit
a70a5805
authored
Feb 19, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committed newfont patch. Pcbnew: board date automatically updated at each change.
parent
815bbddf
Changes
52
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
275 additions
and
11546 deletions
+275
-11546
CMakeLists.txt
common/CMakeLists.txt
+1
-0
drawtxt.cpp
common/drawtxt.cpp
+1
-1
menubar.cpp
eeschema/menubar.cpp
+1
-1
newstroke_font.h
include/newstroke_font.h
+33
-11329
wxBasePcbFrame.h
include/wxBasePcbFrame.h
+8
-0
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+103
-105
attribut.cpp
pcbnew/attribut.cpp
+4
-4
automove.cpp
pcbnew/automove.cpp
+2
-2
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+15
-0
block.cpp
pcbnew/block.cpp
+6
-6
block_module_editor.cpp
pcbnew/block_module_editor.cpp
+1
-1
board_undo_redo.cpp
pcbnew/board_undo_redo.cpp
+2
-2
clean.cpp
pcbnew/clean.cpp
+1
-1
controle.cpp
pcbnew/controle.cpp
+1
-1
deltrack.cpp
pcbnew/deltrack.cpp
+3
-3
dialog_copper_zones.cpp
pcbnew/dialog_copper_zones.cpp
+2
-2
dialog_edit_module_for_BoardEditor.cpp
pcbnew/dialog_edit_module_for_BoardEditor.cpp
+2
-2
dialog_edit_module_for_Modedit.cpp
pcbnew/dialog_edit_module_for_Modedit.cpp
+1
-1
dialog_edit_module_text.cpp
pcbnew/dialog_edit_module_text.cpp
+1
-1
dialog_graphic_item_properties.cpp
pcbnew/dialog_graphic_item_properties.cpp
+1
-1
dialog_layers_setup.cpp
pcbnew/dialog_layers_setup.cpp
+1
-1
dialog_orient_footprints.cpp
pcbnew/dialog_orient_footprints.cpp
+1
-1
dialog_pad_properties.cpp
pcbnew/dialog_pad_properties.cpp
+1
-1
dialog_pcb_text_properties.cpp
pcbnew/dialog_pcb_text_properties.cpp
+1
-1
dimension.cpp
pcbnew/dimension.cpp
+3
-3
edgemod.cpp
pcbnew/edgemod.cpp
+7
-7
edit.cpp
pcbnew/edit.cpp
+8
-8
edit_pcb_text.cpp
pcbnew/edit_pcb_text.cpp
+2
-2
edit_track_width.cpp
pcbnew/edit_track_width.cpp
+1
-1
editedge.cpp
pcbnew/editedge.cpp
+5
-5
editrack-part2.cpp
pcbnew/editrack-part2.cpp
+1
-1
editrack.cpp
pcbnew/editrack.cpp
+1
-1
edtxtmod.cpp
pcbnew/edtxtmod.cpp
+3
-3
files.cpp
pcbnew/files.cpp
+2
-2
globaleditpad.cpp
pcbnew/globaleditpad.cpp
+1
-1
hotkeys.cpp
pcbnew/hotkeys.cpp
+12
-12
initpcb.cpp
pcbnew/initpcb.cpp
+1
-1
mirepcb.cpp
pcbnew/mirepcb.cpp
+2
-2
modedit_undo_redo.cpp
pcbnew/modedit_undo_redo.cpp
+2
-2
modules.cpp
pcbnew/modules.cpp
+5
-5
move-drag_pads.cpp
pcbnew/move-drag_pads.cpp
+3
-3
move_or_drag_track.cpp
pcbnew/move_or_drag_track.cpp
+1
-1
muonde.cpp
pcbnew/muonde.cpp
+2
-2
netlist.cpp
pcbnew/netlist.cpp
+1
-1
onleftclick.cpp
pcbnew/onleftclick.cpp
+1
-1
pcbframe.cpp
pcbnew/pcbframe.cpp
+2
-1
specctra_import.cpp
pcbnew/specctra_import.cpp
+1
-1
swap_layers.cpp
pcbnew/swap_layers.cpp
+6
-4
xchgmod.cpp
pcbnew/xchgmod.cpp
+2
-2
zones_by_polygon.cpp
pcbnew/zones_by_polygon.cpp
+5
-5
zones_by_polygon_fill_functions.cpp
pcbnew/zones_by_polygon_fill_functions.cpp
+2
-2
No files found.
common/CMakeLists.txt
View file @
a70a5805
...
@@ -42,6 +42,7 @@ set(COMMON_SRCS
...
@@ -42,6 +42,7 @@ set(COMMON_SRCS
gr_basic.cpp
gr_basic.cpp
hotkeys_basic.cpp
hotkeys_basic.cpp
msgpanel.cpp
msgpanel.cpp
newstroke_font.cpp
projet_config.cpp
projet_config.cpp
# pyhandler.cpp
# pyhandler.cpp
richio.cpp
richio.cpp
...
...
common/drawtxt.cpp
View file @
a70a5805
...
@@ -107,7 +107,7 @@ int NegableTextLength( const wxString& aText )
...
@@ -107,7 +107,7 @@ int NegableTextLength( const wxString& aText )
static
const
char
*
GetHersheyShapeDescription
(
int
AsciiCode
)
static
const
char
*
GetHersheyShapeDescription
(
int
AsciiCode
)
{
{
/* calculate font length */
/* calculate font length */
int
font_length_max
=
sizeof
(
newstroke_font
)
/
sizeof
(
*
newstroke_font
)
;
int
font_length_max
=
newstroke_font_bufsize
;
if
(
AsciiCode
>=
(
32
+
font_length_max
)
)
if
(
AsciiCode
>=
(
32
+
font_length_max
)
)
AsciiCode
=
'?'
;
AsciiCode
=
'?'
;
if
(
AsciiCode
<
32
)
if
(
AsciiCode
<
32
)
...
...
eeschema/menubar.cpp
View file @
a70a5805
...
@@ -304,7 +304,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
...
@@ -304,7 +304,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
placeMenu
->
Append
(
item
);
placeMenu
->
Append
(
item
);
/* Net name */
/* Net name */
item
=
new
wxMenuItem
(
placeMenu
,
ID_LABEL_BUTT
,
_
(
"
Net name
"
),
item
=
new
wxMenuItem
(
placeMenu
,
ID_LABEL_BUTT
,
_
(
"
Label
"
),
_
(
"Place net name"
),
wxITEM_NORMAL
);
_
(
"Place net name"
),
wxITEM_NORMAL
);
item
->
SetBitmap
(
add_line_label_xpm
);
item
->
SetBitmap
(
add_line_label_xpm
);
placeMenu
->
Append
(
item
);
placeMenu
->
Append
(
item
);
...
...
include/newstroke_font.h
View file @
a70a5805
This diff is collapsed.
Click to expand it.
include/wxBasePcbFrame.h
View file @
a70a5805
...
@@ -216,6 +216,14 @@ public:
...
@@ -216,6 +216,14 @@ public:
MODULE
*
Select_1_Module_From_BOARD
(
BOARD
*
Pcb
);
MODULE
*
Select_1_Module_From_BOARD
(
BOARD
*
Pcb
);
MODULE
*
GetModuleByName
();
MODULE
*
GetModuleByName
();
/** Function OnModify()
* Virtual
* Must be called after a schematic change
* in order to set the "modify" flag of the current screen
* and update the date in frame reference
*/
virtual
void
OnModify
(
);
// Modules (footprints)
// Modules (footprints)
MODULE
*
Create_1_Module
(
wxDC
*
DC
,
MODULE
*
Create_1_Module
(
wxDC
*
DC
,
const
wxString
&
module_name
);
const
wxString
&
module_name
);
...
...
internat/fr/kicad.mo
View file @
a70a5805
No preview for this file type
internat/fr/kicad.po
View file @
a70a5805
This diff is collapsed.
Click to expand it.
pcbnew/attribut.cpp
View file @
a70a5805
...
@@ -22,7 +22,7 @@ void WinEDA_PcbFrame::Attribut_Segment( TRACK* track, wxDC* DC, bool Flag_On )
...
@@ -22,7 +22,7 @@ void WinEDA_PcbFrame::Attribut_Segment( TRACK* track, wxDC* DC, bool Flag_On )
if
(
track
==
NULL
)
if
(
track
==
NULL
)
return
;
return
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
CursorOff
(
DC
);
// Erase cursor shape
DrawPanel
->
CursorOff
(
DC
);
// Erase cursor shape
track
->
SetState
(
SEGM_FIXE
,
Flag_On
);
track
->
SetState
(
SEGM_FIXE
,
Flag_On
);
track
->
Draw
(
DrawPanel
,
DC
,
GR_OR
|
GR_SURBRILL
);
track
->
Draw
(
DrawPanel
,
DC
,
GR_OR
|
GR_SURBRILL
);
...
@@ -53,7 +53,7 @@ void WinEDA_PcbFrame::Attribut_Track( TRACK* track, wxDC* DC, bool Flag_On )
...
@@ -53,7 +53,7 @@ void WinEDA_PcbFrame::Attribut_Track( TRACK* track, wxDC* DC, bool Flag_On )
DrawPanel
->
CursorOn
(
DC
);
// Display cursor shape
DrawPanel
->
CursorOn
(
DC
);
// Display cursor shape
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
...
@@ -81,12 +81,12 @@ void WinEDA_PcbFrame::Attribut_net( wxDC* DC, int net_code, bool Flag_On )
...
@@ -81,12 +81,12 @@ void WinEDA_PcbFrame::Attribut_net( wxDC* DC, int net_code, bool Flag_On )
if
(
(
net_code
>=
0
)
&&
(
net_code
!=
Track
->
GetNet
())
)
if
(
(
net_code
>=
0
)
&&
(
net_code
!=
Track
->
GetNet
())
)
break
;
break
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
Track
->
SetState
(
SEGM_FIXE
,
Flag_On
);
Track
->
SetState
(
SEGM_FIXE
,
Flag_On
);
Track
->
Draw
(
DrawPanel
,
DC
,
GR_OR
|
GR_SURBRILL
);
Track
->
Draw
(
DrawPanel
,
DC
,
GR_OR
|
GR_SURBRILL
);
Track
=
Track
->
Next
();
Track
=
Track
->
Next
();
}
}
DrawPanel
->
CursorOn
(
DC
);
// Display cursor shape
DrawPanel
->
CursorOn
(
DC
);
// Display cursor shape
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
pcbnew/automove.cpp
View file @
a70a5805
...
@@ -294,7 +294,7 @@ void WinEDA_PcbFrame::FixeModule( MODULE* Module, bool Fixe )
...
@@ -294,7 +294,7 @@ void WinEDA_PcbFrame::FixeModule( MODULE* Module, bool Fixe )
Module
->
SetLocked
(
Fixe
);
Module
->
SetLocked
(
Fixe
);
Module
->
DisplayInfo
(
this
);
Module
->
DisplayInfo
(
this
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
else
else
{
{
...
@@ -305,7 +305,7 @@ void WinEDA_PcbFrame::FixeModule( MODULE* Module, bool Fixe )
...
@@ -305,7 +305,7 @@ void WinEDA_PcbFrame::FixeModule( MODULE* Module, bool Fixe )
Module
->
m_Reference
->
m_Text
)
)
Module
->
m_Reference
->
m_Text
)
)
{
{
Module
->
SetLocked
(
Fixe
);
Module
->
SetLocked
(
Fixe
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
}
}
}
}
...
...
pcbnew/basepcbframe.cpp
View file @
a70a5805
...
@@ -416,3 +416,18 @@ void WinEDA_BasePcbFrame::SaveSettings()
...
@@ -416,3 +416,18 @@ void WinEDA_BasePcbFrame::SaveSettings()
cfg
->
Write
(
m_FrameName
+
DisplayModuleEdgeEntry
,
(
long
)
m_DisplayModEdge
);
cfg
->
Write
(
m_FrameName
+
DisplayModuleEdgeEntry
,
(
long
)
m_DisplayModEdge
);
cfg
->
Write
(
m_FrameName
+
DisplayModuleTextEntry
,
(
long
)
m_DisplayModText
);
cfg
->
Write
(
m_FrameName
+
DisplayModuleTextEntry
,
(
long
)
m_DisplayModText
);
}
}
/** Function OnModify()
* Must be called after a schematic change
* in order to set the "modify" flag of the current screen
* and update the date in frame reference
*/
void
WinEDA_BasePcbFrame
::
OnModify
(
)
{
GetScreen
()
->
SetModify
(
);
wxString
date
=
GenDate
();
GetScreen
()
->
m_Date
=
date
;
}
pcbnew/block.cpp
View file @
a70a5805
...
@@ -279,7 +279,7 @@ void WinEDA_PcbFrame::HandleBlockPlace( wxDC* DC )
...
@@ -279,7 +279,7 @@ void WinEDA_PcbFrame::HandleBlockPlace( wxDC* DC )
break
;
break
;
}
}
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
...
@@ -589,7 +589,7 @@ void WinEDA_PcbFrame::Block_Delete()
...
@@ -589,7 +589,7 @@ void WinEDA_PcbFrame::Block_Delete()
if
(
GetScreen
()
->
m_BlockLocate
.
GetCount
()
==
0
)
if
(
GetScreen
()
->
m_BlockLocate
.
GetCount
()
==
0
)
return
;
return
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
PICKED_ITEMS_LIST
*
itemsList
=
&
GetScreen
()
->
m_BlockLocate
.
m_ItemsSelection
;
PICKED_ITEMS_LIST
*
itemsList
=
&
GetScreen
()
->
m_BlockLocate
.
m_ItemsSelection
;
...
@@ -668,7 +668,7 @@ void WinEDA_PcbFrame::Block_Rotate()
...
@@ -668,7 +668,7 @@ void WinEDA_PcbFrame::Block_Rotate()
oldpos
=
GetScreen
()
->
m_Curseur
;
oldpos
=
GetScreen
()
->
m_Curseur
;
centre
=
GetScreen
()
->
m_BlockLocate
.
Centre
();
centre
=
GetScreen
()
->
m_BlockLocate
.
Centre
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
PICKED_ITEMS_LIST
*
itemsList
=
&
GetScreen
()
->
m_BlockLocate
.
m_ItemsSelection
;
PICKED_ITEMS_LIST
*
itemsList
=
&
GetScreen
()
->
m_BlockLocate
.
m_ItemsSelection
;
itemsList
->
m_Status
=
UR_ROTATED
;
itemsList
->
m_Status
=
UR_ROTATED
;
...
@@ -734,7 +734,7 @@ void WinEDA_PcbFrame::Block_Flip()
...
@@ -734,7 +734,7 @@ void WinEDA_PcbFrame::Block_Flip()
if
(
GetScreen
()
->
m_BlockLocate
.
GetCount
()
==
0
)
if
(
GetScreen
()
->
m_BlockLocate
.
GetCount
()
==
0
)
return
;
return
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
PICKED_ITEMS_LIST
*
itemsList
=
&
GetScreen
()
->
m_BlockLocate
.
m_ItemsSelection
;
PICKED_ITEMS_LIST
*
itemsList
=
&
GetScreen
()
->
m_BlockLocate
.
m_ItemsSelection
;
itemsList
->
m_Status
=
UR_FLIPPED
;
itemsList
->
m_Status
=
UR_FLIPPED
;
...
@@ -804,7 +804,7 @@ void WinEDA_PcbFrame::Block_Move()
...
@@ -804,7 +804,7 @@ void WinEDA_PcbFrame::Block_Move()
if
(
GetScreen
()
->
m_BlockLocate
.
GetCount
()
==
0
)
if
(
GetScreen
()
->
m_BlockLocate
.
GetCount
()
==
0
)
return
;
return
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
wxPoint
MoveVector
=
GetScreen
()
->
m_BlockLocate
.
m_MoveVector
;
wxPoint
MoveVector
=
GetScreen
()
->
m_BlockLocate
.
m_MoveVector
;
...
@@ -874,7 +874,7 @@ void WinEDA_PcbFrame::Block_Duplicate()
...
@@ -874,7 +874,7 @@ void WinEDA_PcbFrame::Block_Duplicate()
if
(
GetScreen
()
->
m_BlockLocate
.
GetCount
()
==
0
)
if
(
GetScreen
()
->
m_BlockLocate
.
GetCount
()
==
0
)
return
;
return
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
PICKED_ITEMS_LIST
*
itemsList
=
&
GetScreen
()
->
m_BlockLocate
.
m_ItemsSelection
;
PICKED_ITEMS_LIST
*
itemsList
=
&
GetScreen
()
->
m_BlockLocate
.
m_ItemsSelection
;
...
...
pcbnew/block_module_editor.cpp
View file @
a70a5805
...
@@ -268,7 +268,7 @@ void WinEDA_ModuleEditFrame::HandleBlockPlace( wxDC* DC )
...
@@ -268,7 +268,7 @@ void WinEDA_ModuleEditFrame::HandleBlockPlace( wxDC* DC )
break
;
break
;
}
}
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
...
...
pcbnew/board_undo_redo.cpp
View file @
a70a5805
...
@@ -597,7 +597,7 @@ void WinEDA_PcbFrame::GetBoardFromUndoList( wxCommandEvent& event )
...
@@ -597,7 +597,7 @@ void WinEDA_PcbFrame::GetBoardFromUndoList( wxCommandEvent& event )
List
->
ReversePickersListOrder
();
List
->
ReversePickersListOrder
();
GetScreen
()
->
PushCommandToRedoList
(
List
);
GetScreen
()
->
PushCommandToRedoList
(
List
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
ReCreateHToolbar
();
ReCreateHToolbar
();
SetToolbars
();
SetToolbars
();
...
@@ -627,7 +627,7 @@ void WinEDA_PcbFrame::GetBoardFromRedoList( wxCommandEvent& event )
...
@@ -627,7 +627,7 @@ void WinEDA_PcbFrame::GetBoardFromRedoList( wxCommandEvent& event )
List
->
ReversePickersListOrder
();
List
->
ReversePickersListOrder
();
GetScreen
()
->
PushCommandToUndoList
(
List
);
GetScreen
()
->
PushCommandToUndoList
(
List
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
ReCreateHToolbar
();
ReCreateHToolbar
();
SetToolbars
();
SetToolbars
();
...
...
pcbnew/clean.cpp
View file @
a70a5805
...
@@ -154,7 +154,7 @@ void Clean_Pcb_Items( WinEDA_PcbFrame* frame, wxDC* DC )
...
@@ -154,7 +154,7 @@ void Clean_Pcb_Items( WinEDA_PcbFrame* frame, wxDC* DC )
frame
->
Compile_Ratsnest
(
DC
,
AFFICHE
);
frame
->
Compile_Ratsnest
(
DC
,
AFFICHE
);
frame
->
GetScreen
()
->
Set
Modify
();
frame
->
On
Modify
();
}
}
...
...
pcbnew/controle.cpp
View file @
a70a5805
...
@@ -251,7 +251,7 @@ void WinEDA_PcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
...
@@ -251,7 +251,7 @@ void WinEDA_PcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
if
(
flgmodify
)
// Set the flags m_Modify cleared by SavePcbFile()
if
(
flgmodify
)
// Set the flags m_Modify cleared by SavePcbFile()
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetScreen
()
->
SetSave
();
// Set the flags m_FlagSave cleared by SetModify()
GetScreen
()
->
SetSave
();
// Set the flags m_FlagSave cleared by SetModify()
}
}
GetScreen
()
->
m_FileName
=
tmpFileName
;
GetScreen
()
->
m_FileName
=
tmpFileName
;
...
...
pcbnew/deltrack.cpp
View file @
a70a5805
...
@@ -116,7 +116,7 @@ TRACK* WinEDA_PcbFrame::Delete_Segment( wxDC* DC, TRACK* aTrack )
...
@@ -116,7 +116,7 @@ TRACK* WinEDA_PcbFrame::Delete_Segment( wxDC* DC, TRACK* aTrack )
DrawPanel
->
PostDirtyRect
(
aTrack
->
GetBoundingBox
()
);
DrawPanel
->
PostDirtyRect
(
aTrack
->
GetBoundingBox
()
);
SaveCopyInUndoList
(
aTrack
,
UR_DELETED
);
SaveCopyInUndoList
(
aTrack
,
UR_DELETED
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
test_1_net_connexion
(
DC
,
current_net_code
);
test_1_net_connexion
(
DC
,
current_net_code
);
GetBoard
()
->
DisplayInfo
(
this
);
GetBoard
()
->
DisplayInfo
(
this
);
...
@@ -130,7 +130,7 @@ void WinEDA_PcbFrame::Delete_Track( wxDC* DC, TRACK* aTrack )
...
@@ -130,7 +130,7 @@ void WinEDA_PcbFrame::Delete_Track( wxDC* DC, TRACK* aTrack )
{
{
int
current_net_code
=
aTrack
->
GetNet
();
int
current_net_code
=
aTrack
->
GetNet
();
Remove_One_Track
(
DC
,
aTrack
);
Remove_One_Track
(
DC
,
aTrack
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
test_1_net_connexion
(
DC
,
current_net_code
);
test_1_net_connexion
(
DC
,
current_net_code
);
}
}
}
}
...
@@ -170,7 +170,7 @@ void WinEDA_PcbFrame::Delete_net( wxDC* DC, TRACK* aTrack )
...
@@ -170,7 +170,7 @@ void WinEDA_PcbFrame::Delete_net( wxDC* DC, TRACK* aTrack )
}
}
SaveCopyInUndoList
(
itemsList
,
UR_DELETED
);
SaveCopyInUndoList
(
itemsList
,
UR_DELETED
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
test_1_net_connexion
(
DC
,
net_code_delete
);
test_1_net_connexion
(
DC
,
net_code_delete
);
GetBoard
()
->
DisplayInfo
(
this
);
GetBoard
()
->
DisplayInfo
(
this
);
}
}
...
...
pcbnew/dialog_copper_zones.cpp
View file @
a70a5805
...
@@ -37,7 +37,7 @@ dialog_copper_zone::dialog_copper_zone( WinEDA_PcbFrame* parent, ZONE_SETTING* z
...
@@ -37,7 +37,7 @@ dialog_copper_zone::dialog_copper_zone( WinEDA_PcbFrame* parent, ZONE_SETTING* z
}
}
SetReturnCode
(
ZONE_ABORT
);
// Will be changed on buttons click
SetReturnCode
(
ZONE_ABORT
);
// Will be changed on buttons click
initDialog
();
initDialog
();
GetSizer
()
->
SetSizeHints
(
this
);
GetSizer
()
->
SetSizeHints
(
this
);
...
@@ -434,7 +434,7 @@ void dialog_copper_zone::ExportSetupToOtherCopperZones( wxCommandEvent& event )
...
@@ -434,7 +434,7 @@ void dialog_copper_zone::ExportSetupToOtherCopperZones( wxCommandEvent& event )
{
{
ZONE_CONTAINER
*
zone
=
pcb
->
GetArea
(
ii
);
ZONE_CONTAINER
*
zone
=
pcb
->
GetArea
(
ii
);
m_Zone_Setting
->
ExportSetting
(
*
zone
,
false
);
// false = partiel export
m_Zone_Setting
->
ExportSetting
(
*
zone
,
false
);
// false = partiel export
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
}
}
m_OnExitCode
=
ZONE_EXPORT_VALUES
;
// values are exported to others zones
m_OnExitCode
=
ZONE_EXPORT_VALUES
;
// values are exported to others zones
...
...
pcbnew/dialog_edit_module_for_BoardEditor.cpp
View file @
a70a5805
...
@@ -141,7 +141,7 @@ void DIALOG_MODULE_BOARD_EDITOR::GotoModuleEditor( wxCommandEvent& event )
...
@@ -141,7 +141,7 @@ void DIALOG_MODULE_BOARD_EDITOR::GotoModuleEditor( wxCommandEvent& event )
// null timestamp
// null timestamp
{
{
m_CurrentModule
->
m_TimeStamp
=
GetTimeStamp
();
m_CurrentModule
->
m_TimeStamp
=
GetTimeStamp
();
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
}
}
EndModal
(
2
);
EndModal
(
2
);
...
@@ -561,7 +561,7 @@ void DIALOG_MODULE_BOARD_EDITOR::OnOkClick( wxCommandEvent& event )
...
@@ -561,7 +561,7 @@ void DIALOG_MODULE_BOARD_EDITOR::OnOkClick( wxCommandEvent& event )
m_CurrentModule
->
Set_Rectangle_Encadrement
();
m_CurrentModule
->
Set_Rectangle_Encadrement
();
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
EndModal
(
1
);
EndModal
(
1
);
...
...
pcbnew/dialog_edit_module_for_Modedit.cpp
View file @
a70a5805
...
@@ -408,7 +408,7 @@ void DIALOG_MODULE_MODULE_EDITOR::OnOkClick( wxCommandEvent& event )
...
@@ -408,7 +408,7 @@ void DIALOG_MODULE_MODULE_EDITOR::OnOkClick( wxCommandEvent& event )
m_CurrentModule
->
Set_Rectangle_Encadrement
();
m_CurrentModule
->
Set_Rectangle_Encadrement
();
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
EndModal
(
1
);
EndModal
(
1
);
}
}
...
...
pcbnew/dialog_edit_module_text.cpp
View file @
a70a5805
...
@@ -199,7 +199,7 @@ void DialogEditModuleText::OnOkClick( wxCommandEvent& event )
...
@@ -199,7 +199,7 @@ void DialogEditModuleText::OnOkClick( wxCommandEvent& event )
m_CurrentTextMod
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_XOR
,
m_CurrentTextMod
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_XOR
,
(
m_CurrentTextMod
->
m_Flags
&
IS_MOVED
)
?
MoveVector
:
wxPoint
(
0
,
0
)
);
(
m_CurrentTextMod
->
m_Flags
&
IS_MOVED
)
?
MoveVector
:
wxPoint
(
0
,
0
)
);
}
}
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
if
(
m_Module
)
if
(
m_Module
)
m_Module
->
m_LastEdit_Time
=
time
(
NULL
);
m_Module
->
m_LastEdit_Time
=
time
(
NULL
);
...
...
pcbnew/dialog_graphic_item_properties.cpp
View file @
a70a5805
...
@@ -219,7 +219,7 @@ void DialogGraphicItemProperties::OnOkClick( wxCommandEvent& event )
...
@@ -219,7 +219,7 @@ void DialogGraphicItemProperties::OnOkClick( wxCommandEvent& event )
m_Item
->
m_Angle
=
angle
;
m_Item
->
m_Angle
=
angle
;
}
}
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
if
(
m_DC
)
if
(
m_DC
)
m_Item
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_OR
);
m_Item
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_OR
);
m_Item
->
DisplayInfo
(
m_Parent
);
m_Item
->
DisplayInfo
(
m_Parent
);
...
...
pcbnew/dialog_layers_setup.cpp
View file @
a70a5805
...
@@ -545,7 +545,7 @@ void DIALOG_LAYERS_SETUP::OnOkButtonClick( wxCommandEvent& event )
...
@@ -545,7 +545,7 @@ void DIALOG_LAYERS_SETUP::OnOkButtonClick( wxCommandEvent& event )
}
}
}
}
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
m_Parent
->
ReCreateLayerBox
(
NULL
);
m_Parent
->
ReCreateLayerBox
(
NULL
);
m_Parent
->
ReFillLayerWidget
();
m_Parent
->
ReFillLayerWidget
();
...
...
pcbnew/dialog_orient_footprints.cpp
View file @
a70a5805
...
@@ -253,7 +253,7 @@ void WinEDA_PcbFrame::ReOrientModules( const wxString& ModuleMask,
...
@@ -253,7 +253,7 @@ void WinEDA_PcbFrame::ReOrientModules( const wxString& ModuleMask,
if
(
WildCompareString
(
ModuleMask
,
module
->
m_Reference
->
m_Text
,
FALSE
)
)
if
(
WildCompareString
(
ModuleMask
,
module
->
m_Reference
->
m_Text
,
FALSE
)
)
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
redraw
=
true
;
redraw
=
true
;
Rotate_Module
(
NULL
,
module
,
Orient
,
FALSE
);
Rotate_Module
(
NULL
,
module
,
Orient
,
FALSE
);
}
}
...
...
pcbnew/dialog_pad_properties.cpp
View file @
a70a5805
...
@@ -634,7 +634,7 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event )
...
@@ -634,7 +634,7 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event )
m_CurrentPad
->
DisplayInfo
(
m_Parent
);
m_CurrentPad
->
DisplayInfo
(
m_Parent
);
// redraw the area where the pad was
// redraw the area where the pad was
m_Parent
->
DrawPanel
->
PostDirtyRect
(
m_CurrentPad
->
GetBoundingBox
()
);
m_Parent
->
DrawPanel
->
PostDirtyRect
(
m_CurrentPad
->
GetBoundingBox
()
);
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
}
}
EndModal
(
1
);
EndModal
(
1
);
...
...
pcbnew/dialog_pcb_text_properties.cpp
View file @
a70a5805
...
@@ -252,6 +252,6 @@ void WinEDA_TextPCBPropertiesFrame::OnOkClick( wxCommandEvent& event )
...
@@ -252,6 +252,6 @@ void WinEDA_TextPCBPropertiesFrame::OnOkClick( wxCommandEvent& event )
{
{
CurrentTextPCB
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_OR
);
CurrentTextPCB
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_OR
);
}
}
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
EndModal
(
1
);
EndModal
(
1
);
}
}
pcbnew/dimension.cpp
View file @
a70a5805
...
@@ -181,7 +181,7 @@ void WinEDA_CotationPropertiesFrame::OnOkClick( wxCommandEvent& event )
...
@@ -181,7 +181,7 @@ void WinEDA_CotationPropertiesFrame::OnOkClick( wxCommandEvent& event )
CurrentCotation
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_OR
);
CurrentCotation
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_OR
);
}
}
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
EndModal
(
1
);
EndModal
(
1
);
}
}
...
@@ -276,7 +276,7 @@ COTATION* WinEDA_PcbFrame::Begin_Cotation( COTATION* Cotation, wxDC* DC )
...
@@ -276,7 +276,7 @@ COTATION* WinEDA_PcbFrame::Begin_Cotation( COTATION* Cotation, wxDC* DC )
/* Insertion de la structure dans le Chainage .Drawings du PCB */
/* Insertion de la structure dans le Chainage .Drawings du PCB */
GetBoard
()
->
Add
(
Cotation
);
GetBoard
()
->
Add
(
Cotation
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
...
@@ -368,7 +368,7 @@ void WinEDA_PcbFrame::Delete_Cotation( COTATION* Cotation, wxDC* DC )
...
@@ -368,7 +368,7 @@ void WinEDA_PcbFrame::Delete_Cotation( COTATION* Cotation, wxDC* DC )
SaveCopyInUndoList
(
Cotation
,
UR_DELETED
);
SaveCopyInUndoList
(
Cotation
,
UR_DELETED
);
Cotation
->
UnLink
();
Cotation
->
UnLink
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
...
...
pcbnew/edgemod.cpp
View file @
a70a5805
...
@@ -64,7 +64,7 @@ void WinEDA_ModuleEditFrame::Place_EdgeMod( EDGE_MODULE* Edge, wxDC* DC )
...
@@ -64,7 +64,7 @@ void WinEDA_ModuleEditFrame::Place_EdgeMod( EDGE_MODULE* Edge, wxDC* DC )
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
MODULE
*
Module
=
(
MODULE
*
)
Edge
->
GetParent
();
MODULE
*
Module
=
(
MODULE
*
)
Edge
->
GetParent
();
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
}
}
...
@@ -143,7 +143,7 @@ void WinEDA_ModuleEditFrame::Edit_Edge_Width( EDGE_MODULE* Edge )
...
@@ -143,7 +143,7 @@ void WinEDA_ModuleEditFrame::Edit_Edge_Width( EDGE_MODULE* Edge )
else
else
Edge
->
m_Width
=
ModuleSegmentWidth
;
Edge
->
m_Width
=
ModuleSegmentWidth
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
Refresh
(
TRUE
);
DrawPanel
->
Refresh
(
TRUE
);
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
Module
->
m_LastEdit_Time
=
time
(
NULL
);
Module
->
m_LastEdit_Time
=
time
(
NULL
);
...
@@ -196,7 +196,7 @@ void WinEDA_ModuleEditFrame::Edit_Edge_Layer( EDGE_MODULE* Edge )
...
@@ -196,7 +196,7 @@ void WinEDA_ModuleEditFrame::Edit_Edge_Layer( EDGE_MODULE* Edge )
else
else
Edge
->
SetLayer
(
new_layer
);
Edge
->
SetLayer
(
new_layer
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
Module
->
m_LastEdit_Time
=
time
(
NULL
);
Module
->
m_LastEdit_Time
=
time
(
NULL
);
DrawPanel
->
Refresh
(
TRUE
);
DrawPanel
->
Refresh
(
TRUE
);
...
@@ -234,7 +234,7 @@ void WinEDA_ModuleEditFrame::Enter_Edge_Width( EDGE_MODULE* Edge, wxDC* DC )
...
@@ -234,7 +234,7 @@ void WinEDA_ModuleEditFrame::Enter_Edge_Width( EDGE_MODULE* Edge, wxDC* DC )
Edge
->
m_Width
=
ModuleSegmentWidth
;
Edge
->
m_Width
=
ModuleSegmentWidth
;
Module
->
DrawEdgesOnly
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
GR_XOR
);
Module
->
DrawEdgesOnly
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
GR_XOR
);
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
}
}
...
@@ -260,7 +260,7 @@ void WinEDA_ModuleEditFrame::Delete_Edge_Module( EDGE_MODULE* Edge )
...
@@ -260,7 +260,7 @@ void WinEDA_ModuleEditFrame::Delete_Edge_Module( EDGE_MODULE* Edge )
Edge
->
DeleteStructure
();
Edge
->
DeleteStructure
();
Module
->
m_LastEdit_Time
=
time
(
NULL
);
Module
->
m_LastEdit_Time
=
time
(
NULL
);
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
...
@@ -389,7 +389,7 @@ EDGE_MODULE* WinEDA_ModuleEditFrame::Begin_Edge_Module( EDGE_MODULE* Edge,
...
@@ -389,7 +389,7 @@ EDGE_MODULE* WinEDA_ModuleEditFrame::Begin_Edge_Module( EDGE_MODULE* Edge,
module
->
Set_Rectangle_Encadrement
();
module
->
Set_Rectangle_Encadrement
();
module
->
m_LastEdit_Time
=
time
(
NULL
);
module
->
m_LastEdit_Time
=
time
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
}
}
else
else
...
@@ -414,7 +414,7 @@ void WinEDA_ModuleEditFrame::End_Edge_Module( EDGE_MODULE* Edge, wxDC* DC )
...
@@ -414,7 +414,7 @@ void WinEDA_ModuleEditFrame::End_Edge_Module( EDGE_MODULE* Edge, wxDC* DC )
}
}
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
Module
->
m_LastEdit_Time
=
time
(
NULL
);
Module
->
m_LastEdit_Time
=
time
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
}
}
pcbnew/edit.cpp
View file @
a70a5805
...
@@ -300,7 +300,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -300,7 +300,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
break
;
break
;
Edit_Track_Width
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
);
Edit_Track_Width
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
);
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
break
;
break
;
case
ID_POPUP_PCB_EDIT_TRACKSEG
:
case
ID_POPUP_PCB_EDIT_TRACKSEG
:
...
@@ -308,7 +308,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -308,7 +308,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
break
;
break
;
Edit_TrackSegm_Width
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
);
Edit_TrackSegm_Width
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
);
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
break
;
break
;
case
ID_POPUP_PCB_EDIT_ALL_VIAS_AND_TRACK_SIZE
:
case
ID_POPUP_PCB_EDIT_ALL_VIAS_AND_TRACK_SIZE
:
...
@@ -365,7 +365,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -365,7 +365,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
break
;
break
;
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
SetCurItem
(
Delete_Segment
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
)
);
SetCurItem
(
Delete_Segment
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
)
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
break
;
break
;
case
ID_POPUP_PCB_DELETE_TRACK
:
case
ID_POPUP_PCB_DELETE_TRACK
:
...
@@ -374,14 +374,14 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -374,14 +374,14 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
Delete_Track
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
);
Delete_Track
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
);
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
break
;
break
;
case
ID_POPUP_PCB_DELETE_TRACKNET
:
case
ID_POPUP_PCB_DELETE_TRACKNET
:
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
Delete_net
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
);
Delete_net
(
&
dc
,
(
TRACK
*
)
GetCurItem
()
);
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
break
;
break
;
case
ID_POPUP_PCB_LOCK_ON_TRACKSEG
:
case
ID_POPUP_PCB_LOCK_ON_TRACKSEG
:
...
@@ -421,7 +421,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -421,7 +421,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
Delete_Zone_Fill
(
zsegm
);
Delete_Zone_Fill
(
zsegm
);
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
test_1_net_connexion
(
NULL
,
netcode
);
test_1_net_connexion
(
NULL
,
netcode
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetBoard
()
->
DisplayInfo
(
this
);
GetBoard
()
->
DisplayInfo
(
this
);
}
}
break
;
break
;
...
@@ -537,7 +537,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -537,7 +537,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
ZONE_CONTAINER
*
zone_container
=
(
ZONE_CONTAINER
*
)
GetCurItem
();
ZONE_CONTAINER
*
zone_container
=
(
ZONE_CONTAINER
*
)
GetCurItem
();
Delete_Zone_Fill
(
NULL
,
zone_container
->
m_TimeStamp
);
Delete_Zone_Fill
(
NULL
,
zone_container
->
m_TimeStamp
);
test_1_net_connexion
(
NULL
,
zone_container
->
GetNet
()
);
test_1_net_connexion
(
NULL
,
zone_container
->
GetNet
()
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetBoard
()
->
DisplayInfo
(
this
);
GetBoard
()
->
DisplayInfo
(
this
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
}
}
...
@@ -556,7 +556,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -556,7 +556,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
SetCurItem
(
NULL
);
// CurItem might be deleted by this command, clear the pointer
SetCurItem
(
NULL
);
// CurItem might be deleted by this command, clear the pointer
test_connexions
(
NULL
);
test_connexions
(
NULL
);
Tst_Ratsnest
(
NULL
,
0
);
// Recalculate the active ratsnest, i.e. the unconnected links */
Tst_Ratsnest
(
NULL
,
0
);
// Recalculate the active ratsnest, i.e. the unconnected links */
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetBoard
()
->
DisplayInfo
(
this
);
GetBoard
()
->
DisplayInfo
(
this
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
break
;
break
;
...
...
pcbnew/edit_pcb_text.cpp
View file @
a70a5805
...
@@ -68,7 +68,7 @@ void WinEDA_PcbFrame::Place_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
...
@@ -68,7 +68,7 @@ void WinEDA_PcbFrame::Place_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
return
;
return
;
TextePcb
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
TextePcb
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
if
(
(
TextePcb
->
m_Flags
&
IS_NEW
)
)
// If new: prepare undo command
if
(
(
TextePcb
->
m_Flags
&
IS_NEW
)
)
// If new: prepare undo command
{
{
...
@@ -202,5 +202,5 @@ void WinEDA_PcbFrame::Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
...
@@ -202,5 +202,5 @@ void WinEDA_PcbFrame::Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
else
// set flag edit, to show it was a complex command
else
// set flag edit, to show it was a complex command
TextePcb
->
m_Flags
|=
IN_EDIT
;
TextePcb
->
m_Flags
|=
IN_EDIT
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
pcbnew/edit_track_width.cpp
View file @
a70a5805
...
@@ -78,7 +78,7 @@ bool WinEDA_PcbFrame::SetTrackSegmentWidth( TRACK* aTrackItem,
...
@@ -78,7 +78,7 @@ bool WinEDA_PcbFrame::SetTrackSegmentWidth( TRACK* aTrackItem,
if
(
change_ok
)
if
(
change_ok
)
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
if
(
aItemsListPicker
)
if
(
aItemsListPicker
)
{
{
aTrackItem
->
m_Width
=
initial_width
;
aTrackItem
->
m_Width
=
initial_width
;
...
...
pcbnew/editedge.cpp
View file @
a70a5805
...
@@ -52,7 +52,7 @@ void WinEDA_PcbFrame::Place_DrawItem( DRAWSEGMENT* drawitem, wxDC* DC )
...
@@ -52,7 +52,7 @@ void WinEDA_PcbFrame::Place_DrawItem( DRAWSEGMENT* drawitem, wxDC* DC )
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
drawitem
->
m_Flags
=
0
;
drawitem
->
m_Flags
=
0
;
}
}
...
@@ -110,7 +110,7 @@ void WinEDA_PcbFrame::Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC )
...
@@ -110,7 +110,7 @@ void WinEDA_PcbFrame::Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC )
SaveCopyInUndoList
(
Segment
,
UR_DELETED
);
SaveCopyInUndoList
(
Segment
,
UR_DELETED
);
Segment
->
UnLink
();
Segment
->
UnLink
();
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
}
}
...
@@ -162,7 +162,7 @@ void WinEDA_PcbFrame::Delete_Drawings_All_Layer( int aLayer )
...
@@ -162,7 +162,7 @@ void WinEDA_PcbFrame::Delete_Drawings_All_Layer( int aLayer )
if
(
pickList
.
GetCount
()
)
if
(
pickList
.
GetCount
()
)
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
SaveCopyInUndoList
(
pickList
,
UR_DELETED
);
SaveCopyInUndoList
(
pickList
,
UR_DELETED
);
}
}
}
}
...
@@ -238,7 +238,7 @@ DRAWSEGMENT* WinEDA_PcbFrame::Begin_DrawSegment( DRAWSEGMENT* Segment,
...
@@ -238,7 +238,7 @@ DRAWSEGMENT* WinEDA_PcbFrame::Begin_DrawSegment( DRAWSEGMENT* Segment,
SaveCopyInUndoList
(
Segment
,
UR_NEW
);
SaveCopyInUndoList
(
Segment
,
UR_NEW
);
GetBoard
()
->
Add
(
Segment
);
GetBoard
()
->
Add
(
Segment
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
Segment
->
m_Flags
=
0
;
Segment
->
m_Flags
=
0
;
Segment
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
Segment
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
...
@@ -281,7 +281,7 @@ void WinEDA_PcbFrame::End_Edge( DRAWSEGMENT* Segment, wxDC* DC )
...
@@ -281,7 +281,7 @@ void WinEDA_PcbFrame::End_Edge( DRAWSEGMENT* Segment, wxDC* DC )
{
{
Segment
->
m_Flags
=
0
;
Segment
->
m_Flags
=
0
;
GetBoard
()
->
Add
(
Segment
);
GetBoard
()
->
Add
(
Segment
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
SaveCopyInUndoList
(
Segment
,
UR_NEW
);
SaveCopyInUndoList
(
Segment
,
UR_NEW
);
}
}
...
...
pcbnew/editrack-part2.cpp
View file @
a70a5805
...
@@ -86,7 +86,7 @@ void WinEDA_PcbFrame::ExChange_Track_Layer( TRACK* pt_segm, wxDC* DC )
...
@@ -86,7 +86,7 @@ void WinEDA_PcbFrame::ExChange_Track_Layer( TRACK* pt_segm, wxDC* DC )
test_1_net_connexion
(
DC
,
pt_track
->
GetNet
()
);
test_1_net_connexion
(
DC
,
pt_track
->
GetNet
()
);
pt_track
->
DisplayInfo
(
this
);
pt_track
->
DisplayInfo
(
this
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
...
...
pcbnew/editrack.cpp
View file @
a70a5805
...
@@ -529,7 +529,7 @@ void WinEDA_PcbFrame::End_Route( TRACK* aTrack, wxDC* DC )
...
@@ -529,7 +529,7 @@ void WinEDA_PcbFrame::End_Route( TRACK* aTrack, wxDC* DC )
// owner of picked items
// owner of picked items
/* compute the new rastnest */
/* compute the new rastnest */
test_1_net_connexion
(
DC
,
netcode
);
test_1_net_connexion
(
DC
,
netcode
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetBoard
()
->
DisplayInfo
(
this
);
GetBoard
()
->
DisplayInfo
(
this
);
}
}
...
...
pcbnew/edtxtmod.cpp
View file @
a70a5805
...
@@ -94,7 +94,7 @@ void WinEDA_BasePcbFrame::RotateTextModule( TEXTE_MODULE* Text, wxDC* DC )
...
@@ -94,7 +94,7 @@ void WinEDA_BasePcbFrame::RotateTextModule( TEXTE_MODULE* Text, wxDC* DC )
if
(
module
)
if
(
module
)
module
->
m_LastEdit_Time
=
time
(
NULL
);
module
->
m_LastEdit_Time
=
time
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
...
@@ -114,7 +114,7 @@ void WinEDA_BasePcbFrame::DeleteTextModule( TEXTE_MODULE* Text )
...
@@ -114,7 +114,7 @@ void WinEDA_BasePcbFrame::DeleteTextModule( TEXTE_MODULE* Text )
{
{
DrawPanel
->
PostDirtyRect
(
Text
->
GetBoundingBox
()
);
DrawPanel
->
PostDirtyRect
(
Text
->
GetBoundingBox
()
);
Text
->
DeleteStructure
();
Text
->
DeleteStructure
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
Module
->
m_LastEdit_Time
=
time
(
NULL
);
Module
->
m_LastEdit_Time
=
time
(
NULL
);
}
}
}
}
...
@@ -216,7 +216,7 @@ void WinEDA_BasePcbFrame::PlaceTexteModule( TEXTE_MODULE* Text, wxDC* DC )
...
@@ -216,7 +216,7 @@ void WinEDA_BasePcbFrame::PlaceTexteModule( TEXTE_MODULE* Text, wxDC* DC )
Text
->
m_Flags
=
0
;
Text
->
m_Flags
=
0
;
Module
->
m_Flags
=
0
;
Module
->
m_Flags
=
0
;
Module
->
m_LastEdit_Time
=
time
(
NULL
);
Module
->
m_LastEdit_Time
=
time
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
/* Redraw text. */
/* Redraw text. */
DrawPanel
->
PostDirtyRect
(
Text
->
GetBoundingBox
()
);
DrawPanel
->
PostDirtyRect
(
Text
->
GetBoundingBox
()
);
...
...
pcbnew/files.cpp
View file @
a70a5805
...
@@ -139,7 +139,7 @@ bool WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append
...
@@ -139,7 +139,7 @@ bool WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append
if
(
Append
)
if
(
Append
)
{
{
GetScreen
()
->
m_FileName
=
wxEmptyString
;
GetScreen
()
->
m_FileName
=
wxEmptyString
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetBoard
()
->
m_Status_Pcb
=
0
;
GetBoard
()
->
m_Status_Pcb
=
0
;
}
}
...
@@ -233,7 +233,7 @@ this file again."));
...
@@ -233,7 +233,7 @@ this file again."));
new_filename
+=
PcbExtBuffer
;
new_filename
+=
PcbExtBuffer
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetScreen
()
->
m_FileName
=
new_filename
;
GetScreen
()
->
m_FileName
=
new_filename
;
}
}
...
...
pcbnew/globaleditpad.cpp
View file @
a70a5805
...
@@ -280,5 +280,5 @@ void WinEDA_BasePcbFrame::Global_Import_Pad_Settings( D_PAD* aPad, bool aDraw )
...
@@ -280,5 +280,5 @@ void WinEDA_BasePcbFrame::Global_Import_Pad_Settings( D_PAD* aPad, bool aDraw )
DrawPanel
->
PostDirtyRect
(
Module
->
GetBoundingBox
()
);
DrawPanel
->
PostDirtyRect
(
Module
->
GetBoundingBox
()
);
}
}
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
pcbnew/hotkeys.cpp
View file @
a70a5805
...
@@ -254,7 +254,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -254,7 +254,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
break
;
break
;
case
HK_SWITCH_LAYER_TO_PREVIOUS
:
case
HK_SWITCH_LAYER_TO_PREVIOUS
:
ll
=
GetScreen
()
->
m_Active_Layer
;
ll
=
getActiveLayer
()
;
if
(
(
ll
<=
LAYER_N_BACK
)
||
(
ll
>
LAYER_N_FRONT
)
)
if
(
(
ll
<=
LAYER_N_BACK
)
||
(
ll
>
LAYER_N_FRONT
)
)
break
;
break
;
...
@@ -269,7 +269,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -269,7 +269,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
break
;
break
;
case
HK_SWITCH_LAYER_TO_NEXT
:
case
HK_SWITCH_LAYER_TO_NEXT
:
ll
=
GetScreen
()
->
m_Active_Layer
;
ll
=
getActiveLayer
()
;
if
(
(
ll
<
LAYER_N_BACK
)
||
(
ll
>=
LAYER_N_FRONT
)
)
if
(
(
ll
<
LAYER_N_BACK
)
||
(
ll
>=
LAYER_N_FRONT
)
)
break
;
break
;
if
(
GetBoard
()
->
GetCopperLayerCount
()
<
2
)
// Single layer
if
(
GetBoard
()
->
GetCopperLayerCount
()
<
2
)
// Single layer
...
@@ -369,7 +369,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -369,7 +369,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
DisplayOpt
.
DisplayPcbTrackFill
^=
1
;
DisplayOpt
.
DisplayPcbTrackFill
^=
1
;
DisplayOpt
.
DisplayPcbTrackFill
&=
1
;
DisplayOpt
.
DisplayPcbTrackFill
&=
1
;
m_DisplayPcbTrackFill
=
DisplayOpt
.
DisplayPcbTrackFill
;
m_DisplayPcbTrackFill
=
DisplayOpt
.
DisplayPcbTrackFill
;
GetScreen
()
->
SetRefreshReq
();
DrawPanel
->
Refresh
();
break
;
break
;
case
HK_DELETE
:
case
HK_DELETE
:
...
@@ -377,7 +377,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -377,7 +377,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
break
;
break
;
case
HK_BACK_SPACE
:
case
HK_BACK_SPACE
:
if
(
m_ID_current_state
==
ID_TRACK_BUTT
&&
GetScreen
()
->
m_Active_Layer
if
(
m_ID_current_state
==
ID_TRACK_BUTT
&&
getActiveLayer
()
<=
LAYER_N_FRONT
)
<=
LAYER_N_FRONT
)
{
{
if
(
ItemFree
)
if
(
ItemFree
)
...
@@ -395,7 +395,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -395,7 +395,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
Delete_Segment
(
DC
,
(
TRACK
*
)
DrawStruct
);
Delete_Segment
(
DC
,
(
TRACK
*
)
DrawStruct
);
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
}
}
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
else
if
(
GetCurItem
()
->
Type
()
==
TYPE_TRACK
)
else
if
(
GetCurItem
()
->
Type
()
==
TYPE_TRACK
)
{
{
...
@@ -404,7 +404,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -404,7 +404,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
TRACK
*
track
=
(
TRACK
*
)
GetCurItem
();
TRACK
*
track
=
(
TRACK
*
)
GetCurItem
();
track
=
Delete_Segment
(
DC
,
track
);
track
=
Delete_Segment
(
DC
,
track
);
SetCurItem
(
track
);
SetCurItem
(
track
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
}
}
break
;
break
;
...
@@ -475,7 +475,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -475,7 +475,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
Other_Layer_Route
(
(
TRACK
*
)
GetCurItem
(),
DC
);
Other_Layer_Route
(
(
TRACK
*
)
GetCurItem
(),
DC
);
GetBoard
()
->
GetBoardDesignSettings
()
->
m_CurrentViaType
=
v_type
;
GetBoard
()
->
GetBoardDesignSettings
()
->
m_CurrentViaType
=
v_type
;
if
(
DisplayOpt
.
ContrastModeDisplay
)
if
(
DisplayOpt
.
ContrastModeDisplay
)
GetScreen
()
->
SetRefreshReq
();
DrawPanel
->
Refresh
();
}
}
break
;
break
;
...
@@ -493,11 +493,11 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -493,11 +493,11 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
return
;
return
;
Other_Layer_Route
(
(
TRACK
*
)
GetCurItem
(),
DC
);
// place via and switch layer
Other_Layer_Route
(
(
TRACK
*
)
GetCurItem
(),
DC
);
// place via and switch layer
if
(
DisplayOpt
.
ContrastModeDisplay
)
if
(
DisplayOpt
.
ContrastModeDisplay
)
GetScreen
()
->
SetRefreshReq
();
DrawPanel
->
Refresh
();
break
;
break
;
case
HK_ADD_NEW_TRACK
:
// Start new track
case
HK_ADD_NEW_TRACK
:
// Start new track
if
(
GetScreen
()
->
m_Active_Layer
>
LAYER_N_FRONT
)
if
(
getActiveLayer
()
>
LAYER_N_FRONT
)
break
;
break
;
if
(
m_ID_current_state
!=
ID_TRACK_BUTT
&&
ItemFree
)
if
(
m_ID_current_state
!=
ID_TRACK_BUTT
&&
ItemFree
)
...
@@ -771,7 +771,7 @@ bool WinEDA_PcbFrame::OnHotkeyDeleteItem( wxDC* DC, EDA_BaseStruct* DrawStruct )
...
@@ -771,7 +771,7 @@ bool WinEDA_PcbFrame::OnHotkeyDeleteItem( wxDC* DC, EDA_BaseStruct* DrawStruct )
switch
(
m_ID_current_state
)
switch
(
m_ID_current_state
)
{
{
case
ID_TRACK_BUTT
:
case
ID_TRACK_BUTT
:
if
(
GetScreen
()
->
m_Active_Layer
>
LAYER_N_FRONT
)
if
(
getActiveLayer
()
>
LAYER_N_FRONT
)
return
FALSE
;
return
FALSE
;
if
(
ItemFree
)
if
(
ItemFree
)
{
{
...
@@ -786,7 +786,7 @@ bool WinEDA_PcbFrame::OnHotkeyDeleteItem( wxDC* DC, EDA_BaseStruct* DrawStruct )
...
@@ -786,7 +786,7 @@ bool WinEDA_PcbFrame::OnHotkeyDeleteItem( wxDC* DC, EDA_BaseStruct* DrawStruct )
TRACK
*
track
=
(
TRACK
*
)
GetCurItem
();
TRACK
*
track
=
(
TRACK
*
)
GetCurItem
();
track
=
Delete_Segment
(
DC
,
track
);
track
=
Delete_Segment
(
DC
,
track
);
SetCurItem
(
track
);
SetCurItem
(
track
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
return
TRUE
;
return
TRUE
;
}
}
break
;
break
;
...
@@ -810,7 +810,7 @@ bool WinEDA_PcbFrame::OnHotkeyDeleteItem( wxDC* DC, EDA_BaseStruct* DrawStruct )
...
@@ -810,7 +810,7 @@ bool WinEDA_PcbFrame::OnHotkeyDeleteItem( wxDC* DC, EDA_BaseStruct* DrawStruct )
return
FALSE
;
return
FALSE
;
}
}
GetScreen
()
->
Set
Modify
();
On
Modify
();
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
return
TRUE
;
return
TRUE
;
}
}
pcbnew/initpcb.cpp
View file @
a70a5805
...
@@ -133,7 +133,7 @@ void WinEDA_PcbGlobalDeleteFrame::AcceptPcbDelete( wxCommandEvent& event )
...
@@ -133,7 +133,7 @@ void WinEDA_PcbGlobalDeleteFrame::AcceptPcbDelete( wxCommandEvent& event )
}
}
m_Parent
->
DrawPanel
->
Refresh
();
m_Parent
->
DrawPanel
->
Refresh
();
m_Parent
->
DrawPanel
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
EndModal
(
1
);
EndModal
(
1
);
}
}
...
...
pcbnew/mirepcb.cpp
View file @
a70a5805
...
@@ -158,7 +158,7 @@ void WinEDA_MirePropertiesFrame::OnOkClick( wxCommandEvent& event )
...
@@ -158,7 +158,7 @@ void WinEDA_MirePropertiesFrame::OnOkClick( wxCommandEvent& event )
m_MirePcb
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
m_MirePcb
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
(
m_MirePcb
->
m_Flags
&
IS_MOVED
)
?
GR_XOR
:
GR_OR
);
(
m_MirePcb
->
m_Flags
&
IS_MOVED
)
?
GR_XOR
:
GR_OR
);
m_Parent
->
GetScreen
()
->
Set
Modify
();
m_Parent
->
On
Modify
();
EndModal
(
1
);
EndModal
(
1
);
}
}
...
@@ -254,7 +254,7 @@ void WinEDA_PcbFrame::Place_Mire( MIREPCB* MirePcb, wxDC* DC )
...
@@ -254,7 +254,7 @@ void WinEDA_PcbFrame::Place_Mire( MIREPCB* MirePcb, wxDC* DC )
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
if
(
(
MirePcb
->
m_Flags
&
IS_NEW
)
)
if
(
(
MirePcb
->
m_Flags
&
IS_NEW
)
)
{
{
...
...
pcbnew/modedit_undo_redo.cpp
View file @
a70a5805
...
@@ -91,7 +91,7 @@ void WinEDA_ModuleEditFrame::GetComponentFromRedoList( wxCommandEvent& event )
...
@@ -91,7 +91,7 @@ void WinEDA_ModuleEditFrame::GetComponentFromRedoList( wxCommandEvent& event )
SetCurItem
(
NULL
);
SetCurItem
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
ReCreateHToolbar
();
ReCreateHToolbar
();
SetToolbars
();
SetToolbars
();
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
...
@@ -129,7 +129,7 @@ void WinEDA_ModuleEditFrame::GetComponentFromUndoList( wxCommandEvent& event )
...
@@ -129,7 +129,7 @@ void WinEDA_ModuleEditFrame::GetComponentFromUndoList( wxCommandEvent& event )
SetCurItem
(
NULL
);;
SetCurItem
(
NULL
);;
GetScreen
()
->
Set
Modify
();
On
Modify
();
ReCreateHToolbar
();
ReCreateHToolbar
();
SetToolbars
();
SetToolbars
();
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
...
...
pcbnew/modules.cpp
View file @
a70a5805
...
@@ -242,7 +242,7 @@ MODULE* WinEDA_BasePcbFrame::Copie_Module( MODULE* module )
...
@@ -242,7 +242,7 @@ MODULE* WinEDA_BasePcbFrame::Copie_Module( MODULE* module )
if
(
module
==
NULL
)
if
(
module
==
NULL
)
return
NULL
;
return
NULL
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
/* Duplicate module */
/* Duplicate module */
GetBoard
()
->
m_Status_Pcb
=
0
;
GetBoard
()
->
m_Status_Pcb
=
0
;
...
@@ -316,7 +316,7 @@ bool WinEDA_PcbFrame::Delete_Module( MODULE* module,
...
@@ -316,7 +316,7 @@ bool WinEDA_PcbFrame::Delete_Module( MODULE* module,
}
}
}
}
GetScreen
()
->
Set
Modify
();
On
Modify
();
/* Remove module from list, and put it in undo command list */
/* Remove module from list, and put it in undo command list */
m_Pcb
->
m_Modules
.
Remove
(
module
);
m_Pcb
->
m_Modules
.
Remove
(
module
);
...
@@ -350,7 +350,7 @@ void WinEDA_PcbFrame::Change_Side_Module( MODULE* Module, wxDC* DC )
...
@@ -350,7 +350,7 @@ void WinEDA_PcbFrame::Change_Side_Module( MODULE* Module, wxDC* DC )
&&
(
Module
->
GetLayer
()
!=
LAYER_N_BACK
)
)
&&
(
Module
->
GetLayer
()
!=
LAYER_N_BACK
)
)
return
;
return
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
if
(
!
(
Module
->
m_Flags
&
IS_MOVED
)
)
/* This is a simple flip, no other
if
(
!
(
Module
->
m_Flags
&
IS_MOVED
)
)
/* This is a simple flip, no other
*edition in progress */
*edition in progress */
...
@@ -421,7 +421,7 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
...
@@ -421,7 +421,7 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
if
(
module
==
0
)
if
(
module
==
0
)
return
;
return
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetBoard
()
->
m_Status_Pcb
&=
~
(
LISTE_RATSNEST_ITEM_OK
|
CONNEXION_OK
);
GetBoard
()
->
m_Status_Pcb
&=
~
(
LISTE_RATSNEST_ITEM_OK
|
CONNEXION_OK
);
if
(
module
->
m_Flags
&
IS_NEW
)
if
(
module
->
m_Flags
&
IS_NEW
)
...
@@ -506,7 +506,7 @@ void WinEDA_BasePcbFrame::Rotate_Module( wxDC* DC, MODULE* module,
...
@@ -506,7 +506,7 @@ void WinEDA_BasePcbFrame::Rotate_Module( wxDC* DC, MODULE* module,
if
(
module
==
NULL
)
if
(
module
==
NULL
)
return
;
return
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
if
(
!
(
module
->
m_Flags
&
IS_MOVED
)
)
/* This is a simple rotation, no other
if
(
!
(
module
->
m_Flags
&
IS_MOVED
)
)
/* This is a simple rotation, no other
* edition in progress */
* edition in progress */
...
...
pcbnew/move-drag_pads.cpp
View file @
a70a5805
...
@@ -253,7 +253,7 @@ void WinEDA_BasePcbFrame::DeletePad( D_PAD* Pad )
...
@@ -253,7 +253,7 @@ void WinEDA_BasePcbFrame::DeletePad( D_PAD* Pad )
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
...
@@ -376,7 +376,7 @@ void WinEDA_BasePcbFrame::PlacePad( D_PAD* Pad, wxDC* DC )
...
@@ -376,7 +376,7 @@ void WinEDA_BasePcbFrame::PlacePad( D_PAD* Pad, wxDC* DC )
EraseDragListe
();
EraseDragListe
();
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
m_Pcb
->
m_Status_Pcb
&=
~
(
LISTE_RATSNEST_ITEM_OK
|
CONNEXION_OK
);
m_Pcb
->
m_Status_Pcb
&=
~
(
LISTE_RATSNEST_ITEM_OK
|
CONNEXION_OK
);
...
@@ -395,7 +395,7 @@ void WinEDA_BasePcbFrame::RotatePad( D_PAD* Pad, wxDC* DC )
...
@@ -395,7 +395,7 @@ void WinEDA_BasePcbFrame::RotatePad( D_PAD* Pad, wxDC* DC )
Module
=
(
MODULE
*
)
Pad
->
GetParent
();
Module
=
(
MODULE
*
)
Pad
->
GetParent
();
Module
->
m_LastEdit_Time
=
time
(
NULL
);
Module
->
m_LastEdit_Time
=
time
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
if
(
DC
)
if
(
DC
)
Module
->
Draw
(
DrawPanel
,
DC
,
GR_XOR
);
Module
->
Draw
(
DrawPanel
,
DC
,
GR_XOR
);
...
...
pcbnew/move_or_drag_track.cpp
View file @
a70a5805
...
@@ -1016,7 +1016,7 @@ bool WinEDA_PcbFrame::PlaceDraggedOrMovedTrackSegment( TRACK* Track, wxDC* DC )
...
@@ -1016,7 +1016,7 @@ bool WinEDA_PcbFrame::PlaceDraggedOrMovedTrackSegment( TRACK* Track, wxDC* DC )
s_ItemsListPicker
.
ClearItemsList
();
// s_ItemsListPicker is no more owner
s_ItemsListPicker
.
ClearItemsList
();
// s_ItemsListPicker is no more owner
// of picked items
// of picked items
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
...
...
pcbnew/muonde.cpp
View file @
a70a5805
...
@@ -782,7 +782,7 @@ MODULE* WinEDA_PcbFrame::Create_MuWaveComponent( int shape_type )
...
@@ -782,7 +782,7 @@ MODULE* WinEDA_PcbFrame::Create_MuWaveComponent( int shape_type )
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
GetBoard
()
->
m_Status_Pcb
=
0
;
GetBoard
()
->
m_Status_Pcb
=
0
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
return
Module
;
return
Module
;
}
}
...
@@ -1120,7 +1120,7 @@ MODULE* WinEDA_PcbFrame::Create_MuWavePolygonShape()
...
@@ -1120,7 +1120,7 @@ MODULE* WinEDA_PcbFrame::Create_MuWavePolygonShape()
Module
->
Set_Rectangle_Encadrement
();
Module
->
Set_Rectangle_Encadrement
();
GetBoard
()
->
m_Status_Pcb
=
0
;
GetBoard
()
->
m_Status_Pcb
=
0
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
return
Module
;
return
Module
;
}
}
...
...
pcbnew/netlist.cpp
View file @
a70a5805
...
@@ -178,7 +178,7 @@ void ReadPcbNetlist( WinEDA_PcbFrame* aFrame,
...
@@ -178,7 +178,7 @@ void ReadPcbNetlist( WinEDA_PcbFrame* aFrame,
// Clear undo and redo lists to avoid inconsistencies between lists
// Clear undo and redo lists to avoid inconsistencies between lists
aFrame
->
GetScreen
()
->
ClearUndoRedoList
();
aFrame
->
GetScreen
()
->
ClearUndoRedoList
();
aFrame
->
GetScreen
()
->
Set
Modify
();
aFrame
->
On
Modify
();
aFrame
->
GetBoard
()
->
m_Status_Pcb
=
0
;
aFrame
->
GetBoard
()
->
m_Status_Pcb
=
0
;
State
=
0
;
LineNum
=
0
;
Comment
=
0
;
State
=
0
;
LineNum
=
0
;
Comment
=
0
;
s_NbNewModules
=
0
;
s_NbNewModules
=
0
;
...
...
pcbnew/onleftclick.cpp
View file @
a70a5805
...
@@ -367,7 +367,7 @@ void WinEDA_PcbFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
...
@@ -367,7 +367,7 @@ void WinEDA_PcbFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
DrawPanel
->
DrawAuxiliaryAxis
(
DC
,
GR_XOR
);
DrawPanel
->
DrawAuxiliaryAxis
(
DC
,
GR_XOR
);
m_Auxiliary_Axis_Position
=
GetScreen
()
->
m_Curseur
;
m_Auxiliary_Axis_Position
=
GetScreen
()
->
m_Curseur
;
DrawPanel
->
DrawAuxiliaryAxis
(
DC
,
GR_COPY
);
DrawPanel
->
DrawAuxiliaryAxis
(
DC
,
GR_COPY
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
break
;
break
;
default
:
default
:
...
...
pcbnew/pcbframe.cpp
View file @
a70a5805
...
@@ -479,7 +479,7 @@ void WinEDA_PcbFrame::ShowDesignRulesEditor( wxCommandEvent& event )
...
@@ -479,7 +479,7 @@ void WinEDA_PcbFrame::ShowDesignRulesEditor( wxCommandEvent& event )
if
(
returncode
==
wxID_OK
)
// New rules, or others changes.
if
(
returncode
==
wxID_OK
)
// New rules, or others changes.
{
{
ReCreateLayerBox
(
NULL
);
ReCreateLayerBox
(
NULL
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
}
}
...
@@ -613,3 +613,4 @@ void WinEDA_PcbFrame::SetVisibleAlls( )
...
@@ -613,3 +613,4 @@ void WinEDA_PcbFrame::SetVisibleAlls( )
for
(
int
ii
=
0
;
ii
<
PCB_VISIBLE
(
END_PCB_VISIBLE_LIST
);
ii
++
)
for
(
int
ii
=
0
;
ii
<
PCB_VISIBLE
(
END_PCB_VISIBLE_LIST
);
ii
++
)
m_Layers
->
SetRenderState
(
ii
,
true
);
m_Layers
->
SetRenderState
(
ii
,
true
);
}
}
pcbnew/specctra_import.cpp
View file @
a70a5805
...
@@ -113,7 +113,7 @@ void WinEDA_PcbFrame::ImportSpecctraSession( wxCommandEvent& event )
...
@@ -113,7 +113,7 @@ void WinEDA_PcbFrame::ImportSpecctraSession( wxCommandEvent& event )
m_TrackAndViasSizesList_Changed
=
true
;
m_TrackAndViasSizesList_Changed
=
true
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetBoard
()
->
m_Status_Pcb
=
0
;
GetBoard
()
->
m_Status_Pcb
=
0
;
/* At this point we should call Compile_Ratsnest()
/* At this point we should call Compile_Ratsnest()
...
...
pcbnew/swap_layers.cpp
View file @
a70a5805
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
/* Dialog frame to swap layers */
/* Dialog frame to swap layers */
/*******************************/
/*******************************/
/* Fichier swap_layers */
/*
* swap_layers.cpp
*/
#include "fctsys.h"
#include "fctsys.h"
#include "common.h"
#include "common.h"
...
@@ -356,7 +358,7 @@ void WinEDA_PcbFrame::Swap_Layers( wxCommandEvent& event )
...
@@ -356,7 +358,7 @@ void WinEDA_PcbFrame::Swap_Layers( wxCommandEvent& event )
pt_segm
=
GetBoard
()
->
m_Track
;
pt_segm
=
GetBoard
()
->
m_Track
;
for
(
;
pt_segm
!=
NULL
;
pt_segm
=
pt_segm
->
Next
()
)
for
(
;
pt_segm
!=
NULL
;
pt_segm
=
pt_segm
->
Next
()
)
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
if
(
pt_segm
->
Type
()
==
TYPE_VIA
)
if
(
pt_segm
->
Type
()
==
TYPE_VIA
)
{
{
SEGVIA
*
Via
=
(
SEGVIA
*
)
pt_segm
;
SEGVIA
*
Via
=
(
SEGVIA
*
)
pt_segm
;
...
@@ -383,7 +385,7 @@ void WinEDA_PcbFrame::Swap_Layers( wxCommandEvent& event )
...
@@ -383,7 +385,7 @@ void WinEDA_PcbFrame::Swap_Layers( wxCommandEvent& event )
/* Change zones. */
/* Change zones. */
for
(
pt_segm
=
GetBoard
()
->
m_Zone
;
pt_segm
;
pt_segm
=
pt_segm
->
Next
()
)
for
(
pt_segm
=
GetBoard
()
->
m_Zone
;
pt_segm
;
pt_segm
=
pt_segm
->
Next
()
)
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
jj
=
pt_segm
->
GetLayer
();
jj
=
pt_segm
->
GetLayer
();
if
(
New_Layer
[
jj
]
>=
0
&&
New_Layer
[
jj
]
<
LAYER_NO_CHANGE
)
if
(
New_Layer
[
jj
]
>=
0
&&
New_Layer
[
jj
]
<
LAYER_NO_CHANGE
)
pt_segm
->
SetLayer
(
New_Layer
[
jj
]
);
pt_segm
->
SetLayer
(
New_Layer
[
jj
]
);
...
@@ -395,7 +397,7 @@ void WinEDA_PcbFrame::Swap_Layers( wxCommandEvent& event )
...
@@ -395,7 +397,7 @@ void WinEDA_PcbFrame::Swap_Layers( wxCommandEvent& event )
{
{
if
(
PtStruct
->
Type
()
==
TYPE_DRAWSEGMENT
)
if
(
PtStruct
->
Type
()
==
TYPE_DRAWSEGMENT
)
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
pt_drawsegm
=
(
DRAWSEGMENT
*
)
PtStruct
;
pt_drawsegm
=
(
DRAWSEGMENT
*
)
PtStruct
;
jj
=
pt_drawsegm
->
GetLayer
();
jj
=
pt_drawsegm
->
GetLayer
();
if
(
New_Layer
[
jj
]
>=
0
&&
New_Layer
[
jj
]
<
LAYER_NO_CHANGE
)
if
(
New_Layer
[
jj
]
>=
0
&&
New_Layer
[
jj
]
<
LAYER_NO_CHANGE
)
...
...
pcbnew/xchgmod.cpp
View file @
a70a5805
/*******************************/
/*******************************/
/* Pcbnew: exchange
of
modules */
/* Pcbnew: exchange modules */
/*******************************/
/*******************************/
#include "fctsys.h"
#include "fctsys.h"
...
@@ -529,7 +529,7 @@ void WinEDA_PcbFrame::Exchange_Module( MODULE* aOldModule,
...
@@ -529,7 +529,7 @@ void WinEDA_PcbFrame::Exchange_Module( MODULE* aOldModule,
GetBoard
()
->
m_Status_Pcb
=
0
;
GetBoard
()
->
m_Status_Pcb
=
0
;
aNewModule
->
m_Flags
=
0
;
aNewModule
->
m_Flags
=
0
;
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
...
...
pcbnew/zones_by_polygon.cpp
View file @
a70a5805
...
@@ -283,7 +283,7 @@ void WinEDA_PcbFrame::End_Move_Zone_Corner_Or_Outlines( wxDC* DC, ZONE_CONTAINER
...
@@ -283,7 +283,7 @@ void WinEDA_PcbFrame::End_Move_Zone_Corner_Or_Outlines( wxDC* DC, ZONE_CONTAINER
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
if
(
DC
)
if
(
DC
)
zone_container
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
zone_container
->
Draw
(
DrawPanel
,
DC
,
GR_OR
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
s_AddCutoutToCurrentZone
=
false
;
s_AddCutoutToCurrentZone
=
false
;
s_CurrentZone
=
NULL
;
s_CurrentZone
=
NULL
;
...
@@ -324,7 +324,7 @@ void WinEDA_PcbFrame::Remove_Zone_Corner( wxDC* DC, ZONE_CONTAINER* zone_contain
...
@@ -324,7 +324,7 @@ void WinEDA_PcbFrame::Remove_Zone_Corner( wxDC* DC, ZONE_CONTAINER* zone_contain
* the member .m_CornerSelection is used as selected corner
* the member .m_CornerSelection is used as selected corner
*/
*/
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
if
(
zone_container
->
m_Poly
->
GetNumCorners
()
<=
3
)
if
(
zone_container
->
m_Poly
->
GetNumCorners
()
<=
3
)
{
{
...
@@ -715,7 +715,7 @@ bool WinEDA_PcbFrame::End_Zone( wxDC* DC )
...
@@ -715,7 +715,7 @@ bool WinEDA_PcbFrame::End_Zone( wxDC* DC )
SaveCopyInUndoList
(
s_PickedList
,
UR_UNSPECIFIED
);
SaveCopyInUndoList
(
s_PickedList
,
UR_UNSPECIFIED
);
s_PickedList
.
ClearItemsList
();
// s_ItemsListPicker is no more owner of picked items
s_PickedList
.
ClearItemsList
();
// s_ItemsListPicker is no more owner of picked items
GetScreen
()
->
Set
Modify
();
On
Modify
();
return
true
;
return
true
;
}
}
...
@@ -826,7 +826,7 @@ void WinEDA_PcbFrame::Edit_Zone_Params( wxDC* DC, ZONE_CONTAINER* zone_container
...
@@ -826,7 +826,7 @@ void WinEDA_PcbFrame::Edit_Zone_Params( wxDC* DC, ZONE_CONTAINER* zone_container
SaveCopyInUndoList
(
s_PickedList
,
UR_UNSPECIFIED
);
SaveCopyInUndoList
(
s_PickedList
,
UR_UNSPECIFIED
);
s_PickedList
.
ClearItemsList
();
// s_ItemsListPicker is no more owner of picked items
s_PickedList
.
ClearItemsList
();
// s_ItemsListPicker is no more owner of picked items
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
...
@@ -863,6 +863,6 @@ void WinEDA_PcbFrame::Delete_Zone_Contour( wxDC* DC, ZONE_CONTAINER* zone_contai
...
@@ -863,6 +863,6 @@ void WinEDA_PcbFrame::Delete_Zone_Contour( wxDC* DC, ZONE_CONTAINER* zone_contai
DrawPanel
->
PostDirtyRect
(
dirty
);
DrawPanel
->
PostDirtyRect
(
dirty
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
}
}
pcbnew/zones_by_polygon_fill_functions.cpp
View file @
a70a5805
...
@@ -81,7 +81,7 @@ void WinEDA_PcbFrame::Delete_Zone_Fill( SEGZONE* aZone, long aTimestamp )
...
@@ -81,7 +81,7 @@ void WinEDA_PcbFrame::Delete_Zone_Fill( SEGZONE* aZone, long aTimestamp )
if
(
modify
)
if
(
modify
)
{
{
GetScreen
()
->
Set
Modify
();
On
Modify
();
GetScreen
()
->
SetRefreshReq
();
GetScreen
()
->
SetRefreshReq
();
}
}
}
}
...
@@ -136,7 +136,7 @@ int WinEDA_PcbFrame::Fill_Zone( ZONE_CONTAINER* zone_container, bool verbose )
...
@@ -136,7 +136,7 @@ int WinEDA_PcbFrame::Fill_Zone( ZONE_CONTAINER* zone_container, bool verbose )
Delete_Zone_Fill
(
NULL
,
zone_container
->
m_TimeStamp
);
Delete_Zone_Fill
(
NULL
,
zone_container
->
m_TimeStamp
);
zone_container
->
BuildFilledPolysListData
(
GetBoard
()
);
zone_container
->
BuildFilledPolysListData
(
GetBoard
()
);
GetScreen
()
->
Set
Modify
();
On
Modify
();
return
0
;
return
0
;
}
}
...
...
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