Some more cleaning in pcb calculator
This commit is contained in:
parent
3a88992f8e
commit
cfdd105cdd
|
@ -1,9 +1,6 @@
|
|||
include_directories( BEFORE ${INC_BEFORE} )
|
||||
include_directories(
|
||||
bitmaps
|
||||
dialogs
|
||||
transline
|
||||
attenuators
|
||||
${CMAKE_SOURCE_DIR}/common
|
||||
${INC_AFTER}
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
** since 2006/6/14
|
||||
**
|
||||
*****************************************************************************/
|
||||
#include <cmath>
|
||||
#include <wx/bitmap.h>
|
||||
|
||||
#include <i18n_utility.h>
|
||||
#include <kiface_i.h>
|
||||
|
@ -14,27 +14,27 @@
|
|||
#include "pcb_calculator_settings.h"
|
||||
|
||||
// Bitmaps:
|
||||
#include <att_bridge.xpm>
|
||||
#include <att_pi.xpm>
|
||||
#include <att_splitter.xpm>
|
||||
#include <att_tee.xpm>
|
||||
#include "bitmaps/att_bridge.xpm"
|
||||
#include "bitmaps/att_pi.xpm"
|
||||
#include "bitmaps/att_splitter.xpm"
|
||||
#include "bitmaps/att_tee.xpm"
|
||||
|
||||
|
||||
// Html texts showing the formulas
|
||||
wxString pi_formula =
|
||||
#include <pi_formula.h>
|
||||
#include "attenuators/pi_formula.h"
|
||||
|
||||
|
||||
wxString tee_formula =
|
||||
#include <tee_formula.h>
|
||||
#include "attenuators/tee_formula.h"
|
||||
|
||||
|
||||
wxString bridget_tee_formula =
|
||||
#include <bridget_tee_formula.h>
|
||||
#include "attenuators/bridget_tee_formula.h"
|
||||
|
||||
|
||||
wxString splitter_formula =
|
||||
#include <splitter_formula.h>
|
||||
#include "attenuators/splitter_formula.h"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
#ifndef ATTENUATORFUNC_H
|
||||
#define ATTENUATORFUNC_H
|
||||
|
||||
#include <wx/bitmap.h>
|
||||
class wxBitmap;
|
||||
class wxString;
|
||||
|
||||
enum ATTENUATORS_TYPE {
|
||||
PI_TYPE,
|
||||
|
|
|
@ -20,11 +20,10 @@
|
|||
|
||||
#include <wx/app.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/msgdlg.h>
|
||||
|
||||
#include "pcb_calculator_frame.h"
|
||||
#include "transline.h"
|
||||
#include "transline/transline.h"
|
||||
|
||||
/*
|
||||
* Return the value from a string,
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef PCB_CALCULATOR_H
|
||||
#define PCB_CALCULATOR_H
|
||||
|
||||
#include "transline.h" // Included for SUBST_PRMS_ID definition.
|
||||
#include "transline/transline.h" // Included for SUBST_PRMS_ID definition.
|
||||
#include "transline_ident.h"
|
||||
#include "pcb_calculator_frame_base.h"
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
#ifndef _C_MICROSTRIP_H_
|
||||
#define _C_MICROSTRIP_H_
|
||||
|
||||
#include <microstrip.h>
|
||||
#include <transline.h>
|
||||
#include "transline/microstrip.h"
|
||||
#include "transline/transline.h"
|
||||
|
||||
class C_MICROSTRIP : public TRANSLINE
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __COAX_H
|
||||
#define __COAX_H
|
||||
|
||||
#include <transline.h>
|
||||
#include "transline/transline.h"
|
||||
|
||||
class COAX : public TRANSLINE
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __COPLANAR_H
|
||||
#define __COPLANAR_H
|
||||
|
||||
#include <transline.h>
|
||||
#include "transline/transline.h"
|
||||
|
||||
class COPLANAR : public TRANSLINE
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __MICROSTRIP_H
|
||||
#define __MICROSTRIP_H
|
||||
|
||||
#include <transline.h>
|
||||
#include "transline/transline.h"
|
||||
|
||||
class MICROSTRIP : public TRANSLINE
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __RECTWAVEGUIDE_H
|
||||
#define __RECTWAVEGUIDE_H
|
||||
|
||||
#include <transline.h>
|
||||
#include "transline/transline.h"
|
||||
|
||||
#define PHYS_A_PRM PHYS_WIDTH_PRM
|
||||
#define PHYS_B_PRM PHYS_S_PRM
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#define __STRIPLINE_H
|
||||
|
||||
|
||||
#include <transline.h>
|
||||
#include "transline/transline.h"
|
||||
|
||||
class STRIPLINE : public TRANSLINE
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef __TWISTEDPAIR_H
|
||||
#define __TWISTEDPAIR_H
|
||||
|
||||
#include <transline.h>
|
||||
#include "transline/transline.h"
|
||||
|
||||
class TWISTEDPAIR : public TRANSLINE
|
||||
{
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include "common_data.h"
|
||||
#include "pcb_calculator_frame.h"
|
||||
#include "widgets/unit_selector.h"
|
||||
|
||||
extern double DoubleFromString( const wxString& TextValue );
|
||||
|
||||
|
|
|
@ -24,28 +24,28 @@
|
|||
#include <wx/intl.h>
|
||||
#include <wx/arrstr.h>
|
||||
|
||||
#include <kiface_i.h>
|
||||
|
||||
// Bitmaps:
|
||||
#include <c_microstrip.xpm>
|
||||
#include <microstrip.xpm>
|
||||
#include <twistedpair.xpm>
|
||||
#include <coax.xpm>
|
||||
#include <cpw.xpm>
|
||||
#include <cpw_back.xpm>
|
||||
#include <stripline.xpm>
|
||||
#include <rectwaveguide.xpm>
|
||||
#include "bitmaps/c_microstrip.xpm"
|
||||
#include "bitmaps/microstrip.xpm"
|
||||
#include "bitmaps/twistedpair.xpm"
|
||||
#include "bitmaps/coax.xpm"
|
||||
#include "bitmaps/cpw.xpm"
|
||||
#include "bitmaps/cpw_back.xpm"
|
||||
#include "bitmaps/stripline.xpm"
|
||||
#include "bitmaps/rectwaveguide.xpm"
|
||||
|
||||
// transline specific functions:
|
||||
#include <transline.h>
|
||||
#include <microstrip.h>
|
||||
#include <coplanar.h>
|
||||
#include <rectwaveguide.h>
|
||||
#include <coax.h>
|
||||
#include <c_microstrip.h>
|
||||
#include <stripline.h>
|
||||
#include <twistedpair.h>
|
||||
#include "transline/transline.h"
|
||||
#include "transline/microstrip.h"
|
||||
#include "transline/coplanar.h"
|
||||
#include "transline/rectwaveguide.h"
|
||||
#include "transline/coax.h"
|
||||
#include "transline/c_microstrip.h"
|
||||
#include "transline/stripline.h"
|
||||
#include "transline/twistedpair.h"
|
||||
|
||||
#include <kiface_i.h>
|
||||
#include "pcb_calculator_settings.h"
|
||||
#include "widgets/unit_selector.h"
|
||||
#include "transline_ident.h"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <vector>
|
||||
#include <wx/bitmap.h>
|
||||
|
||||
#include "transline.h"
|
||||
#include "transline/transline.h"
|
||||
|
||||
// An enum to handle muwave shapes:
|
||||
enum TRANSLINE_TYPE_ID {
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
* a wxChoiceBox to select units in Pcb_Calculator
|
||||
*/
|
||||
|
||||
#ifndef _UnitSelector_h_
|
||||
#define _UnitSelector_h_
|
||||
#ifndef UNIT_SELECTOR_H
|
||||
#define UNIT_SELECTOR_H
|
||||
|
||||
|
||||
#include <wx/string.h>
|
||||
|
@ -129,5 +129,5 @@ public:
|
|||
virtual double GetUnitScale() override;
|
||||
};
|
||||
|
||||
#endif // _UnitSelector_h_
|
||||
#endif // UNIT_SELECTOR_H
|
||||
|
||||
|
|
Loading…
Reference in New Issue