Index: prview/PrView.py
===================================================================
--- prview/PrView.py	(revision 9590db6bf2b1e3de630da7cd3fe0d34638d3f4b7)
+++ prview/PrView.py	(revision 3e943e8f1ff1c03712f19ae3b46fa3475cf8a754)
@@ -2,5 +2,5 @@
 #import gui_manager
 from sans.guiframe import gui_manager
-from sans.guiframe.gui_style import GUIFRAME
+
 # For py2exe, import config here
 import local_config
@@ -8,17 +8,9 @@
 
 
-# Application dimensions
-APP_HEIGHT = 780
-APP_WIDTH  = 850
-PROG_SPLASH_SCREEN = "images/ball.png"
 
 class PrApp(gui_manager.ViewApp):
     """
     """
-    SIZE = (APP_WIDTH, APP_HEIGHT)
-    TITLE = local_config.__appname__
-    PROG_SPLASH_PATH = PROG_SPLASH_SCREEN
-    STYLE = GUIFRAME.DEFAULT_STYLE
-    
+   
 class PrView():
     """
Index: prview/local_config.py
===================================================================
--- prview/local_config.py	(revision 7116b6e08b4906240b8a779bf2f7c0f6e2623f6f)
+++ prview/local_config.py	(revision 3e943e8f1ff1c03712f19ae3b46fa3475cf8a754)
@@ -3,4 +3,5 @@
 """
 import time
+from sans.guiframe.gui_style import GUIFRAME
 
 # Version of the application
@@ -47,4 +48,18 @@
 _corner_image = "images/prview.jpg"
 _copyright = "(c) 2008, University of Tennessee"
+#edit the list of file state your plugin can read
+PLUGIN_STATE_EXTENSIONS = ['.prv']
+APPLICATION_STATE_EXTENSION = '.prv'
+#
+WLIST = ['P(r) files (*.prv)|*.prv']
+SPLASH_SCREEN_PATH = "images/danse_logo.png"
+DEFAULT_STYLE = GUIFRAME.DEFAULT_STYLE
+SPLASH_SCREEN_WIDTH = 500
+SPLASH_SCREEN_HEIGHT = 300
+SS_MAX_DISPLAY_TIME = 3000 #3 sec
+PLOPANEL_WIDTH = 400
+PLOPANEL_HEIGTH = 400
+GUIFRAME_WIDTH = 850
+GUIFRAME_HEIGHT = 780
 
 import wx.lib.newevent
