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
89a40eeb
Commit
89a40eeb
authored
Nov 12, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcbnew: fix minor issues.
pcb_calculator: fix a compil warning (gcc 4.7)
parent
4612ef9d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
7 deletions
+23
-7
attenuator_classes.h
pcb_calculator/attenuators/attenuator_classes.h
+14
-6
class_board_design_settings.cpp
pcbnew/class_board_design_settings.cpp
+1
-1
librairi.cpp
pcbnew/librairi.cpp
+1
-0
pcb_parser.cpp
pcbnew/pcb_parser.cpp
+2
-0
pcbnew.cpp
pcbnew/pcbnew.cpp
+5
-0
No files found.
pcb_calculator/attenuators/attenuator_classes.h
View file @
89a40eeb
...
@@ -47,10 +47,10 @@ protected:
...
@@ -47,10 +47,10 @@ protected:
protected
:
protected
:
// The constructor is protected, because this class is not intende
nt
to be instancied
// The constructor is protected, because this class is not intende
d
to be instancied
ATTENUATOR
(
ATTENUATORS_TYPE
Topology
);
ATTENUATOR
(
ATTENUATORS_TYPE
Topology
);
public
:
public
:
~
ATTENUATOR
();
virtual
~
ATTENUATOR
();
/**
/**
* Function Calculate
* Function Calculate
...
@@ -76,25 +76,33 @@ public:
...
@@ -76,25 +76,33 @@ public:
class
ATTENUATOR_PI
:
public
ATTENUATOR
class
ATTENUATOR_PI
:
public
ATTENUATOR
{
{
public
:
ATTENUATOR_PI
();
public
:
ATTENUATOR_PI
();
~
ATTENUATOR_PI
(){};
virtual
bool
Calculate
();
virtual
bool
Calculate
();
};
};
class
ATTENUATOR_TEE
:
public
ATTENUATOR
class
ATTENUATOR_TEE
:
public
ATTENUATOR
{
{
public
:
ATTENUATOR_TEE
();
public
:
ATTENUATOR_TEE
();
~
ATTENUATOR_TEE
(){};
virtual
bool
Calculate
();
virtual
bool
Calculate
();
};
};
class
ATTENUATOR_BRIDGE
:
public
ATTENUATOR
class
ATTENUATOR_BRIDGE
:
public
ATTENUATOR
{
{
public
:
ATTENUATOR_BRIDGE
();
public
:
ATTENUATOR_BRIDGE
();
~
ATTENUATOR_BRIDGE
(){};
virtual
bool
Calculate
();
virtual
bool
Calculate
();
};
};
class
ATTENUATOR_SPLITTER
:
public
ATTENUATOR
class
ATTENUATOR_SPLITTER
:
public
ATTENUATOR
{
{
public
:
ATTENUATOR_SPLITTER
();
public
:
ATTENUATOR_SPLITTER
();
~
ATTENUATOR_SPLITTER
(){};
virtual
bool
Calculate
();
virtual
bool
Calculate
();
};
};
...
...
pcbnew/class_board_design_settings.cpp
View file @
89a40eeb
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#define DEFAULT_TEXT_MODULE_SIZE Millimeter2iu( 1.5 )
#define DEFAULT_TEXT_MODULE_SIZE Millimeter2iu( 1.5 )
#define DEFAULT_GR_MODULE_THICKNESS Millimeter2iu( 0.15 )
#define DEFAULT_GR_MODULE_THICKNESS Millimeter2iu( 0.15 )
#define DEFAULT_SOLDERMASK_CLEARANCE Millimeter2iu( 0.
1
)
#define DEFAULT_SOLDERMASK_CLEARANCE Millimeter2iu( 0.
2
)
#define DEFAULT_SOLDERMASK_MIN_WIDTH Millimeter2iu( 0.0 )
#define DEFAULT_SOLDERMASK_MIN_WIDTH Millimeter2iu( 0.0 )
...
...
pcbnew/librairi.cpp
View file @
89a40eeb
...
@@ -259,6 +259,7 @@ void FOOTPRINT_EDIT_FRAME::Export_Module( MODULE* aModule, bool aCreateSysLib )
...
@@ -259,6 +259,7 @@ void FOOTPRINT_EDIT_FRAME::Export_Module( MODULE* aModule, bool aCreateSysLib )
module->SetOrientation( 0 );
module->SetOrientation( 0 );
*/
*/
LOCALE_IO
toggle
;
pcb_io
.
Format
(
aModule
);
pcb_io
.
Format
(
aModule
);
FILE
*
fp
=
wxFopen
(
dlg
.
GetPath
(),
wxT
(
"wt"
)
);
FILE
*
fp
=
wxFopen
(
dlg
.
GetPath
(),
wxT
(
"wt"
)
);
...
...
pcbnew/pcb_parser.cpp
View file @
89a40eeb
...
@@ -1700,6 +1700,8 @@ MODULE* PCB_PARSER::parseMODULE() throw( IO_ERROR, PARSE_ERROR )
...
@@ -1700,6 +1700,8 @@ MODULE* PCB_PARSER::parseMODULE() throw( IO_ERROR, PARSE_ERROR )
}
}
}
}
module
->
CalculateBoundingBox
();
return
module
.
release
();
return
module
.
release
();
}
}
...
...
pcbnew/pcbnew.cpp
View file @
89a40eeb
...
@@ -193,6 +193,11 @@ Changing extension to .brd." ), GetChars( fn.GetFullPath() ) );
...
@@ -193,6 +193,11 @@ Changing extension to .brd." ), GetChars( fn.GetFullPath() ) );
}
}
}
}
else
// No file to open: initialize a new empty board
// using default values for design settings:
frame
->
Clear_Pcb
(
false
);
// update the layer names in the listbox
// update the layer names in the listbox
frame
->
ReCreateLayerBox
(
NULL
);
frame
->
ReCreateLayerBox
(
NULL
);
...
...
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