diff options
Diffstat (limited to 'src/frontEnd')
-rwxr-xr-x | src/frontEnd/Application.py | 26 | ||||
-rwxr-xr-x | src/frontEnd/ViewManagement.py | 22 | ||||
-rw-r--r-- | src/frontEnd/ViewManagement.pyc | bin | 2519 -> 2542 bytes | |||
-rw-r--r-- | src/frontEnd/Workspace.py | 7 | ||||
-rw-r--r-- | src/frontEnd/Workspace.pyc | bin | 3466 -> 3466 bytes |
5 files changed, 27 insertions, 28 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index ccc08248..a261d67c 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -20,16 +20,18 @@ from PyQt4 import QtGui, QtCore from configuration.Appconfig import Appconfig +from projManagement.openProject import ProjectInfo +import os import ViewManagement import Workspace import sys import time + class Application(QtGui.QMainWindow): """ Its our main window of application """ - def __init__(self,*args): """ Initialize main Application window @@ -39,19 +41,15 @@ class Application(QtGui.QMainWindow): #Creating Application configuration object - self.confObj = Appconfig() - - self.setGeometry(self.confObj.app_xpos, - self.confObj.app_ypos, - self.confObj.app_width, - self.confObj.app_heigth) + self.setGeometry(self.confObj._app_xpos, + self.confObj._app_ypos, + self.confObj._app_width, + self.confObj._app_heigth) self.setWindowTitle(self.confObj._APPLICATION) #Init Workspace self.work_space = Workspace.Workspace() - - - + #Init necessary components in sequence self.initActions() self.initView() @@ -95,15 +93,20 @@ class Application(QtGui.QMainWindow): def new_project(self): print "New Project called" + def open_project(self): print "Open Project called" + self.project = ProjectInfo() + self.project.body() def exit_project(self): print "Exit Project called" + self.close() def help_project(self): print "Help is called" + @@ -114,6 +117,7 @@ def main(args): print "Hello Main" app = QtGui.QApplication(sys.argv) + """ splash_pix = QtGui.QPixmap('../images/FreeEDAlogo.jpg') splash = QtGui.QSplashScreen(splash_pix,QtCore.Qt.WindowStaysOnTopHint) progressBar = QtGui.QProgressBar(splash) @@ -136,7 +140,7 @@ def main(args): appView = Application() appView.show() sys.exit(app.exec_()) - """ + diff --git a/src/frontEnd/ViewManagement.py b/src/frontEnd/ViewManagement.py index 27d9ecba..7d6ca9cd 100755 --- a/src/frontEnd/ViewManagement.py +++ b/src/frontEnd/ViewManagement.py @@ -38,9 +38,9 @@ class ViewManagement(QtGui.QSplitter): def createView(self): #Adding view into views dictionary - self.addView(QtGui.QTextEdit, 'Project Explorer') - self.addView(QtGui.QTextEdit, 'test2') - self.addView(QtGui.QTextEdit, 'test3') + self.addView(QtGui.QTextEdit, 'ProjectExplorer') + self.addView(QtGui.QTextEdit, 'ProjectToolbar') + self.addView(QtGui.QTextEdit, 'CurrentProject') def setupView(self): #setup views to define various areas, such as placement of individual views @@ -78,19 +78,17 @@ class ViewManagement(QtGui.QSplitter): self.pcb_btn.setIcon(QtGui.QIcon('../images/default.png')) self.pcb_btn.setIconSize(QtCore.QSize(50,50)) self.grid.addWidget(self.pcb_btn,1,1) - - - - + # bind the top level views into the framework - self.views['Project Explorer'].setParent(self) + self.views['ProjectExplorer'].setParent(self) - self.views['test2'].setParent(self.right) - self.views['test2'].setLayout(self.grid) - self.views['test2'].setReadOnly(True) + self.views['ProjectToolbar'].setParent(self.right) + self.views['ProjectToolbar'].setLayout(self.grid) + self.views['ProjectToolbar'].setReadOnly(True) - self.views['test3'].setParent(self.right) + self.views['CurrentProject'].setParent(self.right) + self.views['CurrentProject'].setReadOnly(True) self.right.setParent(self) self.right.setSizes([20, 5]) diff --git a/src/frontEnd/ViewManagement.pyc b/src/frontEnd/ViewManagement.pyc Binary files differindex d7b30b5e..4f31cfc2 100644 --- a/src/frontEnd/ViewManagement.pyc +++ b/src/frontEnd/ViewManagement.pyc diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py index 0db3fbd7..fc41501d 100644 --- a/src/frontEnd/Workspace.py +++ b/src/frontEnd/Workspace.py @@ -27,12 +27,9 @@ class Workspace(QtGui.QWidget): """ def __init__(self): super(Workspace, self).__init__() - - #Button status lable - #self.status_label = QtGui.QLabel('NO') - + self.obj = Appconfig() - + #Initializing Workspace directory for project self.initWorkspace() diff --git a/src/frontEnd/Workspace.pyc b/src/frontEnd/Workspace.pyc Binary files differindex 8da188bc..99d373d5 100644 --- a/src/frontEnd/Workspace.pyc +++ b/src/frontEnd/Workspace.pyc |