summaryrefslogtreecommitdiff
path: root/src/frontEnd/ViewManagement.py
diff options
context:
space:
mode:
authorfahim2015-02-10 14:51:07 +0530
committerfahim2015-02-10 14:51:07 +0530
commit775f9c18568ad2f7c480fad271e281dbc235e796 (patch)
tree3c6875f7323162c4e61653393e179941fa9b0061 /src/frontEnd/ViewManagement.py
parente91a76c90a2ee829c337251e9adc33767c808b51 (diff)
downloadeSim-775f9c18568ad2f7c480fad271e281dbc235e796.tar.gz
eSim-775f9c18568ad2f7c480fad271e281dbc235e796.tar.bz2
eSim-775f9c18568ad2f7c480fad271e281dbc235e796.zip
Subject: Added few more gui component
Description: Kicad button,converter button and Ngspice button.
Diffstat (limited to 'src/frontEnd/ViewManagement.py')
-rwxr-xr-xsrc/frontEnd/ViewManagement.py45
1 files changed, 35 insertions, 10 deletions
diff --git a/src/frontEnd/ViewManagement.py b/src/frontEnd/ViewManagement.py
index dd24d13b..fac383bc 100755
--- a/src/frontEnd/ViewManagement.py
+++ b/src/frontEnd/ViewManagement.py
@@ -38,26 +38,51 @@ class ViewManagement(QtGui.QSplitter):
def createView(self):
#Adding view into views dictionary
- self.addView(QtGui.QTextEdit, 'test1')
+ self.addView(QtGui.QTextEdit, 'Project Explorer')
self.addView(QtGui.QTextEdit, 'test2')
self.addView(QtGui.QTextEdit, 'test3')
def setupView(self):
-
#setup views to define various areas, such as placement of individual views
-
# the right segment also is a splitter, but with vertical orientation
- right = QtGui.QSplitter()
- right.setOrientation(QtCore.Qt.Vertical)
+ self.right = QtGui.QSplitter()
+ self.right.setOrientation(QtCore.Qt.Vertical)
+
+ #Layout
+ self.grid = QtGui.QGridLayout()
+
+
+ #Button for QFrame
+ self.kicad_btn = QtGui.QPushButton()
+ self.kicad_btn.setIcon(QtGui.QIcon('../images/default.png'))
+ self.kicad_btn.setIconSize(QtCore.QSize(50,50))
+ 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.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.grid.addWidget(self.ngspice_btn,0,2)
+
+
+
# bind the top level views into the framework
- self.views['test1'].setParent(self)
+ self.views['Project Explorer'].setParent(self)
+
+ self.views['test2'].setParent(self.right)
+ self.views['test2'].setLayout(self.grid)
+ self.views['test2'].setReadOnly(True)
- right.setParent(self)
+ self.views['test3'].setParent(self.right)
- self.views['test2'].setParent(right)
- self.views['test3'].setParent(right)
- right.setSizes([20, 5])
+ self.right.setParent(self)
+ self.right.setSizes([20, 5])
self.setSizes([5, 20])
def addView(self, settype, name):