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
37ad67df
Commit
37ad67df
authored
Nov 11, 2010
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EESchema file name and location house keeping.
parent
32394e05
Changes
84
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
84 changed files
with
451 additions
and
435 deletions
+451
-435
CHANGELOG.txt
CHANGELOG.txt
+14
-0
CMakeLists.txt
eeschema/CMakeLists.txt
+15
-15
annotate.cpp
eeschema/annotate.cpp
+2
-2
backanno.cpp
eeschema/backanno.cpp
+2
-2
block.cpp
eeschema/block.cpp
+5
-5
build_BOM.cpp
eeschema/build_BOM.cpp
+2
-2
bus-wire-junction.cpp
eeschema/bus-wire-junction.cpp
+4
-4
busentry.cpp
eeschema/busentry.cpp
+1
-1
class_netlist_object.cpp
eeschema/class_netlist_object.cpp
+1
-1
class_netlist_object.h
eeschema/class_netlist_object.h
+1
-1
cleanup.cpp
eeschema/cleanup.cpp
+1
-1
controle.cpp
eeschema/controle.cpp
+4
-4
cross-probing.cpp
eeschema/cross-probing.cpp
+1
-1
dangling_ends.cpp
eeschema/dangling_ends.cpp
+1
-1
delete.cpp
eeschema/delete.cpp
+4
-4
delsheet.cpp
eeschema/delsheet.cpp
+1
-1
dialog_SVG_print.cpp
eeschema/dialog_SVG_print.cpp
+1
-1
dialog_edit_component_in_schematic.cpp
eeschema/dialog_edit_component_in_schematic.cpp
+1
-1
dialog_edit_component_in_schematic.h
eeschema/dialog_edit_component_in_schematic.h
+1
-1
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
dialog_erc_listbox.h
eeschema/dialog_erc_listbox.h
+1
-2
annotate_dialog.cpp
eeschema/dialogs/annotate_dialog.cpp
+4
-4
annotate_dialog.h
eeschema/dialogs/annotate_dialog.h
+0
-0
dialog_annotate_base.cpp
eeschema/dialogs/dialog_annotate_base.cpp
+0
-0
dialog_annotate_base.fbp
eeschema/dialogs/dialog_annotate_base.fbp
+0
-0
dialog_annotate_base.h
eeschema/dialogs/dialog_annotate_base.h
+0
-0
dialog_erc.cpp
eeschema/dialogs/dialog_erc.cpp
+176
-7
dialog_erc.h
eeschema/dialogs/dialog_erc.h
+2
-2
dialog_erc_base.cpp
eeschema/dialogs/dialog_erc_base.cpp
+0
-0
dialog_erc_base.fbp
eeschema/dialogs/dialog_erc_base.fbp
+0
-0
dialog_erc_base.h
eeschema/dialogs/dialog_erc_base.h
+0
-0
dialog_plot_schematic_DXF.cpp
eeschema/dialogs/dialog_plot_schematic_DXF.cpp
+1
-1
dialog_plot_schematic_HPGL.cpp
eeschema/dialogs/dialog_plot_schematic_HPGL.cpp
+1
-1
dialog_plot_schematic_PS.cpp
eeschema/dialogs/dialog_plot_schematic_PS.cpp
+1
-1
dialog_print_using_printer.cpp
eeschema/dialogs/dialog_print_using_printer.cpp
+5
-45
dialog_print_using_printer.h
eeschema/dialogs/dialog_print_using_printer.h
+32
-0
dialog_print_using_printer_base.cpp
eeschema/dialogs/dialog_print_using_printer_base.cpp
+0
-0
dialog_print_using_printer_base.fbp
eeschema/dialogs/dialog_print_using_printer_base.fbp
+0
-0
dialog_print_using_printer_base.h
eeschema/dialogs/dialog_print_using_printer_base.h
+0
-0
edit_component_in_schematic.cpp
eeschema/edit_component_in_schematic.cpp
+1
-1
edit_label.cpp
eeschema/edit_label.cpp
+1
-1
eeredraw.cpp
eeschema/eeredraw.cpp
+4
-4
eeschema_config.cpp
eeschema/eeschema_config.cpp
+1
-1
erc.cpp
eeschema/erc.cpp
+18
-217
erc.h
eeschema/erc.h
+24
-0
events_called_functions_for_edit.cpp
eeschema/events_called_functions_for_edit.cpp
+2
-2
files-io.cpp
eeschema/files-io.cpp
+1
-1
find.cpp
eeschema/find.cpp
+4
-4
getpart.cpp
eeschema/getpart.cpp
+1
-1
hierarch.cpp
eeschema/hierarch.cpp
+2
-2
hotkeys.cpp
eeschema/hotkeys.cpp
+3
-3
libarch.cpp
eeschema/libarch.cpp
+1
-1
load_one_schematic_file.cpp
eeschema/load_one_schematic_file.cpp
+5
-5
locate.cpp
eeschema/locate.cpp
+4
-4
netform.cpp
eeschema/netform.cpp
+3
-3
netlist.cpp
eeschema/netlist.cpp
+4
-4
netlist_control.cpp
eeschema/netlist_control.cpp
+1
-1
onleftclick.cpp
eeschema/onleftclick.cpp
+5
-5
onrightclick.cpp
eeschema/onrightclick.cpp
+6
-6
operations_on_items_lists.cpp
eeschema/operations_on_items_lists.cpp
+4
-4
plot.cpp
eeschema/plot.cpp
+4
-4
sch_component.cpp
eeschema/sch_component.cpp
+6
-6
sch_component.h
eeschema/sch_component.h
+1
-1
sch_field.cpp
eeschema/sch_field.cpp
+5
-5
sch_field.h
eeschema/sch_field.h
+0
-0
sch_items.cpp
eeschema/sch_items.cpp
+1
-1
sch_items.h
eeschema/sch_items.h
+0
-0
sch_marker.cpp
eeschema/sch_marker.cpp
+1
-1
sch_marker.h
eeschema/sch_marker.h
+0
-0
sch_screen.cpp
eeschema/sch_screen.cpp
+2
-2
sch_sheet.cpp
eeschema/sch_sheet.cpp
+5
-5
sch_sheet.h
eeschema/sch_sheet.h
+1
-1
sch_sheet_path.cpp
eeschema/sch_sheet_path.cpp
+6
-6
sch_sheet_path.h
eeschema/sch_sheet_path.h
+0
-0
sch_sheet_pin.cpp
eeschema/sch_sheet_pin.cpp
+3
-4
sch_text.cpp
eeschema/sch_text.cpp
+1
-1
sch_text.h
eeschema/sch_text.h
+0
-0
schedit.cpp
eeschema/schedit.cpp
+4
-4
schematic_undo_redo.cpp
eeschema/schematic_undo_redo.cpp
+4
-4
schframe.cpp
eeschema/schframe.cpp
+23
-4
sheet.cpp
eeschema/sheet.cpp
+1
-1
sheetlab.cpp
eeschema/sheetlab.cpp
+1
-1
template_fieldnames.cpp
eeschema/template_fieldnames.cpp
+0
-1
No files found.
CHANGELOG.txt
View file @
37ad67df
...
...
@@ -4,6 +4,20 @@ KiCad ChangeLog 2010
Please add newer entries at the top, list the date and your name with
email address.
2010-nov-11 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
++EESchema
* Make schematic object file naming consistent.
* Move annotate dialog to dialogs subdirectory and set the "Annotation"
button as the default.
* Move ERC dialog to dialogs subdirectory and set the "Test Erc" button
as the default.
* Move the print dialog to dialogs subdirectory and set the "Print" button
as the default.
* Create print dialog header and move the OnPrint() method into
schframe.cpp.
2010-nov-10 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
++EESchema
...
...
eeschema/CMakeLists.txt
View file @
37ad67df
...
...
@@ -8,26 +8,16 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
set
(
EESCHEMA_SRCS
annotate.cpp
annotate_dialog.cpp
backanno.cpp
block.cpp
block_libedit.cpp
build_BOM.cpp
busentry.cpp
bus-wire-junction.cpp
class_drawsheet.cpp
class_drawsheetpath.cpp
class_drc_erc_item.cpp
class_hierarchical_PIN_sheet.cpp
class_libentry.cpp
class_library.cpp
class_marker_sch.cpp
class_netlist_object.cpp
class_sch_cmp_field.cpp
class_sch_component.cpp
class_schematic_items.cpp
class_sch_screen.cpp
class_text-label.cpp
cleanup.cpp
cmp_library_keywords.cpp
cmp_library_lexer.cpp
...
...
@@ -43,7 +33,8 @@ set(EESCHEMA_SRCS
dialogs/dialog_plot_schematic_HPGL_base.cpp
dialogs/dialog_plot_schematic_PS.cpp
dialogs/dialog_plot_schematic_PS_base.cpp
dialog_annotate_base.cpp
dialogs/annotate_dialog.cpp
dialogs/dialog_annotate_base.cpp
dialog_bodygraphictext_properties_base.cpp
dialog_build_BOM.cpp
dialog_build_BOM_base.cpp
...
...
@@ -59,8 +50,8 @@ set(EESCHEMA_SRCS
dialog_eeschema_config_fbp.cpp
dialog_eeschema_options_base.cpp
dialog_eeschema_options.cpp
dialog_erc.cpp
dialog_erc_base.cpp
dialog
s/dialog
_erc.cpp
dialog
s/dialog
_erc_base.cpp
dialog_libedit_dimensions.cpp
dialog_libedit_dimensions_base.cpp
dialog_lib_edit_draw_item.cpp
...
...
@@ -69,8 +60,8 @@ set(EESCHEMA_SRCS
dialog_lib_edit_pin_base.cpp
dialog_lib_new_component.cpp
dialog_lib_new_component_base.cpp
dialog_print_using_printer_base.cpp
dialog_print_using_printer.cpp
dialog
s/dialog
_print_using_printer_base.cpp
dialog
s/dialog
_print_using_printer.cpp
dialog_sch_sheet_props.cpp
dialog_sch_sheet_props_base.cpp
dialogs/dialog_schematic_find.cpp
...
...
@@ -122,6 +113,15 @@ set(EESCHEMA_SRCS
operations_on_items_lists.cpp
pinedit.cpp
plot.cpp
sch_component.cpp
sch_field.cpp
sch_items.cpp
sch_marker.cpp
sch_screen.cpp
sch_sheet.cpp
sch_sheet_path.cpp
sch_sheet_pin.cpp
sch_text.cpp
schedit.cpp
schematic_undo_redo.cpp
schframe.cpp
...
...
eeschema/annotate.cpp
View file @
37ad67df
...
...
@@ -10,12 +10,12 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "wxstruct.h"
#include "class_sch_screen.h"
#include "wxEeschemaStruct.h"
#include "class_library.h"
#include "protos.h"
#include "class_sch_screen.h"
#include "class_sch_component.h"
#include "sch_component.h"
#include "netlist.h"
#include "lib_pin.h"
...
...
eeschema/backanno.cpp
View file @
37ad67df
...
...
@@ -13,8 +13,8 @@
#include "build_version.h"
#include "general.h"
#include "
class_drawsheet
path.h"
#include "
class_
sch_component.h"
#include "
sch_sheet_
path.h"
#include "sch_component.h"
/** function FillFootprintFieldForAllInstancesofComponent
...
...
eeschema/block.cpp
View file @
37ad67df
...
...
@@ -13,14 +13,14 @@
#include "class_sch_screen.h"
#include "general.h"
#include "class_marker_sch.h"
#include "class_library.h"
#include "lib_pin.h"
#include "protos.h"
#include "class_schematic_items.h"
#include "class_text-label.h"
#include "class_sch_component.h"
#include "class_drawsheet.h"
#include "sch_marker.h"
#include "sch_items.h"
#include "sch_text.h"
#include "sch_component.h"
#include "sch_sheet.h"
#include <boost/foreach.hpp>
...
...
eeschema/build_BOM.cpp
View file @
37ad67df
...
...
@@ -21,9 +21,9 @@
#include "class_library.h"
#include "netlist.h"
#include "protos.h"
#include "
class_draw
sheet.h"
#include "
sch_
sheet.h"
#include "template_fieldnames.h"
#include "
class_
sch_component.h"
#include "sch_component.h"
#include "build_version.h"
...
...
eeschema/bus-wire-junction.cpp
View file @
37ad67df
...
...
@@ -14,10 +14,10 @@
#include "lib_pin.h"
#include "general.h"
#include "protos.h"
#include "
class_schematic
_items.h"
#include "
class_text-label
.h"
#include "
class_
sch_component.h"
#include "
class_draw
sheet.h"
#include "
sch
_items.h"
#include "
sch_text
.h"
#include "sch_component.h"
#include "
sch_
sheet.h"
/* Routines Locales */
...
...
eeschema/busentry.cpp
View file @
37ad67df
...
...
@@ -13,7 +13,7 @@
#include "general.h"
#include "protos.h"
#include "
class_schematic
_items.h"
#include "
sch
_items.h"
static
int
s_LastShape
=
'\\'
;
...
...
eeschema/class_netlist_object.cpp
View file @
37ad67df
...
...
@@ -9,7 +9,7 @@
#include "wxEeschemaStruct.h"
#include "general.h"
#include "
class_
sch_component.h"
#include "sch_component.h"
#include "class_netlist_object.h"
#if defined(DEBUG)
...
...
eeschema/class_netlist_object.h
View file @
37ad67df
...
...
@@ -6,7 +6,7 @@
#ifndef _CLASS_NETLIST_OBJECT_H_
#define _CLASS_NETLIST_OBJECT_H_
#include "
class_drawsheet
path.h"
#include "
sch_sheet_
path.h"
#include "lib_pin.h" // LIB_PIN::ReturnPinStringNum( m_PinNum )
...
...
eeschema/cleanup.cpp
View file @
37ad67df
...
...
@@ -12,7 +12,7 @@
#include "general.h"
#include "protos.h"
#include "netlist.h"
#include "
class_schematic
_items.h"
#include "
sch
_items.h"
/* Routine to start/end segment (BUS or wires) on junctions.
...
...
eeschema/controle.cpp
View file @
37ad67df
...
...
@@ -16,10 +16,10 @@
#include "viewlib_frame.h"
#include "lib_draw_item.h"
#include "lib_pin.h"
#include "
class_draw
sheet.h"
#include "
class_drawsheet
path.h"
#include "
class_marker_sch
.h"
#include "
class_
sch_component.h"
#include "
sch_
sheet.h"
#include "
sch_sheet_
path.h"
#include "
sch_marker
.h"
#include "sch_component.h"
/** Function SchematicGeneralLocateAndDisplay
...
...
eeschema/cross-probing.cpp
View file @
37ad67df
...
...
@@ -14,7 +14,7 @@
#include "protos.h"
#include "lib_draw_item.h"
#include "lib_pin.h"
#include "
class_
sch_component.h"
#include "sch_component.h"
/***************************************************************/
...
...
eeschema/dangling_ends.cpp
View file @
37ad67df
...
...
@@ -11,7 +11,7 @@
#include "protos.h"
#include "class_libentry.h"
#include "lib_pin.h"
#include "
class_
sch_component.h"
#include "sch_component.h"
/* Returns true if the point P is on the segment S. */
...
...
eeschema/delete.cpp
View file @
37ad67df
...
...
@@ -10,10 +10,10 @@
#include "general.h"
#include "protos.h"
#include "
class_marker_sch
.h"
#include "
class_schematic
_items.h"
#include "
class_draw
sheet.h"
#include "
class_text-label
.h"
#include "
sch_marker
.h"
#include "
sch
_items.h"
#include "
sch_
sheet.h"
#include "
sch_text
.h"
// Imported function:
...
...
eeschema/delsheet.cpp
View file @
37ad67df
...
...
@@ -11,7 +11,7 @@
#include "general.h"
#include "protos.h"
#include "
class_draw
sheet.h"
#include "
sch_
sheet.h"
/**************************************************************************/
...
...
eeschema/dialog_SVG_print.cpp
View file @
37ad67df
...
...
@@ -20,7 +20,7 @@
#include "general.h"
#include "libeditframe.h"
#include "
class_drawsheet
path.h"
#include "
sch_sheet_
path.h"
// Keys for configuration
...
...
eeschema/dialog_edit_component_in_schematic.cpp
View file @
37ad67df
...
...
@@ -14,7 +14,7 @@
#include "general.h"
#include "protos.h"
#include "class_library.h"
#include "
class_
sch_component.h"
#include "sch_component.h"
#include "dialog_edit_component_in_schematic.h"
...
...
eeschema/dialog_edit_component_in_schematic.h
View file @
37ad67df
...
...
@@ -3,7 +3,7 @@
#define __dialog_edit_component_in_schematic__
#include "
class_sch_cmp
_field.h"
#include "
sch
_field.h"
#include "template_fieldnames.h"
#include "dialog_edit_component_in_schematic_fbp.h"
...
...
eeschema/dialog_edit_label.cpp
View file @
37ad67df
...
...
@@ -15,7 +15,7 @@
#include "general.h"
#include "drawtxt.h"
#include "confirm.h"
#include "
class_text-label
.h"
#include "
sch_text
.h"
#include "dialog_edit_label.h"
...
...
eeschema/dialog_edit_libentry_fields_in_lib.cpp
View file @
37ad67df
...
...
@@ -15,7 +15,7 @@
#include "protos.h"
#include "libeditframe.h"
#include "class_library.h"
#include "
class_sch_cmp
_field.h"
#include "
sch
_field.h"
#include "template_fieldnames.h"
#include "dialog_edit_libentry_fields_in_lib_base.h"
...
...
eeschema/dialog_erc_listbox.h
View file @
37ad67df
...
...
@@ -12,8 +12,7 @@
#include "fctsys.h"
#include "class_drawpanel.h"
//#include "general.h"
#include "class_marker_sch.h"
#include "sch_marker.h"
/**
* Class ERC_HTML_LISTBOX
...
...
eeschema/annotate_dialog.cpp
→
eeschema/
dialogs/
annotate_dialog.cpp
View file @
37ad67df
...
...
@@ -69,6 +69,8 @@ void DIALOG_ANNOTATE::InitValues()
annotate_right_down_bitmap
->
SetBitmap
(
bitmap1
);
wxBitmap
bitmap2
(
add_text_xpm
);
annotate_by_value_bitmap
->
SetBitmap
(
bitmap2
);
m_btnApply
->
SetDefault
();
}
...
...
@@ -92,12 +94,10 @@ void DIALOG_ANNOTATE::OnApplyClick( wxCommandEvent& event )
message
+=
_
(
"on the current sheet?"
);
message
+=
_
(
"
\n\n
This operation will change the current annotation and cannot be undone."
);
response
=
wxMessageBox
(
message
,
wxT
(
""
),
wxICON_EXCLAMATION
|
wxOK
|
wxCANCEL
);
response
=
wxMessageBox
(
message
,
wxT
(
""
),
wxICON_EXCLAMATION
|
wxOK
|
wxCANCEL
);
if
(
response
==
wxCANCEL
)
return
;
AnnotateComponents
(
m_Parent
,
GetLevel
(),
GetSortOrder
(),
GetResetItems
()
,
true
);
AnnotateComponents
(
m_Parent
,
GetLevel
(),
GetSortOrder
(),
GetResetItems
()
,
true
);
m_btnClear
->
Enable
();
}
...
...
eeschema/annotate_dialog.h
→
eeschema/
dialogs/
annotate_dialog.h
View file @
37ad67df
File moved
eeschema/dialog_annotate_base.cpp
→
eeschema/dialog
s/dialog
_annotate_base.cpp
View file @
37ad67df
File moved
eeschema/dialog_annotate_base.fbp
→
eeschema/dialog
s/dialog
_annotate_base.fbp
View file @
37ad67df
File moved
eeschema/dialog_annotate_base.h
→
eeschema/dialog
s/dialog
_annotate_base.h
View file @
37ad67df
File moved
eeschema/dialog_erc.cpp
→
eeschema/dialog
s/dialog
_erc.cpp
View file @
37ad67df
...
...
@@ -9,13 +9,17 @@
#include "fctsys.h"
#include "common.h"
#include "class_drawpanel.h"
#include "kicad_string.h"
#include "gestfich.h"
#include "bitmaps.h"
#include "appl_wxstruct.h"
#include "class_sch_screen.h"
#include "wxEeschemaStruct.h"
#include "general.h"
#include "netlist.h"
#include "class_marker_sch.h"
#include "sch_marker.h"
#include "sch_sheet.h"
#include "lib_pin.h"
#include "protos.h"
...
...
@@ -24,6 +28,9 @@
#include "erc.h"
bool
DIALOG_ERC
::
m_writeErcFile
=
false
;
BEGIN_EVENT_TABLE
(
DIALOG_ERC
,
DIALOG_ERC_BASE
)
EVT_COMMAND_RANGE
(
ID_MATRIX_0
,
ID_MATRIX_0
+
(
PIN_NMAX
*
PIN_NMAX
)
-
1
,
wxEVT_COMMAND_BUTTON_CLICKED
,
...
...
@@ -50,15 +57,13 @@ void DIALOG_ERC::Init()
for
(
int
jj
=
0
;
jj
<
PIN_NMAX
;
jj
++
)
m_ButtonList
[
ii
][
jj
]
=
NULL
;
m_WriteResultOpt
->
SetValue
(
WriteFichierERC
);
m_WriteResultOpt
->
SetValue
(
m_writeErcFile
);
wxString
num
;
num
.
Printf
(
wxT
(
"%d"
),
g_EESchemaVar
.
NbErrorErc
);
m_TotalErrCount
->
SetLabel
(
num
);
num
.
Printf
(
wxT
(
"%d"
),
g_EESchemaVar
.
NbErrorErc
-
g_EESchemaVar
.
NbWarningErc
);
num
.
Printf
(
wxT
(
"%d"
),
g_EESchemaVar
.
NbErrorErc
-
g_EESchemaVar
.
NbWarningErc
);
m_LastErrCount
->
SetLabel
(
num
);
num
.
Printf
(
wxT
(
"%d"
),
g_EESchemaVar
.
NbWarningErc
);
...
...
@@ -68,6 +73,9 @@ void DIALOG_ERC::Init()
// Init Panel Matrix
ReBuildMatrixPanel
();
// Set the run ERC button as the default button.
m_buttonERC
->
SetDefault
();
}
...
...
@@ -377,10 +385,171 @@ void DIALOG_ERC::ChangeErrorLevel( wxCommandEvent& event )
if
(
new_bitmap_xpm
)
{
delete
Butt
;
Butt
=
new
wxBitmapButton
(
m_PanelERCOptions
,
id
,
wxBitmap
(
new_bitmap_xpm
),
pos
);
Butt
=
new
wxBitmapButton
(
m_PanelERCOptions
,
id
,
wxBitmap
(
new_bitmap_xpm
),
pos
);
m_ButtonList
[
y
][
x
]
=
Butt
;
DiagErc
[
y
][
x
]
=
DiagErc
[
x
][
y
]
=
level
;
}
}
void
DIALOG_ERC
::
TestErc
(
wxArrayString
*
aMessagesList
)
{
wxFileName
fn
;
unsigned
NetItemRef
;
unsigned
OldItem
;
unsigned
StartNet
;
int
NetNbItems
,
MinConn
;
if
(
!
DiagErcTableInit
)
{
memcpy
(
DiagErc
,
DefaultDiagErc
,
sizeof
(
DefaultDiagErc
)
);
DiagErcTableInit
=
TRUE
;
}
m_writeErcFile
=
m_WriteResultOpt
->
GetValue
();
ReAnnotatePowerSymbolsOnly
();
if
(
m_Parent
->
CheckAnnotate
(
aMessagesList
,
false
)
)
{
if
(
aMessagesList
)
{
wxString
msg
=
_
(
"Annotation required!"
);
msg
+=
wxT
(
"
\n
"
);
aMessagesList
->
Add
(
msg
);
}
return
;
}
/* Erase all DRC markers */
DeleteAllMarkers
(
MARK_ERC
);
g_EESchemaVar
.
NbErrorErc
=
0
;
g_EESchemaVar
.
NbWarningErc
=
0
;
/* Cleanup the entire hierarchy */
SCH_SCREENS
ScreenList
;
for
(
SCH_SCREEN
*
Screen
=
ScreenList
.
GetFirst
();
Screen
!=
NULL
;
Screen
=
ScreenList
.
GetNext
()
)
{
bool
ModifyWires
;
ModifyWires
=
Screen
->
SchematicCleanUp
(
NULL
);
/* if wire list has changed, delete Undo Redo list to avoid
* pointers on deleted data problems */
if
(
ModifyWires
)
Screen
->
ClearUndoRedoList
();
}
/* Test duplicate sheet names
* inside a given sheet, one cannot have sheets with duplicate names (file
* names can be duplicated).
*/
int
errcnt
=
TestDuplicateSheetNames
(
true
);
g_EESchemaVar
.
NbErrorErc
+=
errcnt
;
m_Parent
->
BuildNetListBase
();
/* Reset the flag m_FlagOfConnection, that will be used next, in
* calculations */
for
(
unsigned
ii
=
0
;
ii
<
g_NetObjectslist
.
size
();
ii
++
)
g_NetObjectslist
[
ii
]
->
m_FlagOfConnection
=
UNCONNECTED
;
StartNet
=
OldItem
=
0
;
NetNbItems
=
0
;
MinConn
=
NOC
;
for
(
NetItemRef
=
0
;
NetItemRef
<
g_NetObjectslist
.
size
();
NetItemRef
++
)
{
if
(
g_NetObjectslist
[
OldItem
]
->
GetNet
()
!=
g_NetObjectslist
[
NetItemRef
]
->
GetNet
()
)
{
// New net found:
MinConn
=
NOC
;
NetNbItems
=
0
;
StartNet
=
NetItemRef
;
}
switch
(
g_NetObjectslist
[
NetItemRef
]
->
m_Type
)
{
case
NET_ITEM_UNSPECIFIED
:
case
NET_SEGMENT
:
case
NET_BUS
:
case
NET_JONCTION
:
case
NET_LABEL
:
case
NET_BUSLABELMEMBER
:
case
NET_PINLABEL
:
case
NET_GLOBLABEL
:
case
NET_GLOBBUSLABELMEMBER
:
// These items do not create erc problems
break
;
case
NET_HIERLABEL
:
case
NET_HIERBUSLABELMEMBER
:
case
NET_SHEETLABEL
:
case
NET_SHEETBUSLABELMEMBER
:
// ERC problems when pin sheets do not match hierarchical labels.
// Each pin sheet must match a hierarchical label
// Each hierarchical label must match a pin sheet
TestLabel
(
m_Parent
->
DrawPanel
,
NetItemRef
,
StartNet
);
break
;
case
NET_NOCONNECT
:
// ERC problems when a noconnect symbol is connected to more than
// one pin.
MinConn
=
NET_NC
;
if
(
NetNbItems
!=
0
)
Diagnose
(
m_Parent
->
DrawPanel
,
g_NetObjectslist
[
NetItemRef
],
NULL
,
MinConn
,
UNC
);
break
;
case
NET_PIN
:
// Look for ERC problems between pins:
TestOthersItems
(
m_Parent
->
DrawPanel
,
NetItemRef
,
StartNet
,
&
NetNbItems
,
&
MinConn
);
break
;
}
OldItem
=
NetItemRef
;
}
// Displays global results:
wxString
num
;
num
.
Printf
(
wxT
(
"%d"
),
g_EESchemaVar
.
NbErrorErc
);
m_TotalErrCount
->
SetLabel
(
num
);
num
.
Printf
(
wxT
(
"%d"
),
g_EESchemaVar
.
NbErrorErc
-
g_EESchemaVar
.
NbWarningErc
);
m_LastErrCount
->
SetLabel
(
num
);
num
.
Printf
(
wxT
(
"%d"
),
g_EESchemaVar
.
NbWarningErc
);
m_LastWarningCount
->
SetLabel
(
num
);
// Display diags:
DisplayERC_MarkersList
();
// Display new markers:
m_Parent
->
DrawPanel
->
Refresh
();
if
(
m_writeErcFile
)
{
fn
=
g_RootSheet
->
m_AssociatedScreen
->
m_FileName
;
fn
.
SetExt
(
wxT
(
"erc"
)
);
wxFileDialog
dlg
(
this
,
_
(
"ERC File"
),
fn
.
GetPath
(),
fn
.
GetFullName
(),
_
(
"Electronic rule check file (.erc)|*.erc"
),
wxFD_SAVE
|
wxFD_OVERWRITE_PROMPT
);
if
(
dlg
.
ShowModal
()
==
wxID_CANCEL
)
return
;
if
(
WriteDiagnosticERC
(
dlg
.
GetPath
()
)
)
{
Close
(
TRUE
);
ExecuteFile
(
this
,
wxGetApp
().
GetEditorName
(),
QuoteFullPath
(
fn
)
);
}
}
}
eeschema/dialog_erc.h
→
eeschema/dialog
s/dialog
_erc.h
View file @
37ad67df
...
...
@@ -14,7 +14,6 @@
#include "dialog_erc_base.h"
/* Variable locales */
extern
int
WriteFichierERC
;
extern
int
DiagErc
[
PIN_NMAX
][
PIN_NMAX
];
extern
bool
DiagErcTableInit
;
// go to TRUE after DiagErc init
extern
int
DefaultDiagErc
[
PIN_NMAX
][
PIN_NMAX
];
...
...
@@ -36,6 +35,7 @@ private:
WinEDA_SchematicFrame
*
m_Parent
;
wxBitmapButton
*
m_ButtonList
[
PIN_NMAX
][
PIN_NMAX
];
bool
m_Initialized
;
static
bool
m_writeErcFile
;
public
:
...
...
eeschema/dialog_erc_base.cpp
→
eeschema/dialog
s/dialog
_erc_base.cpp
View file @
37ad67df
File moved
eeschema/dialog_erc_base.fbp
→
eeschema/dialog
s/dialog
_erc_base.fbp
View file @
37ad67df
File moved
eeschema/dialog_erc_base.h
→
eeschema/dialog
s/dialog
_erc_base.h
View file @
37ad67df
File moved
eeschema/dialogs/dialog_plot_schematic_DXF.cpp
View file @
37ad67df
...
...
@@ -37,7 +37,7 @@
#include "general.h"
#include "protos.h"
#include "
class_drawsheet
path.h"
#include "
sch_sheet_
path.h"
#include "dialog_plot_schematic_DXF_base.h"
...
...
eeschema/dialogs/dialog_plot_schematic_HPGL.cpp
View file @
37ad67df
...
...
@@ -36,7 +36,7 @@
#include "general.h"
#include "protos.h"
#include "
class_drawsheet
path.h"
#include "
sch_sheet_
path.h"
#include "dialog_plot_schematic_HPGL_base.h"
...
...
eeschema/dialogs/dialog_plot_schematic_PS.cpp
View file @
37ad67df
...
...
@@ -36,7 +36,7 @@
#include "general.h"
#include "protos.h"
#include "
class_drawsheet
path.h"
#include "
sch_sheet_
path.h"
enum
PageFormatReq
{
...
...
eeschema/dialog_print_using_printer.cpp
→
eeschema/dialog
s/dialog
_print_using_printer.cpp
View file @
37ad67df
...
...
@@ -13,33 +13,10 @@
#include "general.h"
#include "eeschema_config.h"
#include "
class_draw
sheet.h"
#include "
class_drawsheet
path.h"
#include "
sch_
sheet.h"
#include "
sch_sheet_
path.h"
#include "dialog_print_using_printer_base.h"
/**
* Print schematic dialog.
*
* Class derived from DIALOG_PRINT_USING_PRINTER_base created by wxFormBuilder
*/
class
DIALOG_PRINT_USING_PRINTER
:
public
DIALOG_PRINT_USING_PRINTER_BASE
{
public
:
DIALOG_PRINT_USING_PRINTER
(
WinEDA_SchematicFrame
*
aParent
);
~
DIALOG_PRINT_USING_PRINTER
()
{};
WinEDA_SchematicFrame
*
GetParent
()
const
;
private
:
void
OnCloseWindow
(
wxCloseEvent
&
event
);
void
OnInitDialog
(
wxInitDialogEvent
&
event
);
void
OnPageSetup
(
wxCommandEvent
&
event
);
void
OnPrintPreview
(
wxCommandEvent
&
event
);
void
OnPrintButtonClick
(
wxCommandEvent
&
event
);
void
OnButtonCancelClick
(
wxCommandEvent
&
event
){
Close
();
}
};
#include "dialog_print_using_printer.h"
/**
...
...
@@ -110,25 +87,6 @@ BEGIN_EVENT_TABLE( SCH_PREVIEW_FRAME, wxPreviewFrame )
END_EVENT_TABLE
()
void
WinEDA_SchematicFrame
::
OnPrint
(
wxCommandEvent
&
event
)
{
wxFileName
fn
;
DIALOG_PRINT_USING_PRINTER
dlg
(
this
);
dlg
.
ShowModal
();
fn
=
g_RootSheet
->
m_AssociatedScreen
->
m_FileName
;
wxString
default_name
=
NAMELESS_PROJECT
;
default_name
+=
wxT
(
".sch"
);
if
(
fn
.
GetFullName
()
!=
default_name
)
{
fn
.
SetExt
(
ProjectFileExtension
);
wxGetApp
().
WriteProjectConfig
(
fn
.
GetFullPath
(),
GROUP
,
GetProjectFileParameters
()
);
}
}
DIALOG_PRINT_USING_PRINTER
::
DIALOG_PRINT_USING_PRINTER
(
WinEDA_SchematicFrame
*
aParent
)
:
DIALOG_PRINT_USING_PRINTER_BASE
(
aParent
)
{
...
...
@@ -164,6 +122,8 @@ void DIALOG_PRINT_USING_PRINTER::OnInitDialog( wxInitDialogEvent& event )
}
SetFocus
();
m_buttonPrint
->
SetDefault
();
}
...
...
eeschema/dialogs/dialog_print_using_printer.h
0 → 100644
View file @
37ad67df
#ifndef _DIALOG_PRINT_USING_PRINTER_H_
#define _DIALOG_PRINT_USING_PRINTER_H_
#include "dialog_print_using_printer_base.h"
/**
* Print schematic dialog.
*
* Class derived from DIALOG_PRINT_USING_PRINTER_base created by wxFormBuilder
*/
class
DIALOG_PRINT_USING_PRINTER
:
public
DIALOG_PRINT_USING_PRINTER_BASE
{
public
:
DIALOG_PRINT_USING_PRINTER
(
WinEDA_SchematicFrame
*
aParent
);
~
DIALOG_PRINT_USING_PRINTER
()
{};
WinEDA_SchematicFrame
*
GetParent
()
const
;
private
:
void
OnCloseWindow
(
wxCloseEvent
&
event
);
void
OnInitDialog
(
wxInitDialogEvent
&
event
);
void
OnPageSetup
(
wxCommandEvent
&
event
);
void
OnPrintPreview
(
wxCommandEvent
&
event
);
void
OnPrintButtonClick
(
wxCommandEvent
&
event
);
void
OnButtonCancelClick
(
wxCommandEvent
&
event
){
Close
();
}
};
#endif // _DIALOG_PRINT_USING_PRINTER_H_
eeschema/dialog_print_using_printer_base.cpp
→
eeschema/dialog
s/dialog
_print_using_printer_base.cpp
View file @
37ad67df
File moved
eeschema/dialog_print_using_printer_base.fbp
→
eeschema/dialog
s/dialog
_print_using_printer_base.fbp
View file @
37ad67df
File moved
eeschema/dialog_print_using_printer_base.h
→
eeschema/dialog
s/dialog
_print_using_printer_base.h
View file @
37ad67df
File moved
eeschema/edit_component_in_schematic.cpp
View file @
37ad67df
...
...
@@ -13,7 +13,7 @@
#include "general.h"
#include "protos.h"
#include "class_library.h"
#include "
class_
sch_component.h"
#include "sch_component.h"
static
void
AbortMoveCmpField
(
WinEDA_DrawPanel
*
Panel
,
wxDC
*
DC
);
...
...
eeschema/edit_label.cpp
View file @
37ad67df
...
...
@@ -15,7 +15,7 @@
#include "general.h"
#include "protos.h"
#include "
class_text-label
.h"
#include "
sch_text
.h"
static
void
ShowWhileMoving
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
bool
erase
);
...
...
eeschema/eeredraw.cpp
View file @
37ad67df
...
...
@@ -14,10 +14,10 @@
#include "general.h"
#include "protos.h"
#include "class_library.h"
#include "
class_draw
sheet.h"
#include "
class_drawsheet
path.h"
#include "
class_
sch_component.h"
#include "
class_schematic
_items.h"
#include "
sch_
sheet.h"
#include "
sch_sheet_
path.h"
#include "sch_component.h"
#include "
sch
_items.h"
#include "build_version.h"
...
...
eeschema/eeschema_config.cpp
View file @
37ad67df
...
...
@@ -18,7 +18,7 @@
#include "eeschema_config.h"
#include "worksheet.h"
#include "hotkeys.h"
#include "
class_draw
sheet.h"
#include "
sch_
sheet.h"
#include "dialog_eeschema_options.h"
#include "dialog_hotkeys_editor.h"
...
...
eeschema/erc.cpp
View file @
37ad67df
This diff is collapsed.
Click to expand it.
eeschema/erc.h
View file @
37ad67df
...
...
@@ -25,6 +25,10 @@
#ifndef _ERC_H
#define _ERC_H
class
WinEDA_DrawPanel
;
class
NETLIST_OBJECT
;
/* For ERC markers: error types (used in diags, and to set the color):
*/
enum
errortype
...
...
@@ -46,5 +50,25 @@ enum errortype
#define ERCE_HIERACHICAL_LABEL 6 // mismatch between hierarchical labels and pins sheets
#define ERCE_NOCONNECT_CONNECTED 7 // a no connect symbol is connected to more than 1 pin
/* Minimal connection table */
#define NPI 4 // Net with Pin isolated, this pin has type Not Connected and must be left N.C.
#define DRV 3 // Net driven by a signal (a pin output for instance)
#define NET_NC 2 // Net "connected" to a "NoConnect symbol"
#define NOD 1 // Net not driven ( Such as 2 or more connected inputs )
#define NOC 0 // initial state of a net: no connection
extern
bool
WriteDiagnosticERC
(
const
wxString
&
FullFileName
);
extern
void
Diagnose
(
WinEDA_DrawPanel
*
panel
,
NETLIST_OBJECT
*
NetItemRef
,
NETLIST_OBJECT
*
NetItemTst
,
int
MinConnexion
,
int
Diag
);
extern
void
TestOthersItems
(
WinEDA_DrawPanel
*
panel
,
unsigned
NetItemRef
,
unsigned
NetStart
,
int
*
NetNbItems
,
int
*
MinConnexion
);
extern
void
TestLabel
(
WinEDA_DrawPanel
*
panel
,
unsigned
NetItemRef
,
unsigned
StartNet
);
extern
int
TestDuplicateSheetNames
(
bool
aCreateMarker
);
#endif // _ERC_H
eeschema/events_called_functions_for_edit.cpp
View file @
37ad67df
...
...
@@ -13,8 +13,8 @@
#include "wxEeschemaStruct.h"
#include "protos.h"
#include "
class_
sch_component.h"
#include "
class_text-label
.h"
#include "sch_component.h"
#include "
sch_text
.h"
/** Event function WinEDA_SchematicFrame::OnCopySchematicItemRequest
...
...
eeschema/files-io.cpp
View file @
37ad67df
...
...
@@ -14,7 +14,7 @@
#include "eeschema_id.h"
#include "class_library.h"
#include "libeditframe.h"
#include "
class_draw
sheet.h"
#include "
sch_
sheet.h"
...
...
eeschema/find.cpp
View file @
37ad67df
...
...
@@ -18,13 +18,13 @@
#include "wxEeschemaStruct.h"
#include "general.h"
#include "class_marker_sch.h"
#include "protos.h"
#include "class_library.h"
#include "lib_pin.h"
#include "class_sch_component.h"
#include "class_drawsheet.h"
#include "class_drawsheetpath.h"
#include "sch_marker.h"
#include "sch_component.h"
#include "sch_sheet.h"
#include "sch_sheet_path.h"
#include "kicad_device_context.h"
...
...
eeschema/getpart.cpp
View file @
37ad67df
...
...
@@ -14,7 +14,7 @@
#include "general.h"
#include "protos.h"
#include "class_library.h"
#include "
class_
sch_component.h"
#include "sch_component.h"
#include "viewlib_frame.h"
#include "get_component_dialog.h"
...
...
eeschema/hierarch.cpp
View file @
37ad67df
...
...
@@ -12,8 +12,8 @@
#include "wxEeschemaStruct.h"
#include "general.h"
#include "
class_draw
sheet.h"
#include "
class_drawsheet
path.h"
#include "
sch_
sheet.h"
#include "
sch_sheet_
path.h"
#include "wx/imaglist.h"
#include "wx/treectrl.h"
...
...
eeschema/hotkeys.cpp
View file @
37ad67df
...
...
@@ -12,9 +12,9 @@
#include "protos.h"
#include "libeditframe.h"
#include "class_libentry.h"
#include "
class_schematic
_items.h"
#include "
class_
sch_component.h"
#include "
class_draw
sheet.h"
#include "
sch
_items.h"
#include "sch_component.h"
#include "
sch_
sheet.h"
#include "dialogs/dialog_schematic_find.h"
...
...
eeschema/libarch.cpp
View file @
37ad67df
...
...
@@ -13,7 +13,7 @@
#include "netlist.h"
#include "protos.h"
#include "class_library.h"
#include "
class_
sch_component.h"
#include "sch_component.h"
/*
...
...
eeschema/load_one_schematic_file.cpp
View file @
37ad67df
...
...
@@ -11,11 +11,11 @@
#include "general.h"
#include "protos.h"
#include "
class_marker_sch
.h"
#include "
class_schematic
_items.h"
#include "
class_
sch_component.h"
#include "
class_text-label
.h"
#include "
class_draw
sheet.h"
#include "
sch_marker
.h"
#include "
sch
_items.h"
#include "sch_component.h"
#include "
sch_text
.h"
#include "
sch_
sheet.h"
bool
ReadSchemaDescr
(
LINE_READER
*
aLine
,
wxString
&
aMsgDiag
,
BASE_SCREEN
*
Window
);
...
...
eeschema/locate.cpp
View file @
37ad67df
...
...
@@ -9,12 +9,12 @@
#include "class_sch_screen.h"
#include "general.h"
#include "class_marker_sch.h"
#include "protos.h"
#include "class_library.h"
#include "class_schematic_items.h"
#include "class_sch_component.h"
#include "class_drawsheet.h"
#include "sch_marker.h"
#include "sch_items.h"
#include "sch_component.h"
#include "sch_sheet.h"
#include "lib_pin.h"
#include "template_fieldnames.h"
...
...
eeschema/netform.cpp
View file @
37ad67df
...
...
@@ -45,9 +45,9 @@
#include "protos.h"
#include "class_library.h"
#include "lib_pin.h"
#include "
class_
sch_component.h"
#include "
class_text-label
.h"
#include "
class_draw
sheet.h"
#include "sch_component.h"
#include "
sch_text
.h"
#include "
sch_
sheet.h"
#include "template_fieldnames.h"
#include "xnode.h" // also nests: <wx/xml/xml.h>
...
...
eeschema/netlist.cpp
View file @
37ad67df
...
...
@@ -12,10 +12,10 @@
#include "protos.h"
#include "class_library.h"
#include "lib_pin.h"
#include "
class_schematic
_items.h"
#include "
class_
sch_component.h"
#include "
class_text-label
.h"
#include "
class_draw
sheet.h"
#include "
sch
_items.h"
#include "sch_component.h"
#include "
sch_text
.h"
#include "
sch_
sheet.h"
#include "algorithm"
...
...
eeschema/netlist_control.cpp
View file @
37ad67df
...
...
@@ -24,7 +24,7 @@
#include "netlist.h"
#include "protos.h"
#include "netlist_control.h"
#include "
class_draw
sheet.h"
#include "
sch_
sheet.h"
//Imported function:
...
...
eeschema/onleftclick.cpp
View file @
37ad67df
...
...
@@ -11,12 +11,12 @@
#include "wxEeschemaStruct.h"
#include "general.h"
#include "class_marker_sch.h"
#include "protos.h"
#include "class_text-label.h"
#include "class_schematic_items.h"
#include "class_sch_component.h"
#include "class_drawsheet.h"
#include "sch_text.h"
#include "sch_marker.h"
#include "sch_items.h"
#include "sch_component.h"
#include "sch_sheet.h"
static
wxArrayString
s_CmpNameList
;
...
...
eeschema/onrightclick.cpp
View file @
37ad67df
...
...
@@ -12,15 +12,15 @@
#include "wxEeschemaStruct.h"
#include "general.h"
#include "class_marker_sch.h"
#include "protos.h"
#include "hotkeys.h"
#include "class_library.h"
#include "class_text-label.h"
#include "class_schematic_items.h"
#include "class_sch_component.h"
#include "class_drawsheet.h"
#include "class_drawsheetpath.h"
#include "sch_marker.h"
#include "sch_text.h"
#include "sch_items.h"
#include "sch_component.h"
#include "sch_sheet.h"
#include "sch_sheet_path.h"
#include <iostream>
using
namespace
std
;
...
...
eeschema/operations_on_items_lists.cpp
View file @
37ad67df
...
...
@@ -12,11 +12,11 @@
#include "wxEeschemaStruct.h"
#include "general.h"
#include "class_marker_sch.h"
#include "protos.h"
#include "class_drawsheet.h"
#include "class_sch_component.h"
#include "class_schematic_items.h"
#include "sch_marker.h"
#include "sch_sheet.h"
#include "sch_component.h"
#include "sch_items.h"
void
RotateListOfItems
(
PICKED_ITEMS_LIST
&
aItemsList
,
wxPoint
&
rotationPoint
)
...
...
eeschema/plot.cpp
View file @
37ad67df
...
...
@@ -14,10 +14,10 @@
#include "protos.h"
#include "class_library.h"
#include "lib_pin.h"
#include "
class_schematic
_items.h"
#include "
class_
sch_component.h"
#include "
class_draw
sheet.h"
#include "
class_text-label
.h"
#include "
sch
_items.h"
#include "sch_component.h"
#include "
sch_
sheet.h"
#include "
sch_text
.h"
#include "template_fieldnames.h"
...
...
eeschema/
class_
sch_component.cpp
→
eeschema/sch_component.cpp
View file @
37ad67df
/*******************************************************
*******
/
/*
class_sch_component.cpp : handle the
class SCH_COMPONENT */
/*******************************************************
*******
/
/*******************************************************/
/*
sch_component.cpp : handle the
class SCH_COMPONENT */
/*******************************************************/
#include "fctsys.h"
#include "appl_wxstruct.h"
...
...
@@ -19,9 +19,9 @@
#include "lib_rectangle.h"
#include "lib_pin.h"
#include "lib_text.h"
#include "
class_
sch_component.h"
#include "
class_draw
sheet.h"
#include "
class_drawsheet
path.h"
#include "sch_component.h"
#include "
sch_
sheet.h"
#include "
sch_sheet_
path.h"
#include "template_fieldnames.h"
#include "dialogs/dialog_schematic_find.h"
...
...
eeschema/
class_
sch_component.h
→
eeschema/sch_component.h
View file @
37ad67df
...
...
@@ -6,7 +6,7 @@
#define COMPONENT_CLASS_H
#include "
class_sch_cmp
_field.h"
#include "
sch
_field.h"
#include "transform.h"
#include "general.h"
...
...
eeschema/
class_sch_cmp
_field.cpp
→
eeschema/
sch
_field.cpp
View file @
37ad67df
/***********************************************
***************
/
/*
class_sch_cmp_field.cpp : handle the
class SCH_FIELD */
/***********************************************
***************
/
/***********************************************/
/*
sch_field.cpp : handle the
class SCH_FIELD */
/***********************************************/
/* Fields are texts attached to a component, having a special meaning
* Fields 0 and 1 are very important: reference and value
...
...
@@ -24,8 +24,8 @@
#include "general.h"
#include "protos.h"
#include "class_library.h"
#include "
class_
sch_component.h"
#include "
class_sch_cmp
_field.h"
#include "sch_component.h"
#include "
sch
_field.h"
#include "template_fieldnames.h"
...
...
eeschema/
class_sch_cmp
_field.h
→
eeschema/
sch
_field.h
View file @
37ad67df
File moved
eeschema/
class_schematic
_items.cpp
→
eeschema/
sch
_items.cpp
View file @
37ad67df
...
...
@@ -12,7 +12,7 @@
#include "general.h"
#include "protos.h"
#include "
class_schematic
_items.h"
#include "
sch
_items.h"
#include <boost/foreach.hpp>
...
...
eeschema/
class_schematic
_items.h
→
eeschema/
sch
_items.h
View file @
37ad67df
File moved
eeschema/
class_marker_sch
.cpp
→
eeschema/
sch_marker
.cpp
View file @
37ad67df
...
...
@@ -9,7 +9,7 @@
#include "trigo.h"
#include "general.h"
#include "
class_marker_sch
.h"
#include "
sch_marker
.h"
#include "erc.h"
...
...
eeschema/
class_marker_sch
.h
→
eeschema/
sch_marker
.h
View file @
37ad67df
File moved
eeschema/
class_
sch_screen.cpp
→
eeschema/sch_screen.cpp
View file @
37ad67df
...
...
@@ -13,8 +13,8 @@
#include "general.h"
#include "protos.h"
#include "class_library.h"
#include "
class_schematic
_items.h"
#include "
class_draw
sheet.h"
#include "
sch
_items.h"
#include "
sch_
sheet.h"
#include <boost/foreach.hpp>
...
...
eeschema/
class_draw
sheet.cpp
→
eeschema/
sch_
sheet.cpp
View file @
37ad67df
/////////////////////////////////////////////////////////////////////////////
// Name:
class_draw
sheet.cpp
// Name:
sch_
sheet.cpp
// Purpose: member functions for SCH_SHEET
// header =
class_draw
sheet.h
// header =
sch_
sheet.h
// Author: jean-pierre Charras
// Modified by:
// Created: 08/02/2006 18:37:02
...
...
@@ -24,9 +24,9 @@
#include "general.h"
#include "protos.h"
#include "
class_draw
sheet.h"
#include "
class_drawsheet
path.h"
#include "
class_
sch_component.h"
#include "
sch_
sheet.h"
#include "
sch_sheet_
path.h"
#include "sch_component.h"
SCH_SHEET
::
SCH_SHEET
(
const
wxPoint
&
pos
)
:
SCH_ITEM
(
NULL
,
DRAW_SHEET_STRUCT_TYPE
)
...
...
eeschema/
class_draw
sheet.h
→
eeschema/
sch_
sheet.h
View file @
37ad67df
...
...
@@ -7,7 +7,7 @@
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/foreach.hpp>
#include "
class_text-label
.h"
#include "
sch_text
.h"
class
LINE_READER
;
...
...
eeschema/
class_drawsheet
path.cpp
→
eeschema/
sch_sheet_
path.cpp
View file @
37ad67df
/////////////////////////////////////////////////////////////////////////////
// Name:
class_drawsheet
.cpp
// Purpose: member functions for SCH_SHEET
// header =
class_drawsheet
.h
// Name:
sch_sheet_path
.cpp
// Purpose: member functions for SCH_SHEET
_PATH
// header =
sch_sheet_path
.h
// Author: jean-pierre Charras
// Modified by:
// License: License GNU
...
...
@@ -15,9 +15,9 @@
#include "class_sch_screen.h"
#include "sch_item_struct.h"
#include "
class_draw
sheet.h"
#include "
class_drawsheet
path.h"
#include "
class_
sch_component.h"
#include "
sch_
sheet.h"
#include "
sch_sheet_
path.h"
#include "sch_component.h"
#include "template_fieldnames.h"
#include "dialogs/dialog_schematic_find.h"
...
...
eeschema/
class_drawsheet
path.h
→
eeschema/
sch_sheet_
path.h
View file @
37ad67df
File moved
eeschema/
class_hierarchical_PIN_sheet
.cpp
→
eeschema/
sch_sheet_pin
.cpp
View file @
37ad67df
/////////////////////////////////////////////////////////////////////////////
// Name: class_hierarchical_PIN_sheet.cpp
// Name: sch_sheet_pin.cpp
// Purpose: member functions SCH_SHEET_PIN
// header =
class_draw
sheet.h
// header =
sch_
sheet.h
// Author: jean-pierre Charras
// Modified by:
// Created: 08/02/2006 18:37:02
...
...
@@ -23,7 +22,7 @@
#include "general.h"
#include "protos.h"
#include "
class_draw
sheet.h"
#include "
sch_
sheet.h"
/* m_Edge define on which edge the pin is positionned:
...
...
eeschema/
class_text-label
.cpp
→
eeschema/
sch_text
.cpp
View file @
37ad67df
...
...
@@ -14,7 +14,7 @@
#include "general.h"
#include "protos.h"
#include "
class_text-label
.h"
#include "
sch_text
.h"
/************************/
...
...
eeschema/
class_text-label
.h
→
eeschema/
sch_text
.h
View file @
37ad67df
File moved
eeschema/schedit.cpp
View file @
37ad67df
...
...
@@ -13,14 +13,14 @@
#include "class_sch_screen.h"
#include "kicad_device_context.h"
#include "class_marker_sch.h"
#include "general.h"
#include "eeschema_id.h"
#include "protos.h"
#include "class_library.h"
#include "class_sch_component.h"
#include "class_schematic_items.h"
#include "class_drawsheet.h"
#include "sch_marker.h"
#include "sch_component.h"
#include "sch_items.h"
#include "sch_sheet.h"
void
WinEDA_SchematicFrame
::
Process_Special_Functions
(
wxCommandEvent
&
event
)
...
...
eeschema/schematic_undo_redo.cpp
View file @
37ad67df
...
...
@@ -10,10 +10,10 @@
#include "general.h"
#include "protos.h"
#include "
class_marker_sch
.h"
#include "
class_schematic
_items.h"
#include "
class_
sch_component.h"
#include "
class_draw
sheet.h"
#include "
sch_marker
.h"
#include "
sch
_items.h"
#include "sch_component.h"
#include "
sch_
sheet.h"
/* Functions to undo and redo edit commands.
...
...
eeschema/schframe.cpp
View file @
37ad67df
...
...
@@ -22,16 +22,17 @@
#include "wxEeschemaStruct.h"
#include "class_sch_screen.h"
#include "annotate_dialog.h"
#include "dialog_build_BOM.h"
#include "dialog_erc.h"
#include "netlist_control.h"
#include "dialog_erc.h"
#include "libeditframe.h"
#include "viewlib_frame.h"
#include "hotkeys.h"
#include "class_drawsheet.h"
#include "eeschema_config.h"
#include "sch_sheet.h"
#include "dialogs/annotate_dialog.h"
#include "dialogs/dialog_erc.h"
#include "dialogs/dialog_print_using_printer.h"
#include "dialogs/dialog_schematic_find.h"
...
...
@@ -759,3 +760,21 @@ void WinEDA_SchematicFrame::SetLanguage( wxCommandEvent& event )
m_LibeditFrame
->
WinEDA_BasicFrame
::
SetLanguage
(
event
);
}
void
WinEDA_SchematicFrame
::
OnPrint
(
wxCommandEvent
&
event
)
{
wxFileName
fn
;
DIALOG_PRINT_USING_PRINTER
dlg
(
this
);
dlg
.
ShowModal
();
fn
=
g_RootSheet
->
m_AssociatedScreen
->
m_FileName
;
wxString
default_name
=
NAMELESS_PROJECT
;
default_name
+=
wxT
(
".sch"
);
if
(
fn
.
GetFullName
()
!=
default_name
)
{
fn
.
SetExt
(
ProjectFileExtension
);
wxGetApp
().
WriteProjectConfig
(
fn
.
GetFullPath
(),
GROUP
,
GetProjectFileParameters
()
);
}
}
eeschema/sheet.cpp
View file @
37ad67df
...
...
@@ -21,7 +21,7 @@
#include "general.h"
#include "protos.h"
#include "
class_draw
sheet.h"
#include "
sch_
sheet.h"
#include "dialog_sch_sheet_props.h"
...
...
eeschema/sheetlab.cpp
View file @
37ad67df
...
...
@@ -13,7 +13,7 @@
#include "general.h"
#include "protos.h"
#include "
class_draw
sheet.h"
#include "
sch_
sheet.h"
static
void
ExitPinSheet
(
WinEDA_DrawPanel
*
Panel
,
wxDC
*
DC
);
...
...
eeschema/template_fieldnames.cpp
View file @
37ad67df
#include "template_fieldnames.h"
//#include "class_sch_component.h"
#include "dsnlexer.h"
#include "macros.h"
...
...
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