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
f64b2827
Commit
f64b2827
authored
Jan 15, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX: .mdc is incomplete after 'archive footprint'
parent
94cf5b0d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
545 additions
and
524 deletions
+545
-524
wxPcbStruct.h
include/wxPcbStruct.h
+437
-423
librairi.cpp
pcbnew/librairi.cpp
+95
-88
modedit.cpp
pcbnew/modedit.cpp
+13
-13
No files found.
include/wxPcbStruct.h
View file @
f64b2827
This diff is collapsed.
Click to expand it.
pcbnew/librairi.cpp
View file @
f64b2827
This diff is collapsed.
Click to expand it.
pcbnew/modedit.cpp
View file @
f64b2827
...
...
@@ -192,7 +192,7 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
switch
(
id
)
// Traitement des commandes
{
case
ID_EXIT
:
Close
(
TRUE
);
Close
(
true
);
break
;
case
ID_LIBEDIT_SELECT_CURRENT_LIB
:
...
...
@@ -209,7 +209,7 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_MODEDIT_NEW_MODULE
:
{
Clear_Pcb
(
TRUE
);
Clear_Pcb
(
true
);
GetScreen
()
->
ClearUndoRedoList
();
SetCurItem
(
NULL
);
GetScreen
()
->
m_Curseur
=
wxPoint
(
0
,
0
);
...
...
@@ -220,7 +220,7 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
module
->
SetPosition
(
wxPoint
(
0
,
0
)
);
if
(
GetBoard
()
->
m_Modules
)
GetBoard
()
->
m_Modules
->
m_Flags
=
0
;
Zoom_Automatique
(
TRUE
);
Zoom_Automatique
(
true
);
}
}
break
;
...
...
@@ -229,7 +229,7 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
{
wxString
Line
;
Line
=
MakeFileName
(
g_RealLibDirBuffer
,
m_CurrentLib
.
GetData
(),
LibExtBuffer
);
Save_
1_Module
(
Line
,
GetBoard
()
->
m_Modules
,
TRUE
,
TRUE
);
Save_
Module_In_Library
(
Line
,
GetBoard
()
->
m_Modules
,
true
,
true
,
true
);
GetScreen
()
->
ClrModify
();
}
break
;
...
...
@@ -315,13 +315,13 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_LIBEDIT_IMPORT_PART
:
GetScreen
()
->
ClearUndoRedoList
();
SetCurItem
(
NULL
);
Clear_Pcb
(
TRUE
);
Clear_Pcb
(
true
);
GetScreen
()
->
m_Curseur
=
wxPoint
(
0
,
0
);
Import_Module
(
&
dc
);
if
(
GetBoard
()
->
m_Modules
)
GetBoard
()
->
m_Modules
->
m_Flags
=
0
;
GetScreen
()
->
ClrModify
();
Zoom_Automatique
(
TRUE
);
Zoom_Automatique
(
true
);
if
(
m_Draw3DFrame
)
m_Draw3DFrame
->
NewDisplay
();
break
;
...
...
@@ -333,7 +333,7 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_LIBEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART
:
if
(
GetBoard
()
->
m_Modules
)
Export_Module
(
GetBoard
()
->
m_Modules
,
TRUE
);
Export_Module
(
GetBoard
()
->
m_Modules
,
true
);
break
;
case
ID_MODEDIT_SHEET_SET
:
...
...
@@ -342,7 +342,7 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_MODEDIT_LOAD_MODULE
:
GetScreen
()
->
ClearUndoRedoList
();
SetCurItem
(
NULL
);
Clear_Pcb
(
TRUE
);
Clear_Pcb
(
true
);
GetScreen
()
->
m_Curseur
=
wxPoint
(
0
,
0
);
Load_Module_From_Library
(
m_CurrentLib
,
&
dc
);
if
(
GetBoard
()
->
m_Modules
)
...
...
@@ -365,7 +365,7 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
}
}
GetScreen
()
->
ClrModify
();
Zoom_Automatique
(
TRUE
);
Zoom_Automatique
(
true
);
if
(
m_Draw3DFrame
)
m_Draw3DFrame
->
NewDisplay
();
break
;
...
...
@@ -425,12 +425,12 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_POPUP_PCB_ROTATE_MODULE_COUNTERCLOCKWISE
:
DrawPanel
->
MouseToCursorSchema
();
Rotate_Module
(
&
dc
,
(
MODULE
*
)
GetScreen
()
->
GetCurItem
(),
900
,
TRUE
);
Rotate_Module
(
&
dc
,
(
MODULE
*
)
GetScreen
()
->
GetCurItem
(),
900
,
true
);
break
;
case
ID_POPUP_PCB_ROTATE_MODULE_CLOCKWISE
:
DrawPanel
->
MouseToCursorSchema
();
Rotate_Module
(
&
dc
,
(
MODULE
*
)
GetScreen
()
->
GetCurItem
(),
-
900
,
TRUE
);
Rotate_Module
(
&
dc
,
(
MODULE
*
)
GetScreen
()
->
GetCurItem
(),
-
900
,
true
);
break
;
case
ID_POPUP_PCB_EDIT_MODULE
:
...
...
@@ -587,12 +587,12 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_MODEDIT_UNDO
:
GetComponentFromUndoList
();
DrawPanel
->
Refresh
(
TRUE
);
DrawPanel
->
Refresh
(
true
);
break
;
case
ID_MODEDIT_REDO
:
GetComponentFromRedoList
();
DrawPanel
->
Refresh
(
TRUE
);
DrawPanel
->
Refresh
(
true
);
break
;
case
ID_POPUP_PLACE_BLOCK
:
...
...
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