summaryrefslogtreecommitdiff
path: root/src/frontEnd/DockArea.py
diff options
context:
space:
mode:
authorfahim2015-06-01 17:56:05 +0530
committerfahim2015-06-01 17:56:05 +0530
commitb55f693aae4b4874e89514b83d59f5566f8d3998 (patch)
tree456774c47b58c68eb5cda542501c2ded4d07ffd0 /src/frontEnd/DockArea.py
parentae00efd3b5f0b64f103469a168c63e6fcedd563f (diff)
downloadeSim-b55f693aae4b4874e89514b83d59f5566f8d3998.tar.gz
eSim-b55f693aae4b4874e89514b83d59f5566f8d3998.tar.bz2
eSim-b55f693aae4b4874e89514b83d59f5566f8d3998.zip
Subject: Adding changes for Model Editor
Description: Adding Changes for Model Editor
Diffstat (limited to 'src/frontEnd/DockArea.py')
-rw-r--r--src/frontEnd/DockArea.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py
index 875b3b90..76216aa6 100644
--- a/src/frontEnd/DockArea.py
+++ b/src/frontEnd/DockArea.py
@@ -2,6 +2,7 @@ from PyQt4 import QtGui,QtCore
from ngspiceSimulation.pythonPlotting import plotWindow
from ngspiceSimulation.NgspiceWidget import NgspiceWidget
from configuration.Appconfig import Appconfig
+from modelEditor.ModelEditor import ModelEditorclass
import os
dockList = ['Welcome']
@@ -107,6 +108,28 @@ class DockArea(QtGui.QMainWindow):
dock['NgSpice-'+str(count)].raise_()
count = count + 1
+
+ def modelEditor(self):
+ print"in model editor"
+ global count
+ self.modelwidget = QtGui.QWidget()
+
+ self.modellayout = QtGui.QVBoxLayout()
+ self.modellayout.addWidget(ModelEditorclass())
+
+ #Adding to main Layout
+ self.modelwidget.setLayout(self.modellayout)
+
+ dock['Model Editor-'+str(count)] = QtGui.QDockWidget('Model Editor-'+str(count))
+ dock['Model Editor-'+str(count)].setWidget(self.modelwidget)
+ self.addDockWidget(QtCore.Qt.TopDockWidgetArea, dock['Model Editor-'+str(count)])
+ self.tabifyDockWidget(dock['Welcome'],dock['Model Editor-'+str(count)])
+
+ dock['Model Editor-'+str(count)].setVisible(True)
+ dock['Model Editor-'+str(count)].setFocus()
+ dock['Model Editor-'+str(count)].raise_()
+
+ count = count + 1