From 6e070b2fccfb9142ead325a9f437f28144e99ce8 Mon Sep 17 00:00:00 2001
From: fahim
Date: Wed, 18 Feb 2015 15:40:04 +0530
Subject: Subject: Deleted Unwanted file
Description: Deleted unwanted file
---
src/frontEnd/Application.py | 17 ++++++++---------
src/frontEnd/ViewManagement.py | 15 ++++++++++++++-
src/frontEnd/ViewManagement.pyc | Bin 2542 -> 3042 bytes
3 files changed, 22 insertions(+), 10 deletions(-)
(limited to 'src/frontEnd')
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index a261d67c..e3e04b97 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -57,19 +57,19 @@ class Application(QtGui.QMainWindow):
def initActions(self):
- self.newproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'New Project',self)
+ self.newproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'New Project',self)
self.newproj.setShortcut('Ctrl+N')
self.newproj.triggered.connect(self.new_project)
- self.openproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Open Project',self)
+ self.openproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Open Project',self)
self.openproj.setShortcut('Ctrl+O')
self.openproj.triggered.connect(self.open_project)
- self.exitproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Exit',self)
+ self.exitproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Exit',self)
self.exitproj.setShortcut('Ctrl+X')
self.exitproj.triggered.connect(self.exit_project)
- self.helpfile = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Help',self)
+ self.helpfile = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Help',self)
self.helpfile.setShortcut('Ctrl+H')
self.helpfile.triggered.connect(self.help_project)
@@ -86,11 +86,7 @@ class Application(QtGui.QMainWindow):
"""
self.view = ViewManagement.ViewManagement()
self.setCentralWidget(self.view)
-
-
- def testfn(self):
- print "Success hit :"
-
+
def new_project(self):
print "New Project called"
@@ -107,6 +103,9 @@ class Application(QtGui.QMainWindow):
def help_project(self):
print "Help is called"
+ def testing(self):
+ print "Sucess hit kicad button"
+
diff --git a/src/frontEnd/ViewManagement.py b/src/frontEnd/ViewManagement.py
index 7d6ca9cd..5b7dc262 100755
--- a/src/frontEnd/ViewManagement.py
+++ b/src/frontEnd/ViewManagement.py
@@ -21,6 +21,7 @@
from PyQt4 import QtCore
from PyQt4 import QtGui
+from projManagement.openKicad import Kicad
class ViewManagement(QtGui.QSplitter):
@@ -31,6 +32,10 @@ class ViewManagement(QtGui.QSplitter):
# Creating dictionary which hold all the views
self.views = {}
+ #Creating object of openKicad.py
+
+ self.obj_kicad = Kicad()
+
# define the basic framework of view areas for the
# application
self.createView()
@@ -56,27 +61,35 @@ class ViewManagement(QtGui.QSplitter):
self.kicad_btn = QtGui.QPushButton()
self.kicad_btn.setIcon(QtGui.QIcon('../images/default.png'))
self.kicad_btn.setIconSize(QtCore.QSize(50,50))
+ self.kicad_btn.setToolTip('Open Schematic')
+ self.kicad_btn.clicked.connect(self.obj_kicad.openSchematic)
self.grid.addWidget(self.kicad_btn,0,0)
self.conversion_btn = QtGui.QPushButton()
self.conversion_btn.setIcon(QtGui.QIcon('../images/default.png'))
self.conversion_btn.setIconSize(QtCore.QSize(50,50))
+ self.conversion_btn.setToolTip('Convert Kicad to Ngspice')
self.grid.addWidget(self.conversion_btn,0,1)
self.ngspice_btn = QtGui.QPushButton()
self.ngspice_btn.setIcon(QtGui.QIcon('../images/default.png'))
self.ngspice_btn.setIconSize(QtCore.QSize(50,50))
+ self.ngspice_btn.setToolTip('Simulation')
self.grid.addWidget(self.ngspice_btn,0,2)
self.footprint_btn = QtGui.QPushButton()
self.footprint_btn.setIcon(QtGui.QIcon('../images/default.png'))
self.footprint_btn.setIconSize(QtCore.QSize(50,50))
+ self.footprint_btn.setToolTip('Footprint Editor')
+ self.footprint_btn.clicked.connect(self.obj_kicad.openFootprint)
self.grid.addWidget(self.footprint_btn,1,0)
self.pcb_btn = QtGui.QPushButton()
self.pcb_btn.setIcon(QtGui.QIcon('../images/default.png'))
self.pcb_btn.setIconSize(QtCore.QSize(50,50))
+ self.pcb_btn.setToolTip('PCB Layout')
+ self.pcb_btn.clicked.connect(self.obj_kicad.openLayout)
self.grid.addWidget(self.pcb_btn,1,1)
@@ -104,7 +117,7 @@ class ViewManagement(QtGui.QSplitter):
self.views[name] = settype()
-
+
diff --git a/src/frontEnd/ViewManagement.pyc b/src/frontEnd/ViewManagement.pyc
index 4f31cfc2..cec8f36d 100644
Binary files a/src/frontEnd/ViewManagement.pyc and b/src/frontEnd/ViewManagement.pyc differ
--
cgit