summaryrefslogtreecommitdiff
path: root/src/frontEnd
diff options
context:
space:
mode:
authorfahim2015-07-31 16:32:08 +0530
committerfahim2015-07-31 16:32:08 +0530
commita9e808fd75d09978d159678cf9ae39e38d8dbe37 (patch)
tree2637a7c44b46940af0a3e5ad325d88d2486bab68 /src/frontEnd
parenta240b67affd00ac162329f736a430f35cc38baba (diff)
downloadeSim-a9e808fd75d09978d159678cf9ae39e38d8dbe37.tar.gz
eSim-a9e808fd75d09978d159678cf9ae39e38d8dbe37.tar.bz2
eSim-a9e808fd75d09978d159678cf9ae39e38d8dbe37.zip
Subject: Added module for user manual
Description: Added module for user manual
Diffstat (limited to 'src/frontEnd')
-rwxr-xr-xsrc/frontEnd/Application.py2
-rw-r--r--src/frontEnd/DockArea.py28
2 files changed, 29 insertions, 1 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index e977df23..2aa7c649 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -224,7 +224,7 @@ class Application(QtGui.QMainWindow):
print "Help is called"
self.obj_appconfig.print_info('Help is called')
print "Current Project : ",self.obj_appconfig.current_project
- self.obj_Mainview.obj_dockarea.createTestEditor()
+ self.obj_Mainview.obj_dockarea.usermanual()
def open_modelEditor(self):
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py
index 1c155787..65296525 100644
--- a/src/frontEnd/DockArea.py
+++ b/src/frontEnd/DockArea.py
@@ -6,6 +6,7 @@ from modelEditor.ModelEditor import ModelEditorclass
from subcircuit.Subcircuit import Subcircuit
from kicadtoNgspice.KicadtoNgspice import MainWindow
from browser.Welcome import Welcome
+from browser.UserManual import UserManual
import os
dockList = ['Welcome']
@@ -238,4 +239,31 @@ class DockArea(QtGui.QMainWindow):
dock['Subcircuit-'+str(count)].setFocus()
dock['Subcircuit-'+str(count)].raise_()
+ count = count + 1
+
+ def usermanual(self):
+ """
+ This function creates a widget for different subcircuit options
+ """
+
+ global count
+ self.usermanualWidget=QtGui.QWidget()
+ self.usermanualLayout=QtGui.QVBoxLayout()
+ self.usermanualLayout.addWidget(UserManual())
+
+ self.usermanualWidget.setLayout(self.usermanualLayout)
+ dock['User Manual-'+str(count)] = QtGui.QDockWidget('User Manual-'+str(count))
+ dock['User Manual-'+str(count)].setWidget(self.usermanualWidget)
+ self.addDockWidget(QtCore.Qt.TopDockWidgetArea, dock['User Manual-'+str(count)])
+ self.tabifyDockWidget(dock['Welcome'],dock['User Manual-'+str(count)])
+
+ #CSS
+ dock['User Manual-'+str(count)].setStyleSheet(" \
+ .QWidget { border-radius: 15px; border: 1px solid gray; padding: 5px; width: 200px; height: 150px; } \
+ ")
+
+ dock['User Manual-'+str(count)].setVisible(True)
+ dock['User Manual-'+str(count)].setFocus()
+ dock['User Manual-'+str(count)].raise_()
+
count = count + 1 \ No newline at end of file