Browse Source

pcbnew: fix minor issues.

pcb_calculator: fix a compil warning (gcc 4.7)
pull/1/head
jean-pierre charras 13 years ago
parent
commit
89a40eeb80
  1. 20
      pcb_calculator/attenuators/attenuator_classes.h
  2. 2
      pcbnew/class_board_design_settings.cpp
  3. 1
      pcbnew/librairi.cpp
  4. 2
      pcbnew/pcb_parser.cpp
  5. 5
      pcbnew/pcbnew.cpp

20
pcb_calculator/attenuators/attenuator_classes.h

@ -47,10 +47,10 @@ protected:
protected:
// The constructor is protected, because this class is not intendent to be instancied
// The constructor is protected, because this class is not intended to be instancied
ATTENUATOR( ATTENUATORS_TYPE Topology );
public:
~ATTENUATOR();
virtual ~ATTENUATOR();
/**
* Function Calculate
@ -76,25 +76,33 @@ public:
class ATTENUATOR_PI : public ATTENUATOR
{
public: ATTENUATOR_PI();
public:
ATTENUATOR_PI();
~ATTENUATOR_PI(){};
virtual bool Calculate();
};
class ATTENUATOR_TEE : public ATTENUATOR
{
public: ATTENUATOR_TEE();
public:
ATTENUATOR_TEE();
~ATTENUATOR_TEE(){};
virtual bool Calculate();
};
class ATTENUATOR_BRIDGE : public ATTENUATOR
{
public: ATTENUATOR_BRIDGE();
public:
ATTENUATOR_BRIDGE();
~ATTENUATOR_BRIDGE(){};
virtual bool Calculate();
};
class ATTENUATOR_SPLITTER : public ATTENUATOR
{
public: ATTENUATOR_SPLITTER();
public:
ATTENUATOR_SPLITTER();
~ATTENUATOR_SPLITTER(){};
virtual bool Calculate();
};

2
pcbnew/class_board_design_settings.cpp

@ -24,7 +24,7 @@
#define DEFAULT_TEXT_MODULE_SIZE Millimeter2iu( 1.5 )
#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 )

1
pcbnew/librairi.cpp

@ -259,6 +259,7 @@ void FOOTPRINT_EDIT_FRAME::Export_Module( MODULE* aModule, bool aCreateSysLib )
module->SetOrientation( 0 );
*/
LOCALE_IO toggle;
pcb_io.Format( aModule );
FILE* fp = wxFopen( dlg.GetPath(), wxT( "wt" ) );

2
pcbnew/pcb_parser.cpp

@ -1700,6 +1700,8 @@ MODULE* PCB_PARSER::parseMODULE() throw( IO_ERROR, PARSE_ERROR )
}
}
module->CalculateBoundingBox();
return module.release();
}

5
pcbnew/pcbnew.cpp

@ -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
frame->ReCreateLayerBox( NULL );

Loading…
Cancel
Save