From 4366a4d375e0a942c8bc37aeeb0dabbc8849b86a Mon Sep 17 00:00:00 2001 From: Fahim Date: Fri, 22 Jan 2016 15:02:10 +0530 Subject: Commented PCB and Footprint editor related code as it will open directly from eeschema Modified install-linux.sh to add PPA for Kicad-4 --- src/frontEnd/Application.py | 5 +++++ src/projManagement/Kicad.py | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 6bfbf97e..55c36fb6 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -128,11 +128,14 @@ class Application(QtGui.QMainWindow): self.ngspice = QtGui.QAction(QtGui.QIcon('../../images/ngspice.png'), 'Simulation', self) self.ngspice.triggered.connect(self.open_ngspice) + """ + #Removing PCB and Footprint Editor as it will start from eeschema self.footprint = QtGui.QAction(QtGui.QIcon('../../images/footprint.png'),'Footprint Editor',self) self.footprint.triggered.connect(self.obj_kicad.openFootprint) self.pcb = QtGui.QAction(QtGui.QIcon('../../images/pcb.png'),'PCB Layout',self) self.pcb.triggered.connect(self.obj_kicad.openLayout) + """ self.model = QtGui.QAction(QtGui.QIcon('../../images/model.png'),'Model Editor',self) self.model.triggered.connect(self.open_modelEditor) @@ -155,8 +158,10 @@ class Application(QtGui.QMainWindow): self.lefttoolbar.addAction(self.kicad) self.lefttoolbar.addAction(self.conversion) self.lefttoolbar.addAction(self.ngspice) + """ self.lefttoolbar.addAction(self.footprint) self.lefttoolbar.addAction(self.pcb) + """ self.lefttoolbar.addAction(self.model) self.lefttoolbar.addAction(self.subcircuit) self.lefttoolbar.addAction(self.nghdl) diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py index c2a0c948..41fb8d79 100644 --- a/src/projManagement/Kicad.py +++ b/src/projManagement/Kicad.py @@ -29,7 +29,7 @@ class Kicad: def __init__(self,dockarea): self.obj_validation = Validation.Validation() self.obj_appconfig = Appconfig() - self.obj_dockarea=dockarea + self.obj_dockarea= dockarea def openSchematic(self): """ @@ -60,7 +60,8 @@ class Kicad: self.msg.setWindowTitle("Error Message") - + ''' + #Commenting as it is no longer needed as PBC and Layout will open from eeschema def openFootprint(self): """ This function create command to open Footprint editor @@ -115,6 +116,8 @@ class Kicad: self.msg.showMessage('Please select the project first. You can either create new project or open existing project') self.obj_appconfig.print_warning('Please select the project first. You can either create new project or open existing project') self.msg.setWindowTitle("Error Message") + + ''' def openKicadToNgspice(self): """ -- cgit