summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSumanto Kar2025-05-15 19:35:10 +0530
committerGitHub2025-05-15 19:35:10 +0530
commit59551f0b573d803dbcd1f3008516447537caa85f (patch)
tree7556cffe9e466c927efa0d797757eadd306ecaef /src
parent2e6fcc49286ae4998ec57eef3359312d5978c105 (diff)
parentcce3ccbbe5dfe3a025c51d234572ad6ab6f68a26 (diff)
downloadeSim-master.tar.gz
eSim-master.tar.bz2
eSim-master.zip
Merge pull request #331 from 092vk/devDocsHEADmaster
Updated docs and conf files for readthedocs
Diffstat (limited to 'src')
-rw-r--r--src/frontEnd/Application.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index ea286651..01280a99 100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -21,6 +21,7 @@
import os
import sys
import traceback
+import webbrowser
if os.name == 'nt':
from frontEnd import pathmagic # noqa:F401
@@ -132,12 +133,21 @@ class Application(QtWidgets.QMainWindow):
self.helpfile.setShortcut('Ctrl+H')
self.helpfile.triggered.connect(self.help_project)
+ # added devDocs logo and called functions
+ self.devdocs = QtWidgets.QAction(
+ QtGui.QIcon(init_path + 'images/dev_docs.png'),
+ '<b>Dev Docs</b>', self
+ )
+ self.devdocs.setShortcut('Ctrl+D')
+ self.devdocs.triggered.connect(self.dev_docs)
+
self.topToolbar = self.addToolBar('Top Tool Bar')
self.topToolbar.addAction(self.newproj)
self.topToolbar.addAction(self.openproj)
self.topToolbar.addAction(self.closeproj)
self.topToolbar.addAction(self.wrkspce)
self.topToolbar.addAction(self.helpfile)
+ self.topToolbar.addAction(self.devdocs)
# ## This part is meant for SoC Generation which is currently ##
# ## under development and will be will be required in future. ##
@@ -415,6 +425,15 @@ class Application(QtWidgets.QMainWindow):
print("Current Project is : ", self.obj_appconfig.current_project)
self.obj_Mainview.obj_dockarea.usermanual()
+ def dev_docs(self):
+ """
+ This function guides the user to readthedocs website for the developer docs
+ """
+ print("Function : DevDocs")
+ self.obj_appconfig.print_info('DevDocs is called')
+ print("Current Project is : ", self.obj_appconfig.current_project)
+ webbrowser.open("https://esim.readthedocs.io/en/latest/index.html")
+
@QtCore.pyqtSlot(QtCore.QProcess.ExitStatus, int)
def plotSimulationData(self, exitCode, exitStatus):
"""Enables interaction for new simulation and