From 342730ed59f75ebe1b5df0f886ae9e6bcd787ee6 Mon Sep 17 00:00:00 2001
From: fahim
Date: Wed, 22 Apr 2015 17:52:04 +0530
Subject: Subject: Added Device Libarary Tab.Few Changes in Workspace class.

Description: Completed the Device Library auto creation of Widget. Added
the information to schematicInfo.Hence to the final ".cir.out" file.
Added sample device library.
Deleted/Comment unwanted print statement.
Added details of function in the comment.
---
 src/frontEnd/Application.py     |  17 +++++++++++------
 src/frontEnd/Application.pyc    | Bin 3277 -> 4468 bytes
 src/frontEnd/ViewManagement.py  |   3 +++
 src/frontEnd/ViewManagement.pyc | Bin 3274 -> 3348 bytes
 src/frontEnd/Workspace.py       |   6 +++---
 src/frontEnd/Workspace.pyc      | Bin 3497 -> 3526 bytes
 src/frontEnd/__init__.pyc       | Bin 139 -> 138 bytes
 7 files changed, 17 insertions(+), 9 deletions(-)

(limited to 'src/frontEnd')

diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index e09e4113..b1c9252b 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -82,25 +82,30 @@ class Application(QtGui.QMainWindow):
         self.mainToolbar.addAction(self.exitproj)
         self.mainToolbar.addAction(self.helpfile)
         
-        #self.test = self.addToolBar("Temp")
-        
+            
         
               
       
     def initView(self):
         """
-        Create gui from the class Views and initialize it
+        Create GUI from the class Views and initialize it
         """
         self.view = ViewManagement.ViewManagement()
         self.setCentralWidget(self.view)
           
     def new_project(self):
+        """
+        This function call New Project Info class.
+        """
         print "New Project called"
         self.project = NewProjectInfo()
         self.project.body()
         
     
     def open_project(self):
+        """
+        This project call Open Project Info class
+        """
         print "Open Project called"
         self.project = OpenProjectInfo()
         self.project.body()
@@ -127,7 +132,7 @@ class Application(QtGui.QMainWindow):
         
         
     def testing(self):
-        print "Sucess hit kicad button"
+        print "Success hit kicad button"
         
    
       
@@ -136,7 +141,7 @@ def main(args):
     """
     It is main function of the module.It starts the application
     """
-    print "Hello Main"
+    print "Starting eSim......"
     app = QtGui.QApplication(args)
    
     """
@@ -150,7 +155,7 @@ def main(args):
         progressBar.setValue(i)
         t = time.time()
         while time.time() < t + 0.1:
-            app.processEvents()
+            app.processEvents()    
     
     time.sleep(2)
     
diff --git a/src/frontEnd/Application.pyc b/src/frontEnd/Application.pyc
index 52649138..eb322c39 100644
Binary files a/src/frontEnd/Application.pyc and b/src/frontEnd/Application.pyc differ
diff --git a/src/frontEnd/ViewManagement.py b/src/frontEnd/ViewManagement.py
index bfb294dd..cc95c12c 100755
--- a/src/frontEnd/ViewManagement.py
+++ b/src/frontEnd/ViewManagement.py
@@ -26,6 +26,9 @@ from kicadtoNgspice.KicadtoNgspice import *
 
 
 class ViewManagement(QtGui.QSplitter):
+    """
+    This class creates View on FrontWindow 
+    """
     
     def __init__(self, *args):
         # call init method of superclass
diff --git a/src/frontEnd/ViewManagement.pyc b/src/frontEnd/ViewManagement.pyc
index 53ca0251..075d7aed 100644
Binary files a/src/frontEnd/ViewManagement.pyc and b/src/frontEnd/ViewManagement.pyc differ
diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py
index 8727e799..d759cff6 100644
--- a/src/frontEnd/Workspace.py
+++ b/src/frontEnd/Workspace.py
@@ -23,7 +23,7 @@ import os
 
 class Workspace(QtGui.QWidget):
     """
-    Start workspace gui
+    This class creates Workspace GUI.
     """
     def __init__(self):
         super(Workspace, self).__init__()
@@ -35,7 +35,7 @@ class Workspace(QtGui.QWidget):
         
             
     def initWorkspace(self):
-        print "Calling workspace"
+        #print "Calling workspace"
         self.note = QtGui.QTextEdit(self)
         self.workspace_label = QtGui.QLabel(self)
         self.worspace_loc = QtGui.QLineEdit(self)
@@ -108,7 +108,7 @@ class Workspace(QtGui.QWidget):
             
     def browseLocation(self):
         print "Browse Location called"
-        self.workspace_directory = QtGui.QFileDialog.getExistingDirectory(self, "open","/home")
+        self.workspace_directory = QtGui.QFileDialog.getExistingDirectory(self, "Browse Location",os.path.expanduser("~"))
         print "Path file :", self.workspace_directory
         self.worspace_loc.setText(self.workspace_directory)
         
\ No newline at end of file
diff --git a/src/frontEnd/Workspace.pyc b/src/frontEnd/Workspace.pyc
index 2d2829a6..568412c7 100644
Binary files a/src/frontEnd/Workspace.pyc and b/src/frontEnd/Workspace.pyc differ
diff --git a/src/frontEnd/__init__.pyc b/src/frontEnd/__init__.pyc
index bc735777..4fed5140 100644
Binary files a/src/frontEnd/__init__.pyc and b/src/frontEnd/__init__.pyc differ
-- 
cgit