Index: prview/testons.prv
===================================================================
--- prview/testons.prv	(revision 3e943e8f1ff1c03712f19ae3b46fa3475cf8a754)
+++ prview/testons.prv	(revision 3e943e8f1ff1c03712f19ae3b46fa3475cf8a754)
@@ -0,0 +1,671 @@
+<?xml version="1.0" ?>
+<SASroot version="1.0" xmlns="cansas1d/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="cansas1d/1.0 http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d.xsd">
+	<SASentry>
+		<Title>
+			
+		</Title>
+		<SASdata>
+			<Idata>
+				<Q unit="1/A">
+					0.01
+				</Q>
+				<I unit="1/cm">
+					130173000.0
+				</I>
+				<Idev unit="1/cm">
+					7810380.0
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.02
+				</Q>
+				<I unit="1/cm">
+					95956500.0
+				</I>
+				<Idev unit="1/cm">
+					6889874.92352
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.03
+				</Q>
+				<I unit="1/cm">
+					55775400.0
+				</I>
+				<Idev unit="1/cm">
+					5562144.04801
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.04
+				</Q>
+				<I unit="1/cm">
+					23720800.0
+				</I>
+				<Idev unit="1/cm">
+					4080132.28297
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.05
+				</Q>
+				<I unit="1/cm">
+					6025700.0
+				</I>
+				<Idev unit="1/cm">
+					2702072.32074
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.06
+				</Q>
+				<I unit="1/cm">
+					332209.0
+				</I>
+				<Idev unit="1/cm">
+					1630533.29286
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.07
+				</Q>
+				<I unit="1/cm">
+					335963.0
+				</I>
+				<Idev unit="1/cm">
+					1632385.83164
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.08
+				</Q>
+				<I unit="1/cm">
+					1037490.0
+				</I>
+				<Idev unit="1/cm">
+					1882791.92822
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.09
+				</Q>
+				<I unit="1/cm">
+					816241.0
+				</I>
+				<Idev unit="1/cm">
+					1817124.36283
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.1
+				</Q>
+				<I unit="1/cm">
+					234630.0
+				</I>
+				<Idev unit="1/cm">
+					1578056.30616
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.11
+				</Q>
+				<I unit="1/cm">
+					230.644
+				</I>
+				<Idev unit="1/cm">
+					1310393.66282
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.12
+				</Q>
+				<I unit="1/cm">
+					100168.0
+				</I>
+				<Idev unit="1/cm">
+					1482278.9481
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.13
+				</Q>
+				<I unit="1/cm">
+					182129.0
+				</I>
+				<Idev unit="1/cm">
+					1545185.73682
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.14
+				</Q>
+				<I unit="1/cm">
+					111803.0
+				</I>
+				<Idev unit="1/cm">
+					1492476.76877
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.15
+				</Q>
+				<I unit="1/cm">
+					16326.8
+				</I>
+				<Idev unit="1/cm">
+					1374622.18985
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.16
+				</Q>
+				<I unit="1/cm">
+					6931.71
+				</I>
+				<Idev unit="1/cm">
+					1349225.30203
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.17
+				</Q>
+				<I unit="1/cm">
+					45283.6
+				</I>
+				<Idev unit="1/cm">
+					1423125.03761
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.18
+				</Q>
+				<I unit="1/cm">
+					50971.8
+				</I>
+				<Idev unit="1/cm">
+					1430523.94514
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.19
+				</Q>
+				<I unit="1/cm">
+					19812.5
+				</I>
+				<Idev unit="1/cm">
+					1382027.14445
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.2
+				</Q>
+				<I unit="1/cm">
+					146.532
+				</I>
+				<Idev unit="1/cm">
+					1308635.52497
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.21
+				</Q>
+				<I unit="1/cm">
+					9676.19
+				</I>
+				<Idev unit="1/cm">
+					1357845.47649
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.22
+				</Q>
+				<I unit="1/cm">
+					21749.2
+				</I>
+				<Idev unit="1/cm">
+					1385860.23552
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.23
+				</Q>
+				<I unit="1/cm">
+					15602.5
+				</I>
+				<Idev unit="1/cm">
+					1372987.00373
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.24
+				</Q>
+				<I unit="1/cm">
+					2700.12
+				</I>
+				<Idev unit="1/cm">
+					1331372.98909
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.25
+				</Q>
+				<I unit="1/cm">
+					1044.09
+				</I>
+				<Idev unit="1/cm">
+					1320163.14458
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.26
+				</Q>
+				<I unit="1/cm">
+					8110.76
+				</I>
+				<Idev unit="1/cm">
+					1353106.11219
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.27
+				</Q>
+				<I unit="1/cm">
+					10054.2
+				</I>
+				<Idev unit="1/cm">
+					1358931.07902
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.28
+				</Q>
+				<I unit="1/cm">
+					4251.65
+				</I>
+				<Idev unit="1/cm">
+					1338927.11129
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.29
+				</Q>
+				<I unit="1/cm">
+					38.5548
+				</I>
+				<Idev unit="1/cm">
+					1305272.17235
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.3
+				</Q>
+				<I unit="1/cm">
+					2295.45
+				</I>
+				<Idev unit="1/cm">
+					1329061.55744
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.31
+				</Q>
+				<I unit="1/cm">
+					5499.87
+				</I>
+				<Idev unit="1/cm">
+					1344036.45865
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.32
+				</Q>
+				<I unit="1/cm">
+					4158.67
+				</I>
+				<Idev unit="1/cm">
+					1338518.12818
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.33
+				</Q>
+				<I unit="1/cm">
+					752.025
+				</I>
+				<Idev unit="1/cm">
+					1317373.95653
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.34
+				</Q>
+				<I unit="1/cm">
+					308.434
+				</I>
+				<Idev unit="1/cm">
+					1311748.70489
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.35
+				</Q>
+				<I unit="1/cm">
+					2475.65
+				</I>
+				<Idev unit="1/cm">
+					1330114.09711
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.36
+				</Q>
+				<I unit="1/cm">
+					3174.91
+				</I>
+				<Idev unit="1/cm">
+					1333873.72254
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.37
+				</Q>
+				<I unit="1/cm">
+					1380.1
+				</I>
+				<Idev unit="1/cm">
+					1322922.6731
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.38
+				</Q>
+				<I unit="1/cm">
+					11.2373
+				</I>
+				<Idev unit="1/cm">
+					1303642.32388
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.39
+				</Q>
+				<I unit="1/cm">
+					815.932
+				</I>
+				<Idev unit="1/cm">
+					1318025.11554
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.4
+				</Q>
+				<I unit="1/cm">
+					1988.73
+				</I>
+				<Idev unit="1/cm">
+					1327170.07421
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.41
+				</Q>
+				<I unit="1/cm">
+					1531.36
+				</I>
+				<Idev unit="1/cm">
+					1324053.85077
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.42
+				</Q>
+				<I unit="1/cm">
+					276.75
+				</I>
+				<Idev unit="1/cm">
+					1311220.1762
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.43
+				</Q>
+				<I unit="1/cm">
+					127.297
+				</I>
+				<Idev unit="1/cm">
+					1308166.34842
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.44
+				</Q>
+				<I unit="1/cm">
+					1001.82
+				</I>
+				<Idev unit="1/cm">
+					1319786.15649
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.45
+				</Q>
+				<I unit="1/cm">
+					1297.13
+				</I>
+				<Idev unit="1/cm">
+					1322275.76012
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.46
+				</Q>
+				<I unit="1/cm">
+					566.229
+				</I>
+				<Idev unit="1/cm">
+					1315304.58357
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.47
+				</Q>
+				<I unit="1/cm">
+					3.50245
+				</I>
+				<Idev unit="1/cm">
+					1302797.61934
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.48
+				</Q>
+				<I unit="1/cm">
+					365.098
+				</I>
+				<Idev unit="1/cm">
+					1312630.21811
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.49
+				</Q>
+				<I unit="1/cm">
+					887.09
+				</I>
+				<Idev unit="1/cm">
+					1318720.81859
+				</Idev>
+			</Idata>
+			<Idata>
+				<Q unit="1/A">
+					0.5
+				</Q>
+				<I unit="1/cm">
+					684.787
+				</I>
+				<Idev unit="1/cm">
+					1316658.22646
+				</Idev>
+			</Idata>
+		</SASdata>
+		<SASsample name="">
+			<ID>
+				
+			</ID>
+		</SASsample>
+		<SASinstrument>
+			<name>
+				
+			</name>
+			<SASsource/>
+		</SASinstrument>
+		<pr_inversion version="1.0">
+			<filename>
+				sphere_test_data.txt
+			</filename>
+			<timestamp epoch="1297891667.32">
+				Wed Feb 16 16:27:47 2011
+			</timestamp>
+			<inputs>
+				<nterms>
+					10
+				</nterms>
+				<d_max>
+					140.0
+				</d_max>
+				<alpha>
+					0.0001
+				</alpha>
+				<slit_width>
+					0
+				</slit_width>
+				<slit_height>
+					0
+				</slit_height>
+				<qmin>
+					0.01
+				</qmin>
+				<qmax>
+					0.5
+				</qmax>
+			</inputs>
+			<outputs>
+				<elapsed>
+					0.015
+				</elapsed>
+				<rg>
+					62.4109796365
+				</rg>
+				<iq0>
+					91000000.0
+				</iq0>
+				<bck>
+					0.0
+				</bck>
+				<chi2>
+					290.0
+				</chi2>
+				<osc>
+					1.2
+				</osc>
+				<pos>
+					1.0
+				</pos>
+				<pos_err>
+					1.0
+				</pos_err>
+				<alpha_estimate>
+					8e-015
+				</alpha_estimate>
+				<nterms_estimate>
+					25
+				</nterms_estimate>
+				<coefficients>
+					[  5.76896693e+02   2.96867893e+00   1.52247673e+01  -4.81515836e+00
+   5.70560625e-01  -2.81535006e+00  -6.18771256e-01  -1.54554218e+00
+  -4.28600702e-01  -7.01684311e-01]
+				</coefficients>
+				<covariance>
+					[[  7.33134867e+03   2.68465397e+01   1.51208426e+02  -7.09433110e+01
+    1.58503520e+00  -3.73771057e+01  -8.90118965e+00  -1.98279033e+01
+   -5.59860896e+00  -8.84579877e+00]
+ [  2.68465397e+01   1.34729384e+03   2.66555908e+02   8.36168242e+01
+    1.40629013e+01   7.88808782e+00  -3.20400761e+00  -4.48802579e-01
+   -2.61133640e+00   3.62410816e-01]
+ [  1.51208426e+02   2.66555908e+02   4.02976930e+02   1.41900441e+02
+    4.95313912e+01   1.84654556e+01   7.43499345e+00   2.02632334e+00
+    5.42202539e-01  -3.09987307e-01]
+ [ -7.09433110e+01   8.36168242e+01   1.41900441e+02   1.80150194e+02
+    7.95526073e+01   3.37461769e+01   1.52586311e+01   7.15267060e+00
+    2.89176053e+00   1.04230518e+00]
+ [  1.58503520e+00   1.40629013e+01   4.95313912e+01   7.95526073e+01
+    9.31450376e+01   4.73587127e+01   2.21366264e+01   1.08088332e+01
+    4.89962892e+00   1.63398301e+00]
+ [ -3.73771057e+01   7.88808782e+00   1.84654556e+01   3.37461769e+01
+    4.73587127e+01   5.36171439e+01   2.93393915e+01   1.43741803e+01
+    6.80151528e+00   2.38290291e+00]
+ [ -8.90118965e+00  -3.20400761e+00   7.43499345e+00   1.52586311e+01
+    2.21366264e+01   2.93393915e+01   3.22235902e+01   1.80782074e+01
+    8.45825575e+00   3.04571990e+00]
+ [ -1.98279033e+01  -4.48802579e-01   2.02632334e+00   7.15267060e+00
+    1.08088332e+01   1.43741803e+01   1.80782074e+01   1.93608358e+01
+    1.03295070e+01   3.59786399e+00]
+ [ -5.59860896e+00  -2.61133640e+00   5.42202539e-01   2.89176053e+00
+    4.89962892e+00   6.80151528e+00   8.45825575e+00   1.03295070e+01
+    1.07269952e+01   4.38291116e+00]
+ [ -8.84579877e+00   3.62410816e-01  -3.09987307e-01   1.04230518e+00
+    1.63398301e+00   2.38290291e+00   3.04571990e+00   3.59786399e+00
+    4.38291116e+00   4.03303494e+00]]
+				</covariance>
+			</outputs>
+		</pr_inversion>
+	</SASentry>
+</SASroot>
