summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfahim2015-07-31 11:59:21 +0530
committerfahim2015-07-31 11:59:21 +0530
commita240b67affd00ac162329f736a430f35cc38baba (patch)
tree225ef1886c6fc83d3a67b8a3e9543e41e5dad785 /src
parent81543e3a4c4e3a845507ee38308f52a8198204c3 (diff)
downloadeSim-a240b67affd00ac162329f736a430f35cc38baba.tar.gz
eSim-a240b67affd00ac162329f736a430f35cc38baba.tar.bz2
eSim-a240b67affd00ac162329f736a430f35cc38baba.zip
Subject: Updated Welcome page of eSim.
Description: Updated Welcome page of eSim.
Diffstat (limited to 'src')
-rw-r--r--src/browser/Welcome.py20
-rw-r--r--src/browser/__init__.py0
-rw-r--r--src/browser/pages/welcome.html57
-rwxr-xr-xsrc/frontEnd/Application.py12
-rw-r--r--src/frontEnd/DockArea.py25
5 files changed, 108 insertions, 6 deletions
diff --git a/src/browser/Welcome.py b/src/browser/Welcome.py
new file mode 100644
index 00000000..87fb3164
--- /dev/null
+++ b/src/browser/Welcome.py
@@ -0,0 +1,20 @@
+from PyQt4 import QtGui,QtCore
+
+
+class Welcome(QtGui.QWidget):
+ """
+ This class creates Welcome page of eSim.
+ """
+ def __init__(self):
+ QtGui.QWidget.__init__(self)
+ self.vlayout = QtGui.QVBoxLayout()
+
+ self.browser = QtGui.QTextBrowser()
+ self.browser.setSource(QtCore.QUrl("../browser/pages/welcome.html"))
+ self.browser.setOpenExternalLinks(True)
+ #self.setSource(QtCore.QUrl("../browser/pages/welcome.html"))
+ #self.setOpenExternalLinks(True)
+
+ self.vlayout.addWidget(self.browser)
+ self.setLayout(self.vlayout)
+ self.show() \ No newline at end of file
diff --git a/src/browser/__init__.py b/src/browser/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/browser/__init__.py
diff --git a/src/browser/pages/welcome.html b/src/browser/pages/welcome.html
new file mode 100644
index 00000000..91fe2d84
--- /dev/null
+++ b/src/browser/pages/welcome.html
@@ -0,0 +1,57 @@
+<html>
+
+<head>
+<style>
+body {
+ font-family: sans-serif;
+ margin: 0px;
+ padding: 0px;
+ background-color: #efefef;
+}
+
+h1{
+ font-weight: bold;
+ font-size: 22pt;
+ color: #eeeeee;
+ padding: 10px;
+ background-color: #165982;
+ border: 4px outset #0E324B;
+}
+
+p{
+ margin: 0px 10px 0px 10px;
+}
+
+pre{
+ margin: 0px 10px 0px 10px;
+ font-family: monospaced;
+ font-size: 10pt;
+}
+#license{
+ font-size:8pt;
+}
+</style>
+<head>
+
+<body>
+
+<h1>About to eSim</h1>
+<p>
+<b>eSim</b> is an open source EDA tool for circuit design, simulation, analysis and PCB design. It is an integrated tool built using open source software such as KiCad (<a href=http://www.kicad-pcb.org>http://www.kicad-pcb.org</a>) and Ngspice(<a href=http://ngspice.sourceforge.net>http://ngspice.sourceforge.net</a>).
+<br/>
+eSim source is released under <b>GNU General Public License.</b>
+</p>
+<br/>
+<p>
+eSim is developed by the <b>FOSSEE team at IIT Bombay</b>. To know more about eSim, please visit: <a href=http://esim.fossee.in>http://esim.fossee.in</a>.
+ </p>
+<br />
+<p>
+To discuss more about eSim please visits at <a href=http://freeeda.in>http://freeeda.in</a>
+</p>
+<br />
+
+
+</body>
+
+</html>
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 7f105cfe..e977df23 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -16,7 +16,12 @@
# CREATED: Wednesday 21 January 2015
# REVISION: ---
#===============================================================================
-
+import os
+import sys
+#Setting PYTHONPATH
+cwd = os.getcwd()
+(setPath,fronEnd) = os.path.split(cwd)
+sys.path.append(setPath)
from PyQt4 import QtGui, QtCore
from configuration.Appconfig import Appconfig
@@ -26,8 +31,6 @@ from projManagement.Kicad import Kicad
from frontEnd import ProjectExplorer
from frontEnd import Workspace
from frontEnd import DockArea
-import os
-import sys
import time
from PyQt4.Qt import QSize
@@ -221,8 +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_appconfig.print_info('Current Project : ' + self.obj_appconfig.current_project['ProjectName'])
- #self.obj_Mainview.obj_dockarea.plottingEditor()
+ self.obj_Mainview.obj_dockarea.createTestEditor()
def open_modelEditor(self):
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py
index c1a0b34d..1c155787 100644
--- a/src/frontEnd/DockArea.py
+++ b/src/frontEnd/DockArea.py
@@ -5,6 +5,7 @@ from configuration.Appconfig import Appconfig
from modelEditor.ModelEditor import ModelEditorclass
from subcircuit.Subcircuit import Subcircuit
from kicadtoNgspice.KicadtoNgspice import MainWindow
+from browser.Welcome import Welcome
import os
dockList = ['Welcome']
@@ -13,7 +14,29 @@ dock = {}
class DockArea(QtGui.QMainWindow):
+ def __init__(self):
+ QtGui.QMainWindow.__init__(self)
+ self.obj_appconfig = Appconfig()
+
+ for dockName in dockList:
+ dock[dockName] = QtGui.QDockWidget(dockName)
+ self.welcomeWidget = QtGui.QWidget()
+ self.welcomeLayout = QtGui.QVBoxLayout()
+ self.welcomeLayout.addWidget(Welcome()) ##Call browser
+
+ #Adding to main Layout
+ self.welcomeWidget.setLayout(self.welcomeLayout)
+ dock[dockName].setWidget(self.welcomeWidget)
+ #CSS
+ dock[dockName].setStyleSheet(" \
+ QWidget { border-radius: 15px; border: 1px solid gray; padding: 5px; width: 200px; height: 150px; } \
+ ")
+ self.addDockWidget(QtCore.Qt.TopDockWidgetArea, dock[dockName])
+
+ #self.tabifyDockWidget(dock['Notes'],dock['Blank'])
+ self.show()
+ '''
def __init__(self):
QtGui.QMainWindow.__init__(self)
self.obj_appconfig = Appconfig()
@@ -31,7 +54,7 @@ class DockArea(QtGui.QMainWindow):
#self.tabifyDockWidget(dock['Notes'],dock['Blank'])
self.show()
-
+ '''
def createTestEditor(self):
"""