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
c9d3fd6d
Commit
c9d3fd6d
authored
Nov 03, 2014
by
Garth Corral
Browse files
Options
Browse Files
Download
Plain Diff
Merge trunk @5250
parents
2c9b84a7
24f516f6
Changes
55
Show whitespace changes
Inline
Side-by-side
Showing
55 changed files
with
276 additions
and
235 deletions
+276
-235
Doxyfile
Doxyfile
+1
-1
class_bitmap_base.cpp
common/class_bitmap_base.cpp
+1
-1
project.cpp
common/project.cpp
+7
-2
class_library.h
eeschema/class_library.h
+2
-3
component_tree_search_container.h
eeschema/component_tree_search_container.h
+1
-1
dialog_plot_schematic.cpp
eeschema/dialogs/dialog_plot_schematic.cpp
+2
-2
dialog_plot_schematic_base.cpp
eeschema/dialogs/dialog_plot_schematic_base.cpp
+2
-2
dialog_plot_schematic_base.fbp
eeschema/dialogs/dialog_plot_schematic_base.fbp
+1
-1
dialog_plot_schematic_base.h
eeschema/dialogs/dialog_plot_schematic_base.h
+1
-1
libeditframe.h
eeschema/libeditframe.h
+1
-0
sch_sheet_path.h
eeschema/sch_sheet_path.h
+7
-2
sheet.cpp
eeschema/sheet.cpp
+27
-19
viewlib_frame.h
eeschema/viewlib_frame.h
+5
-1
colors.h
include/colors.h
+1
-1
common.h
include/common.h
+2
-2
color4d.h
include/gal/color4d.h
+3
-3
noncached_container.h
include/gal/opengl/noncached_container.h
+3
-3
vertex_container.h
include/gal/opengl/vertex_container.h
+1
-1
vertex_item.h
include/gal/opengl/vertex_item.h
+2
-2
rtree.h
include/geometry/rtree.h
+0
-1
shape.h
include/geometry/shape.h
+3
-3
shape_index.h
include/geometry/shape_index.h
+13
-13
shape_line_chain.h
include/geometry/shape_line_chain.h
+1
-1
matrix3x3.h
include/math/matrix3x3.h
+2
-2
painter.h
include/painter.h
+2
-2
profile.h
include/profile.h
+3
-3
project.h
include/project.h
+11
-4
richio.h
include/richio.h
+1
-2
sch_base_frame.h
include/sch_base_frame.h
+1
-1
tool_dispatcher.h
include/tool/tool_dispatcher.h
+1
-1
tool_manager.h
include/tool/tool_manager.h
+8
-7
view.h
include/view/view.h
+4
-4
view_controls.h
include/view/view_controls.h
+1
-1
wxunittext.h
include/wxunittext.h
+1
-1
mainframe.cpp
kicad/mainframe.cpp
+5
-7
autorout.cpp
pcbnew/autorouter/autorout.cpp
+1
-1
move_and_route_event_functions.cpp
pcbnew/autorouter/move_and_route_event_functions.cpp
+1
-1
class_board.h
pcbnew/class_board.h
+2
-2
class_text_mod.cpp
pcbnew/class_text_mod.cpp
+3
-5
class_track.h
pcbnew/class_track.h
+2
-2
class_zone.h
pcbnew/class_zone.h
+2
-2
cross-probing.cpp
pcbnew/cross-probing.cpp
+2
-3
dialog_netlist.cpp
pcbnew/dialogs/dialog_netlist.cpp
+4
-4
gen_modules_placefile.cpp
pcbnew/exporters/gen_modules_placefile.cpp
+2
-2
gendrill_Excellon_writer.h
pcbnew/exporters/gendrill_Excellon_writer.h
+2
-0
files.cpp
pcbnew/files.cpp
+1
-1
dialog_dxf_import.cpp
pcbnew/import_dxf/dialog_dxf_import.cpp
+9
-8
invoke_pcb_dialog.h
pcbnew/invoke_pcb_dialog.h
+17
-2
loadcmp.cpp
pcbnew/loadcmp.cpp
+2
-2
netlist.cpp
pcbnew/netlist.cpp
+1
-1
pns_item.h
pcbnew/router/pns_item.h
+48
-48
pns_node.h
pcbnew/router/pns_node.h
+25
-24
edit_constraints.h
pcbnew/tools/edit_constraints.h
+2
-2
xchgmod.cpp
pcbnew/xchgmod.cpp
+2
-2
sweep.h
polygon/poly2tri/sweep/sweep.h
+21
-22
No files found.
Doxyfile
View file @
c9d3fd6d
...
@@ -690,7 +690,7 @@ RECURSIVE = YES
...
@@ -690,7 +690,7 @@ RECURSIVE = YES
# Note that relative paths are relative to the directory from which doxygen is
# Note that relative paths are relative to the directory from which doxygen is
# run.
# run.
EXCLUDE =
include/boost
EXCLUDE =
polygon/clipper.cpp
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
...
...
common/class_bitmap_base.cpp
View file @
c9d3fd6d
/**
/**
* @file
sch_bitmap
.cpp
* @file
class_bitmap_base
.cpp
*/
*/
/*
/*
...
...
common/project.cpp
View file @
c9d3fd6d
...
@@ -93,6 +93,11 @@ const wxString PROJECT::GetProjectFullName() const
...
@@ -93,6 +93,11 @@ const wxString PROJECT::GetProjectFullName() const
return
m_project_name
.
GetFullPath
();
return
m_project_name
.
GetFullPath
();
}
}
const
wxString
PROJECT
::
GetProjectPath
()
const
{
return
m_project_name
.
GetPathWithSep
();
}
const
wxString
PROJECT
::
FootprintLibTblName
()
const
const
wxString
PROJECT
::
FootprintLibTblName
()
const
{
{
...
@@ -248,10 +253,10 @@ static bool copy_pro_file_template( const SEARCH_STACK& aSearchS, const wxString
...
@@ -248,10 +253,10 @@ static bool copy_pro_file_template( const SEARCH_STACK& aSearchS, const wxString
wxConfigBase
*
PROJECT
::
configCreate
(
const
SEARCH_STACK
&
aSList
,
wxConfigBase
*
PROJECT
::
configCreate
(
const
SEARCH_STACK
&
aSList
,
const
wxString
&
aGroupName
,
const
wxString
&
aFileName
)
const
wxString
&
aGroupName
,
const
wxString
&
a
Project
FileName
)
{
{
wxConfigBase
*
cfg
=
0
;
wxConfigBase
*
cfg
=
0
;
wxString
cur_pro_fn
=
!
a
FileName
?
GetProjectFullName
()
:
a
FileName
;
wxString
cur_pro_fn
=
!
a
ProjectFileName
?
GetProjectFullName
()
:
aProject
FileName
;
if
(
wxFileName
(
cur_pro_fn
).
IsFileReadable
()
)
if
(
wxFileName
(
cur_pro_fn
).
IsFileReadable
()
)
{
{
...
...
eeschema/class_library.h
View file @
c9d3fd6d
...
@@ -121,8 +121,6 @@ public:
...
@@ -121,8 +121,6 @@ public:
* allocates and adds a part library to the library list.
* allocates and adds a part library to the library list.
*
*
* @param aFileName - File name object of part library.
* @param aFileName - File name object of part library.
* @param aErrorMsg - Error message if the part library failed to load.
* @return PART_LIB* - the new PART_LIB, which remains owned by this PART_LIBS container.
* @throw IO_ERROR if there's any problem loading.
* @throw IO_ERROR if there's any problem loading.
*/
*/
PART_LIB
*
AddLibrary
(
const
wxString
&
aFileName
)
throw
(
IO_ERROR
);
PART_LIB
*
AddLibrary
(
const
wxString
&
aFileName
)
throw
(
IO_ERROR
);
...
@@ -136,7 +134,8 @@ public:
...
@@ -136,7 +134,8 @@ public:
* @return PART_LIB* - the new PART_LIB, which remains owned by this PART_LIBS container.
* @return PART_LIB* - the new PART_LIB, which remains owned by this PART_LIBS container.
* @throw IO_ERROR if there's any problem loading.
* @throw IO_ERROR if there's any problem loading.
*/
*/
PART_LIB
*
AddLibrary
(
const
wxString
&
aFileName
,
PART_LIBS
::
iterator
&
aIterator
)
throw
(
IO_ERROR
);
PART_LIB
*
AddLibrary
(
const
wxString
&
aFileName
,
PART_LIBS
::
iterator
&
aIterator
)
throw
(
IO_ERROR
);
/**
/**
* Function RemoveLibrary
* Function RemoveLibrary
...
...
eeschema/component_tree_search_container.h
View file @
c9d3fd6d
...
@@ -97,7 +97,7 @@ public:
...
@@ -97,7 +97,7 @@ public:
/** Function GetSelectedAlias
/** Function GetSelectedAlias
*
*
* @param
if not-
NULL, the selected sub-unit is set here.
* @param
aUnit : if not
NULL, the selected sub-unit is set here.
* @return the selected alias or NULL if there is none, or there is no tree.
* @return the selected alias or NULL if there is none, or there is no tree.
*/
*/
LIB_ALIAS
*
GetSelectedAlias
(
int
*
aUnit
);
LIB_ALIAS
*
GetSelectedAlias
(
int
*
aUnit
);
...
...
eeschema/dialogs/dialog_plot_schematic.cpp
View file @
c9d3fd6d
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <class_sch_screen.h>
#include <class_sch_screen.h>
#include <wxEeschemaStruct.h>
#include <wxEeschemaStruct.h>
#include <base_units.h>
#include <base_units.h>
#include <sch_sheet.h>
#include <dialog_plot_schematic.h>
#include <dialog_plot_schematic.h>
// Keys for configuration
// Keys for configuration
...
@@ -183,8 +184,7 @@ void DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked( wxCommandEvent& even
...
@@ -183,8 +184,7 @@ void DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked( wxCommandEvent& even
if
(
dialog
.
ShowModal
()
==
wxID_YES
)
if
(
dialog
.
ShowModal
()
==
wxID_YES
)
{
{
wxString
plotFilePath
=
m_parent
->
GetUniqueFilenameForCurrentSheet
()
+
wxT
(
"."
)
wxString
plotFilePath
=
g_RootSheet
->
GetFileName
();
+
PS_PLOTTER
::
GetDefaultFileExtension
();
plotFilePath
=
Prj
().
AbsolutePath
(
plotFilePath
);
plotFilePath
=
Prj
().
AbsolutePath
(
plotFilePath
);
plotFilePath
=
wxPathOnly
(
plotFilePath
);
plotFilePath
=
wxPathOnly
(
plotFilePath
);
...
...
eeschema/dialogs/dialog_plot_schematic_base.cpp
View file @
c9d3fd6d
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Sep 11
2014)
// C++ code generated with wxFormBuilder (version
Jun 5
2014)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
@@ -28,7 +28,7 @@ DIALOG_PLOT_SCHEMATIC_BASE::DIALOG_PLOT_SCHEMATIC_BASE( wxWindow* parent, wxWind
...
@@ -28,7 +28,7 @@ DIALOG_PLOT_SCHEMATIC_BASE::DIALOG_PLOT_SCHEMATIC_BASE( wxWindow* parent, wxWind
m_outputDirectoryName
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_outputDirectoryName
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_outputDirectoryName
->
SetMaxLength
(
0
);
m_outputDirectoryName
->
SetMaxLength
(
0
);
m_outputDirectoryName
->
SetToolTip
(
_
(
"Target directory for plot files. Can be absolute or relative to the schematic file location."
)
);
m_outputDirectoryName
->
SetToolTip
(
_
(
"Target directory for plot files. Can be absolute or relative to the schematic
main
file location."
)
);
bSizer5
->
Add
(
m_outputDirectoryName
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
|
wxLEFT
|
wxRIGHT
,
5
);
bSizer5
->
Add
(
m_outputDirectoryName
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
|
wxLEFT
|
wxRIGHT
,
5
);
...
...
eeschema/dialogs/dialog_plot_schematic_base.fbp
View file @
c9d3fd6d
...
@@ -247,7 +247,7 @@
...
@@ -247,7 +247,7 @@
<property
name=
"style"
></property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
>
Target directory for plot files. Can be absolute or relative to the schematic file location.
</property>
<property
name=
"tooltip"
>
Target directory for plot files. Can be absolute or relative to the schematic
main
file location.
</property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
...
...
eeschema/dialogs/dialog_plot_schematic_base.h
View file @
c9d3fd6d
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Sep 11
2014)
// C++ code generated with wxFormBuilder (version
Jun 5
2014)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
eeschema/libeditframe.h
View file @
c9d3fd6d
...
@@ -431,6 +431,7 @@ private:
...
@@ -431,6 +431,7 @@ private:
* Any changes are updated in memory only and NOT to a file. The old component is
* Any changes are updated in memory only and NOT to a file. The old component is
* deleted from the library and/or any aliases before the edited component is updated
* deleted from the library and/or any aliases before the edited component is updated
* in the library.
* in the library.
* @param aLib - the part library where the part must be saved.
* @param aPromptUser true to ask for confirmation, when the part_lib is already existing
* @param aPromptUser true to ask for confirmation, when the part_lib is already existing
* in memory, false to save silently
* in memory, false to save silently
* @return true if the part was saved, false if aborted by user
* @return true if the part was saved, false if aborted by user
...
...
eeschema/sch_sheet_path.h
View file @
c9d3fd6d
...
@@ -211,6 +211,7 @@ public:
...
@@ -211,6 +211,7 @@ public:
/**
/**
* Function AnnotatePowerSymbols
* Function AnnotatePowerSymbols
* annotates the power symbols only starting at \a aReference in the sheet path.
* annotates the power symbols only starting at \a aReference in the sheet path.
* @param aLibs the library list to use
* @param aReference A pointer to the number for the reference designator of the
* @param aReference A pointer to the number for the reference designator of the
* first power symbol to be annotated. If the pointer is NULL
* first power symbol to be annotated. If the pointer is NULL
* the annotation starts at 1. The number is incremented for
* the annotation starts at 1. The number is incremented for
...
@@ -221,10 +222,12 @@ public:
...
@@ -221,10 +222,12 @@ public:
/**
/**
* Function GetComponents
* Function GetComponents
* adds a SCH_REFERENCE() object to \a aReferences for each component in the sheet.
* adds a SCH_REFERENCE() object to \a aReferences for each component in the sheet.
* @param aLibs the library list to use
* @param aReferences List of references to populate.
* @param aReferences List of references to populate.
* @param aIncludePowerSymbols
Set to
false to only get normal components.
* @param aIncludePowerSymbols
:
false to only get normal components.
*/
*/
void
GetComponents
(
PART_LIBS
*
aLibs
,
SCH_REFERENCE_LIST
&
aReferences
,
bool
aIncludePowerSymbols
=
true
);
void
GetComponents
(
PART_LIBS
*
aLibs
,
SCH_REFERENCE_LIST
&
aReferences
,
bool
aIncludePowerSymbols
=
true
);
/**
/**
* Function SetFootprintField
* Function SetFootprintField
...
@@ -391,6 +394,7 @@ public:
...
@@ -391,6 +394,7 @@ public:
/**
/**
* Function AnnotatePowerSymbols
* Function AnnotatePowerSymbols
* clear and annotates the entire hierarchy of the sheet path list.
* clear and annotates the entire hierarchy of the sheet path list.
* @param aLib the library list to use
*/
*/
void
AnnotatePowerSymbols
(
PART_LIBS
*
aLib
);
void
AnnotatePowerSymbols
(
PART_LIBS
*
aLib
);
...
@@ -398,6 +402,7 @@ public:
...
@@ -398,6 +402,7 @@ public:
* Function GetComponents
* Function GetComponents
* adds a SCH_REFERENCE() object to \a aReferences for each component in the list
* adds a SCH_REFERENCE() object to \a aReferences for each component in the list
* of sheets.
* of sheets.
* @param aLibs the library list to use
* @param aReferences List of references to populate.
* @param aReferences List of references to populate.
* @param aIncludePowerSymbols Set to false to only get normal components.
* @param aIncludePowerSymbols Set to false to only get normal components.
*/
*/
...
...
eeschema/sheet.cpp
View file @
c9d3fd6d
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <dialogs/dialog_sch_sheet_props.h>
#include <dialogs/dialog_sch_sheet_props.h>
#include <wildcards_and_files_ext.h>
#include <wildcards_and_files_ext.h>
#include <project.h>
bool
SCH_EDIT_FRAME
::
EditSheet
(
SCH_SHEET
*
aSheet
,
wxDC
*
aDC
)
bool
SCH_EDIT_FRAME
::
EditSheet
(
SCH_SHEET
*
aSheet
,
wxDC
*
aDC
)
...
@@ -85,7 +86,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
...
@@ -85,7 +86,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
// Duplicate sheet names are not valid.
// Duplicate sheet names are not valid.
const
SCH_SHEET
*
sheet
=
GetScreen
()
->
GetSheet
(
dlg
.
GetSheetName
()
);
const
SCH_SHEET
*
sheet
=
GetScreen
()
->
GetSheet
(
dlg
.
GetSheetName
()
);
if
(
(
sheet
!=
NULL
)
&&
(
sheet
!=
aSheet
)
)
if
(
sheet
&&
sheet
!=
aSheet
)
{
{
DisplayError
(
this
,
wxString
::
Format
(
_
(
"A sheet named
\"
%s
\"
already exists."
),
DisplayError
(
this
,
wxString
::
Format
(
_
(
"A sheet named
\"
%s
\"
already exists."
),
GetChars
(
dlg
.
GetSheetName
()
)
)
);
GetChars
(
dlg
.
GetSheetName
()
)
)
);
...
@@ -101,29 +102,36 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
...
@@ -101,29 +102,36 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
bool
loadFromFile
=
false
;
bool
loadFromFile
=
false
;
SCH_SCREEN
*
useScreen
=
NULL
;
SCH_SCREEN
*
useScreen
=
NULL
;
wxString
newFullFilename
=
fileName
.
GetFullPath
();
wxString
newFilename
=
fileName
.
GetFullPath
();
// Inside Eeschema, filenames are stored using unix notation
newFullFilename
.
Replace
(
wxT
(
"
\\
"
),
wxT
(
"/"
)
);
// Search for a schematic file having the same filename
// already in use in the hierarchy or on disk, in order to reuse it.
if
(
!
g_RootSheet
->
SearchHierarchy
(
newFilename
,
&
useScreen
)
)
{
// if user entered a relative path, allow that to stay, but do the
// file existence test with an absolute (full) path. This transformation
// is local to this scope, but is the same one used at load time later.
wxString
absolute
=
Prj
().
AbsolutePath
(
newFilename
);
// Search for a schematic file having the same filename exists,
loadFromFile
=
wxFileExists
(
absolute
);
// already in use in the hierarchy, or on disk,
}
// in order to reuse it
if
(
!
g_RootSheet
->
SearchHierarchy
(
newFullFilename
,
&
useScreen
)
)
// Inside Eeschema, filenames are stored using unix notation
loadFromFile
=
fileName
.
FileExists
(
);
newFilename
.
Replace
(
wxT
(
"
\\
"
),
wxT
(
"/"
)
);
if
(
aSheet
->
GetScreen
()
==
NULL
)
// New sheet.
if
(
aSheet
->
GetScreen
()
==
NULL
)
// New sheet.
{
{
if
(
(
useScreen
!=
NULL
)
||
loadFromFile
)
// Load from existing file.
if
(
useScreen
||
loadFromFile
)
// Load from existing file.
{
{
if
(
useScreen
!=
NULL
)
if
(
useScreen
!=
NULL
)
{
{
msg
.
Printf
(
_
(
"A file named '%s' already exists in the current schematic hierarchy."
),
msg
.
Printf
(
_
(
"A file named '%s' already exists in the current schematic hierarchy."
),
GetChars
(
newF
ullF
ilename
)
);
GetChars
(
newFilename
)
);
}
}
else
else
{
{
msg
.
Printf
(
_
(
"A file named '%s' already exists."
),
msg
.
Printf
(
_
(
"A file named '%s' already exists."
),
GetChars
(
newF
ullF
ilename
)
);
GetChars
(
newFilename
)
);
}
}
msg
+=
_
(
"
\n\n
Do you want to create a sheet with the contents of this file?"
);
msg
+=
_
(
"
\n\n
Do you want to create a sheet with the contents of this file?"
);
...
@@ -139,7 +147,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
...
@@ -139,7 +147,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
else
// New file.
else
// New file.
{
{
aSheet
->
SetScreen
(
new
SCH_SCREEN
(
&
Kiway
()
)
);
aSheet
->
SetScreen
(
new
SCH_SCREEN
(
&
Kiway
()
)
);
aSheet
->
GetScreen
()
->
SetFileName
(
newF
ullF
ilename
);
aSheet
->
GetScreen
()
->
SetFileName
(
newFilename
);
}
}
}
}
else
// Existing sheet.
else
// Existing sheet.
...
@@ -151,24 +159,24 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
...
@@ -151,24 +159,24 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
// to avoid issues under Windows, although under Unix
// to avoid issues under Windows, although under Unix
// filenames are case sensitive.
// filenames are case sensitive.
// But many users create schematic under both Unix and Windows
// But many users create schematic under both Unix and Windows
if
(
newF
ullF
ilename
.
CmpNoCase
(
aSheet
->
GetFileName
()
)
!=
0
)
if
(
newFilename
.
CmpNoCase
(
aSheet
->
GetFileName
()
)
!=
0
)
{
{
// Sheet file name changes cannot be undone.
// Sheet file name changes cannot be undone.
isUndoable
=
false
;
isUndoable
=
false
;
msg
=
_
(
"Changing the sheet file name cannot be undone. "
);
msg
=
_
(
"Changing the sheet file name cannot be undone. "
);
if
(
(
useScreen
!=
NULL
)
||
loadFromFile
)
// Load from existing file.
if
(
useScreen
||
loadFromFile
)
// Load from existing file.
{
{
wxString
tmp
;
wxString
tmp
;
if
(
useScreen
!=
NULL
)
if
(
useScreen
!=
NULL
)
{
{
tmp
.
Printf
(
_
(
"A file named <%s> already exists in the current schematic hierarchy."
),
tmp
.
Printf
(
_
(
"A file named <%s> already exists in the current schematic hierarchy."
),
GetChars
(
newF
ullF
ilename
)
);
GetChars
(
newFilename
)
);
}
}
else
else
{
{
tmp
.
Printf
(
_
(
"A file named <%s> already exists."
),
tmp
.
Printf
(
_
(
"A file named <%s> already exists."
),
GetChars
(
newF
ullF
ilename
)
);
GetChars
(
newFilename
)
);
}
}
msg
+=
tmp
;
msg
+=
tmp
;
...
@@ -203,7 +211,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
...
@@ -203,7 +211,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
if
(
renameFile
)
if
(
renameFile
)
{
{
aSheet
->
GetScreen
()
->
SetFileName
(
newF
ullF
ilename
);
aSheet
->
GetScreen
()
->
SetFileName
(
newFilename
);
SaveEEFile
(
aSheet
->
GetScreen
()
);
SaveEEFile
(
aSheet
->
GetScreen
()
);
// If the the associated screen is shared by more than one sheet, remove the
// If the the associated screen is shared by more than one sheet, remove the
...
@@ -217,7 +225,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
...
@@ -217,7 +225,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
}
}
}
}
aSheet
->
SetFileName
(
newF
ullF
ilename
);
aSheet
->
SetFileName
(
newFilename
);
if
(
useScreen
)
if
(
useScreen
)
aSheet
->
SetScreen
(
useScreen
);
aSheet
->
SetScreen
(
useScreen
);
...
...
eeschema/viewlib_frame.h
View file @
c9d3fd6d
...
@@ -49,8 +49,11 @@ public:
...
@@ -49,8 +49,11 @@ public:
/**
/**
* Constructor
* Constructor
* @param aKiway
* @param aParent = the parent frame
* @param aFrameType must be given either FRAME_SCH_LIB_VIEWER or
* @param aFrameType must be given either FRAME_SCH_LIB_VIEWER or
* FRAME_SCH_LIB_VIEWER_MODAL
* FRAME_SCH_LIB_VIEWER_MODAL
* @param aLibrary = the library to open when starting (default = NULL)
*/
*/
LIB_VIEW_FRAME
(
KIWAY
*
aKiway
,
wxWindow
*
aParent
,
LIB_VIEW_FRAME
(
KIWAY
*
aKiway
,
wxWindow
*
aParent
,
FRAME_T
aFrameType
,
PART_LIB
*
aLibrary
=
NULL
);
FRAME_T
aFrameType
,
PART_LIB
*
aLibrary
=
NULL
);
...
@@ -115,10 +118,11 @@ public:
...
@@ -115,10 +118,11 @@ public:
/**
/**
* Set the selected component.
* Set the selected component.
*
*
* @param
the alias
name of the component to be selected.
* @param
aComponentName : the
name of the component to be selected.
*/
*/
void
SetSelectedComponent
(
const
wxString
&
aComponentName
);
void
SetSelectedComponent
(
const
wxString
&
aComponentName
);
// Accessors:
void
SetUnit
(
int
aUnit
)
{
m_unit
=
aUnit
;
}
void
SetUnit
(
int
aUnit
)
{
m_unit
=
aUnit
;
}
int
GetUnit
(
void
)
{
return
m_unit
;
}
int
GetUnit
(
void
)
{
return
m_unit
;
}
...
...
include/colors.h
View file @
c9d3fd6d
...
@@ -163,7 +163,7 @@ EDA_COLOR_T ColorFindNearest( const wxColour &aColor );
...
@@ -163,7 +163,7 @@ EDA_COLOR_T ColorFindNearest( const wxColour &aColor );
* Find the nearest color match
* Find the nearest color match
* @param aR is the red component of the color to be matched (in range 0-255)
* @param aR is the red component of the color to be matched (in range 0-255)
* @param aG is the green component of the color to be matched (in range 0-255)
* @param aG is the green component of the color to be matched (in range 0-255)
* @param a
G
is the blue component of the color to be matched (in range 0-255)
* @param a
B
is the blue component of the color to be matched (in range 0-255)
*/
*/
EDA_COLOR_T
ColorFindNearest
(
int
aR
,
int
aG
,
int
aB
);
EDA_COLOR_T
ColorFindNearest
(
int
aR
,
int
aG
,
int
aB
);
...
...
include/common.h
View file @
c9d3fd6d
...
@@ -584,8 +584,8 @@ void SystemDirsAppend( SEARCH_STACK* aSearchStack );
...
@@ -584,8 +584,8 @@ void SystemDirsAppend( SEARCH_STACK* aSearchStack );
* <p>
* <p>
* Return the KiCad help file with path and extension.
* Return the KiCad help file with path and extension.
* Help files can be html (.html ext) or pdf (.pdf ext) files.
* Help files can be html (.html ext) or pdf (.pdf ext) files.
* A
<BaseName
>.html file is searched and if not found,
* A
\<BaseName\
>.html file is searched and if not found,
*
<BaseName
>.pdf file is searched in the same path.
*
\<BaseName\
>.pdf file is searched in the same path.
* If the help file for the current locale is not found, an attempt to find
* If the help file for the current locale is not found, an attempt to find
* the English version of the help file is made.
* the English version of the help file is made.
* Help file is searched in directories in this order:
* Help file is searched in directories in this order:
...
...
include/gal/color4d.h
View file @
c9d3fd6d
...
@@ -199,9 +199,9 @@ public:
...
@@ -199,9 +199,9 @@ public:
* Function FromHSV()
* Function FromHSV()
* Changes currently used color to the one given by hue, saturation and value parameters.
* Changes currently used color to the one given by hue, saturation and value parameters.
*
*
* @param a
Out
H is hue component.
* @param a
In
H is hue component.
* @param a
Out
S is saturation component.
* @param a
In
S is saturation component.
* @param a
Out
V is value component.
* @param a
In
V is value component.
*/
*/
void
FromHSV
(
double
aInH
,
double
aInS
,
double
aInV
);
void
FromHSV
(
double
aInH
,
double
aInS
,
double
aInV
);
...
...
include/gal/opengl/noncached_container.h
View file @
c9d3fd6d
...
@@ -44,13 +44,13 @@ public:
...
@@ -44,13 +44,13 @@ public:
NONCACHED_CONTAINER
(
unsigned
int
aSize
=
defaultInitSize
);
NONCACHED_CONTAINER
(
unsigned
int
aSize
=
defaultInitSize
);
virtual
~
NONCACHED_CONTAINER
();
virtual
~
NONCACHED_CONTAINER
();
///< @copydoc VERTEX_CONTAINER::SetItem()
///< @copydoc VERTEX_CONTAINER::SetItem(
VERTEX_ITEM* aItem
)
virtual
void
SetItem
(
VERTEX_ITEM
*
aItem
);
virtual
void
SetItem
(
VERTEX_ITEM
*
aItem
);
///< @copydoc VERTEX_CONTAINER::Allocate()
///< @copydoc VERTEX_CONTAINER::Allocate(
unsigned int aSize
)
virtual
VERTEX
*
Allocate
(
unsigned
int
aSize
);
virtual
VERTEX
*
Allocate
(
unsigned
int
aSize
);
///< @copydoc VERTEX_CONTAINER::Delete()
///< @copydoc VERTEX_CONTAINER::Delete(
VERTEX_ITEM* aItem
)
void
Delete
(
VERTEX_ITEM
*
aItem
)
{};
void
Delete
(
VERTEX_ITEM
*
aItem
)
{};
///< @copydoc VERTEX_CONTAINER::Clear()
///< @copydoc VERTEX_CONTAINER::Clear()
...
...
include/gal/opengl/vertex_container.h
View file @
c9d3fd6d
...
@@ -99,7 +99,7 @@ public:
...
@@ -99,7 +99,7 @@ public:
/**
/**
* Function GetVertices()
* Function GetVertices()
* returns vertices stored at the specific offset.
* returns vertices stored at the specific offset.
* @aOffset is the offset.
* @
param
aOffset is the offset.
*/
*/
virtual
inline
VERTEX
*
GetVertices
(
unsigned
int
aOffset
)
const
virtual
inline
VERTEX
*
GetVertices
(
unsigned
int
aOffset
)
const
{
{
...
...
include/gal/opengl/vertex_item.h
View file @
c9d3fd6d
...
@@ -50,7 +50,7 @@ public:
...
@@ -50,7 +50,7 @@ public:
/**
/**
* Function GetSize()
* Function GetSize()
* Returns information about number of vertices stored.
* Returns information about number of vertices stored.
* @
param
Number of vertices.
* @
return
Number of vertices.
*/
*/
inline
unsigned
int
GetSize
()
const
inline
unsigned
int
GetSize
()
const
{
{
...
@@ -69,7 +69,7 @@ public:
...
@@ -69,7 +69,7 @@ public:
/**
/**
* Function GetVertices()
* Function GetVertices()
*
Returns
pointer to the data used by the VERTEX_ITEM.
*
areturn a
pointer to the data used by the VERTEX_ITEM.
*/
*/
VERTEX
*
GetVertices
()
const
;
VERTEX
*
GetVertices
()
const
;
...
...
include/geometry/rtree.h
View file @
c9d3fd6d
...
@@ -123,7 +123,6 @@ public:
...
@@ -123,7 +123,6 @@ public:
/// Find all within search rectangle
/// Find all within search rectangle
/// \param a_min Min of search bounding rect
/// \param a_min Min of search bounding rect
/// \param a_max Max of search bounding rect
/// \param a_max Max of search bounding rect
/// \param a_searchResult Search result array. Caller should set grow size. Function will reset, not append to array.
/// \param a_resultCallback Callback function to return result. Callback should return 'true' to continue searching
/// \param a_resultCallback Callback function to return result. Callback should return 'true' to continue searching
/// \param a_context User context to pass as parameter to a_resultCallback
/// \param a_context User context to pass as parameter to a_resultCallback
/// \return Returns the number of entries found
/// \return Returns the number of entries found
...
...
include/geometry/shape.h
View file @
c9d3fd6d
...
@@ -112,8 +112,8 @@ public:
...
@@ -112,8 +112,8 @@ public:
* @param aMTV minimum translation vector
* @param aMTV minimum translation vector
* @return true, if there is a collision.
* @return true, if there is a collision.
*/
*/
virtual
bool
Collide
(
const
SHAPE
*
aShape
,
int
aClerance
,
VECTOR2I
&
aMTV
)
const
;
virtual
bool
Collide
(
const
SHAPE
*
aShape
,
int
aCle
a
rance
,
VECTOR2I
&
aMTV
)
const
;
virtual
bool
Collide
(
const
SHAPE
*
aShape
,
int
aClerance
=
0
)
const
;
virtual
bool
Collide
(
const
SHAPE
*
aShape
,
int
aCle
a
rance
=
0
)
const
;
/**
/**
* Function Collide()
* Function Collide()
...
@@ -129,7 +129,7 @@ public:
...
@@ -129,7 +129,7 @@ public:
*
*
* Computes a bounding box of the shape, with a margin of aClearance
* Computes a bounding box of the shape, with a margin of aClearance
* a collision.
* a collision.
* @aClearance how much the bounding box is expanded wrs to the minimum enclosing rectangle
* @
param
aClearance how much the bounding box is expanded wrs to the minimum enclosing rectangle
* for the shape.
* for the shape.
* @return the bounding box.
* @return the bounding box.
*/
*/
...
...
include/geometry/shape_index.h
View file @
c9d3fd6d
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
* It is used by SHAPE_INDEX to get a SHAPE* from another type.
* It is used by SHAPE_INDEX to get a SHAPE* from another type.
* By default relies on T::GetShape() method, should be specialized if the T object
* By default relies on T::GetShape() method, should be specialized if the T object
* doesn't allow that method.
* doesn't allow that method.
* @param
object
generic T object
* @param
aItem
generic T object
* @return a SHAPE* object equivalent to object.
* @return a SHAPE* object equivalent to object.
*/
*/
template
<
class
T
>
template
<
class
T
>
...
@@ -59,7 +59,7 @@ const SHAPE* shapeFunctor( SHAPE* aItem );
...
@@ -59,7 +59,7 @@ const SHAPE* shapeFunctor( SHAPE* aItem );
* It is used by SHAPE_INDEX to get the bounding box of a generic T object.
* It is used by SHAPE_INDEX to get the bounding box of a generic T object.
* By default relies on T::BBox() method, should be specialized if the T object
* By default relies on T::BBox() method, should be specialized if the T object
* doesn't allow that method.
* doesn't allow that method.
* @param
o
bject generic T object
* @param
aO
bject generic T object
* @return a BOX2I object containing the bounding box of the T object.
* @return a BOX2I object containing the bounding box of the T object.
*/
*/
template
<
class
T
>
template
<
class
T
>
...
@@ -75,8 +75,8 @@ BOX2I boundingBox( T aObject )
...
@@ -75,8 +75,8 @@ BOX2I boundingBox( T aObject )
* It is used by SHAPE_INDEX to implement Accept().
* It is used by SHAPE_INDEX to implement Accept().
* By default relies on V::operation() redefinition, should be specialized if V class
* By default relies on V::operation() redefinition, should be specialized if V class
* doesn't have its () operation defined to accept T objects.
* doesn't have its () operation defined to accept T objects.
* @param
o
bject generic T object
* @param
aO
bject generic T object
* @param
v
isitor V visitor object
* @param
aV
isitor V visitor object
*/
*/
template
<
class
T
,
class
V
>
template
<
class
T
,
class
V
>
void
acceptVisitor
(
T
aObject
,
V
aVisitor
)
void
acceptVisitor
(
T
aObject
,
V
aVisitor
)
...
@@ -91,9 +91,9 @@ void acceptVisitor( T aObject, V aVisitor )
...
@@ -91,9 +91,9 @@ void acceptVisitor( T aObject, V aVisitor )
* It is used by SHAPE_INDEX to implement Query().
* It is used by SHAPE_INDEX to implement Query().
* By default relies on T::Collide(U) method, should be specialized if the T object
* By default relies on T::Collide(U) method, should be specialized if the T object
* doesn't allow that method.
* doesn't allow that method.
* @param
o
bject generic T object
* @param
aO
bject generic T object
* @param anotherObject generic U object
* @param a
A
notherObject generic U object
* @param
m
inDistance minimum collision distance
* @param
aM
inDistance minimum collision distance
* @return if object and anotherObject collide
* @return if object and anotherObject collide
*/
*/
template
<
class
T
,
class
U
>
template
<
class
T
,
class
U
>
...
@@ -126,7 +126,7 @@ class SHAPE_INDEX
...
@@ -126,7 +126,7 @@ class SHAPE_INDEX
* Function Init()
* Function Init()
*
*
* Setup the internal tree iterator.
* Setup the internal tree iterator.
* @param
t
ree pointer to a RTREE object
* @param
aT
ree pointer to a RTREE object
*/
*/
void
Init
(
RTree
<
T
,
int
,
2
,
float
>*
aTree
)
void
Init
(
RTree
<
T
,
int
,
2
,
float
>*
aTree
)
{
{
...
@@ -138,7 +138,7 @@ class SHAPE_INDEX
...
@@ -138,7 +138,7 @@ class SHAPE_INDEX
* Iterator constructor
* Iterator constructor
*
*
* Creates an iterator for the index object
* Creates an iterator for the index object
* @param
i
ndex SHAPE_INDEX object to iterate
* @param
aI
ndex SHAPE_INDEX object to iterate
*/
*/
Iterator
(
SHAPE_INDEX
*
aIndex
)
Iterator
(
SHAPE_INDEX
*
aIndex
)
{
{
...
@@ -244,7 +244,7 @@ class SHAPE_INDEX
...
@@ -244,7 +244,7 @@ class SHAPE_INDEX
* Function Accept()
* Function Accept()
*
*
* Accepts a visitor for every SHAPE object contained in this INDEX.
* Accepts a visitor for every SHAPE object contained in this INDEX.
* @param
v
isitor Visitor object to be run
* @param
aV
isitor Visitor object to be run
*/
*/
template
<
class
V
>
template
<
class
V
>
void
Accept
(
V
aVisitor
)
void
Accept
(
V
aVisitor
)
...
@@ -271,9 +271,9 @@ class SHAPE_INDEX
...
@@ -271,9 +271,9 @@ class SHAPE_INDEX
* Function Query()
* Function Query()
*
*
* Runs a callback on every SHAPE object contained in the bounding box of (shape).
* Runs a callback on every SHAPE object contained in the bounding box of (shape).
* @param
s
hape shape to search against
* @param
aS
hape shape to search against
* @param
m
inDistance distance threshold
* @param
aM
inDistance distance threshold
* @param
v
isitor object to be invoked on every object contained in the search area.
* @param
aV
isitor object to be invoked on every object contained in the search area.
*/
*/
template
<
class
V
>
template
<
class
V
>
int
Query
(
const
SHAPE
*
aShape
,
int
aMinDistance
,
V
&
aVisitor
,
bool
aExact
)
int
Query
(
const
SHAPE
*
aShape
,
int
aMinDistance
,
V
&
aVisitor
,
bool
aExact
)
...
...
include/geometry/shape_line_chain.h
View file @
c9d3fd6d
...
@@ -270,7 +270,7 @@ public:
...
@@ -270,7 +270,7 @@ public:
* Function Collide()
* Function Collide()
*
*
* Checks if box aBox lies closer to us than aClearance.
* Checks if box aBox lies closer to us than aClearance.
* @param a
P
the box to check for collisions with
* @param a
Box
the box to check for collisions with
* @param aClearance minimum distance that does not qualify as a collision.
* @param aClearance minimum distance that does not qualify as a collision.
* @return true, when a collision has been found
* @return true, when a collision has been found
*/
*/
...
...
include/math/matrix3x3.h
View file @
c9d3fd6d
...
@@ -78,12 +78,12 @@ public:
...
@@ -78,12 +78,12 @@ public:
* @param a00 is the component [0,0].
* @param a00 is the component [0,0].
* @param a01 is the component [0,1].
* @param a01 is the component [0,1].
* @param a02 is the component [0,2].
* @param a02 is the component [0,2].
* @param a10 is the component [1,0].
* @param a11 is the component [1,1].
* @param a11 is the component [1,1].
* @param a12 is the component [1,2].
* @param a12 is the component [1,2].
* @param a13 is the component [1,3].
* @param a20 is the component [2,0].
* @param a20 is the component [2,0].
* @param a21 is the component [2,1].
* @param a21 is the component [2,1].
* @param a
00
is the component [2,2].
* @param a
22
is the component [2,2].
*/
*/
MATRIX3x3
(
T
a00
,
T
a01
,
T
a02
,
T
a10
,
T
a11
,
T
a12
,
T
a20
,
T
a21
,
T
a22
);
MATRIX3x3
(
T
a00
,
T
a01
,
T
a02
,
T
a10
,
T
a11
,
T
a12
,
T
a20
,
T
a21
,
T
a22
);
...
...
include/painter.h
View file @
c9d3fd6d
...
@@ -133,7 +133,7 @@ public:
...
@@ -133,7 +133,7 @@ public:
* Function SetHighlight
* Function SetHighlight
* Turns on/off highlighting - it may be done for the active layer or the specified net.
* Turns on/off highlighting - it may be done for the active layer or the specified net.
* @param aEnabled tells if highlighting should be enabled.
* @param aEnabled tells if highlighting should be enabled.
* @param aNet
C
ode is optional and if specified, turns on higlighting only for the net with
* @param aNet
c
ode is optional and if specified, turns on higlighting only for the net with
* number given as the parameter.
* number given as the parameter.
*/
*/
inline
void
SetHighlight
(
bool
aEnabled
,
int
aNetcode
=
-
1
)
inline
void
SetHighlight
(
bool
aEnabled
,
int
aNetcode
=
-
1
)
...
@@ -180,7 +180,7 @@ public:
...
@@ -180,7 +180,7 @@ public:
/**
/**
* Function TranslateColor
* Function TranslateColor
* Returns the color responding to the one of EDA_COLOR_T enum values.
* Returns the color responding to the one of EDA_COLOR_T enum values.
* @param
EDA_COLOR_T c
olor equivalent.
* @param
aC
olor equivalent.
*/
*/
inline
const
COLOR4D
&
TranslateColor
(
EDA_COLOR_T
aColor
)
inline
const
COLOR4D
&
TranslateColor
(
EDA_COLOR_T
aColor
)
{
{
...
...
include/profile.h
View file @
c9d3fd6d
...
@@ -68,8 +68,8 @@ struct prof_counter
...
@@ -68,8 +68,8 @@ struct prof_counter
/**
/**
* Function prof_start
* Function prof_start
* Begins code execution time counting for a given profiling counter.
* Begins code execution time counting for a given profiling counter.
* @param
c
nt is the counter which should be started.
* @param
aC
nt is the counter which should be started.
*
@param
use_rdtsc tells if processor's time-stamp counter should be used for time counting.
* use_rdtsc tells if processor's time-stamp counter should be used for time counting.
* Otherwise is system tics method will be used. IMPORTANT: time-stamp counter should not
* Otherwise is system tics method will be used. IMPORTANT: time-stamp counter should not
* be used on multicore machines executing threaded code.
* be used on multicore machines executing threaded code.
*/
*/
...
@@ -81,7 +81,7 @@ static inline void prof_start( prof_counter* aCnt )
...
@@ -81,7 +81,7 @@ static inline void prof_start( prof_counter* aCnt )
/**
/**
* Function prof_stop
* Function prof_stop
* Ends code execution time counting for a given profiling counter.
* Ends code execution time counting for a given profiling counter.
* @param
c
nt is the counter which should be stopped.
* @param
aC
nt is the counter which should be stopped.
*/
*/
static
inline
void
prof_end
(
prof_counter
*
aCnt
)
static
inline
void
prof_end
(
prof_counter
*
aCnt
)
{
{
...
...
include/project.h
View file @
c9d3fd6d
...
@@ -86,6 +86,13 @@ public:
...
@@ -86,6 +86,13 @@ public:
*/
*/
VTBL_ENTRY
const
wxString
GetProjectFullName
()
const
;
VTBL_ENTRY
const
wxString
GetProjectFullName
()
const
;
/**
* Function GetProjectPath
* returns the full path of the project. This is the path
* of the *.pro file and will always be an absolute path, ending by a dir separator.
*/
VTBL_ENTRY
const
wxString
GetProjectPath
()
const
;
/**
/**
* Function FootprintLibTblName
* Function FootprintLibTblName
* returns the path and filename of this project's fp-lib-table,
* returns the path and filename of this project's fp-lib-table,
...
@@ -98,8 +105,8 @@ public:
...
@@ -98,8 +105,8 @@ public:
* saves the current "project" parameters into the wxConfigBase* derivative.
* saves the current "project" parameters into the wxConfigBase* derivative.
* Then the wxConfigBase derivative is written to the *.pro file for the project.
* Then the wxConfigBase derivative is written to the *.pro file for the project.
*
*
* @param aS
earchS
a SEARCH_STACK
* @param aS
List
a SEARCH_STACK
* @param aGroupName
* @param aGroupName
is the name of the group inside the config which contains parameters
* @param aParams is a ptr vector of PARAM_CFG_BASE derivatives.
* @param aParams is a ptr vector of PARAM_CFG_BASE derivatives.
* Saved parameters are the subset in this array having the .m_Setup member
* Saved parameters are the subset in this array having the .m_Setup member
* set to false.
* set to false.
...
@@ -258,9 +265,9 @@ private:
...
@@ -258,9 +265,9 @@ private:
* @param aProjectFileName is the *.pro file to open.
* @param aProjectFileName is the *.pro file to open.
*/
*/
wxConfigBase
*
configCreate
(
const
SEARCH_STACK
&
aSList
,
wxConfigBase
*
configCreate
(
const
SEARCH_STACK
&
aSList
,
const
wxString
&
aGroupName
,
const
wxString
&
aFileName
=
wxEmptyString
);
const
wxString
&
aGroupName
,
const
wxString
&
a
Project
FileName
=
wxEmptyString
);
wxFileName
m_project_name
;
///<
<fullpath>/<basename
>.pro
wxFileName
m_project_name
;
///<
\<fullpath\>/\<basename\
>.pro
wxString
m_pro_date_and_time
;
wxString
m_pro_date_and_time
;
/// @see this::SetRString(), GetRString(), and enum RSTRING_T.
/// @see this::SetRString(), GetRString(), and enum RSTRING_T.
...
...
include/richio.h
View file @
c9d3fd6d
...
@@ -58,8 +58,7 @@ int
...
@@ -58,8 +58,7 @@ int
* Function StrPrintf
* Function StrPrintf
* is like sprintf() but the output is returned in a std::string instead of to a
* is like sprintf() but the output is returned in a std::string instead of to a
* character array.
* character array.
* @param aResult is the string to append to, previous text is not clear()ed.
* @param format is a printf() style format string.
* @param aFormat is a printf() style format string.
* @return std::string - the result of the sprintf().
* @return std::string - the result of the sprintf().
*/
*/
std
::
string
std
::
string
...
...
include/sch_base_frame.h
View file @
c9d3fd6d
...
@@ -107,7 +107,7 @@ protected:
...
@@ -107,7 +107,7 @@ protected:
* Calls the library viewer to select component to import into schematic.
* Calls the library viewer to select component to import into schematic.
* if the library viewer is currently running, it is closed and reopened
* if the library viewer is currently running, it is closed and reopened
* in modal mode.
* in modal mode.
* @param aPreslectedAlias Preselected component alias. NULL if none.
* @param aPres
e
lectedAlias Preselected component alias. NULL if none.
* @param aUnit Pointer to Unit-number. Input is the pre-selected unit, output
* @param aUnit Pointer to Unit-number. Input is the pre-selected unit, output
* is the finally selected unit by the user. Can be NULL.
* is the finally selected unit by the user. Can be NULL.
* @param aConvert Pointer to deMorgan conversion. Input is what is pre-selected,
* @param aConvert Pointer to deMorgan conversion. Input is what is pre-selected,
...
...
include/tool/tool_dispatcher.h
View file @
c9d3fd6d
...
@@ -54,9 +54,9 @@ public:
...
@@ -54,9 +54,9 @@ public:
* Constructor
* Constructor
*
*
* @param aToolMgr: tool manager instance the events will be sent to
* @param aToolMgr: tool manager instance the events will be sent to
* @param aEditFrame: the frame wx events come from
*/
*/
TOOL_DISPATCHER
(
TOOL_MANAGER
*
aToolMgr
);
TOOL_DISPATCHER
(
TOOL_MANAGER
*
aToolMgr
);
virtual
~
TOOL_DISPATCHER
();
virtual
~
TOOL_DISPATCHER
();
/**
/**
...
...
include/tool/tool_manager.h
View file @
c9d3fd6d
...
@@ -252,6 +252,7 @@ public:
...
@@ -252,6 +252,7 @@ public:
/**
/**
* Sets behaviour of the tool's context popup menu.
* Sets behaviour of the tool's context popup menu.
* @param aTool - the parent tool
* @param aMenu - the menu structure, defined by the tool
* @param aMenu - the menu structure, defined by the tool
* @param aTrigger - when the menu is activated:
* @param aTrigger - when the menu is activated:
* CMENU_NOW: opens the menu right now
* CMENU_NOW: opens the menu right now
...
@@ -309,7 +310,7 @@ private:
...
@@ -309,7 +310,7 @@ private:
/**
/**
* Function dispatchStandardEvents()
* Function dispatchStandardEvents()
* Handles specific events, that are intended for TOOL_MANAGER rather than tools.
* Handles specific events, that are intended for TOOL_MANAGER rather than tools.
* @aEvent is the event to be processed.
* @
param
aEvent is the event to be processed.
* @return False if the event was processed and should not go any further.
* @return False if the event was processed and should not go any further.
*/
*/
bool
dispatchStandardEvents
(
TOOL_EVENT
&
aEvent
);
bool
dispatchStandardEvents
(
TOOL_EVENT
&
aEvent
);
...
@@ -350,7 +351,7 @@ private:
...
@@ -350,7 +351,7 @@ private:
* Makes a tool active, so it can receive events and react to them. Activated tool is pushed
* Makes a tool active, so it can receive events and react to them. Activated tool is pushed
* on the active tools stack, so the last activated tool receives events first.
* on the active tools stack, so the last activated tool receives events first.
*
*
* @param a
ToolId
is the name of tool to be run.
* @param a
Name
is the name of tool to be run.
*/
*/
bool
runTool
(
const
std
::
string
&
aName
);
bool
runTool
(
const
std
::
string
&
aName
);
...
@@ -359,7 +360,7 @@ private:
...
@@ -359,7 +360,7 @@ private:
* Makes a tool active, so it can receive events and react to them. Activated tool is pushed
* Makes a tool active, so it can receive events and react to them. Activated tool is pushed
* on the active tools stack, so the last activated tool receives events first.
* on the active tools stack, so the last activated tool receives events first.
*
*
* @param aTool
Id
is the tool to be run.
* @param aTool is the tool to be run.
*/
*/
bool
runTool
(
TOOL_BASE
*
aTool
);
bool
runTool
(
TOOL_BASE
*
aTool
);
...
@@ -379,7 +380,7 @@ private:
...
@@ -379,7 +380,7 @@ private:
* Returns information about a tool registration status.
* Returns information about a tool registration status.
*
*
* @param aTool is the tool to be checked.
* @param aTool is the tool to be checked.
* @return
T
rue if the tool is in the registered tools list, false otherwise.
* @return
t
rue if the tool is in the registered tools list, false otherwise.
*/
*/
bool
isRegistered
(
TOOL_BASE
*
aTool
)
const
bool
isRegistered
(
TOOL_BASE
*
aTool
)
const
{
{
...
...
include/view/view.h
View file @
c9d3fd6d
...
@@ -65,7 +65,6 @@ public:
...
@@ -65,7 +65,6 @@ public:
/**
/**
* Constructor.
* Constructor.
* @param aIsDynamic decides whether we are creating a static or a dynamic VIEW.
* @param aIsDynamic decides whether we are creating a static or a dynamic VIEW.
* @param aUseGroups tells if items added to the VIEW should be stored in groups.
*/
*/
VIEW
(
bool
aIsDynamic
=
true
);
VIEW
(
bool
aIsDynamic
=
true
);
...
@@ -192,6 +191,7 @@ public:
...
@@ -192,6 +191,7 @@ public:
* Function SetScale()
* Function SetScale()
* Sets the scaling factor, zooming around a given anchor point.
* Sets the scaling factor, zooming around a given anchor point.
* (depending on correct GAL unit length & DPI settings).
* (depending on correct GAL unit length & DPI settings).
* @param aAnchor: the zooming anchor point
* @param aScale: the scale factor
* @param aScale: the scale factor
*/
*/
void
SetScale
(
double
aScale
,
const
VECTOR2D
&
aAnchor
);
void
SetScale
(
double
aScale
,
const
VECTOR2D
&
aAnchor
);
...
@@ -235,7 +235,7 @@ public:
...
@@ -235,7 +235,7 @@ public:
* Function ToWorld()
* Function ToWorld()
* Converts a screen space one dimensional size to a one dimensional size in world
* Converts a screen space one dimensional size to a one dimensional size in world
* space coordinates.
* space coordinates.
* @param a
Coord
: the size to be converted
* @param a
Size
: the size to be converted
*/
*/
double
ToWorld
(
double
aSize
)
const
;
double
ToWorld
(
double
aSize
)
const
;
...
@@ -383,7 +383,7 @@ public:
...
@@ -383,7 +383,7 @@ public:
* Enables or disables display of the top layer. When disabled - layers are rendered as usual
* Enables or disables display of the top layer. When disabled - layers are rendered as usual
* with no influence from SetTopLayer function. Otherwise on the top there is displayed the
* with no influence from SetTopLayer function. Otherwise on the top there is displayed the
* layer set previously with SetTopLayer function.
* layer set previously with SetTopLayer function.
* @param aEnable
d:
whether to enable or disable display of the top layer.
* @param aEnable whether to enable or disable display of the top layer.
*/
*/
void
EnableTopLayer
(
bool
aEnable
);
void
EnableTopLayer
(
bool
aEnable
);
...
@@ -574,7 +574,7 @@ private:
...
@@ -574,7 +574,7 @@ private:
* Function draw()
* Function draw()
* Draws a group of items on all layers that those items use.
* Draws a group of items on all layers that those items use.
*
*
* @param a
Item
is the group to be drawn.
* @param a
Group
is the group to be drawn.
* @param aImmediate dictates the way of drawing - it allows to force immediate drawing mode
* @param aImmediate dictates the way of drawing - it allows to force immediate drawing mode
* for cached items.
* for cached items.
*/
*/
...
...
include/view/view_controls.h
View file @
c9d3fd6d
...
@@ -125,7 +125,7 @@ public:
...
@@ -125,7 +125,7 @@ public:
/**
/**
* Function SetAutoPanMArgin()
* Function SetAutoPanMArgin()
* Sets margin for autopanning (ie. the area when autopanning becomes active).
* Sets margin for autopanning (ie. the area when autopanning becomes active).
* @param a
Speed
is a new margin for autopanning.
* @param a
Margin
is a new margin for autopanning.
*/
*/
virtual
void
SetAutoPanMargin
(
float
aMargin
)
virtual
void
SetAutoPanMargin
(
float
aMargin
)
{
{
...
...
include/wxunittext.h
View file @
c9d3fd6d
...
@@ -68,7 +68,7 @@ public:
...
@@ -68,7 +68,7 @@ public:
*/
*/
virtual
void
SetValue
(
double
aValue
);
virtual
void
SetValue
(
double
aValue
);
/*
*
/*
* Function GetValue
* Function GetValue
* Returns the current value using specified units (if currently used units are different, then
* Returns the current value using specified units (if currently used units are different, then
* they are converted first).
* they are converted first).
...
...
kicad/mainframe.cpp
View file @
c9d3fd6d
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
#include <menus_helpers.h>
#include <menus_helpers.h>
#define T
reeFrameWidthEntry
wxT( "LeftWinWidth" )
#define T
REE_FRAME_WIDTH_ENTRY
wxT( "LeftWinWidth" )
KICAD_MANAGER_FRAME
::
KICAD_MANAGER_FRAME
(
wxWindow
*
parent
,
KICAD_MANAGER_FRAME
::
KICAD_MANAGER_FRAME
(
wxWindow
*
parent
,
...
@@ -440,13 +440,11 @@ void KICAD_MANAGER_FRAME::OnRunCvpcb( wxCommandEvent& event )
...
@@ -440,13 +440,11 @@ void KICAD_MANAGER_FRAME::OnRunCvpcb( wxCommandEvent& event )
#include <wx/filefn.h>
#include <wx/filefn.h>
void
KICAD_MANAGER_FRAME
::
OnRunGerbview
(
wxCommandEvent
&
event
)
void
KICAD_MANAGER_FRAME
::
OnRunGerbview
(
wxCommandEvent
&
event
)
{
{
// Gerbview is called without any file to open, because we do not know
// Gerbview is called without any file to open, because we do not know
// the list and the name of files to open (if any...).
// the list and the name of files to open (if any...).
// however we run it in the path of the project
// however we run it in the path of the project
wxFileName
fn
(
GetProjectFileName
()
);
wxString
cwd
=
wxGetCwd
();
wxString
cwd
=
wxGetCwd
();
wxSetWorkingDirectory
(
fn
.
GetPathWithSep
()
);
wxSetWorkingDirectory
(
Prj
().
GetProjectPath
()
);
Execute
(
this
,
GERBVIEW_EXE
,
wxEmptyString
);
Execute
(
this
,
GERBVIEW_EXE
,
wxEmptyString
);
wxSetWorkingDirectory
(
cwd
);
wxSetWorkingDirectory
(
cwd
);
}
}
...
@@ -470,7 +468,7 @@ void KICAD_MANAGER_FRAME::OnOpenFileInTextEditor( wxCommandEvent& event )
...
@@ -470,7 +468,7 @@ void KICAD_MANAGER_FRAME::OnOpenFileInTextEditor( wxCommandEvent& event )
#endif
#endif
mask
=
_
(
"Text file ("
)
+
mask
+
wxT
(
")|"
)
+
mask
;
mask
=
_
(
"Text file ("
)
+
mask
+
wxT
(
")|"
)
+
mask
;
wxString
default_dir
=
wxFileName
(
Prj
().
GetProjectFullName
()
).
GetPathWithSep
();
wxString
default_dir
=
Prj
().
GetProjectPath
();
wxFileDialog
dlg
(
this
,
_
(
"Load File to Edit"
),
default_dir
,
wxFileDialog
dlg
(
this
,
_
(
"Load File to Edit"
),
default_dir
,
wxEmptyString
,
mask
,
wxFD_OPEN
);
wxEmptyString
,
mask
,
wxFD_OPEN
);
...
@@ -509,14 +507,14 @@ void KICAD_MANAGER_FRAME::ClearMsg()
...
@@ -509,14 +507,14 @@ void KICAD_MANAGER_FRAME::ClearMsg()
void
KICAD_MANAGER_FRAME
::
LoadSettings
(
wxConfigBase
*
aCfg
)
void
KICAD_MANAGER_FRAME
::
LoadSettings
(
wxConfigBase
*
aCfg
)
{
{
EDA_BASE_FRAME
::
LoadSettings
(
aCfg
);
EDA_BASE_FRAME
::
LoadSettings
(
aCfg
);
aCfg
->
Read
(
T
reeFrameWidthEntry
,
&
m_leftWinWidth
);
aCfg
->
Read
(
T
REE_FRAME_WIDTH_ENTRY
,
&
m_leftWinWidth
);
}
}
void
KICAD_MANAGER_FRAME
::
SaveSettings
(
wxConfigBase
*
aCfg
)
void
KICAD_MANAGER_FRAME
::
SaveSettings
(
wxConfigBase
*
aCfg
)
{
{
EDA_BASE_FRAME
::
SaveSettings
(
aCfg
);
EDA_BASE_FRAME
::
SaveSettings
(
aCfg
);
aCfg
->
Write
(
T
reeFrameWidthEntry
,
m_LeftWin
->
GetSize
().
x
);
aCfg
->
Write
(
T
REE_FRAME_WIDTH_ENTRY
,
m_LeftWin
->
GetSize
().
x
);
}
}
...
...
pcbnew/autorouter/autorout.cpp
View file @
c9d3fd6d
...
@@ -95,7 +95,7 @@ void PCB_EDIT_FRAME::Autoroute( wxDC* DC, int mode )
...
@@ -95,7 +95,7 @@ void PCB_EDIT_FRAME::Autoroute( wxDC* DC, int mode )
Module
=
(
MODULE
*
)
GetScreen
()
->
GetCurItem
();
Module
=
(
MODULE
*
)
GetScreen
()
->
GetCurItem
();
if
(
(
Module
==
NULL
)
||
(
Module
->
Type
()
!=
PCB_MODULE_T
)
)
if
(
(
Module
==
NULL
)
||
(
Module
->
Type
()
!=
PCB_MODULE_T
)
)
{
{
wxMessageBox
(
_
(
"
Module
not selected"
)
);
wxMessageBox
(
_
(
"
Footprint
not selected"
)
);
return
;
return
;
}
}
break
;
break
;
...
...
pcbnew/autorouter/move_and_route_event_functions.cpp
View file @
c9d3fd6d
...
@@ -136,7 +136,7 @@ void PCB_EDIT_FRAME::OnPlaceOrRouteFootprints( wxCommandEvent& event )
...
@@ -136,7 +136,7 @@ void PCB_EDIT_FRAME::OnPlaceOrRouteFootprints( wxCommandEvent& event )
case
ID_POPUP_PCB_SPREAD_NEW_MODULES
:
case
ID_POPUP_PCB_SPREAD_NEW_MODULES
:
if
(
GetBoard
()
->
m_Modules
==
NULL
)
if
(
GetBoard
()
->
m_Modules
==
NULL
)
{
{
DisplayError
(
this
,
_
(
"No
modules
found!"
)
);
DisplayError
(
this
,
_
(
"No
footprint
found!"
)
);
return
;
return
;
}
}
...
...
pcbnew/class_board.h
View file @
c9d3fd6d
...
@@ -651,8 +651,8 @@ public:
...
@@ -651,8 +651,8 @@ public:
* GetLayerName() if want the layer names of a specific BOARD, which could
* GetLayerName() if want the layer names of a specific BOARD, which could
* be different than the default if the user has renamed any copper layers.
* be different than the default if the user has renamed any copper layers.
*
*
* @param aLayer
Number is the layer number
to fetch
* @param aLayer
Id is the layer identifier (index)
to fetch
* @return const wxString - containing the layer name or "BAD INDEX" if aLayer
Number
* @return const wxString - containing the layer name or "BAD INDEX" if aLayer
Id
* is not legal
* is not legal
*/
*/
static
const
wxString
GetStandardLayerName
(
LAYER_ID
aLayerId
)
static
const
wxString
GetStandardLayerName
(
LAYER_ID
aLayerId
)
...
...
pcbnew/class_text_mod.cpp
View file @
c9d3fd6d
...
@@ -254,11 +254,9 @@ void TEXTE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
...
@@ -254,11 +254,9 @@ void TEXTE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
if
(
panel
==
NULL
)
if
(
panel
==
NULL
)
return
;
return
;
MODULE
*
module
=
static_cast
<
MODULE
*>
(
m_Parent
);
/* parent must *not* be NULL (a footprint text without a footprint
/* parent must *not* be NULL (a module text without a footprint
parent has no sense) */
parent has no sense) */
wxASSERT
(
m
odule
);
wxASSERT
(
m
_Parent
);
BOARD
*
brd
=
GetBoard
(
);
BOARD
*
brd
=
GetBoard
(
);
...
@@ -384,7 +382,7 @@ void TEXTE_MODULE::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
...
@@ -384,7 +382,7 @@ void TEXTE_MODULE::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
};
};
Line
=
module
->
GetReference
();
Line
=
module
->
GetReference
();
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"
Module
"
),
Line
,
DARKCYAN
)
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"
Footprint
"
),
Line
,
DARKCYAN
)
);
Line
=
GetShownText
();
Line
=
GetShownText
();
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Text"
),
Line
,
BROWN
)
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Text"
),
Line
,
BROWN
)
);
...
...
pcbnew/class_track.h
View file @
c9d3fd6d
...
@@ -398,8 +398,8 @@ public:
...
@@ -398,8 +398,8 @@ public:
* Function SetLayerPair
* Function SetLayerPair
* For a via m_Layer contains the top layer, the other layer is in
* For a via m_Layer contains the top layer, the other layer is in
* m_BottomLayer
* m_BottomLayer
* @param
top_l
ayer = first layer connected by the via
* @param
aTopL
ayer = first layer connected by the via
* @param
bottom_l
ayer = last layer connected by the via
* @param
aBottomL
ayer = last layer connected by the via
*/
*/
void
SetLayerPair
(
LAYER_ID
aTopLayer
,
LAYER_ID
aBottomLayer
);
void
SetLayerPair
(
LAYER_ID
aTopLayer
,
LAYER_ID
aBottomLayer
);
...
...
pcbnew/class_zone.h
View file @
c9d3fd6d
...
@@ -235,7 +235,7 @@ public:
...
@@ -235,7 +235,7 @@ public:
/**
/**
* Function HitTest
* Function HitTest
* tests if a point is near an outline edge or a corner of this zone.
* tests if a point is near an outline edge or a corner of this zone.
* @param a
RefPos A
wxPoint to test
* @param a
Position the
wxPoint to test
* @return bool - true if a hit, else false
* @return bool - true if a hit, else false
*/
*/
virtual
bool
HitTest
(
const
wxPoint
&
aPosition
)
const
;
virtual
bool
HitTest
(
const
wxPoint
&
aPosition
)
const
;
...
@@ -244,7 +244,7 @@ public:
...
@@ -244,7 +244,7 @@ public:
* Function HitTest
* Function HitTest
* tests if a point is inside the zone area, i.e. inside the main outline
* tests if a point is inside the zone area, i.e. inside the main outline
* and outside holes.
* and outside holes.
* @param a
RefPos A
wxPoint to test
* @param a
Position : the
wxPoint to test
* @return bool - true if a hit, else false
* @return bool - true if a hit, else false
*/
*/
bool
HitTestInsideZone
(
const
wxPoint
&
aPosition
)
const
bool
HitTestInsideZone
(
const
wxPoint
&
aPosition
)
const
...
...
pcbnew/cross-probing.cpp
View file @
c9d3fd6d
...
@@ -183,9 +183,8 @@ std::string FormatProbeItem( BOARD_ITEM* aItem )
...
@@ -183,9 +183,8 @@ std::string FormatProbeItem( BOARD_ITEM* aItem )
}
}
/**
/* Send a remote command to Eeschema via a socket,
* Send a remote command to Eeschema via a socket,
* aSyncItem = item to be located on schematic (module, pin or text)
* @param objectToSync = item to be located on schematic (module, pin or text)
* Commands are
* Commands are
* $PART: "reference" put cursor on component anchor
* $PART: "reference" put cursor on component anchor
* $PART: "reference" $PAD: "pad number" put cursor on the component pin
* $PART: "reference" $PAD: "pad number" put cursor on the component pin
...
...
pcbnew/dialogs/dialog_netlist.cpp
View file @
c9d3fd6d
...
@@ -209,7 +209,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
...
@@ -209,7 +209,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
{
{
if
(
m_parent
->
GetBoard
()
->
m_Modules
==
NULL
)
if
(
m_parent
->
GetBoard
()
->
m_Modules
==
NULL
)
{
{
DisplayInfoMessage
(
this
,
_
(
"No
module
s"
)
);
DisplayInfoMessage
(
this
,
_
(
"No
footprint
s"
)
);
return
;
return
;
}
}
...
@@ -268,7 +268,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
...
@@ -268,7 +268,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
// Search for missing modules on board.
// Search for missing modules on board.
if
(
missing
.
size
()
==
0
)
if
(
missing
.
size
()
==
0
)
list
<<
wxT
(
"<p><b>"
)
<<
_
(
"No missing
module
s."
)
<<
wxT
(
"</b></p>"
);
list
<<
wxT
(
"<p><b>"
)
<<
_
(
"No missing
footprint
s."
)
<<
wxT
(
"</b></p>"
);
else
else
{
{
list
<<
wxT
(
"<p><b>"
)
<<
_
(
"Missing:"
)
<<
wxT
(
"</b></p>"
);
list
<<
wxT
(
"<p><b>"
)
<<
_
(
"Missing:"
)
<<
wxT
(
"</b></p>"
);
...
@@ -287,7 +287,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
...
@@ -287,7 +287,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
// Search for modules found on board but not in net list.
// Search for modules found on board but not in net list.
if
(
notInNetlist
.
size
()
==
0
)
if
(
notInNetlist
.
size
()
==
0
)
list
<<
wxT
(
"<p><b>"
)
<<
_
(
"No extra
module
s."
)
<<
wxT
(
"</b></p>"
);
list
<<
wxT
(
"<p><b>"
)
<<
_
(
"No extra
footprint
s."
)
<<
wxT
(
"</b></p>"
);
else
else
{
{
list
<<
wxT
(
"<p><b>"
)
<<
_
(
"Not in Netlist:"
)
<<
wxT
(
"</b></p>"
);
list
<<
wxT
(
"<p><b>"
)
<<
_
(
"Not in Netlist:"
)
<<
wxT
(
"</b></p>"
);
...
@@ -319,7 +319,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
...
@@ -319,7 +319,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
<<
wxT
(
"</b></p>"
);
<<
wxT
(
"</b></p>"
);
}
}
HTML_MESSAGE_BOX
dlg
(
this
,
_
(
"Check
Module
s"
)
);
HTML_MESSAGE_BOX
dlg
(
this
,
_
(
"Check
footprint
s"
)
);
dlg
.
AddHTML_Text
(
list
);
dlg
.
AddHTML_Text
(
list
);
dlg
.
ShowModal
();
dlg
.
ShowModal
();
}
}
...
...
pcbnew/exporters/gen_modules_placefile.cpp
View file @
c9d3fd6d
...
@@ -554,9 +554,9 @@ void PCB_EDIT_FRAME::GenFootprintsReport( wxCommandEvent& event )
...
@@ -554,9 +554,9 @@ void PCB_EDIT_FRAME::GenFootprintsReport( wxCommandEvent& event )
wxString
msg
;
wxString
msg
;
if
(
success
)
if
(
success
)
{
{
msg
.
Printf
(
_
(
"
Module
report file created:
\n
'%s'"
),
msg
.
Printf
(
_
(
"
Footprint
report file created:
\n
'%s'"
),
GetChars
(
fn
.
GetFullPath
()
)
);
GetChars
(
fn
.
GetFullPath
()
)
);
wxMessageBox
(
msg
,
_
(
"
Module
Report"
),
wxICON_INFORMATION
);
wxMessageBox
(
msg
,
_
(
"
Footprint
Report"
),
wxICON_INFORMATION
);
}
}
else
else
...
...
pcbnew/exporters/gendrill_Excellon_writer.h
View file @
c9d3fd6d
...
@@ -181,6 +181,7 @@ public:
...
@@ -181,6 +181,7 @@ public:
* @param aMirror = true to create mirrored coordinates (Y coordinates negated)
* @param aMirror = true to create mirrored coordinates (Y coordinates negated)
* @param aMinimalHeader = true to use a minimal header (no comments, no info)
* @param aMinimalHeader = true to use a minimal header (no comments, no info)
* @param aOffset = drill coordinates offset
* @param aOffset = drill coordinates offset
* @param aMergePTHNPTH : true to create only one list which contains both PTH and NPTH
*/
*/
void
SetOptions
(
bool
aMirror
,
bool
aMinimalHeader
,
wxPoint
aOffset
,
bool
aMergePTHNPTH
)
void
SetOptions
(
bool
aMirror
,
bool
aMinimalHeader
,
wxPoint
aOffset
,
bool
aMergePTHNPTH
)
{
{
...
@@ -202,6 +203,7 @@ public:
...
@@ -202,6 +203,7 @@ public:
* @param aGenerateNPTH_list :
* @param aGenerateNPTH_list :
* true to create NPTH only list (with no plated holes)
* true to create NPTH only list (with no plated holes)
* false to created plated holes list (with no NPTH )
* false to created plated holes list (with no NPTH )
* @param aMergePTHNPTH : true to create only one list which contains both PTH and NPTH
*/
*/
void
BuildHolesList
(
int
aFirstLayer
,
int
aLastLayer
,
void
BuildHolesList
(
int
aFirstLayer
,
int
aLastLayer
,
bool
aExcludeThroughHoles
,
bool
aExcludeThroughHoles
,
...
...
pcbnew/files.cpp
View file @
c9d3fd6d
...
@@ -143,7 +143,7 @@ bool AskLoadBoardFileName( wxWindow* aParent, int* aCtl, wxString* aFileName, bo
...
@@ -143,7 +143,7 @@ bool AskLoadBoardFileName( wxWindow* aParent, int* aCtl, wxString* aFileName, bo
* puts up a wxFileDialog asking for a BOARD filename to save.
* puts up a wxFileDialog asking for a BOARD filename to save.
*
*
* @param aParent is a wxFrame passed to wxFileDialog.
* @param aParent is a wxFrame passed to wxFileDialog.
* @param aF
ullF
ileName on entry is a probable choice, on return is the
* @param aFileName on entry is a probable choice, on return is the
* chosen full filename (includes path).
* chosen full filename (includes path).
*
*
* @return bool - true if chosen, else false if user aborted.
* @return bool - true if chosen, else false if user aborted.
...
...
pcbnew/import_dxf/dialog_dxf_import.cpp
View file @
c9d3fd6d
...
@@ -206,16 +206,17 @@ bool InvokeDXFDialogBoardImport( PCB_BASE_FRAME* aCaller )
...
@@ -206,16 +206,17 @@ bool InvokeDXFDialogBoardImport( PCB_BASE_FRAME* aCaller )
bool
InvokeDXFDialogModuleImport
(
PCB_BASE_FRAME
*
aCaller
,
MODULE
*
aModule
)
bool
InvokeDXFDialogModuleImport
(
PCB_BASE_FRAME
*
aCaller
,
MODULE
*
aModule
)
{
{
wxASSERT
(
aModule
);
DIALOG_DXF_IMPORT
dlg
(
aCaller
);
DIALOG_DXF_IMPORT
dlg
(
aCaller
);
bool
success
=
(
dlg
.
ShowModal
()
==
wxID_OK
);
bool
success
=
(
dlg
.
ShowModal
()
==
wxID_OK
);
if
(
success
)
if
(
success
)
{
{
const
std
::
list
<
BOARD_ITEM
*>&
list
=
dlg
.
GetImportedItems
();
const
std
::
list
<
BOARD_ITEM
*>&
list
=
dlg
.
GetImportedItems
();
MODULE
*
module
=
aCaller
->
GetBoard
()
->
m_Modules
;
KIGFX
::
VIEW
*
view
=
aCaller
->
GetGalCanvas
()
->
GetView
();
KIGFX
::
VIEW
*
view
=
aCaller
->
GetGalCanvas
()
->
GetView
();
aCaller
->
SaveCopyInUndoList
(
m
odule
,
UR_MODEDIT
);
aCaller
->
SaveCopyInUndoList
(
aM
odule
,
UR_MODEDIT
);
aCaller
->
OnModify
();
aCaller
->
OnModify
();
std
::
list
<
BOARD_ITEM
*>::
const_iterator
it
,
itEnd
;
std
::
list
<
BOARD_ITEM
*>::
const_iterator
it
,
itEnd
;
...
@@ -230,9 +231,9 @@ bool InvokeDXFDialogModuleImport( PCB_BASE_FRAME* aCaller, MODULE* aModule )
...
@@ -230,9 +231,9 @@ bool InvokeDXFDialogModuleImport( PCB_BASE_FRAME* aCaller, MODULE* aModule )
{
{
case
PCB_LINE_T
:
case
PCB_LINE_T
:
{
{
converted
=
new
EDGE_MODULE
(
m
odule
);
converted
=
new
EDGE_MODULE
(
aM
odule
);
*
static_cast
<
DRAWSEGMENT
*>
(
converted
)
=
*
static_cast
<
DRAWSEGMENT
*>
(
item
);
*
static_cast
<
DRAWSEGMENT
*>
(
converted
)
=
*
static_cast
<
DRAWSEGMENT
*>
(
item
);
m
odule
->
Add
(
converted
);
aM
odule
->
Add
(
converted
);
static_cast
<
EDGE_MODULE
*>
(
converted
)
->
SetLocalCoord
();
static_cast
<
EDGE_MODULE
*>
(
converted
)
->
SetLocalCoord
();
delete
item
;
delete
item
;
break
;
break
;
...
@@ -240,20 +241,20 @@ bool InvokeDXFDialogModuleImport( PCB_BASE_FRAME* aCaller, MODULE* aModule )
...
@@ -240,20 +241,20 @@ bool InvokeDXFDialogModuleImport( PCB_BASE_FRAME* aCaller, MODULE* aModule )
case
PCB_TEXT_T
:
case
PCB_TEXT_T
:
{
{
converted
=
new
TEXTE_MODULE
(
m
odule
);
converted
=
new
TEXTE_MODULE
(
aM
odule
);
*
static_cast
<
TEXTE_PCB
*>
(
converted
)
=
*
static_cast
<
TEXTE_PCB
*>
(
item
);
*
static_cast
<
TEXTE_PCB
*>
(
converted
)
=
*
static_cast
<
TEXTE_PCB
*>
(
item
);
module
->
Add
(
module
);
aModule
->
Add
(
converted
);
static_cast
<
TEXTE_MODULE
*>
(
converted
)
->
SetLocalCoord
();
static_cast
<
TEXTE_MODULE
*>
(
converted
)
->
SetLocalCoord
();
delete
item
;
delete
item
;
break
;
break
;
}
}
default
:
default
:
assert
(
false
);
// there is a type that is currently not handled here
wxLogDebug
(
wxT
(
"type %d currently not handled"
),
item
->
Type
()
);
break
;
break
;
}
}
if
(
aCaller
->
IsGalCanvasActive
()
)
if
(
aCaller
->
IsGalCanvasActive
()
&&
converted
)
view
->
Add
(
converted
);
view
->
Add
(
converted
);
}
}
}
}
...
...
pcbnew/invoke_pcb_dialog.h
View file @
c9d3fd6d
...
@@ -64,6 +64,10 @@ class PCB_PLOT_PARAMS;
...
@@ -64,6 +64,10 @@ class PCB_PLOT_PARAMS;
* Function InvokePcbLibTableEditor
* Function InvokePcbLibTableEditor
* shows the modal DIALOG_FP_LIB_TABLE for purposes of editing two lib tables.
* shows the modal DIALOG_FP_LIB_TABLE for purposes of editing two lib tables.
*
*
* @param aCaller is the wxTopLevelWindow which is invoking the dialog.
* @param aGlobal is the common footprint library table file being edited.
* @param aProject is the project specific footprint library table file being edited.
*
* @return int - bits 0 and 1 tell whether a change was made to the @a aGlobal
* @return int - bits 0 and 1 tell whether a change was made to the @a aGlobal
* and/or the @a aProject table, respectively. If set, table was modified.
* and/or the @a aProject table, respectively. If set, table was modified.
*/
*/
...
@@ -76,7 +80,7 @@ int InvokePcbLibTableEditor( wxTopLevelWindow* aCaller, FP_LIB_TABLE* aGlobal, F
...
@@ -76,7 +80,7 @@ int InvokePcbLibTableEditor( wxTopLevelWindow* aCaller, FP_LIB_TABLE* aGlobal, F
* @param aCaller is the wxTopLevelWindow which is invoking the dialog.
* @param aCaller is the wxTopLevelWindow which is invoking the dialog.
* @param aNickname is the footprint library whose options are being edited.
* @param aNickname is the footprint library whose options are being edited.
* @param aPluginType is something that will pass through IO_MGR::EnumFromStr().
* @param aPluginType is something that will pass through IO_MGR::EnumFromStr().
* @param aOptions
In
is the options string on calling into this function.
* @param aOptions is the options string on calling into this function.
* @param aResult is where to put the result of the editing.
* @param aResult is where to put the result of the editing.
*/
*/
void
InvokePluginOptionsEditor
(
wxTopLevelWindow
*
aCaller
,
const
wxString
&
aNickname
,
void
InvokePluginOptionsEditor
(
wxTopLevelWindow
*
aCaller
,
const
wxString
&
aNickname
,
...
@@ -93,9 +97,10 @@ bool InvokeDXFDialogBoardImport( PCB_BASE_FRAME* aCaller );
...
@@ -93,9 +97,10 @@ bool InvokeDXFDialogBoardImport( PCB_BASE_FRAME* aCaller );
/**
/**
* Function InvokeDXFDialogModuleImport
* Function InvokeDXFDialogModuleImport
* shows the modal DIALOG_DXF_IMPORT for importing a DXF file
.to a module
.
* shows the modal DIALOG_DXF_IMPORT for importing a DXF file
as footprint outlines
.
*
*
* @param aCaller is the wxTopLevelWindow which is invoking the dialog.
* @param aCaller is the wxTopLevelWindow which is invoking the dialog.
* @param aModule is the footprint currently edited.
* @return true if the import was made.
* @return true if the import was made.
*/
*/
bool
InvokeDXFDialogModuleImport
(
PCB_BASE_FRAME
*
aCaller
,
MODULE
*
aModule
);
bool
InvokeDXFDialogModuleImport
(
PCB_BASE_FRAME
*
aCaller
,
MODULE
*
aModule
);
...
@@ -103,10 +108,20 @@ bool InvokeDXFDialogModuleImport( PCB_BASE_FRAME* aCaller, MODULE* aModule );
...
@@ -103,10 +108,20 @@ bool InvokeDXFDialogModuleImport( PCB_BASE_FRAME* aCaller, MODULE* aModule );
/**
/**
* Function InvokeLayerSetup
* Function InvokeLayerSetup
* shows the layer setup dialog
* shows the layer setup dialog
* @param aCaller is the wxTopLevelWindow which is invoking the dialog.
* @param aBoard is the currently edited board.
* @return bool - true if user pressed OK (did not abort), else false.
* @return bool - true if user pressed OK (did not abort), else false.
*/
*/
bool
InvokeLayerSetup
(
wxTopLevelWindow
*
aCaller
,
BOARD
*
aBoard
);
bool
InvokeLayerSetup
(
wxTopLevelWindow
*
aCaller
,
BOARD
*
aBoard
);
/**
* Function InvokeSVGPrint
* shows the SVG print dialog
* @param aCaller is the wxTopLevelWindow which is invoking the dialog.
* @param aBoard is the currently edited board.
* @param aSettings is the current pcb plot parameters.
* @return bool - true if user pressed OK (did not abort), else false.
*/
bool
InvokeSVGPrint
(
wxTopLevelWindow
*
aCaller
,
BOARD
*
aBoard
,
PCB_PLOT_PARAMS
*
aSettings
);
bool
InvokeSVGPrint
(
wxTopLevelWindow
*
aCaller
,
BOARD
*
aBoard
,
PCB_PLOT_PARAMS
*
aSettings
);
#endif // INVOKE_A_DIALOG_H_
#endif // INVOKE_A_DIALOG_H_
pcbnew/loadcmp.cpp
View file @
c9d3fd6d
...
@@ -415,10 +415,10 @@ wxString PCB_BASE_FRAME::SelectFootprint( EDA_DRAW_FRAME* aWindow,
...
@@ -415,10 +415,10 @@ wxString PCB_BASE_FRAME::SelectFootprint( EDA_DRAW_FRAME* aWindow,
{
{
wxArrayString
headers
;
wxArrayString
headers
;
headers
.
Add
(
_
(
"
Module
"
)
);
headers
.
Add
(
_
(
"
Footprint
"
)
);
headers
.
Add
(
_
(
"Library"
)
);
headers
.
Add
(
_
(
"Library"
)
);
msg
.
Printf
(
_
(
"
Module
s [%d items]"
),
(
int
)
rows
.
size
()
);
msg
.
Printf
(
_
(
"
Footprint
s [%d items]"
),
(
int
)
rows
.
size
()
);
EDA_LIST_DIALOG
dlg
(
aWindow
,
msg
,
headers
,
rows
,
oldName
,
DisplayCmpDoc
);
EDA_LIST_DIALOG
dlg
(
aWindow
,
msg
,
headers
,
rows
,
oldName
,
DisplayCmpDoc
);
...
...
pcbnew/netlist.cpp
View file @
c9d3fd6d
...
@@ -148,7 +148,7 @@ MODULE* PCB_EDIT_FRAME::ListAndSelectModuleName()
...
@@ -148,7 +148,7 @@ MODULE* PCB_EDIT_FRAME::ListAndSelectModuleName()
{
{
if
(
GetBoard
()
->
m_Modules
==
NULL
)
if
(
GetBoard
()
->
m_Modules
==
NULL
)
{
{
DisplayError
(
this
,
_
(
"No
Module
s"
)
);
DisplayError
(
this
,
_
(
"No
footprint
s"
)
);
return
0
;
return
0
;
}
}
...
...
pcbnew/router/pns_item.h
View file @
c9d3fd6d
...
@@ -238,7 +238,7 @@ public:
...
@@ -238,7 +238,7 @@ public:
/**
/**
* Function BelongsTo()
* Function BelongsTo()
*
*
*
Returns
true if the item is owned by the node aNode.
*
@return
true if the item is owned by the node aNode.
*/
*/
bool
BelongsTo
(
PNS_NODE
*
aNode
)
const
bool
BelongsTo
(
PNS_NODE
*
aNode
)
const
{
{
...
@@ -264,7 +264,7 @@ public:
...
@@ -264,7 +264,7 @@ public:
* @param aClearance desired clearance
* @param aClearance desired clearance
* @param aNeedMTV when true, the minimum translation vector is calculated
* @param aNeedMTV when true, the minimum translation vector is calculated
* @param aMTV the minimum translation vector
* @param aMTV the minimum translation vector
* @
param
true, if a collision was found.
* @
return
true, if a collision was found.
*/
*/
virtual
bool
Collide
(
const
PNS_ITEM
*
aOther
,
int
aClearance
,
bool
aNeedMTV
,
virtual
bool
Collide
(
const
PNS_ITEM
*
aOther
,
int
aClearance
,
bool
aNeedMTV
,
VECTOR2I
&
aMTV
)
const
;
VECTOR2I
&
aMTV
)
const
;
...
...
pcbnew/router/pns_node.h
View file @
c9d3fd6d
...
@@ -192,9 +192,10 @@ public:
...
@@ -192,9 +192,10 @@ public:
/**
/**
* Function CheckColliding()
* Function CheckColliding()
*
*
* Checks if
any item in the set collides with anything else in the world,
* Checks if
2 items collide.
* and if found, returns the obstacle.
* and if found, returns the obstacle.
* @param aSet set of items to find collisions with
* @param aItemA first item to find collisions with
* @param aItemB second item to find collisions with
* @param aKindMask mask of obstacle types to take into account
* @param aKindMask mask of obstacle types to take into account
* @return the obstacle, if found, otherwise empty.
* @return the obstacle, if found, otherwise empty.
*/
*/
...
...
pcbnew/tools/edit_constraints.h
View file @
c9d3fd6d
...
@@ -184,8 +184,8 @@ public:
...
@@ -184,8 +184,8 @@ public:
* Constructor.
* Constructor.
*
*
* @param aConstrained is the point that is put under constrain.
* @param aConstrained is the point that is put under constrain.
* @param
a
aCenter is the point that is the center of the circle.
* @param aCenter is the point that is the center of the circle.
* @param
a
aEnd is the point that decides on the radius of the circle.
* @param aEnd is the point that decides on the radius of the circle.
*/
*/
EC_CIRCLE
(
EDIT_POINT
&
aConstrained
,
const
EDIT_POINT
&
aCenter
,
const
EDIT_POINT
&
aEnd
)
:
EC_CIRCLE
(
EDIT_POINT
&
aConstrained
,
const
EDIT_POINT
&
aCenter
,
const
EDIT_POINT
&
aEnd
)
:
EDIT_CONSTRAINT
<
EDIT_POINT
>
(
aConstrained
),
m_center
(
aCenter
),
m_end
(
aEnd
)
EDIT_CONSTRAINT
<
EDIT_POINT
>
(
aConstrained
),
m_center
(
aCenter
),
m_end
(
aEnd
)
...
...
pcbnew/xchgmod.cpp
View file @
c9d3fd6d
...
@@ -391,7 +391,7 @@ bool DIALOG_EXCHANGE_MODULE::Change_1_Module( MODULE* aModule,
...
@@ -391,7 +391,7 @@ bool DIALOG_EXCHANGE_MODULE::Change_1_Module( MODULE* aModule,
FPID
oldFootprintFPID
=
aModule
->
GetFPID
();
FPID
oldFootprintFPID
=
aModule
->
GetFPID
();
// Load module.
// Load module.
line
.
Printf
(
_
(
"Change
module
'%s' (from '%s') to '%s'"
),
line
.
Printf
(
_
(
"Change
footprint
'%s' (from '%s') to '%s'"
),
GetChars
(
aModule
->
GetReference
()
),
GetChars
(
aModule
->
GetReference
()
),
oldFootprintFPID
.
Format
().
c_str
(),
oldFootprintFPID
.
Format
().
c_str
(),
aNewFootprintFPID
.
Format
().
c_str
()
);
aNewFootprintFPID
.
Format
().
c_str
()
);
...
@@ -519,7 +519,7 @@ void PCB_EDIT_FRAME::RecreateCmpFileFromBoard( wxCommandEvent& aEvent )
...
@@ -519,7 +519,7 @@ void PCB_EDIT_FRAME::RecreateCmpFileFromBoard( wxCommandEvent& aEvent )
if
(
module
==
NULL
)
if
(
module
==
NULL
)
{
{
DisplayError
(
this
,
_
(
"No
Module
s!"
)
);
DisplayError
(
this
,
_
(
"No
footprint
s!"
)
);
return
;
return
;
}
}
...
...
polygon/poly2tri/sweep/sweep.h
View file @
c9d3fd6d
...
@@ -136,10 +136,10 @@ private:
...
@@ -136,10 +136,10 @@ private:
* a,b and c<br>
* a,b and c<br>
* d is outside B if orient2d(a,b,d) or orient2d(c,a,d) is CW<br>
* d is outside B if orient2d(a,b,d) or orient2d(c,a,d) is CW<br>
* This preknowledge gives us a way to optimize the incircle test
* This preknowledge gives us a way to optimize the incircle test
* @param a - triangle point, opposite d
* @param
p
a - triangle point, opposite d
* @param b - triangle point
* @param
p
b - triangle point
* @param c - triangle point
* @param
p
c - triangle point
* @param d - point opposite a
* @param
p
d - point opposite a
* @return true if d is inside circle, false if on circle edge
* @return true if d is inside circle, false if on circle edge
*/
*/
bool
Incircle
(
Point
&
pa
,
Point
&
pb
,
Point
&
pc
,
Point
&
pd
);
bool
Incircle
(
Point
&
pa
,
Point
&
pb
,
Point
&
pc
,
Point
&
pd
);
...
@@ -204,7 +204,6 @@ private:
...
@@ -204,7 +204,6 @@ private:
*
*
* @param tcx
* @param tcx
* @param node - bottom_node
* @param node - bottom_node
* @param cnt - counter used to alternate on even and odd numbers
*/
*/
void
FillBasinReq
(
SweepContext
&
tcx
,
Node
*
node
);
void
FillBasinReq
(
SweepContext
&
tcx
,
Node
*
node
);
...
...
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