summaryrefslogtreecommitdiff
path: root/src/frontEnd/ViewManagement.py
diff options
context:
space:
mode:
authorfahim2015-04-30 14:13:27 +0530
committerfahim2015-04-30 14:13:27 +0530
commit1bedbb24c5a98bac8e1802893137b375cd5f4ee3 (patch)
treefe4d66056a741a5f619d0552e5c0b88a1b42c00c /src/frontEnd/ViewManagement.py
parent320ab0257341c029f5aa9333fe233a371309e802 (diff)
downloadeSim-1bedbb24c5a98bac8e1802893137b375cd5f4ee3.tar.gz
eSim-1bedbb24c5a98bac8e1802893137b375cd5f4ee3.tar.bz2
eSim-1bedbb24c5a98bac8e1802893137b375cd5f4ee3.zip
Subject: Modified Application.py
Description: Created new framework for main Application.py
Diffstat (limited to 'src/frontEnd/ViewManagement.py')
-rwxr-xr-xsrc/frontEnd/ViewManagement.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/frontEnd/ViewManagement.py b/src/frontEnd/ViewManagement.py
index b7a5dff0..2160be8b 100755
--- a/src/frontEnd/ViewManagement.py
+++ b/src/frontEnd/ViewManagement.py
@@ -23,6 +23,7 @@ from PyQt4 import QtCore
from PyQt4 import QtGui
from projManagement.Kicad import Kicad
from ProjectExplorer import ProjectExplorer
+from Plotting import Plotting
class ViewManagement(QtGui.QSplitter):
@@ -48,10 +49,10 @@ class ViewManagement(QtGui.QSplitter):
#Adding view into views dictionary
self.addView(ProjectExplorer, 'ProjectExplorer')
self.addView(QtGui.QTextEdit, 'MainArea')
- self.addView(QtGui.QTextEdit, 'Plotting')
+ self.addView(Plotting, 'Plotting')
self.addView(QtGui.QTextEdit, 'Browser')
-
+
def setupView(self):
#setup views to define various areas, such as placement of individual views
@@ -59,10 +60,7 @@ class ViewManagement(QtGui.QSplitter):
self.right = QtGui.QSplitter()
self.right.setOrientation(QtCore.Qt.Vertical)
- #Layout
- self.grid = QtGui.QGridLayout()
-
-
+
#Button for Project Tool Bar
self.kicad = QtGui.QAction(QtGui.QIcon('../images/default.png'),'<b>Open Schematic</b>',self)
self.kicad.triggered.connect(self.obj_kicad.openSchematic)
@@ -93,13 +91,11 @@ class ViewManagement(QtGui.QSplitter):
self.lefttoolbar.setParent(self)
self.lefttoolbar.setOrientation(QtCore.Qt.Vertical)
- self.views['ProjectExplorer'].setParent(self)
+ self.views['ProjectExplorer'].setParent(self)
self.views['MainArea'].setParent(self.right)
-
self.views['Plotting'].setParent(self.right)
- self.views['Plotting'].setReadOnly(True)
-
+ #self.views['Plotting'].setReadOnly(True)
self.views['Browser'].setParent(self.browser)
self.views['Browser'].setReadOnly(True)