diff options
author | fahim | 2015-06-08 14:21:19 +0530 |
---|---|---|
committer | fahim | 2015-06-08 14:21:19 +0530 |
commit | a783d14e674082a49ab5d5b7943ec5fc1f4c98f2 (patch) | |
tree | 3c89bbf40981d76b108d052967656f6c27652a4f /src/frontEnd | |
parent | 2a87f0eae40b90cc0657e46cbb8532d99f9373ab (diff) | |
download | eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.tar.gz eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.tar.bz2 eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.zip |
Subject: Added Note Area changes
Description: Added Note Area Changes
Diffstat (limited to 'src/frontEnd')
-rwxr-xr-x | src/frontEnd/Application.py | 19 | ||||
-rw-r--r-- | src/frontEnd/ProjectExplorer.py | 1 | ||||
-rw-r--r-- | src/frontEnd/Workspace.py | 4 |
3 files changed, 20 insertions, 4 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index c08c1974..b80f9b64 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -135,8 +135,11 @@ class Application(QtGui.QMainWindow): else: print "No project created" - - + self.obj_appconfig.print_info('No new project created') + try: + self.obj_appconfig.print_info('Current project is : ' + self.obj_appconfig.current_project["ProjectName"]) + except: + pass def open_project(self): """ This project call Open Project Info class @@ -168,6 +171,7 @@ class Application(QtGui.QMainWindow): self.msg = QtGui.QErrorMessage(None) self.msg.showMessage('Error while opening python plotting Editor.') print "Exception:",str(e) + self.obj_appconfig.print_error('Exception generated : ' + str(e)) self.msg.setWindowTitle("Error Message") else: @@ -193,12 +197,15 @@ class Application(QtGui.QMainWindow): def help_project(self): print "Help is called" - print "Current Project : ",self.obj_appconfig.current_project + 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() def open_modelEditor(self): print "model editor is called" + self.obj_appconfig.print_info('model editor is called') self.obj_Mainview.obj_dockarea.modelEditor() def testing(self): @@ -213,6 +220,8 @@ class MainView(QtGui.QWidget): # call init method of superclass QtGui.QWidget.__init__(self, *args) + self.obj_appconfig = Appconfig() + self.leftSplit = QtGui.QSplitter() self.middleSplit = QtGui.QSplitter() @@ -223,6 +232,10 @@ class MainView(QtGui.QWidget): #Area to be included in MainView self.noteArea = QtGui.QTextEdit() + self.obj_appconfig.noteArea['Note'] = self.noteArea + self.obj_appconfig.noteArea['Note'].append(' eSim Started......') + self.obj_appconfig.noteArea['Note'].append('Project Selected : None') + self.obj_appconfig.noteArea['Note'].append('\n') #CSS self.noteArea.setStyleSheet(" \ diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py index 906001d5..0b0ae31d 100644 --- a/src/frontEnd/ProjectExplorer.py +++ b/src/frontEnd/ProjectExplorer.py @@ -75,6 +75,7 @@ class ProjectExplorer(QtGui.QWidget): self.indexItem =self.treewidget.currentIndex() filename= self.indexItem.data().toString() self.filePath= self.indexItem.sibling(self.indexItem.row(), 1).data().toString() + self.obj_appconfig.print_info('The current project is ' + self.filePath) self.textwindow = QtGui.QWidget() self.textwindow.setMinimumSize(600, 500) diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py index 9f1232cf..96d00a08 100644 --- a/src/frontEnd/Workspace.py +++ b/src/frontEnd/Workspace.py @@ -75,12 +75,14 @@ class Workspace(QtGui.QWidget): def defaultWorkspace(self): - print "Default location selected" + print "Default location selected" + self.obj_appconfig.print_info('Default workspace selected : ' + self.obj_appconfig.default_workspace["workspace"]) self.close() def createWorkspace(self): print "Create workspace is called" self.create_workspace = str(self.workspace_loc.text()) + self.obj_appconfig.print_info('Workspace : ' + self.create_workspace) #Checking if Workspace already exist or not if os.path.isdir(self.create_workspace): print "Already present" |