Some more cleaning in pcb calculator

This commit is contained in:
Marek Roszko 2020-10-12 21:55:32 -04:00
parent 3a88992f8e
commit cfdd105cdd
16 changed files with 42 additions and 46 deletions

View File

@ -1,9 +1,6 @@
include_directories( BEFORE ${INC_BEFORE} ) include_directories( BEFORE ${INC_BEFORE} )
include_directories( include_directories(
bitmaps
dialogs dialogs
transline
attenuators
${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/common
${INC_AFTER} ${INC_AFTER}
) )

View File

@ -5,7 +5,7 @@
** since 2006/6/14 ** since 2006/6/14
** **
*****************************************************************************/ *****************************************************************************/
#include <cmath> #include <wx/bitmap.h>
#include <i18n_utility.h> #include <i18n_utility.h>
#include <kiface_i.h> #include <kiface_i.h>
@ -14,27 +14,27 @@
#include "pcb_calculator_settings.h" #include "pcb_calculator_settings.h"
// Bitmaps: // Bitmaps:
#include <att_bridge.xpm> #include "bitmaps/att_bridge.xpm"
#include <att_pi.xpm> #include "bitmaps/att_pi.xpm"
#include <att_splitter.xpm> #include "bitmaps/att_splitter.xpm"
#include <att_tee.xpm> #include "bitmaps/att_tee.xpm"
// Html texts showing the formulas // Html texts showing the formulas
wxString pi_formula = wxString pi_formula =
#include <pi_formula.h> #include "attenuators/pi_formula.h"
wxString tee_formula = wxString tee_formula =
#include <tee_formula.h> #include "attenuators/tee_formula.h"
wxString bridget_tee_formula = wxString bridget_tee_formula =
#include <bridget_tee_formula.h> #include "attenuators/bridget_tee_formula.h"
wxString splitter_formula = wxString splitter_formula =
#include <splitter_formula.h> #include "attenuators/splitter_formula.h"

View File

@ -12,7 +12,8 @@
#ifndef ATTENUATORFUNC_H #ifndef ATTENUATORFUNC_H
#define ATTENUATORFUNC_H #define ATTENUATORFUNC_H
#include <wx/bitmap.h> class wxBitmap;
class wxString;
enum ATTENUATORS_TYPE { enum ATTENUATORS_TYPE {
PI_TYPE, PI_TYPE,

View File

@ -20,11 +20,10 @@
#include <wx/app.h> #include <wx/app.h>
#include <wx/colour.h> #include <wx/colour.h>
#include <wx/log.h>
#include <wx/msgdlg.h> #include <wx/msgdlg.h>
#include "pcb_calculator_frame.h" #include "pcb_calculator_frame.h"
#include "transline.h" #include "transline/transline.h"
/* /*
* Return the value from a string, * Return the value from a string,

View File

@ -24,7 +24,7 @@
#ifndef PCB_CALCULATOR_H #ifndef PCB_CALCULATOR_H
#define 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 "transline_ident.h"
#include "pcb_calculator_frame_base.h" #include "pcb_calculator_frame_base.h"

View File

@ -25,8 +25,8 @@
#ifndef _C_MICROSTRIP_H_ #ifndef _C_MICROSTRIP_H_
#define _C_MICROSTRIP_H_ #define _C_MICROSTRIP_H_
#include <microstrip.h> #include "transline/microstrip.h"
#include <transline.h> #include "transline/transline.h"
class C_MICROSTRIP : public TRANSLINE class C_MICROSTRIP : public TRANSLINE
{ {

View File

@ -25,7 +25,7 @@
#ifndef __COAX_H #ifndef __COAX_H
#define __COAX_H #define __COAX_H
#include <transline.h> #include "transline/transline.h"
class COAX : public TRANSLINE class COAX : public TRANSLINE
{ {

View File

@ -25,7 +25,7 @@
#ifndef __COPLANAR_H #ifndef __COPLANAR_H
#define __COPLANAR_H #define __COPLANAR_H
#include <transline.h> #include "transline/transline.h"
class COPLANAR : public TRANSLINE class COPLANAR : public TRANSLINE
{ {

View File

@ -25,7 +25,7 @@
#ifndef __MICROSTRIP_H #ifndef __MICROSTRIP_H
#define __MICROSTRIP_H #define __MICROSTRIP_H
#include <transline.h> #include "transline/transline.h"
class MICROSTRIP : public TRANSLINE class MICROSTRIP : public TRANSLINE
{ {

View File

@ -25,7 +25,7 @@
#ifndef __RECTWAVEGUIDE_H #ifndef __RECTWAVEGUIDE_H
#define __RECTWAVEGUIDE_H #define __RECTWAVEGUIDE_H
#include <transline.h> #include "transline/transline.h"
#define PHYS_A_PRM PHYS_WIDTH_PRM #define PHYS_A_PRM PHYS_WIDTH_PRM
#define PHYS_B_PRM PHYS_S_PRM #define PHYS_B_PRM PHYS_S_PRM

View File

@ -25,7 +25,7 @@
#define __STRIPLINE_H #define __STRIPLINE_H
#include <transline.h> #include "transline/transline.h"
class STRIPLINE : public TRANSLINE class STRIPLINE : public TRANSLINE
{ {

View File

@ -24,7 +24,7 @@
#ifndef __TWISTEDPAIR_H #ifndef __TWISTEDPAIR_H
#define __TWISTEDPAIR_H #define __TWISTEDPAIR_H
#include <transline.h> #include "transline/transline.h"
class TWISTEDPAIR : public TRANSLINE class TWISTEDPAIR : public TRANSLINE
{ {

View File

@ -24,7 +24,6 @@
#include "common_data.h" #include "common_data.h"
#include "pcb_calculator_frame.h" #include "pcb_calculator_frame.h"
#include "widgets/unit_selector.h"
extern double DoubleFromString( const wxString& TextValue ); extern double DoubleFromString( const wxString& TextValue );

View File

@ -24,28 +24,28 @@
#include <wx/intl.h> #include <wx/intl.h>
#include <wx/arrstr.h> #include <wx/arrstr.h>
#include <kiface_i.h>
// Bitmaps: // Bitmaps:
#include <c_microstrip.xpm> #include "bitmaps/c_microstrip.xpm"
#include <microstrip.xpm> #include "bitmaps/microstrip.xpm"
#include <twistedpair.xpm> #include "bitmaps/twistedpair.xpm"
#include <coax.xpm> #include "bitmaps/coax.xpm"
#include <cpw.xpm> #include "bitmaps/cpw.xpm"
#include <cpw_back.xpm> #include "bitmaps/cpw_back.xpm"
#include <stripline.xpm> #include "bitmaps/stripline.xpm"
#include <rectwaveguide.xpm> #include "bitmaps/rectwaveguide.xpm"
// transline specific functions: // transline specific functions:
#include <transline.h> #include "transline/transline.h"
#include <microstrip.h> #include "transline/microstrip.h"
#include <coplanar.h> #include "transline/coplanar.h"
#include <rectwaveguide.h> #include "transline/rectwaveguide.h"
#include <coax.h> #include "transline/coax.h"
#include <c_microstrip.h> #include "transline/c_microstrip.h"
#include <stripline.h> #include "transline/stripline.h"
#include <twistedpair.h> #include "transline/twistedpair.h"
#include <kiface_i.h>
#include "pcb_calculator_settings.h" #include "pcb_calculator_settings.h"
#include "widgets/unit_selector.h" #include "widgets/unit_selector.h"
#include "transline_ident.h" #include "transline_ident.h"

View File

@ -28,7 +28,7 @@
#include <vector> #include <vector>
#include <wx/bitmap.h> #include <wx/bitmap.h>
#include "transline.h" #include "transline/transline.h"
// An enum to handle muwave shapes: // An enum to handle muwave shapes:
enum TRANSLINE_TYPE_ID { enum TRANSLINE_TYPE_ID {

View File

@ -23,8 +23,8 @@
* a wxChoiceBox to select units in Pcb_Calculator * a wxChoiceBox to select units in Pcb_Calculator
*/ */
#ifndef _UnitSelector_h_ #ifndef UNIT_SELECTOR_H
#define _UnitSelector_h_ #define UNIT_SELECTOR_H
#include <wx/string.h> #include <wx/string.h>
@ -129,5 +129,5 @@ public:
virtual double GetUnitScale() override; virtual double GetUnitScale() override;
}; };
#endif // _UnitSelector_h_ #endif // UNIT_SELECTOR_H