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
126c384d
Commit
126c384d
authored
Feb 18, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema date in frame reference updated at each modification.
parent
71c327b2
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
100 additions
and
64 deletions
+100
-64
build_version.cpp
common/build_version.cpp
+1
-1
annotate.cpp
eeschema/annotate.cpp
+1
-1
block.cpp
eeschema/block.cpp
+5
-5
block_libedit.cpp
eeschema/block_libedit.cpp
+1
-1
bus-wire-junction.cpp
eeschema/bus-wire-junction.cpp
+3
-3
busentry.cpp
eeschema/busentry.cpp
+2
-2
class_drawsheet.cpp
eeschema/class_drawsheet.cpp
+1
-1
class_sch_cmp_field.cpp
eeschema/class_sch_cmp_field.cpp
+1
-1
delete.cpp
eeschema/delete.cpp
+2
-2
dialog_edit_component_in_schematic.cpp
eeschema/dialog_edit_component_in_schematic.cpp
+2
-2
dialog_edit_label.cpp
eeschema/dialog_edit_label.cpp
+1
-1
dialog_edit_libentry_fields_in_lib.cpp
eeschema/dialog_edit_libentry_fields_in_lib.cpp
+1
-1
edit_component_in_lib.cpp
eeschema/edit_component_in_lib.cpp
+2
-2
edit_component_in_schematic.cpp
eeschema/edit_component_in_schematic.cpp
+5
-5
edit_graphic_bodyitem_text.cpp
eeschema/edit_graphic_bodyitem_text.cpp
+2
-2
edit_label.cpp
eeschema/edit_label.cpp
+3
-3
getpart.cpp
eeschema/getpart.cpp
+3
-3
hotkeys.cpp
eeschema/hotkeys.cpp
+1
-1
libedit.cpp
eeschema/libedit.cpp
+1
-1
libedit_onleftclick.cpp
eeschema/libedit_onleftclick.cpp
+1
-1
libedit_undo_redo.cpp
eeschema/libedit_undo_redo.cpp
+2
-2
libeditframe.cpp
eeschema/libeditframe.cpp
+1
-1
libeditframe.h
eeschema/libeditframe.h
+9
-0
libfield.cpp
eeschema/libfield.cpp
+3
-3
onleftclick.cpp
eeschema/onleftclick.cpp
+1
-1
pinedit.cpp
eeschema/pinedit.cpp
+6
-6
schedit.cpp
eeschema/schedit.cpp
+2
-2
schematic_undo_redo.cpp
eeschema/schematic_undo_redo.cpp
+2
-2
schframe.cpp
eeschema/schframe.cpp
+21
-0
sheet.cpp
eeschema/sheet.cpp
+1
-1
sheetlab.cpp
eeschema/sheetlab.cpp
+2
-2
symbdraw.cpp
eeschema/symbdraw.cpp
+2
-2
symbedit.cpp
eeschema/symbedit.cpp
+2
-2
wxEeschemaStruct.h
include/wxEeschemaStruct.h
+6
-0
version.txt
version.txt
+1
-1
No files found.
common/build_version.cpp
View file @
126c384d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#define KICAD_BUILD_VERSION "(2010-02-17)"
#define KICAD_BUILD_VERSION "(2010-02-17)"
#endif
#endif
#define VERSION_STABILITY "RC3"
#define VERSION_STABILITY "RC3
a
"
/** Function GetBuildVersion()
/** Function GetBuildVersion()
* Return the build date and version
* Return the build date and version
...
...
eeschema/annotate.cpp
View file @
126c384d
...
@@ -228,7 +228,7 @@ void WinEDA_SchematicFrame::DeleteAnnotation( bool aCurrentSheetOnly,
...
@@ -228,7 +228,7 @@ void WinEDA_SchematicFrame::DeleteAnnotation( bool aCurrentSheetOnly,
}
}
}
}
screen
->
SetModify
(
);
OnModify
(
);
if
(
aCurrentSheetOnly
)
if
(
aCurrentSheetOnly
)
break
;
break
;
screen
=
ScreenList
.
GetNext
();
screen
=
ScreenList
.
GetNext
();
...
...
eeschema/block.cpp
View file @
126c384d
...
@@ -171,7 +171,7 @@ void WinEDA_SchematicFrame::HandleBlockPlace( wxDC* DC )
...
@@ -171,7 +171,7 @@ void WinEDA_SchematicFrame::HandleBlockPlace( wxDC* DC )
break
;
break
;
}
}
GetScreen
()
->
SetModify
(
);
OnModify
(
);
/* clear struct.m_Flags */
/* clear struct.m_Flags */
SCH_ITEM
*
Struct
;
SCH_ITEM
*
Struct
;
...
@@ -268,7 +268,7 @@ int WinEDA_SchematicFrame::HandleBlockEnd( wxDC* DC )
...
@@ -268,7 +268,7 @@ int WinEDA_SchematicFrame::HandleBlockEnd( wxDC* DC )
{
{
ii
=
-
1
;
ii
=
-
1
;
DeleteItemsInList
(
DrawPanel
,
block
->
m_ItemsSelection
);
DeleteItemsInList
(
DrawPanel
,
block
->
m_ItemsSelection
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
block
->
ClearItemsList
();
block
->
ClearItemsList
();
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
...
@@ -395,7 +395,7 @@ void WinEDA_SchematicFrame::HandleBlockEndByPopUp( int Command, wxDC* DC )
...
@@ -395,7 +395,7 @@ void WinEDA_SchematicFrame::HandleBlockEndByPopUp( int Command, wxDC* DC )
{
{
ii
=
-
1
;
ii
=
-
1
;
DeleteItemsInList
(
DrawPanel
,
block
->
m_ItemsSelection
);
DeleteItemsInList
(
DrawPanel
,
block
->
m_ItemsSelection
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
...
@@ -440,7 +440,7 @@ void WinEDA_SchematicFrame::HandleBlockEndByPopUp( int Command, wxDC* DC )
...
@@ -440,7 +440,7 @@ void WinEDA_SchematicFrame::HandleBlockEndByPopUp( int Command, wxDC* DC )
UR_MIRRORED_Y
,
UR_MIRRORED_Y
,
mirrorPoint
);
mirrorPoint
);
MirrorListOfItems
(
block
->
m_ItemsSelection
,
mirrorPoint
);
MirrorListOfItems
(
block
->
m_ItemsSelection
,
mirrorPoint
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
...
@@ -578,7 +578,7 @@ void WinEDA_SchematicFrame::PasteListOfItems( wxDC* DC )
...
@@ -578,7 +578,7 @@ void WinEDA_SchematicFrame::PasteListOfItems( wxDC* DC )
Struct
=
Struct
->
Next
()
)
Struct
=
Struct
->
Next
()
)
Struct
->
m_Flags
=
0
;
Struct
->
m_Flags
=
0
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
return
;
return
;
}
}
...
...
eeschema/block_libedit.cpp
View file @
126c384d
...
@@ -259,7 +259,7 @@ void WinEDA_LibeditFrame::HandleBlockPlace( wxDC* DC )
...
@@ -259,7 +259,7 @@ void WinEDA_LibeditFrame::HandleBlockPlace( wxDC* DC )
break
;
break
;
}
}
GetScreen
()
->
Set
Modify
();
On
Modify
();
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
...
...
eeschema/bus-wire-junction.cpp
View file @
126c384d
...
@@ -361,7 +361,7 @@ void WinEDA_SchematicFrame::EndSegment( wxDC* DC )
...
@@ -361,7 +361,7 @@ void WinEDA_SchematicFrame::EndSegment( wxDC* DC )
SaveCopyInUndoList
(
s_OldWiresList
,
UR_WIRE_IMAGE
);
SaveCopyInUndoList
(
s_OldWiresList
,
UR_WIRE_IMAGE
);
s_OldWiresList
=
NULL
;
s_OldWiresList
=
NULL
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
@@ -537,7 +537,7 @@ SCH_JUNCTION* WinEDA_SchematicFrame::CreateNewJunctionStruct(
...
@@ -537,7 +537,7 @@ SCH_JUNCTION* WinEDA_SchematicFrame::CreateNewJunctionStruct(
NewJunction
->
SetNext
(
GetScreen
()
->
EEDrawList
);
NewJunction
->
SetNext
(
GetScreen
()
->
EEDrawList
);
GetScreen
()
->
EEDrawList
=
NewJunction
;
GetScreen
()
->
EEDrawList
=
NewJunction
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
if
(
PutInUndoList
)
if
(
PutInUndoList
)
SaveCopyInUndoList
(
NewJunction
,
UR_NEW
);
SaveCopyInUndoList
(
NewJunction
,
UR_NEW
);
return
NewJunction
;
return
NewJunction
;
...
@@ -558,7 +558,7 @@ SCH_NO_CONNECT* WinEDA_SchematicFrame::CreateNewNoConnectStruct( wxDC* DC )
...
@@ -558,7 +558,7 @@ SCH_NO_CONNECT* WinEDA_SchematicFrame::CreateNewNoConnectStruct( wxDC* DC )
NewNoConnect
->
SetNext
(
GetScreen
()
->
EEDrawList
);
NewNoConnect
->
SetNext
(
GetScreen
()
->
EEDrawList
);
GetScreen
()
->
EEDrawList
=
NewNoConnect
;
GetScreen
()
->
EEDrawList
=
NewNoConnect
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
SaveCopyInUndoList
(
NewNoConnect
,
UR_NEW
);
SaveCopyInUndoList
(
NewNoConnect
,
UR_NEW
);
return
NewNoConnect
;
return
NewNoConnect
;
}
}
...
...
eeschema/busentry.cpp
View file @
126c384d
...
@@ -79,7 +79,7 @@ SCH_BUS_ENTRY* WinEDA_SchematicFrame::CreateBusEntry( wxDC* DC,
...
@@ -79,7 +79,7 @@ SCH_BUS_ENTRY* WinEDA_SchematicFrame::CreateBusEntry( wxDC* DC,
RedrawOneStruct
(
DrawPanel
,
DC
,
BusEntry
,
g_XorMode
);
RedrawOneStruct
(
DrawPanel
,
DC
,
BusEntry
,
g_XorMode
);
DrawPanel
->
CursorOn
(
DC
);
// Display schematic cursor
DrawPanel
->
CursorOn
(
DC
);
// Display schematic cursor
GetScreen
()
->
SetModify
(
);
OnModify
(
);
StartMoveBusEntry
(
BusEntry
,
DC
);
StartMoveBusEntry
(
BusEntry
,
DC
);
return
BusEntry
;
return
BusEntry
;
...
@@ -151,7 +151,7 @@ void WinEDA_SchematicFrame::SetBusEntryShape( wxDC* DC,
...
@@ -151,7 +151,7 @@ void WinEDA_SchematicFrame::SetBusEntryShape( wxDC* DC,
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
NULL
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
NULL
);
RedrawOneStruct
(
DrawPanel
,
DC
,
BusEntry
,
g_XorMode
);
RedrawOneStruct
(
DrawPanel
,
DC
,
BusEntry
,
g_XorMode
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
...
eeschema/class_drawsheet.cpp
View file @
126c384d
...
@@ -252,7 +252,7 @@ void SCH_SHEET::CleanupSheet( WinEDA_SchematicFrame* aFrame,
...
@@ -252,7 +252,7 @@ void SCH_SHEET::CleanupSheet( WinEDA_SchematicFrame* aFrame,
NextPinsheet
=
Pinsheet
->
Next
();
NextPinsheet
=
Pinsheet
->
Next
();
if
(
HLabel
==
NULL
)
// Hlabel not found: delete pinsheet
if
(
HLabel
==
NULL
)
// Hlabel not found: delete pinsheet
{
{
aFrame
->
GetScreen
()
->
SetModify
(
);
aFrame
->
OnModify
(
);
aFrame
->
DeleteSheetLabel
(
false
,
Pinsheet
);
aFrame
->
DeleteSheetLabel
(
false
,
Pinsheet
);
}
}
Pinsheet
=
NextPinsheet
;
Pinsheet
=
NextPinsheet
;
...
...
eeschema/class_sch_cmp_field.cpp
View file @
126c384d
...
@@ -420,6 +420,6 @@ void SCH_FIELD::Place( WinEDA_SchematicFrame* frame, wxDC* DC )
...
@@ -420,6 +420,6 @@ void SCH_FIELD::Place( WinEDA_SchematicFrame* frame, wxDC* DC )
Draw
(
frame
->
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
GR_DEFAULT_DRAWMODE
);
Draw
(
frame
->
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
GR_DEFAULT_DRAWMODE
);
m_Flags
=
0
;
m_Flags
=
0
;
frame
->
GetScreen
()
->
SetCurItem
(
NULL
);
frame
->
GetScreen
()
->
SetCurItem
(
NULL
);
frame
->
GetScreen
()
->
SetModify
(
);
frame
->
OnModify
(
);
frame
->
SetCurrentField
(
NULL
);
frame
->
SetCurrentField
(
NULL
);
}
}
eeschema/delete.cpp
View file @
126c384d
...
@@ -318,7 +318,7 @@ void WinEDA_SchematicFrame::DeleteConnection( bool DeleteFullConnection )
...
@@ -318,7 +318,7 @@ void WinEDA_SchematicFrame::DeleteConnection( bool DeleteFullConnection )
if
(
pickList
.
GetCount
()
)
if
(
pickList
.
GetCount
()
)
{
{
DeleteItemsInList
(
DrawPanel
,
pickList
);
DeleteItemsInList
(
DrawPanel
,
pickList
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
}
}
...
@@ -367,7 +367,7 @@ bool LocateAndDeleteItem( WinEDA_SchematicFrame* frame, wxDC* DC )
...
@@ -367,7 +367,7 @@ bool LocateAndDeleteItem( WinEDA_SchematicFrame* frame, wxDC* DC )
g_ItemToRepeat
=
NULL
;
g_ItemToRepeat
=
NULL
;
DeleteStruct
(
frame
->
DrawPanel
,
DC
,
DelStruct
);
DeleteStruct
(
frame
->
DrawPanel
,
DC
,
DelStruct
);
frame
->
TestDanglingEnds
(
frame
->
GetScreen
()
->
EEDrawList
,
DC
);
frame
->
TestDanglingEnds
(
frame
->
GetScreen
()
->
EEDrawList
,
DC
);
frame
->
GetScreen
()
->
SetModify
(
);
frame
->
OnModify
(
);
item_deleted
=
TRUE
;
item_deleted
=
TRUE
;
}
}
...
...
eeschema/dialog_edit_component_in_schematic.cpp
View file @
126c384d
...
@@ -279,7 +279,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick( wxCommandEvent& event
...
@@ -279,7 +279,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick( wxCommandEvent& event
m_Cmp
->
SetRef
(
m_Parent
->
GetSheet
(),
m_FieldsBuf
[
REFERENCE
].
m_Text
);
m_Cmp
->
SetRef
(
m_Parent
->
GetSheet
(),
m_FieldsBuf
[
REFERENCE
].
m_Text
);
m_Parent
->
GetScreen
()
->
SetModify
(
);
m_Parent
->
OnModify
(
);
m_Parent
->
TestDanglingEnds
(
m_Parent
->
GetScreen
()
->
EEDrawList
,
NULL
);
m_Parent
->
TestDanglingEnds
(
m_Parent
->
GetScreen
()
->
EEDrawList
,
NULL
);
...
@@ -744,7 +744,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::SetInitCmp( wxCommandEvent& event )
...
@@ -744,7 +744,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::SetInitCmp( wxCommandEvent& event )
m_Cmp
->
SetOrientation
(
CMP_NORMAL
);
m_Cmp
->
SetOrientation
(
CMP_NORMAL
);
m_Parent
->
GetScreen
()
->
SetModify
(
);
m_Parent
->
OnModify
(
);
RedrawOneStruct
(
m_Parent
->
DrawPanel
,
&
dc
,
m_Cmp
,
GR_DEFAULT_DRAWMODE
);
RedrawOneStruct
(
m_Parent
->
DrawPanel
,
&
dc
,
m_Cmp
,
GR_DEFAULT_DRAWMODE
);
EndModal
(
1
);
EndModal
(
1
);
...
...
eeschema/dialog_edit_label.cpp
View file @
126c384d
...
@@ -224,7 +224,7 @@ void DialogLabelEditor::TextPropertiesAccept( wxCommandEvent& event )
...
@@ -224,7 +224,7 @@ void DialogLabelEditor::TextPropertiesAccept( wxCommandEvent& event )
m_CurrentText
->
m_Width
=
0
;
m_CurrentText
->
m_Width
=
0
;
}
}
m_Parent
->
GetScreen
()
->
SetModify
(
);
m_Parent
->
OnModify
(
);
/* Make the text size as new default size if it is a new text */
/* Make the text size as new default size if it is a new text */
if
(
(
m_CurrentText
->
m_Flags
&
IS_NEW
)
!=
0
)
if
(
(
m_CurrentText
->
m_Flags
&
IS_NEW
)
!=
0
)
...
...
eeschema/dialog_edit_libentry_fields_in_lib.cpp
View file @
126c384d
...
@@ -249,7 +249,7 @@ alias %s already exists!\nCannot update this component" ),
...
@@ -249,7 +249,7 @@ alias %s already exists!\nCannot update this component" ),
// copy all the fields back, and change the length of m_Fields.
// copy all the fields back, and change the length of m_Fields.
m_LibEntry
->
SetFields
(
m_FieldsBuf
);
m_LibEntry
->
SetFields
(
m_FieldsBuf
);
m_Parent
->
GetScreen
()
->
SetModify
(
);
m_Parent
->
OnModify
(
);
EndModal
(
0
);
EndModal
(
0
);
}
}
...
...
eeschema/edit_component_in_lib.cpp
View file @
126c384d
...
@@ -47,7 +47,7 @@ void WinEDA_LibeditFrame::EditComponentProperties()
...
@@ -47,7 +47,7 @@ void WinEDA_LibeditFrame::EditComponentProperties()
UpdatePartSelectList
();
UpdatePartSelectList
();
DisplayLibInfos
();
DisplayLibInfos
();
DisplayCmpDoc
();
DisplayCmpDoc
();
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
@@ -330,7 +330,7 @@ bool DIALOG_EDIT_COMPONENT_IN_LIBRARY::SetUnsetConvert()
...
@@ -330,7 +330,7 @@ bool DIALOG_EDIT_COMPONENT_IN_LIBRARY::SetUnsetConvert()
}
}
component
->
SetConversion
(
m_Parent
->
GetShowDeMorgan
()
);
component
->
SetConversion
(
m_Parent
->
GetShowDeMorgan
()
);
m_Parent
->
GetScreen
()
->
SetModify
(
);
m_Parent
->
OnModify
(
);
return
true
;
return
true
;
}
}
...
...
eeschema/edit_component_in_schematic.cpp
View file @
126c384d
...
@@ -167,7 +167,7 @@ modified!\nYou must create a new power" ) );
...
@@ -167,7 +167,7 @@ modified!\nYou must create a new power" ) );
Field
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
g_XorMode
);
Field
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
g_XorMode
);
Cmp
->
DisplayInfo
(
this
);
Cmp
->
DisplayInfo
(
this
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
@@ -277,7 +277,7 @@ void WinEDA_SchematicFrame::RotateCmpField( SCH_FIELD* Field, wxDC* DC )
...
@@ -277,7 +277,7 @@ void WinEDA_SchematicFrame::RotateCmpField( SCH_FIELD* Field, wxDC* DC )
Field
->
m_Orient
=
TEXT_ORIENT_HORIZ
;
Field
->
m_Orient
=
TEXT_ORIENT_HORIZ
;
Field
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
g_XorMode
);
Field
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
g_XorMode
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
@@ -320,7 +320,7 @@ void WinEDA_SchematicFrame::EditComponentReference( SCH_COMPONENT* Cmp,
...
@@ -320,7 +320,7 @@ void WinEDA_SchematicFrame::EditComponentReference( SCH_COMPONENT* Cmp,
0
),
0
),
Cmp
->
m_Flags
?
g_XorMode
:
Cmp
->
m_Flags
?
g_XorMode
:
GR_DEFAULT_DRAWMODE
);
GR_DEFAULT_DRAWMODE
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
Cmp
->
DisplayInfo
(
this
);
Cmp
->
DisplayInfo
(
this
);
}
}
...
@@ -358,7 +358,7 @@ void WinEDA_SchematicFrame::EditComponentValue( SCH_COMPONENT* Cmp, wxDC* DC )
...
@@ -358,7 +358,7 @@ void WinEDA_SchematicFrame::EditComponentValue( SCH_COMPONENT* Cmp, wxDC* DC )
TextField
->
m_Text
=
message
;
TextField
->
m_Text
=
message
;
TextField
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
TextField
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
Cmp
->
m_Flags
?
g_XorMode
:
GR_DEFAULT_DRAWMODE
);
Cmp
->
m_Flags
?
g_XorMode
:
GR_DEFAULT_DRAWMODE
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
Cmp
->
DisplayInfo
(
this
);
Cmp
->
DisplayInfo
(
this
);
...
@@ -422,7 +422,7 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp,
...
@@ -422,7 +422,7 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp,
Cmp
->
GetField
(
FOOTPRINT
)
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
Cmp
->
GetField
(
FOOTPRINT
)
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
Cmp
->
m_Flags
?
g_XorMode
:
Cmp
->
m_Flags
?
g_XorMode
:
GR_DEFAULT_DRAWMODE
);
GR_DEFAULT_DRAWMODE
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
Cmp
->
DisplayInfo
(
this
);
Cmp
->
DisplayInfo
(
this
);
}
}
eeschema/edit_graphic_bodyitem_text.cpp
View file @
126c384d
...
@@ -241,7 +241,7 @@ void WinEDA_LibeditFrame::EditSymbolText(wxDC* DC, LIB_DRAW_ITEM* DrawItem)
...
@@ -241,7 +241,7 @@ void WinEDA_LibeditFrame::EditSymbolText(wxDC* DC, LIB_DRAW_ITEM* DrawItem)
(
LIB_TEXT
*
)
DrawItem
);
(
LIB_TEXT
*
)
DrawItem
);
frame
->
ShowModal
();
frame
->
ShowModal
();
frame
->
Destroy
();
frame
->
Destroy
();
GetScreen
()
->
SetModify
(
);
OnModify
(
);
/* Display new text. */
/* Display new text. */
if
(
DC
)
if
(
DC
)
...
@@ -279,7 +279,7 @@ void WinEDA_LibeditFrame::RotateSymbolText(wxDC * DC)
...
@@ -279,7 +279,7 @@ void WinEDA_LibeditFrame::RotateSymbolText(wxDC * DC)
else
else
DrawItem
->
m_Orient
=
TEXT_ORIENT_HORIZ
;
DrawItem
->
m_Orient
=
TEXT_ORIENT_HORIZ
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
/* Redraw item with new orient */
/* Redraw item with new orient */
if
(
DrawPanel
->
ManageCurseur
==
NULL
)
if
(
DrawPanel
->
ManageCurseur
==
NULL
)
...
...
eeschema/edit_label.cpp
View file @
126c384d
...
@@ -62,7 +62,7 @@ void WinEDA_SchematicFrame::StartMoveTexte( SCH_TEXT* TextStruct, wxDC* DC )
...
@@ -62,7 +62,7 @@ void WinEDA_SchematicFrame::StartMoveTexte( SCH_TEXT* TextStruct, wxDC* DC )
GetScreen
()
->
m_Curseur
=
ItemInitialPosition
;
GetScreen
()
->
m_Curseur
=
ItemInitialPosition
;
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
ManageCurseur
=
ShowWhileMoving
;
DrawPanel
->
ManageCurseur
=
ShowWhileMoving
;
DrawPanel
->
ForceCloseManageCurseur
=
ExitMoveTexte
;
DrawPanel
->
ForceCloseManageCurseur
=
ExitMoveTexte
;
GetScreen
()
->
SetCurItem
(
TextStruct
);
GetScreen
()
->
SetCurItem
(
TextStruct
);
...
@@ -107,7 +107,7 @@ void WinEDA_SchematicFrame::ChangeTextOrient( SCH_TEXT* TextStruct, wxDC* DC )
...
@@ -107,7 +107,7 @@ void WinEDA_SchematicFrame::ChangeTextOrient( SCH_TEXT* TextStruct, wxDC* DC )
break
;
break
;
}
}
GetScreen
()
->
SetModify
(
);
OnModify
(
);
RedrawOneStruct
(
DrawPanel
,
DC
,
TextStruct
,
g_XorMode
);
RedrawOneStruct
(
DrawPanel
,
DC
,
TextStruct
,
g_XorMode
);
DrawPanel
->
CursorOn
(
DC
);
DrawPanel
->
CursorOn
(
DC
);
}
}
...
@@ -321,7 +321,7 @@ void WinEDA_SchematicFrame::ConvertTextType( SCH_TEXT* Text,
...
@@ -321,7 +321,7 @@ void WinEDA_SchematicFrame::ConvertTextType( SCH_TEXT* Text,
{
{
newtext
->
SetNext
(
GetScreen
()
->
EEDrawList
);
newtext
->
SetNext
(
GetScreen
()
->
EEDrawList
);
GetScreen
()
->
EEDrawList
=
newtext
;
GetScreen
()
->
EEDrawList
=
newtext
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
/* now delete the old text
/* now delete the old text
...
...
eeschema/getpart.cpp
View file @
126c384d
...
@@ -272,7 +272,7 @@ void WinEDA_SchematicFrame::CmpRotationMiroir( SCH_COMPONENT* DrawComponent,
...
@@ -272,7 +272,7 @@ void WinEDA_SchematicFrame::CmpRotationMiroir( SCH_COMPONENT* DrawComponent,
}
}
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
@@ -351,7 +351,7 @@ void WinEDA_SchematicFrame::SelPartUnit( SCH_COMPONENT* DrawComponent,
...
@@ -351,7 +351,7 @@ void WinEDA_SchematicFrame::SelPartUnit( SCH_COMPONENT* DrawComponent,
GR_DEFAULT_DRAWMODE
);
GR_DEFAULT_DRAWMODE
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
@@ -397,7 +397,7 @@ void WinEDA_SchematicFrame::ConvertPart( SCH_COMPONENT* DrawComponent,
...
@@ -397,7 +397,7 @@ void WinEDA_SchematicFrame::ConvertPart( SCH_COMPONENT* DrawComponent,
GR_DEFAULT_DRAWMODE
);
GR_DEFAULT_DRAWMODE
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
...
eeschema/hotkeys.cpp
View file @
126c384d
...
@@ -325,7 +325,7 @@ void WinEDA_SchematicFrame::OnHotKey( wxDC* DC, int hotkey,
...
@@ -325,7 +325,7 @@ void WinEDA_SchematicFrame::OnHotKey( wxDC* DC, int hotkey,
if
(
!
ItemInEdit
&&
screen
->
m_BlockLocate
.
m_State
==
STATE_NO_BLOCK
)
if
(
!
ItemInEdit
&&
screen
->
m_BlockLocate
.
m_State
==
STATE_NO_BLOCK
)
{
{
RefreshToolBar
=
LocateAndDeleteItem
(
this
,
DC
);
RefreshToolBar
=
LocateAndDeleteItem
(
this
,
DC
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
GetScreen
()
->
SetCurItem
(
NULL
);
GetScreen
()
->
SetCurItem
(
NULL
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
DC
);
}
}
...
...
eeschema/libedit.cpp
View file @
126c384d
...
@@ -561,7 +561,7 @@ created. Aborted" ) );
...
@@ -561,7 +561,7 @@ created. Aborted" ) );
g_EditPinByPinIsOn
=
false
;
g_EditPinByPinIsOn
=
false
;
m_lastDrawItem
=
NULL
;
m_lastDrawItem
=
NULL
;
GetScreen
()
->
ClearUndoRedoList
();
GetScreen
()
->
ClearUndoRedoList
();
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
}
}
...
...
eeschema/libedit_onleftclick.cpp
View file @
126c384d
...
@@ -136,7 +136,7 @@ void WinEDA_LibeditFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
...
@@ -136,7 +136,7 @@ void WinEDA_LibeditFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
else
else
m_component
->
RemoveDrawItem
(
DrawEntry
,
DrawPanel
,
DC
);
m_component
->
RemoveDrawItem
(
DrawEntry
,
DrawPanel
,
DC
);
DrawEntry
=
NULL
;
DrawEntry
=
NULL
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
break
;
break
;
case
ID_LIBEDIT_ANCHOR_ITEM_BUTT
:
case
ID_LIBEDIT_ANCHOR_ITEM_BUTT
:
...
...
eeschema/libedit_undo_redo.cpp
View file @
126c384d
...
@@ -69,7 +69,7 @@ void WinEDA_LibeditFrame::GetComponentFromRedoList(wxCommandEvent& event)
...
@@ -69,7 +69,7 @@ void WinEDA_LibeditFrame::GetComponentFromRedoList(wxCommandEvent& event)
SetShowDeMorgan
(
m_component
->
HasConversion
()
);
SetShowDeMorgan
(
m_component
->
HasConversion
()
);
DisplayLibInfos
();
DisplayLibInfos
();
DisplayCmpDoc
();
DisplayCmpDoc
();
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
}
}
...
@@ -105,6 +105,6 @@ void WinEDA_LibeditFrame::GetComponentFromUndoList(wxCommandEvent& event)
...
@@ -105,6 +105,6 @@ void WinEDA_LibeditFrame::GetComponentFromUndoList(wxCommandEvent& event)
SetShowDeMorgan
(
m_component
->
HasConversion
()
);
SetShowDeMorgan
(
m_component
->
HasConversion
()
);
DisplayLibInfos
();
DisplayLibInfos
();
DisplayCmpDoc
();
DisplayCmpDoc
();
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
}
}
eeschema/libeditframe.cpp
View file @
126c384d
...
@@ -799,7 +799,7 @@ void WinEDA_LibeditFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -799,7 +799,7 @@ void WinEDA_LibeditFrame::Process_Special_Functions( wxCommandEvent& event )
}
}
m_drawItem
=
NULL
;
m_drawItem
=
NULL
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
CursorOn
(
&
dc
);
DrawPanel
->
CursorOn
(
&
dc
);
break
;
break
;
...
...
eeschema/libeditframe.h
View file @
126c384d
...
@@ -90,6 +90,15 @@ public:
...
@@ -90,6 +90,15 @@ public:
void
LoadSettings
();
void
LoadSettings
();
void
SaveSettings
();
void
SaveSettings
();
/** Function OnModify()
* Must be called after a schematic change
* in order to set the "modify" flag of the current screen
*/
void
OnModify
(
)
{
GetScreen
()
->
SetModify
();
}
LIB_COMPONENT
*
GetComponent
(
void
)
{
return
m_component
;
}
LIB_COMPONENT
*
GetComponent
(
void
)
{
return
m_component
;
}
CMP_LIBRARY
*
GetLibrary
(
void
)
{
return
m_library
;
}
CMP_LIBRARY
*
GetLibrary
(
void
)
{
return
m_library
;
}
...
...
eeschema/libfield.cpp
View file @
126c384d
...
@@ -120,7 +120,7 @@ void WinEDA_LibeditFrame::PlaceField( wxDC* DC, LIB_FIELD* Field )
...
@@ -120,7 +120,7 @@ void WinEDA_LibeditFrame::PlaceField( wxDC* DC, LIB_FIELD* Field )
&
fieldText
,
DefaultTransformMatrix
);
&
fieldText
,
DefaultTransformMatrix
);
DrawPanel
->
CursorOn
(
DC
);
DrawPanel
->
CursorOn
(
DC
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
m_drawItem
=
NULL
;
m_drawItem
=
NULL
;
...
@@ -217,7 +217,7 @@ not conflict with any library entries." ),
...
@@ -217,7 +217,7 @@ not conflict with any library entries." ),
Field
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
-
1
,
drawMode
,
&
fieldText
,
Field
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
-
1
,
drawMode
,
&
fieldText
,
DefaultTransformMatrix
);
DefaultTransformMatrix
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
UpdateAliasSelectList
();
UpdateAliasSelectList
();
}
}
...
@@ -234,7 +234,7 @@ void WinEDA_LibeditFrame::RotateField( wxDC* DC, LIB_FIELD* Field )
...
@@ -234,7 +234,7 @@ void WinEDA_LibeditFrame::RotateField( wxDC* DC, LIB_FIELD* Field )
if
(
Field
==
NULL
)
if
(
Field
==
NULL
)
return
;
return
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
CursorOff
(
DC
);
DrawPanel
->
CursorOff
(
DC
);
GRSetDrawMode
(
DC
,
g_XorMode
);
GRSetDrawMode
(
DC
,
g_XorMode
);
...
...
eeschema/onleftclick.cpp
View file @
126c384d
...
@@ -149,7 +149,7 @@ void WinEDA_SchematicFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
...
@@ -149,7 +149,7 @@ void WinEDA_SchematicFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
case
ID_SCHEMATIC_DELETE_ITEM_BUTT
:
case
ID_SCHEMATIC_DELETE_ITEM_BUTT
:
LocateAndDeleteItem
(
this
,
DC
);
LocateAndDeleteItem
(
this
,
DC
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
GetScreen
()
->
SetCurItem
(
NULL
);
GetScreen
()
->
SetCurItem
(
NULL
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
NULL
);
TestDanglingEnds
(
GetScreen
()
->
EEDrawList
,
NULL
);
DrawPanel
->
Refresh
(
TRUE
);
DrawPanel
->
Refresh
(
TRUE
);
...
...
eeschema/pinedit.cpp
View file @
126c384d
...
@@ -62,7 +62,7 @@ void WinEDA_LibeditFrame::OnRotatePin( wxCommandEvent& event ){
...
@@ -62,7 +62,7 @@ void WinEDA_LibeditFrame::OnRotatePin( wxCommandEvent& event ){
// Set the new orientation
// Set the new orientation
pin
->
SetOrientation
(
pin
->
GetOrientationCode
(
orientationIndex
));
pin
->
SetOrientation
(
pin
->
GetOrientationCode
(
orientationIndex
));
GetScreen
()
->
SetModify
(
);
OnModify
(
);
pin
->
DisplayInfo
(
this
);
pin
->
DisplayInfo
(
this
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
...
@@ -158,7 +158,7 @@ void WinEDA_LibeditFrame::OnEditPin( wxCommandEvent& event )
...
@@ -158,7 +158,7 @@ void WinEDA_LibeditFrame::OnEditPin( wxCommandEvent& event )
if
(
!
pin
->
IsNew
()
)
if
(
!
pin
->
IsNew
()
)
SaveCopyInUndoList
(
pin
->
GetParent
()
);
SaveCopyInUndoList
(
pin
->
GetParent
()
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
pin
->
DisplayInfo
(
this
);
pin
->
DisplayInfo
(
this
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
}
}
...
@@ -244,7 +244,7 @@ another pin. Continue?" ) );
...
@@ -244,7 +244,7 @@ another pin. Continue?" ) );
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
CurrentPin
->
m_Pos
=
newpos
;
CurrentPin
->
m_Pos
=
newpos
;
if
(
CurrentPin
->
IsNew
()
)
if
(
CurrentPin
->
IsNew
()
)
...
@@ -394,7 +394,7 @@ void WinEDA_LibeditFrame::DeletePin( wxDC* DC,
...
@@ -394,7 +394,7 @@ void WinEDA_LibeditFrame::DeletePin( wxDC* DC,
}
}
}
}
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
@@ -539,7 +539,7 @@ void WinEDA_LibeditFrame::GlobalSetPins( wxDC* DC, LIB_PIN* MasterPin, int id )
...
@@ -539,7 +539,7 @@ void WinEDA_LibeditFrame::GlobalSetPins( wxDC* DC, LIB_PIN* MasterPin, int id )
if
(
MasterPin
->
Type
()
!=
COMPONENT_PIN_DRAW_TYPE
)
if
(
MasterPin
->
Type
()
!=
COMPONENT_PIN_DRAW_TYPE
)
return
;
return
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
Pin
=
m_component
->
GetNextPin
();
Pin
=
m_component
->
GetNextPin
();
for
(
;
Pin
!=
NULL
;
Pin
=
m_component
->
GetNextPin
(
Pin
)
)
for
(
;
Pin
!=
NULL
;
Pin
=
m_component
->
GetNextPin
(
Pin
)
)
...
@@ -614,7 +614,7 @@ void WinEDA_LibeditFrame::RepeatPinItem( wxDC* DC, LIB_PIN* SourcePin )
...
@@ -614,7 +614,7 @@ void WinEDA_LibeditFrame::RepeatPinItem( wxDC* DC, LIB_PIN* SourcePin )
DrawPanel
->
CursorOn
(
DC
);
DrawPanel
->
CursorOn
(
DC
);
Pin
->
DisplayInfo
(
this
);
Pin
->
DisplayInfo
(
this
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
}
}
...
...
eeschema/schedit.cpp
View file @
126c384d
...
@@ -349,7 +349,7 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -349,7 +349,7 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
g_ItemToRepeat
=
NULL
;
g_ItemToRepeat
=
NULL
;
TestDanglingEnds
(
screen
->
EEDrawList
,
&
dc
);
TestDanglingEnds
(
screen
->
EEDrawList
,
&
dc
);
SetSheetNumberAndCount
();
SetSheetNumberAndCount
();
screen
->
Set
Modify
();
On
Modify
();
}
}
break
;
break
;
...
@@ -370,7 +370,7 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -370,7 +370,7 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_POPUP_SCH_EDIT_SHEET
:
case
ID_POPUP_SCH_EDIT_SHEET
:
if
(
EditSheet
(
(
SCH_SHEET
*
)
screen
->
GetCurItem
(),
&
dc
)
)
if
(
EditSheet
(
(
SCH_SHEET
*
)
screen
->
GetCurItem
(),
&
dc
)
)
screen
->
Set
Modify
();
On
Modify
();
break
;
break
;
case
ID_POPUP_IMPORT_GLABEL
:
case
ID_POPUP_IMPORT_GLABEL
:
...
...
eeschema/schematic_undo_redo.cpp
View file @
126c384d
...
@@ -438,7 +438,7 @@ void WinEDA_SchematicFrame::GetSchematicFromUndoList(wxCommandEvent& event)
...
@@ -438,7 +438,7 @@ void WinEDA_SchematicFrame::GetSchematicFromUndoList(wxCommandEvent& event)
GetScreen
()
->
PushCommandToRedoList
(
List
);
GetScreen
()
->
PushCommandToRedoList
(
List
);
// m_drawItem = NULL;
// m_drawItem = NULL;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
SetSheetNumberAndCount
();
SetSheetNumberAndCount
();
ReCreateHToolbar
();
ReCreateHToolbar
();
SetToolbars
();
SetToolbars
();
...
@@ -471,7 +471,7 @@ void WinEDA_SchematicFrame::GetSchematicFromRedoList(wxCommandEvent& event)
...
@@ -471,7 +471,7 @@ void WinEDA_SchematicFrame::GetSchematicFromRedoList(wxCommandEvent& event)
GetScreen
()
->
PushCommandToUndoList
(
List
);
GetScreen
()
->
PushCommandToUndoList
(
List
);
// m_drawItem = NULL;
// m_drawItem = NULL;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
SetSheetNumberAndCount
();
SetSheetNumberAndCount
();
ReCreateHToolbar
();
ReCreateHToolbar
();
SetToolbars
();
SetToolbars
();
...
...
eeschema/schframe.cpp
View file @
126c384d
...
@@ -449,6 +449,27 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet()
...
@@ -449,6 +449,27 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet()
return
filename
;
return
filename
;
}
}
/** 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_SchematicFrame
::
OnModify
(
)
{
GetScreen
()
->
SetModify
(
);
wxString
date
=
GenDate
();
EDA_ScreenList
s_list
;
// Set the date for each sheet
// There are 2 possibilities:
// >> change only the current sheet
// >> change all sheets.
// I believe all sheets in a project must have the same date
SCH_SCREEN
*
screen
=
s_list
.
GetFirst
();
for
(
;
screen
!=
NULL
;
screen
=
s_list
.
GetNext
()
)
screen
->
m_Date
=
date
;
}
/*****************************************************************************
/*****************************************************************************
* Enable or disable menu entry and toolbar buttons according to current
* Enable or disable menu entry and toolbar buttons according to current
...
...
eeschema/sheet.cpp
View file @
126c384d
...
@@ -260,7 +260,7 @@ void WinEDA_SchematicFrame::ReSizeSheet( SCH_SHEET* aSheet, wxDC* aDC )
...
@@ -260,7 +260,7 @@ void WinEDA_SchematicFrame::ReSizeSheet( SCH_SHEET* aSheet, wxDC* aDC )
return
;
return
;
}
}
GetScreen
()
->
SetModify
(
);
OnModify
(
);
aSheet
->
m_Flags
|=
IS_RESIZED
;
aSheet
->
m_Flags
|=
IS_RESIZED
;
s_OldPos
.
x
=
aSheet
->
m_Size
.
x
;
s_OldPos
.
x
=
aSheet
->
m_Size
.
x
;
...
...
eeschema/sheetlab.cpp
View file @
126c384d
...
@@ -294,7 +294,7 @@ SCH_SHEET_PIN* WinEDA_SchematicFrame::Create_PinSheet( SCH_SHEET* Sheet,
...
@@ -294,7 +294,7 @@ SCH_SHEET_PIN* WinEDA_SchematicFrame::Create_PinSheet( SCH_SHEET* Sheet,
DrawPanel
->
ForceCloseManageCurseur
=
ExitPinSheet
;
DrawPanel
->
ForceCloseManageCurseur
=
ExitPinSheet
;
DrawPanel
->
ManageCurseur
(
DrawPanel
,
DC
,
TRUE
);
DrawPanel
->
ManageCurseur
(
DrawPanel
,
DC
,
TRUE
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
return
NewSheetLabel
;
return
NewSheetLabel
;
}
}
...
@@ -340,7 +340,7 @@ SCH_SHEET_PIN* WinEDA_SchematicFrame::Import_PinSheet( SCH_SHEET* Sheet,
...
@@ -340,7 +340,7 @@ SCH_SHEET_PIN* WinEDA_SchematicFrame::Import_PinSheet( SCH_SHEET* Sheet,
return
NULL
;
return
NULL
;
}
}
GetScreen
()
->
SetModify
(
);
OnModify
(
);
NewSheetLabel
=
new
SCH_SHEET_PIN
(
Sheet
,
wxPoint
(
0
,
0
),
HLabel
->
m_Text
);
NewSheetLabel
=
new
SCH_SHEET_PIN
(
Sheet
,
wxPoint
(
0
,
0
),
HLabel
->
m_Text
);
NewSheetLabel
->
m_Flags
=
IS_NEW
;
NewSheetLabel
->
m_Flags
=
IS_NEW
;
...
...
eeschema/symbdraw.cpp
View file @
126c384d
...
@@ -116,7 +116,7 @@ void WinEDA_LibeditFrame::EditGraphicSymbol( wxDC* DC, LIB_DRAW_ITEM* DrawItem )
...
@@ -116,7 +116,7 @@ void WinEDA_LibeditFrame::EditGraphicSymbol( wxDC* DC, LIB_DRAW_ITEM* DrawItem )
if
(
component
)
if
(
component
)
component
->
GetDrawItemList
().
sort
();
component
->
GetDrawItemList
().
sort
();
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawItem
->
DisplayInfo
(
this
);
DrawItem
->
DisplayInfo
(
this
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
...
@@ -915,7 +915,7 @@ void WinEDA_LibeditFrame::EndDrawGraphicItem( wxDC* DC )
...
@@ -915,7 +915,7 @@ void WinEDA_LibeditFrame::EndDrawGraphicItem( wxDC* DC )
m_drawItem
->
m_Flags
=
0
;
m_drawItem
->
m_Flags
=
0
;
m_drawItem
=
NULL
;
m_drawItem
=
NULL
;
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
DrawPanel
->
ForceCloseManageCurseur
=
NULL
;
...
...
eeschema/symbedit.cpp
View file @
126c384d
...
@@ -106,7 +106,7 @@ void WinEDA_LibeditFrame::LoadOneSymbol( void )
...
@@ -106,7 +106,7 @@ void WinEDA_LibeditFrame::LoadOneSymbol( void )
m_component
->
RemoveDuplicateDrawItems
();
m_component
->
RemoveDuplicateDrawItems
();
m_component
->
ClearSelectedItems
();
m_component
->
ClearSelectedItems
();
GetScreen
()
->
SetModify
(
);
OnModify
(
);
DrawPanel
->
Refresh
();
DrawPanel
->
Refresh
();
delete
Lib
;
delete
Lib
;
...
@@ -229,7 +229,7 @@ void WinEDA_LibeditFrame::PlaceAncre()
...
@@ -229,7 +229,7 @@ void WinEDA_LibeditFrame::PlaceAncre()
wxPoint
offset
(
-
GetScreen
()
->
m_Curseur
.
x
,
GetScreen
()
->
m_Curseur
.
y
);
wxPoint
offset
(
-
GetScreen
()
->
m_Curseur
.
x
,
GetScreen
()
->
m_Curseur
.
y
);
GetScreen
()
->
SetModify
(
);
OnModify
(
);
m_component
->
SetOffset
(
offset
);
m_component
->
SetOffset
(
offset
);
...
...
include/wxEeschemaStruct.h
View file @
126c384d
...
@@ -120,6 +120,12 @@ public:
...
@@ -120,6 +120,12 @@ public:
m_CurrentField
=
aCurrentField
;
m_CurrentField
=
aCurrentField
;
}
}
/** 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
OnModify
(
);
SCH_SHEET_PATH
*
GetSheet
();
SCH_SHEET_PATH
*
GetSheet
();
...
...
version.txt
View file @
126c384d
release version:
release version:
2010 feb 17
2010 feb 17
files (.zip,.tgz):
files (.zip,.tgz):
kicad-2010-02-17-RC3
kicad-2010-02-17-RC3
a
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