mailr13281 - in /branches/gui_testing/gui: analyses/__init__.py relax_gui.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 29, 2011 - 10:29:
Author: bugman
Date: Wed Jun 29 10:29:37 2011
New Revision: 13281

URL: http://svn.gna.org/viewcvs/relax?rev=13281&view=rev
Log:
Created a new class Analysis_controller in gui.analyses for handling all 
aspects of analyses.


Modified:
    branches/gui_testing/gui/analyses/__init__.py
    branches/gui_testing/gui/relax_gui.py

Modified: branches/gui_testing/gui/analyses/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/__init__.py?rev=13281&r1=13280&r2=13281&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/__init__.py (original)
+++ branches/gui_testing/gui/analyses/__init__.py Wed Jun 29 10:29:37 2011
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2010 Edward d'Auvergne                                       
 #
+# Copyright (C) 2010-2011 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -25,3 +25,13 @@
 
 
 __all__ = []
+
+
+class Analysis_controller:
+    """Class for controlling all aspects of analyses."""
+
+    def __init__(self):
+        """Initialise the analysis controller."""
+
+        # The analyses page objects.
+        self.analyses = []

Modified: branches/gui_testing/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/relax_gui.py?rev=13281&r1=13280&r2=13281&view=diff
==============================================================================
--- branches/gui_testing/gui/relax_gui.py (original)
+++ branches/gui_testing/gui/relax_gui.py Wed Jun 29 10:29:37 2011
@@ -47,6 +47,7 @@
 
 # relaxGUI module imports.
 from gui.about import About_gui, About_relax
+from gui.analyses import Analysis_controller
 from gui.analyses.auto_model_free import Auto_model_free
 from gui.analyses.auto_noe import Auto_noe
 from gui.analyses.auto_r1 import Auto_r1
@@ -92,7 +93,7 @@
         self.Centre()
 
         # The analysis window object storage.
-        self.analyses = []
+        self.analysis_controller = Analysis_controller()
 
         # The calculation threads list.
         self.calc_threads = []




Related Messages


Powered by MHonArc, Updated Wed Jun 29 11:40:03 2011