diff options
-rw-r--r-- | library/supportFiles/fp-lib-table | 139 | ||||
-rw-r--r-- | library/supportFiles/fp-lib-table-online | 88 | ||||
-rw-r--r-- | src/configuration/Appconfig.py | 16 | ||||
-rw-r--r-- | src/frontEnd/Application.py | 170 |
4 files changed, 1 insertions, 412 deletions
diff --git a/library/supportFiles/fp-lib-table b/library/supportFiles/fp-lib-table deleted file mode 100644 index a1a59bb6..00000000 --- a/library/supportFiles/fp-lib-table +++ /dev/null @@ -1,139 +0,0 @@ -(fp_lib_table
- (lib (name Audio_Module)(type Kicad)(uri ${KICAD6_FOOTPRINT_DIR}/Audio_Module.pretty)(options "")(descr "Audio Module footprints"))
- (lib (name Battery)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Battery.pretty)(options "")(descr "Battery and battery holder footprints"))
- (lib (name Button_Switch_Keyboard)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Button_Switch_Keyboard.pretty)(options "")(descr "Buttons and switches for keyboard applications"))
- (lib (name Button_Switch_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Button_Switch_SMD.pretty)(options "")(descr "Buttons and switches, surface mount"))
- (lib (name Button_Switch_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Button_Switch_THT.pretty)(options "")(descr "Buttons and switches, through hole"))
- (lib (name Buzzer_Beeper)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Buzzer_Beeper.pretty)(options "")(descr "Audio signalling devices"))
- (lib (name Calibration_Scale)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Calibration_Scale.pretty)(options "")(descr "Scales and grids intended for calibration and measurement"))
- (lib (name Capacitor_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Capacitor_SMD.pretty)(options "")(descr "Capacitor, surface mount"))
- (lib (name Capacitor_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Capacitor_THT.pretty)(options "")(descr "Capacitor, through hole"))
- (lib (name Capacitor_Tantalum_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Capacitor_Tantalum_SMD.pretty)(options "")(descr "Tantalum Capacitor, surface mount"))
- (lib (name Connector)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector.pretty)(options "")(descr "Generic/unsorted connector footprints"))
- (lib (name Connector_AMASS)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_AMASS.pretty)(options "")(descr "AMASS connector footprints"))
- (lib (name Connector_Amphenol)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Amphenol.pretty)(options "")(descr "Amphenol LTW connector footprints"))
- (lib (name Connector_Audio)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Audio.pretty)(options "")(descr "Audio connector footprints"))
- (lib (name Connector_BarrelJack)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_BarrelJack.pretty)(options "")(descr "(DC) barrel jack connector footprints"))
- (lib (name Connector_Card)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Card.pretty)(options "")(descr "Card and card holder footprints"))
- (lib (name Connector_Coaxial)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Coaxial.pretty)(options "")(descr "Coaxial and RF connector footprints"))
- (lib (name Connector_DIN)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_DIN.pretty)(options "")(descr "DIN connector footprints"))
- (lib (name Connector_Dsub)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Dsub.pretty)(options "")(descr "DSub connector footprints"))
- (lib (name Connector_FFC-FPC)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_FFC-FPC.pretty)(options "")(descr "FFC (Flexible Flat Cable) and FPC (Flexible Printed Circuit) connector footprints"))
- (lib (name Connector_HDMI)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_HDMI.pretty)(options "")(descr "HDMI connector footprints"))
- (lib (name Connector_Harting)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Harting.pretty)(options "")(descr "Harting connector footprints"))
- (lib (name Connector_Harwin)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Harwin.pretty)(options "")(descr "Harwin connector footprints"))
- (lib (name Connector_Hirose)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Hirose.pretty)(options "")(descr "Hirose connector footprints"))
- (lib (name Connector_IDC)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_IDC.pretty)(options "")(descr "IDC connector footprints"))
- (lib (name Connector_JAE)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_JAE.pretty)(options "")(descr "JAE connector footprints"))
- (lib (name Connector_JST)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_JST.pretty)(options "")(descr "JST connector footprints www.jst.com"))
- (lib (name Connector_Molex)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Molex.pretty)(options "")(descr "Molex connector footprints www.molex.com"))
- (lib (name Connector_PCBEdge)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PCBEdge.pretty)(options "")(descr "PCB edge connectors (e.g. PCI, ISA, PCIe, ...)"))
- (lib (name Connector_Pin)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Pin.pretty)(options "")(descr "Single (solder) pin conectors"))
- (lib (name Connector_PinHeader_1.00mm)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PinHeader_1.00mm.pretty)(options "")(descr "Pin headers, 1.0mm pitch"))
- (lib (name Connector_PinHeader_1.27mm)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PinHeader_1.27mm.pretty)(options "")(descr "Pin headers, 1.27mm pitch"))
- (lib (name Connector_PinHeader_2.00mm)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PinHeader_2.00mm.pretty)(options "")(descr "Pin headers, 2.0mm pitch"))
- (lib (name Connector_PinHeader_2.54mm)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PinHeader_2.54mm.pretty)(options "")(descr "Pin headers, 2.54mm pitch"))
- (lib (name Connector_PinSocket_1.00mm)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PinSocket_1.00mm.pretty)(options "")(descr "Pin sockets, 1.00mm pitch"))
- (lib (name Connector_PinSocket_1.27mm)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PinSocket_1.27mm.pretty)(options "")(descr "Pin sockets, 1.27mm pitch"))
- (lib (name Connector_PinSocket_2.00mm)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PinSocket_2.00mm.pretty)(options "")(descr "Pin sockets, 2.0mm pitch"))
- (lib (name Connector_PinSocket_2.54mm)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_PinSocket_2.54mm.pretty)(options "")(descr "Pin sockets, 2.54mm pitch"))
- (lib (name Connector_Phoenix_MC)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Phoenix_MC.pretty)(options "")(descr "Phoenix MC connector footprints"))
- (lib (name Connector_Phoenix_MC_HighVoltage)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Phoenix_MC_HighVoltage.pretty)(options "")(descr "Phoenix high voltage (320V, 5.08mm pitch) MC connector footprints"))
- (lib (name Connector_Phoenix_MSTB)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Phoenix_MSTB.pretty)(options "")(descr "Phoenix MSTB connector footprints"))
- (lib (name Connector_Phoenix_GMSTB)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Phoenix_GMSTB.pretty)(options "")(descr "Phoenix GMSTB series (high voltage MSTB) connector footprints"))
- (lib (name Connector_Samtec)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Samtec.pretty)(options "")(descr "Samtec connector footprints"))
- (lib (name Connector_Samtec_HLE_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Samtec_HLE_SMD.pretty)(options "")(descr "Samtec surface mount HLE series connector footprints"))
- (lib (name Connector_Samtec_HLE_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Samtec_HLE_THT.pretty)(options "")(descr "Samtec through hole HLE series connector footprints"))
- (lib (name Connector_RJ)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_RJ.pretty)(options "")(descr "Registered Jack (RJ) connector footprints (e.g. RJ11, RJ45, ...)"))
- (lib (name Connector_SATA_SAS)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_SATA_SAS.pretty)(options "")(descr "SATA/SAS connector footprints"))
- (lib (name Connector_Stocko)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Stocko.pretty)(options "")(descr "Stocko connector footprints"))
- (lib (name Connector_TE-Connectivity)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_TE-Connectivity.pretty)(options "")(descr "Footprints for connectors by TE Connectivity"))
- (lib (name Connector_USB)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_USB.pretty)(options "")(descr "USB connector footprints"))
- (lib (name Connector_Wago)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Wago.pretty)(options "")(descr "Wago connector footprints"))
- (lib (name Connector_Wire)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Wire.pretty)(options "")(descr "Footprints for solder wire pads"))
- (lib (name Connector_Wuerth)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Connector_Wuerth.pretty)(options "")(descr "Wuerth connector footprints"))
- (lib (name Converter_ACDC)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Converter_ACDC.pretty)(options "")(descr "AC/DC converter footprints"))
- (lib (name Converter_DCDC)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Converter_DCDC.pretty)(options "")(descr "DC/DC converter footprints"))
- (lib (name Crystal)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Crystal.pretty)(options "")(descr "Crystal footprints"))
- (lib (name Diode_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Diode_SMD.pretty)(options "")(descr "Diode footprints, surface mount"))
- (lib (name Diode_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Diode_THT.pretty)(options "")(descr "Diode footprints, through hole"))
- (lib (name Display_7Segment)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Display_7Segment.pretty)(options "")(descr "Seven segment Display"))
- (lib (name Display)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Display.pretty)(options "")(descr "Display modules"))
- (lib (name Ferrite_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Ferrite_THT.pretty)(options "")(descr "Ferrite bead, through hole"))
- (lib (name Fiducial)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Fiducial.pretty)(options "")(descr "Fiducial markings"))
- (lib (name Filter)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Filter.pretty)(options "")(descr "Filter footprints"))
- (lib (name Fuse)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Fuse.pretty)(options "")(descr "Fuse and fuse holder footprints"))
- (lib (name Heatsink)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Heatsink.pretty)(options "")(descr "Heatsinks and thermal products"))
- (lib (name Inductor_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Inductor_SMD.pretty)(options "")(descr "Inductor footprints, surface mount"))
- (lib (name Inductor_SMD_Wurth)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Inductor_SMD_Wurth.pretty)(options "")(descr "Würth Elektronik inductor footprints, surface mount"))
- (lib (name Inductor_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Inductor_THT.pretty)(options "")(descr "Inductor footprints, through hole"))
- (lib (name Inductor_THT_Wurth)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Inductor_THT_Wurth.pretty)(options "")(descr "Würth Elektronik inductor footprints, through hole"))
- (lib (name Jumper)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Jumper.pretty)(options "")(descr "Jumpers, solder jumpers, ... footprints"))
- (lib (name LED_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/LED_SMD.pretty)(options "")(descr "Light emitting diodes (LED), surface mount"))
- (lib (name LED_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/LED_THT.pretty)(options "")(descr "Light emitting diodes (LED), through hole"))
- (lib (name Module)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Module.pretty)(options "")(descr "Footprints for SoM (System on Module)"))
- (lib (name Motors)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Motors.pretty)(options "")(descr "Footprints for Motors"))
- (lib (name MountingHole)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/MountingHole.pretty)(options "")(descr "Mechanical fasteners"))
- (lib (name Mounting_Wuerth)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Mounting_Wuerth.pretty)(options "")(descr "Mechanical fasteners by wuerth electronics"))
- (lib (name MountingEquipment)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/MountingEquipment.pretty)(options "")(descr "Mechanical parts"))
- (lib (name NetTie)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/NetTie.pretty)(options "")(descr "Net ties"))
- (lib (name OptoDevice)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/OptoDevice.pretty)(options "")(descr "Optical devices (light sensors, opto isolators/interrupters, laser diodes, fiber optical components, lightpipes, lenses ...)"))
- (lib (name Oscillator)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Oscillator.pretty)(options "")(descr "Footprints for oscillator devices"))
- (lib (name Package_BGA)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_BGA.pretty)(options "")(descr "Ball Grid Array (BGA)"))
- (lib (name Package_CSP)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_CSP.pretty)(options "")(descr "Chip Scale Packages (CSP)"))
- (lib (name Package_DFN_QFN)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_DFN_QFN.pretty)(options "")(descr "Surface mount IC packages, DFN / LGA / QFN"))
- (lib (name Package_DIP)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_DIP.pretty)(options "")(descr "Through hole IC packages, DIP"))
- (lib (name Package_DirectFET)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_DirectFET.pretty)(options "")(descr "DirectFET packages from International Rectifier"))
- (lib (name Package_LCC)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_LCC.pretty)(options "")(descr "Leaded Chip Carriers (LCC)"))
- (lib (name Package_LGA)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_LGA.pretty)(options "")(descr "Land Grid Array (LGA)"))
- (lib (name Package_QFP)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_QFP.pretty)(options "")(descr "Quad Flat Package (QFP)"))
- (lib (name Package_SIP)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_SIP.pretty)(options "")(descr "Single Inline Package(SIP)"))
- (lib (name Package_SO)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_SO.pretty)(options "")(descr "Small Outline Integrated Circuits (SOIC, SSOP, xSOP, xSO)"))
- (lib (name Package_SO_J-Lead)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_SO_J-Lead.pretty)(options "")(descr "Small Outline Integrated Circuits J-Lead"))
- (lib (name Package_SON)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_SON.pretty)(options "")(descr "Small Outline No-Lead (SON)"))
- (lib (name Package_TO_SOT_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_TO_SOT_SMD.pretty)(options "")(descr "Surface mount transistor packages"))
- (lib (name Package_TO_SOT_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Package_TO_SOT_THT.pretty)(options "")(descr "Through hole transistor packages"))
- (lib (name Potentiometer_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Potentiometer_SMD.pretty)(options "")(descr "Potentiometer footprints, surface mount (SMD)"))
- (lib (name Potentiometer_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Potentiometer_THT.pretty)(options "")(descr "Potentiometer footprints, through hole (THT)"))
- (lib (name Relay_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Relay_SMD.pretty)(options "")(descr "Surface mount relay packages"))
- (lib (name Relay_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Relay_THT.pretty)(options "")(descr "Through hole relay packages"))
- (lib (name Resistor_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Resistor_SMD.pretty)(options "")(descr "Resistor footprints, surface mount (SMD)"))
- (lib (name Resistor_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Resistor_THT.pretty)(options "")(descr "Resistor footprints, through hole (THT)"))
- (lib (name RF)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF.pretty)(options "")(descr "Specialized footprints for RF components that don't fit in the other RF libraries."))
- (lib (name RF_Antenna)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF_Antenna.pretty)(options "")(descr "Radio-frequency / wireless antenna footprints"))
- (lib (name RF_Converter)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF_Converter.pretty)(options "")(descr "Specialized footprints for RF signal converters (Like Attenuators, Baluns, Mixers, Couplers, etc.)"))
- (lib (name RF_GPS)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF_GPS.pretty)(options "")(descr "GNSS footprints"))
- (lib (name RF_GSM)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF_GSM.pretty)(options "")(descr "GSM Modules footprints"))
- (lib (name RF_Mini-Circuits)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF_Mini-Circuits.pretty)(options "")(descr "Footprints for Mini-Circuits RF parts."))
- (lib (name RF_Module)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF_Module.pretty)(options "")(descr "Radio-frequency / wireless modules"))
- (lib (name RF_WiFi)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF_WiFi.pretty)(options "")(descr "WiFi modules"))
- (lib (name RF_Shielding)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/RF_Shielding.pretty)(options "")(descr "Specialied footprints for EMI shields and covers"))
- (lib (name Rotary_Encoder)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Rotary_Encoder.pretty)(options "")(descr "Rotary Encoder Footprints"))
- (lib (name Sensor)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Sensor.pretty)(options "")(descr "Specialized footprints for multi-function sensors"))
- (lib (name Sensor_Audio)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Sensor_Audio.pretty)(options "")(descr "Specialized footprints for audio sensors"))
- (lib (name Sensor_Distance)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Sensor_Distance.pretty)(options "")(descr "Specialized footprints for distance sensors"))
- (lib (name Sensor_Current)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Sensor_Current.pretty)(options "")(descr "Specialized footprints for current sensors"))
- (lib (name Sensor_Humidity)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Sensor_Humidity.pretty)(options "")(descr "Specialized footprints for humidity sensors"))
- (lib (name Sensor_Motion)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Sensor_Motion.pretty)(options "")(descr "Specialized footprints for motion sensors"))
- (lib (name Sensor_Pressure)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Sensor_Pressure.pretty)(options "")(descr "Specialized footprints for pressure sensors"))
- (lib (name Sensor_Voltage)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Sensor_Voltage.pretty)(options "")(descr "Specialized footprints for voltage sensors"))
- (lib (name Socket)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Socket.pretty)(options "")(descr "Sockets"))
- (lib (name Symbol)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Symbol.pretty)(options "")(descr "PCB symbols"))
- (lib (name TerminalBlock_Altech)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_Altech.pretty)(options "")(descr "Altech terminal block footprints"))
- (lib (name TerminalBlock)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock.pretty)(options "")(descr "Footprints for terminal blocks that do not have their own manufacturer specific library."))
- (lib (name TerminalBlock_4Ucon)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_4Ucon.pretty)(options "")(descr "4UCON terminal blocks"))
- (lib (name TerminalBlock_Dinkle)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_Dinkle.pretty)(options "")(descr "Dinkle terminal blocks"))
- (lib (name TerminalBlock_MetzConnect)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_MetzConnect.pretty)(options "")(descr "Metz Connect terminal blocks"))
- (lib (name TerminalBlock_Philmore)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_Philmore.pretty)(options "")(descr "Philmore terminal blocks"))
- (lib (name TerminalBlock_Phoenix)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_Phoenix.pretty)(options "")(descr "Phoenix Contact terminal blocks"))
- (lib (name TerminalBlock_RND)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_RND.pretty)(options "")(descr "RND terminal blocks"))
- (lib (name TerminalBlock_TE-Connectivity)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_TE-Connectivity.pretty)(options "")(descr "TE Connectivity terminal blocks"))
- (lib (name TerminalBlock_WAGO)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_WAGO.pretty)(options "")(descr "WAGO terminal blocks"))
- (lib (name TerminalBlock_Wuerth)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TerminalBlock_Wuerth.pretty)(options "")(descr "Wuerth Elektronik terminal blocks"))
- (lib (name TestPoint)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/TestPoint.pretty)(options "")(descr "Test points, measurement points, probe connection points"))
- (lib (name Transformer_SMD)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Transformer_SMD.pretty)(options "")(descr "Surface mount transformers"))
- (lib (name Transformer_THT)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Transformer_THT.pretty)(options "")(descr "Through hole transformers"))
- (lib (name Transistor_Power_Module)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Transistor_Power_Module.pretty)(options "")(descr "Transistor Power Modules"))
- (lib (name Valve)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Valve.pretty)(options "")(descr "Valve"))
- (lib (name Varistor)(type KiCad)(uri ${KICAD6_FOOTPRINT_DIR}/Varistor.pretty)(options "")(descr "Varistor"))
-)
diff --git a/library/supportFiles/fp-lib-table-online b/library/supportFiles/fp-lib-table-online deleted file mode 100644 index 5b4081ff..00000000 --- a/library/supportFiles/fp-lib-table-online +++ /dev/null @@ -1,88 +0,0 @@ -(fp_lib_table - (lib (name Battery_Holders)(type Github)(uri ${KIGITHUB}/Battery_Holders.pretty)(options "")(descr "Batteries and battery holders")) - (lib (name Buttons_Switches_SMD)(type Github)(uri ${KIGITHUB}/Buttons_Switches_SMD.pretty)(options "")(descr "Buttons and switches, surface mount")) - (lib (name Buttons_Switches_THT)(type Github)(uri ${KIGITHUB}/Buttons_Switches_THT.pretty)(options "")(descr "Buttons and switches, through hole")) - (lib (name Buzzers_Beepers)(type Github)(uri ${KIGITHUB}/Buzzers_Beepers.pretty)(options "")(descr "Audio signalling devices")) - (lib (name Capacitors_SMD)(type Github)(uri ${KIGITHUB}/Capacitors_SMD.pretty)(options "")(descr "Capacitors, surface mount")) - (lib (name Capacitors_Tantalum_SMD)(type Github)(uri ${KIGITHUB}/Capacitors_Tantalum_SMD.pretty)(options "")(descr "Tantalum capacitors, surface mount")) - (lib (name Capacitors_THT)(type Github)(uri ${KIGITHUB}/Capacitors_THT.pretty)(options "")(descr "Capacitors, through hole")) - (lib (name Connectors_Card)(type Github)(uri ${KIGITHUB}/Connectors_Card.pretty)(options "")(descr "Footprints for cards and card holders")) - (lib (name Connectors_Harwin)(type Github)(uri ${KIGITHUB}/Connectors_Harwin.pretty)(options "")(descr "Harwin connector footprints www.harwin.com")) - (lib (name Connectors_HDMI)(type Github)(uri ${KIGITHUB}/Connectors_HDMI.pretty)(options "")(descr "HDMI connector footprints")) - (lib (name Connectors_Hirose)(type Github)(uri ${KIGITHUB}/Connectors_Hirose.pretty)(options "")(descr "Hirose connector footprints www.hirose.com")) - (lib (name Connectors_IEC_DIN)(type Github)(uri ${KIGITHUB}/Connectors_IEC_DIN.pretty)(options "")(descr "DIN connector footprints")) - (lib (name Connectors_JAE)(type Github)(uri ${KIGITHUB}/Connectors_JAE.pretty)(options "")(descr "JAE connector footprints http://www.jae.com/jccom/en/connectors")) - (lib (name Connectors_JST)(type Github)(uri ${KIGITHUB}/Connectors_JST.pretty)(options "")(descr "JST connector footprints www.jst.com")) - (lib (name Connectors_Mini-Universal)(type Github)(uri ${KIGITHUB}/Connectors_Mini-Universal.pretty)(options "")(descr Mate-N-Lok)) - (lib (name Connectors_Molex)(type Github)(uri ${KIGITHUB}/Connectors_Molex.pretty)(options "")(descr "Molex connector foottprints www.molex.com")) - (lib (name Connectors_Multicomp)(type Github)(uri ${KIGITHUB}/Connectors_Multicomp.pretty)(options "")(descr "Multicomp connector footprints")) - (lib (name Connectors_Phoenix)(type Github)(uri ${KIGITHUB}/Connectors_Phoenix.pretty)(options "")(descr "Phoenix connector footprints")) - (lib (name Connectors_Samtec)(type Github)(uri ${KIGITHUB}/Connectors_Samtec.pretty)(options "")(descr "Samtec connector footprints")) - (lib (name Connectors_TE-Connectivity)(type Github)(uri ${KIGITHUB}/Connectors_TE-Connectivity.pretty)(options "")(descr "TE Connectivity connector footprints www.te.com")) - (lib (name Connectors_Terminal_Blocks)(type Github)(uri ${KIGITHUB}/Connectors_Terminal_Blocks.pretty)(options "")(descr "Terminal block connectors")) - (lib (name Connectors_WAGO)(type Github)(uri ${KIGITHUB}/Connectors_WAGO.pretty)(options "")(descr "WAGO connector footprints www.wago.com")) - (lib (name Connectors_USB)(type Github)(uri ${KIGITHUB}/Connectors_USB.pretty)(options "")(descr "USB connector footprints")) - (lib (name Connectors)(type Github)(uri ${KIGITHUB}/Connectors.pretty)(options "")(descr "Assorted connector footprints")) - (lib (name Converters_DCDC_ACDC)(type Github)(uri ${KIGITHUB}/Converters_DCDC_ACDC.pretty)(options "")(descr "DC-DC and AC-DC convertor modules")) - (lib (name Crystals)(type Github)(uri ${KIGITHUB}/Crystals.pretty)(options "")(descr "Crystals and oscillators")) - (lib (name Diodes_SMD)(type Github)(uri ${KIGITHUB}/Diodes_SMD.pretty)(options "")(descr "Diodes, surface mount")) - (lib (name Diodes_THT)(type Github)(uri ${KIGITHUB}/Diodes_THT.pretty)(options "")(descr "Diodes, through hole")) - (lib (name Displays_7-Segment)(type Github)(uri ${KIGITHUB}/Displays_7-Segment.pretty)(options "")(descr "Seven segment displays")) - (lib (name Displays)(type Github)(uri ${KIGITHUB}/Displays.pretty)(options "")(descr "Display modules")) - (lib (name Enclosures)(type Github)(uri ${KIGITHUB}/Enclosures.pretty)(options "")(descr "Electronics enclosures and housings")) - (lib (name EuroBoard_Outline)(type Github)(uri ${KIGITHUB}/EuroBoard_Outline.pretty)(options "")(descr "Deprecated - will be removed")) - (lib (name Fiducials)(type Github)(uri ${KIGITHUB}/Fiducials.pretty)(options "")(descr "Fiducial markings")) - (lib (name Fuse_Holders_and_Fuses)(type Github)(uri ${KIGITHUB}/Fuse_Holders_and_Fuses.pretty)(options "")(descr "Fuses and fuse holders")) - (lib (name Hall-Effect_Transducers_LEM)(type Github)(uri ${KIGITHUB}/Hall-Effect_Transducers_LEM.pretty)(options "")(descr "LEM hall effect transducers")) - (lib (name Heatsinks)(type Github)(uri ${KIGITHUB}/Heatsinks.pretty)(options "")(descr "Heatsinks and thermal products")) - (lib (name Housings_BGA)(type Github)(uri ${KIGITHUB}/Housings_BGA.pretty)(options "")(descr "Ball Grid Array (BGA)")) - (lib (name Housings_CSP)(type Github)(uri ${KIGITHUB}/Housings_CSP.pretty)(options "")(descr "Chip Scale Packages (CSP)")) - (lib (name Housings_DFN_QFN)(type Github)(uri ${KIGITHUB}/Housings_DFN_QFN.pretty)(options "")(descr "Surface mount IC packages, DFN / LGA / QFN")) - (lib (name Housings_DIP)(type Github)(uri ${KIGITHUB}/Housings_DIP.pretty)(options "")(descr "Through hole IC packages, DIP")) - (lib (name Housings_LCC)(type Github)(uri ${KIGITHUB}/Housings_LCC.pretty)(options "")(descr "Leaded Chip Carriers (LCC)")) - (lib (name Housings_LGA)(type Github)(uri ${KIGITHUB}/Housings_LGA.pretty)(options "")(descr "Land Grid Array (LGA)")) - (lib (name Housings_PGA)(type Github)(uri ${KIGITHUB}/Housings_PGA.pretty)(options "")(descr "Pin Grid Array (PGA)")) - (lib (name Housings_QFP)(type Github)(uri ${KIGITHUB}/Housings_QFP.pretty)(options "")(descr "Quad Flat Package (QFP)")) - (lib (name Housings_SIP)(type Github)(uri ${KIGITHUB}/Housings_SIP.pretty)(options "")(descr "Single Inline Package (SIP)")) - (lib (name Housings_SOIC)(type Github)(uri ${KIGITHUB}/Housings_SOIC.pretty)(options "")(descr "Small Outline Integrated Circuits (SOIC)")) - (lib (name Housings_SON)(type Github)(uri ${KIGITHUB}/Housings_SON.pretty)(options "")(descr "Small Outline No-Lead (SON)")) - (lib (name Housings_SSOP)(type Github)(uri ${KIGITHUB}/Housings_SSOP.pretty)(options "")(descr "SSOP, TSSOP, MSOP, QSOP, VSO packages")) - (lib (name Inductors_SMD)(type Github)(uri ${KIGITHUB}/Inductors_SMD.pretty)(options "")(descr "Inductors, surface mount")) - (lib (name Inductors_THT)(type Github)(uri ${KIGITHUB}/Inductors_THT.pretty)(options "")(descr "Inductors, through hole")) - (lib (name IR-DirectFETs)(type Github)(uri ${KIGITHUB}/IR-DirectFETs.pretty)(options "")(descr "DirectFet packets from International Rectifier")) - (lib (name LEDs)(type Github)(uri ${KIGITHUB}/LEDs.pretty)(options "")(descr "Light emitting diodes (LEDs)")) - (lib (name Measurement_Points)(type Github)(uri ${KIGITHUB}/Measurement_Points.pretty)(options "")(descr "Terminals for test equipment")) - (lib (name Measurement_Scales)(type Github)(uri ${KIGITHUB}/Measurement_Scales.pretty)(options "")(descr "Measurement scales and gauges")) - (lib (name Microwave)(type Github)(uri ${KIGITHUB}/Microwave.pretty)(options "")(descr "Microwave")) - (lib (name Modules)(type Github)(uri ${KIGITHUB}/Modules.pretty)(options "")(descr "Board-level devices integrating system functionality into a single module")) - (lib (name Mounting_Holes)(type Github)(uri ${KIGITHUB}/Mounting_Holes.pretty)(options "")(descr "Mechanical fasteners")) - (lib (name Opto-Devices)(type Github)(uri ${KIGITHUB}/Opto-Devices.pretty)(options "")(descr "Optocouplers, light sensors, and other optical devices")) - (lib (name Oscillators)(type Github)(uri ${KIGITHUB}/Oscillators.pretty)(options "")(descr "Precicision oscillator modules")) - (lib (name PFF_PSF_PSS_Leadforms)(type Github)(uri ${KIGITHUB}/PFF_PSF_PSS_Leadforms.pretty)(options "")(descr "Allegro leadform packages")) - (lib (name Pin_Headers)(type Github)(uri ${KIGITHUB}/Pin_Headers.pretty)(options "")(descr "Male pin headers")) - (lib (name Potentiometers)(type Github)(uri ${KIGITHUB}/Potentiometers.pretty)(options "")(descr "Potentiometers / variable resistors")) - (lib (name Power_Integrations)(type Github)(uri ${KIGITHUB}/Power_Integrations.pretty)(options "")(descr "Power Integrations footprints")) - (lib (name Relays_SMD)(type Github)(uri ${KIGITHUB}/Relays_SMD.pretty)(options "")(descr "Surface mount relay packages")) - (lib (name Relays_THT)(type Github)(uri ${KIGITHUB}/Relays_THT.pretty)(options "")(descr "Through hole relay packages")) - (lib (name Resistors_SMD)(type Github)(uri ${KIGITHUB}/Resistors_SMD.pretty)(options "")(descr "Resistors, surface mount")) - (lib (name Resistors_THT)(type Github)(uri ${KIGITHUB}/Resistors_THT.pretty)(options "")(descr "Resistors, through hole")) - (lib (name Resistors_Universal)(type Github)(uri ${KIGITHUB}/Resistors_Universal.pretty)(options "")(descr Experimental)) - (lib (name RF_Antennas)(type Github)(uri ${KIGITHUB}/RF_Antennas.pretty)(options "")(descr "Radio-frequency / wireless antenna footprints")) - (lib (name RF_Modules)(type Github)(uri ${KIGITHUB}/RF_Modules.pretty)(options "")(descr "Radio-frequency / wireless modules")) - (lib (name Shielding_Cabinets)(type Github)(uri ${KIGITHUB}/Shielding_Cabinets.pretty)(options "")(descr "RF / EMI shields")) - (lib (name SMD_Packages)(type Github)(uri ${KIGITHUB}/SMD_Packages.pretty)(options "")(descr "Various SMD packages. Read only - footprints will be moved to other libraries")) - (lib (name Socket_Strips)(type Github)(uri ${KIGITHUB}/Socket_Strips.pretty)(options "")(descr "Female socket strips")) - (lib (name Sockets)(type Github)(uri ${KIGITHUB}/Sockets.pretty)(options "")(descr "IC sockets")) - (lib (name Symbols)(type Github)(uri ${KIGITHUB}/Symbols.pretty)(options "")(descr "PCB symbols")) - (lib (name TerminalBlocks_Phoenix)(type Github)(uri ${KIGITHUB}/TerminalBlocks_Phoenix.pretty)(options "")(descr "Phoenix Contact terminal blocks")) - (lib (name TerminalBlocks_WAGO)(type Github)(uri ${KIGITHUB}/TerminalBlocks_WAGO.pretty)(options "")(descr "WAGO terminal blocks")) - (lib (name TO_SOT_Packages_SMD)(type Github)(uri ${KIGITHUB}/TO_SOT_Packages_SMD.pretty)(options "")(descr "Surface mount transistor packages")) - (lib (name TO_SOT_Packages_THT)(type Github)(uri ${KIGITHUB}/TO_SOT_Packages_THT.pretty)(options "")(descr "Through hole transistor packages")) - (lib (name Transformers_SMD)(type Github)(uri ${KIGITHUB}/Transformers_SMD.pretty)(options "")(descr "Surface mount transformers")) - (lib (name Transformers_THT)(type Github)(uri ${KIGITHUB}/Transformers_THT.pretty)(options "")(descr "Through hole transformers")) - (lib (name Transistors_OldSowjetAera)(type Github)(uri ${KIGITHUB}/Transistors_OldSowjetAera.pretty)(options "")(descr "Sowjet transistors")) - (lib (name Valves)(type Github)(uri ${KIGITHUB}/Valves.pretty)(options "")(descr "Valves")) - (lib (name Varistors)(type Github)(uri ${KIGITHUB}/Varistors.pretty)(options "")(descr "Varistors")) - (lib (name Wire_Connections_Bridges)(type Github)(uri ${KIGITHUB}/Wire_Connections_Bridges.pretty)(options "")(descr "PCB bridging points")) - (lib (name Wire_Pads)(type Github)(uri ${KIGITHUB}/Wire_Pads.pretty)(options "")(descr "Direct wire-to-board connection points")) -) diff --git a/src/configuration/Appconfig.py b/src/configuration/Appconfig.py index 00977ca0..4decf0b6 100644 --- a/src/configuration/Appconfig.py +++ b/src/configuration/Appconfig.py @@ -13,7 +13,7 @@ # MODIFIED: Rahul Paknikar, rahulp@iitb.ac.in # ORGANIZATION: eSim Team at FOSSEE, IIT Bombay # CREATED: Tuesday 24 February 2015 -# REVISION: Tuesday 13 September 2022 +# REVISION: Thursday 29 June 2023 # ========================================================================= from PyQt5 import QtWidgets @@ -80,20 +80,6 @@ class Appconfig(QtWidgets.QWidget): print("Cannot access Modelica map file --- .esim folder") print(str(e)) - # Open file and read KiCad config path - try: - init_path = '../../' - if os.name == 'nt': - init_path = '' - - file = open(init_path + - 'library/supportFiles/kicad_config_path.txt', 'r') - kicad_path = file.read().rstrip() - file.close() - except BaseException as e: - kicad_path = None - print(str(e)) - try: project_explorer = json.load(open(dictPath["path"])) except BaseException: diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 96be7ca4..a6f2cd10 100644 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -20,7 +20,6 @@ import os import sys -import shutil import traceback if os.name == 'nt': @@ -56,9 +55,6 @@ class Application(QtWidgets.QMainWindow): # Calling __init__ of super class QtWidgets.QMainWindow.__init__(self, *args) - # Flag for mode of operation. Default is set to offline mode. - self.online_flag = False - # Set slot for simulation end signal to plot simulation data self.simulationEndSignal.connect(self.plotSimulationData) @@ -126,28 +122,6 @@ class Application(QtWidgets.QMainWindow): self.wrkspce.setShortcut('Ctrl+W') self.wrkspce.triggered.connect(self.change_workspace) - self.switchmode = None - self.validate_mode() - if self.online_flag is True: - self.switchmode = QtWidgets.QAction(QtGui.QIcon( - init_path + 'images/online.png'), - '<b>Go Offline</b>', self - ) - elif self.online_flag is False: - self.switchmode = QtWidgets.QAction(QtGui.QIcon( - init_path + 'images/offline.png'), - '<b>Go Online</b>', self - ) - elif self.online_flag is None: - self.switchmode = QtWidgets.QAction(QtGui.QIcon( - init_path + 'images/disable.png'), - '<b>Mode switching has been disabled. ' + - 'Default mode set to offline</b>', self - ) - self.switchmode.setEnabled(False) - self.switchmode.setShortcut('Ctrl+G') - self.switchmode.triggered.connect(self.change_mode) - self.helpfile = QtWidgets.QAction( QtGui.QIcon(init_path + 'images/helpProject.png'), '<b>Help</b>', self @@ -160,7 +134,6 @@ class Application(QtWidgets.QMainWindow): self.topToolbar.addAction(self.openproj) self.topToolbar.addAction(self.closeproj) self.topToolbar.addAction(self.wrkspce) - self.topToolbar.addAction(self.switchmode) self.topToolbar.addAction(self.helpfile) # ## This part is meant for SoC Generation which is currently ## @@ -398,149 +371,6 @@ class Application(QtWidgets.QMainWindow): self.hide() self.obj_workspace.show() - def validate_mode(self): - """ - This functions checks whether proper fp-lib-table* files are \ - available or not. If not, then move appropriate files from \ - library/supportFiles folder and set `self.online_flag` accordingly. - - @params - - @return - None - """ - remove = False - - if self.obj_appconfig.kicad_path is not None: - - if not os.path.exists( - self.obj_appconfig.kicad_path + "/fp-lib-table" - ): - remove = True - elif os.path.exists(self.obj_appconfig.kicad_path + - "/fp-lib-table-offline"): - if os.path.exists(self.obj_appconfig.kicad_path + - "/fp-lib-table-online"): - remove = True - os.remove(self.obj_appconfig.kicad_path + - "/fp-lib-table") - else: - self.online_flag = True - else: - if not os.path.exists(self.obj_appconfig.kicad_path + - "/fp-lib-table-online"): - remove = True - os.remove(self.obj_appconfig.kicad_path + - "/fp-lib-table") - else: - self.online_flag = False - - if remove: - # Remove invalid files - if os.path.exists( - self.obj_appconfig.kicad_path + "/fp-lib-table-offline" - ): - os.remove(self.obj_appconfig.kicad_path + - "/fp-lib-table-offline") - - if os.path.exists( - self.obj_appconfig.kicad_path + "/fp-lib-table-online" - ): - os.remove(self.obj_appconfig.kicad_path + - "/fp-lib-table-online") - - # Restore original files - shutil.copy( - init_path + 'library/supportFiles/fp-lib-table-online', - self.obj_appconfig.kicad_path + "/" - ) - shutil.copy( - init_path + 'library/supportFiles/fp-lib-table', - self.obj_appconfig.kicad_path + "/" - ) - - self.online_flag = False - else: - self.online_flag = None - - def change_mode(self): - """ - - This function is used for changing mode of operation for KiCad. \ - - There are three modes of operation : - - online - - offline - - disable - - - If none of the KiCad tools (associated with eSim) are \ - open, then validate this mode by calling the function \ - `validate_mode` and depending on online_flag, swap \ - appropriate fp-lib-table files. - - If any of the KiCad tools (associated with eSim) is open, \ - then ask user to close all these tools. - - If `online_flag` is `None`, then disable this feature. - - @params - - @return - None - """ - if not self.obj_kicad.check_open_schematic(): - self.validate_mode() - if self.online_flag is True: - os.rename( - self.obj_appconfig.kicad_path + "/fp-lib-table", - self.obj_appconfig.kicad_path + - "/fp-lib-table-online" - ) - os.rename( - self.obj_appconfig.kicad_path + - "/fp-lib-table-offline", - self.obj_appconfig.kicad_path + "/fp-lib-table" - ) - self.switchmode.setIcon( - QtGui.QIcon(init_path + 'images/offline.png') - ) - self.switchmode.setText('<b>Go Online</b>') - self.switchmode.setEnabled(True) - self.online_flag = False - - elif self.online_flag is False: - os.rename( - self.obj_appconfig.kicad_path + "/fp-lib-table", - self.obj_appconfig.kicad_path + - "/fp-lib-table-offline" - ) - os.rename( - self.obj_appconfig.kicad_path + - "/fp-lib-table-online", - self.obj_appconfig.kicad_path + "/fp-lib-table" - ) - self.switchmode.setIcon( - QtGui.QIcon(init_path + 'images/online.png') - ) - self.switchmode.setText('<b>Go Offline</b>') - self.switchmode.setEnabled(True) - self.online_flag = True - - elif self.online_flag is None: - self.switchmode.setIcon( - QtGui.QIcon(init_path + 'images/disable.png') - ) - self.switchmode.setText( - '<b>Mode switching has been ' + - 'disabled. Default mode set to offline</b>.' - ) - self.switchmode.setEnabled(False) - else: - self.msg = QtWidgets.QErrorMessage() - self.msg.setWindowTitle("Error Message") - self.msg.setModal(True) - self.msg.showMessage( - 'Please save and close all the KiCad ' + - 'windows first, then change the mode' - ) - self.msg.exec_() - def help_project(self): """ This function opens usermanual in dockarea. |