summaryrefslogtreecommitdiff
path: root/src/projManagement/Kicad.py
diff options
context:
space:
mode:
authorfahim2015-03-11 16:53:05 +0530
committerfahim2015-03-11 16:53:05 +0530
commitc0e70c79a6d651cf8b3b397f866ae38485fa5ca0 (patch)
treedeff1c35ec424fe336d975c519c55e7b59deaa0d /src/projManagement/Kicad.py
parent05de80920118454a0e08b6a41e6ee5eb81d09a8e (diff)
downloadeSim-c0e70c79a6d651cf8b3b397f866ae38485fa5ca0.tar.gz
eSim-c0e70c79a6d651cf8b3b397f866ae38485fa5ca0.tar.bz2
eSim-c0e70c79a6d651cf8b3b397f866ae38485fa5ca0.zip
Subject: Added new module kicadtongspice
Description: Develope skeleton body for kicadtongspice module
Diffstat (limited to 'src/projManagement/Kicad.py')
-rw-r--r--src/projManagement/Kicad.py22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py
index 71e66064..ec2932a0 100644
--- a/src/projManagement/Kicad.py
+++ b/src/projManagement/Kicad.py
@@ -90,4 +90,24 @@ class Kicad:
else:
self.msg = QtGui.QErrorMessage(None)
self.msg.showMessage('Please select the project first. You can either create new project or open existing project')
- self.msg.setWindowTitle("Error Message") \ No newline at end of file
+ self.msg.setWindowTitle("Error Message")
+
+ def openKicadToNgspice(self):
+ print "Open Kicad to Ngspice Conversion"
+ self.projDir = self.obj_appconfig.current_project["ProjectName"]
+ #Validating if current project is available or not
+ if self.obj_validation.validateKicad(self.projDir):
+ print "Project is present"
+ #Cheking if project has .cir file or not
+ if self.obj_validation.validateCir(self.projDir):
+ print "CIR file present"
+ else:
+ self.msg = QtGui.QErrorMessage(None)
+ self.msg.showMessage('Your project do not contain any Kicad netlist file for conversion')
+ self.msg.setWindowTitle("Error Message")
+
+ else:
+ self.msg = QtGui.QErrorMessage(None)
+ self.msg.showMessage('Please select the project first. You can either create new project or open existing project')
+ self.msg.setWindowTitle("Error Message")
+ \ No newline at end of file