summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
authorSangaviGR2024-09-13 01:15:31 +0530
committerGitHub2024-09-13 01:15:31 +0530
commit3989889835663988f3dc89f1c1b0a8c5e23e303d (patch)
tree6eb539107e3c9a78049dc615b118db4e4cf01738 /src/frontEnd/Application.py
parent5865b5d9a2375971fe2ec1cbcc3e9344f138907d (diff)
downloadeSim-3989889835663988f3dc89f1c1b0a8c5e23e303d.tar.gz
eSim-3989889835663988f3dc89f1c1b0a8c5e23e303d.tar.bz2
eSim-3989889835663988f3dc89f1c1b0a8c5e23e303d.zip
Integrated Schematic Converters (#271)
Add the files for the Schematic Converters(PSpice to KiCad and LTspice to KiCad converters) to eSim.
Diffstat (limited to 'src/frontEnd/Application.py')
-rw-r--r--src/frontEnd/Application.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index a6f2cd10..5d76bf9d 100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -225,6 +225,12 @@ class Application(QtWidgets.QMainWindow):
)
self.omoptim.triggered.connect(self.open_OMoptim)
+ self.conToeSim = QtWidgets.QAction(
+ QtGui.QIcon(init_path + 'images/icon.png'),
+ '<b>Schematics converter</b>', self
+ )
+ self.conToeSim.triggered.connect(self.open_conToeSim)
+
# Adding Action Widget to tool bar
self.lefttoolbar = QtWidgets.QToolBar('Left ToolBar')
self.addToolBar(QtCore.Qt.LeftToolBarArea, self.lefttoolbar)
@@ -237,6 +243,7 @@ class Application(QtWidgets.QMainWindow):
self.lefttoolbar.addAction(self.nghdl)
self.lefttoolbar.addAction(self.omedit)
self.lefttoolbar.addAction(self.omoptim)
+ self.lefttoolbar.addAction(self.conToeSim)
self.lefttoolbar.setOrientation(QtCore.Qt.Vertical)
self.lefttoolbar.setIconSize(QSize(40, 40))
@@ -637,6 +644,10 @@ class Application(QtWidgets.QMainWindow):
self.obj_appconfig.print_info(self.msgContent)
self.msg.exec_()
+ def open_conToeSim(self):
+ print("Function : Schematics converter")
+ self.obj_appconfig.print_info('Schematics converter is called')
+ self.obj_Mainview.obj_dockarea.eSimConverter()
# This class initialize the Main View of Application
class MainView(QtWidgets.QWidget):