summaryrefslogtreecommitdiff
path: root/src/frontEnd/DockArea.py
diff options
context:
space:
mode:
authorfahim-oscad2016-04-04 16:59:25 +0530
committerfahim-oscad2016-04-04 16:59:25 +0530
commit705a0be005d9be0a3a81a4f58e4b5c92e586a4c9 (patch)
treeb94d6ecdbf95262b8da335aa7c650e3e2fc8607b /src/frontEnd/DockArea.py
parent92860fe3ba762ff0a690f887319a7d95018b49c9 (diff)
parent66770d5e2c94cc299424daa67b8bfafcb4d9b8c1 (diff)
downloadeSim-705a0be005d9be0a3a81a4f58e4b5c92e586a4c9.tar.gz
eSim-705a0be005d9be0a3a81a4f58e4b5c92e586a4c9.tar.bz2
eSim-705a0be005d9be0a3a81a4f58e4b5c92e586a4c9.zip
Merged modification branch into release
Diffstat (limited to 'src/frontEnd/DockArea.py')
-rw-r--r--src/frontEnd/DockArea.py23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py
index 65296525..dcb48704 100644
--- a/src/frontEnd/DockArea.py
+++ b/src/frontEnd/DockArea.py
@@ -90,7 +90,8 @@ class DockArea(QtGui.QMainWindow):
")
"""
dock['Tips-'+str(count)].raise_()
-
+
+ self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']].append(dock['Tips-'+str(count)])
count = count + 1
def plottingEditor(self):
@@ -124,7 +125,8 @@ class DockArea(QtGui.QMainWindow):
dock['Plotting-'+str(count)].setVisible(True)
dock['Plotting-'+str(count)].setFocus()
dock['Plotting-'+str(count)].raise_()
-
+
+ self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']].append(dock['Plotting-'+str(count)])
count = count + 1
def ngspiceEditor(self,projDir):
@@ -160,7 +162,7 @@ class DockArea(QtGui.QMainWindow):
dock['NgSpice-'+str(count)].setVisible(True)
dock['NgSpice-'+str(count)].setFocus()
dock['NgSpice-'+str(count)].raise_()
-
+ self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']].append(dock['NgSpice-'+str(count)])
count = count + 1
def modelEditor(self):
@@ -187,7 +189,8 @@ class DockArea(QtGui.QMainWindow):
dock['Model Editor-'+str(count)].setVisible(True)
dock['Model Editor-'+str(count)].setFocus()
dock['Model Editor-'+str(count)].raise_()
-
+
+ self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']].append(dock['Model Editor-'+str(count)])
count = count + 1
def kicadToNgspiceEditor(self,clarg1,clarg2=None):
@@ -210,7 +213,8 @@ class DockArea(QtGui.QMainWindow):
dock['kicadToNgspice-'+str(count)].setVisible(True)
dock['kicadToNgspice-'+str(count)].setFocus()
dock['kicadToNgspice-'+str(count)].raise_()
-
+
+ self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']].append(dock['kicadToNgspice-'+str(count)])
count = count + 1
@@ -238,7 +242,8 @@ class DockArea(QtGui.QMainWindow):
dock['Subcircuit-'+str(count)].setVisible(True)
dock['Subcircuit-'+str(count)].setFocus()
dock['Subcircuit-'+str(count)].raise_()
-
+
+ self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']].append(dock['Subcircuit-'+str(count)])
count = count + 1
def usermanual(self):
@@ -266,4 +271,8 @@ class DockArea(QtGui.QMainWindow):
dock['User Manual-'+str(count)].setFocus()
dock['User Manual-'+str(count)].raise_()
- count = count + 1 \ No newline at end of file
+ count = count + 1
+
+ def closeDock (self):
+ for dockwidget in self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']]:
+ dockwidget.close()