Changeset d4c19e5 in sasview
- Timestamp:
- Aug 12, 2011 1:48:47 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 390742c
- Parents:
- 38cfa7a
- Location:
- sansview
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/installer_new.iss
rfa597990 rd4c19e5 19 19 LicenseFile=license.txt 20 20 OutputBaseFilename=setupSansView 21 SetupIconFile= C:\Documents and Settings\galina\workspace\trunk\sansview\images\ball.ico21 SetupIconFile=images\ball.ico 22 22 Compression=lzma 23 23 SolidCompression=yes … … 26 26 27 27 [Registry] 28 Root: HKCR; Subkey: ".xml"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 29 Root: HKCR; Subkey: ".txt"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 30 Root: HKCR; Subkey: ".asc"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 31 Root: HKCR; Subkey: ".dat"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 32 Root: HKCR; Subkey: ".tif"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 33 Root: HKCR; Subkey: ".abs"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 34 Root: HKCR; Subkey: ".d1d"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 35 Root: HKCR; Subkey: ".sans"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 28 Root: HKCR; Subkey: ".txt\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 29 Root: HKCR; Subkey: ".xml\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 30 Root: HKCR; Subkey: ".tif\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 31 Root: HKCR; Subkey: ".tiff\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 32 Root: HKCR; Subkey: ".asc\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 33 Root: HKCR; Subkey: ".dat\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 34 Root: HKCR; Subkey: ".sans\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 35 Root: HKCR; Subkey: "applications\SansView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SansView.exe"" ""%1""" ; Flags: uninsdeletevalue noerror 36 Root: HKCU; Subkey: "Software\Classes\.txt\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 37 Root: HKCU; Subkey: "Software\Classes\.xml\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 38 Root: HKCU; Subkey: "Software\Classes\.asc\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 39 Root: HKCU; Subkey: "Software\Classes\.dat\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 40 Root: HKCU; Subkey: "Software\Classes\.tif\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 41 Root: HKCU; Subkey: "Software\Classes\.tiff\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 42 Root: HKCU; Subkey: "Software\Classes\.sans\openwithlist\SansView.exe"; Flags: uninsdeletekey noerror 43 Root: HKCU; Subkey: "Software\Classes\applications\SansView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SansView.exe"" ""%1""" ; Flags: uninsdeletevalue noerror 36 44 Root: HKCR; Subkey: ".svs"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 37 Root: HKCR; Subkey: ".fitv"; 45 Root: HKCR; Subkey: ".fitv"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 38 46 Root: HKCR; Subkey: ".inv"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 39 47 Root: HKCR; Subkey: ".prv"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue 40 Root: HKCR; Subkey: "{app}\C:\Documents and Settings\galina\workspace\trunk\sansview\images\ball.ico"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe,0" 41 Root: HKCR; Subkey: "{app}\SansView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SansView.exe"" ""%1""" 48 Root: HKCR; Subkey: "{app}\SansView.exe"; ValueType: string; ValueName: ""; ValueData: "SansView File"; Flags: uninsdeletekey 49 Root: HKCR; Subkey: "{app}\SansView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SansView.exe"" ""%1""" ; Flags: uninsdeletevalue noerror 50 Root: HKCR; Subkey: "{app}\images\ball.ico"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe,0" 42 51 Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "SANSVIEWPATH"; ValueData: "{app}"; Flags: uninsdeletevalue 43 52 ; Write to PATH (below) is disabled; need more work … … 53 62 54 63 64 55 65 [Files] 56 Source: " C:\Documents and Settings\galina\workspace\trunk\sansview\scripts\dist\SansView.exe"; DestDir: "{app}"; Flags: ignoreversion66 Source: "dist\SansView.exe"; DestDir: "{app}"; Flags: ignoreversion 57 67 Source: "dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs 58 Source: "C:\Documents and Settings\galina\workspace\trunk\sansview\images\*"; DestDir: "{app}\images"; Flags: ignoreversion recursesubdirs createallsubdirs 59 Source: "C:\Documents and Settings\galina\workspace\trunk\sansview\test\*"; DestDir: "{app}\test"; Flags: ignoreversion recursesubdirs createallsubdirs 68 Source: "images\*"; DestDir: "{app}\images"; Flags: ignoreversion recursesubdirs createallsubdirs 69 Source: "media\*"; DestDir: "{app}\media"; Flags: ignoreversion recursesubdirs createallsubdirs 70 Source: "test\*"; DestDir: "{app}\test"; Flags: ignoreversion recursesubdirs createallsubdirs 60 71 ; NOTE: Don't use "Flags: ignoreversion" on any shared system files 61 72 -
sansview/local_config.py
rfa597990 rd4c19e5 37 37 _license = "mailto:sansdanse@gmail.com" 38 38 39 _nsf_logo = "images/nsf_logo.png" 40 _danse_logo = "images/danse_logo.png" 41 _inst_logo = "images/utlogo.gif" 39 path = os.getcwd() 40 icon_path = os.path.join(path, "images") 41 media_path = os.path.join(path, "media") 42 test_path = os.path.join(path, "test") 43 44 _nsf_logo = os.path.join(icon_path, "nsf_logo.png") 45 _danse_logo = os.path.join(icon_path, "danse_logo.png") 46 _inst_logo = os.path.join(icon_path, "utlogo.gif") 42 47 _nsf_url = "http://www.nsf.gov" 43 48 _danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" 44 49 _inst_url = "http://www.utk.edu" 45 _corner_image = "images/angles_flat.png"46 _welcome_image = "images/SVwelcome.png"50 _corner_image = os.path.join(icon_path, "angles_flat.png") 51 _welcome_image = os.path.join(icon_path, "SVwelcome.png") 47 52 _copyright = "(c) 2009, University of Tennessee" 48 53 49 path, _= os.path.split(os.getcwd()) 50 icon_path = os.path.join(path, "images") 51 media_path = os.path.join(path, "media") 52 test_path = os.path.join(path, "test") 54 53 55 #edit the list of file state your plugin can read 54 56 APPLICATION_WLIST = 'SansView files (*.svs)|*.svs' -
sansview/sansview.py
rfa597990 rd4c19e5 50 50 # modules. We load the fitting module here 51 51 # to ensure a complete Windows executable build. 52 52 53 53 # Fitting perspective 54 import sans.perspectives.fitting as module 55 fitting_plug = module.Plugin() 56 self.gui.add_perspective(fitting_plug) 57 54 try: 55 import sans.perspectives.fitting as module 56 fitting_plug = module.Plugin() 57 self.gui.add_perspective(fitting_plug) 58 except: 59 logging.error("SansView: could not find Fitting plug-in module") 60 logging.error(sys.exc_value) 61 58 62 # P(r) perspective 59 63 try: … … 84 88 logging.error("SansView: could not find Calculator plug-in module") 85 89 logging.error(sys.exc_value) 86 90 91 87 92 # Add welcome page 88 93 self.gui.set_welcome_panel(WelcomePanel) -
sansview/setup_exe.py
rfa597990 rd4c19e5 75 75 # to use the MatPlotLib. 76 76 # 77 current_dir= os.getcwd()78 path, _ = os.path.split(current_dir) 77 path = os.getcwd() 78 79 79 plugins_dir = os.path.join(path, "plugins") 80 80 media_dir = os.path.join(path, "media") … … 85 85 matplotlibdata = findall(matplotlibdatadir) 86 86 data_files = [] 87 from glob import glob88 data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))]89 sys.path.append("C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT")90 87 # Copying SLD data 91 88 import periodictable 92 89 import logging 93 90 data_files += periodictable.data_files() 91 92 import sans.perspectives.fitting as fitting 93 data_files += fitting.data_files() 94 94 95 95 import sans.perspectives.calculator as calculator … … 98 98 import sans.perspectives.invariant as invariant 99 99 data_files += invariant.data_files() 100 100 101 import sans.guiframe as guiframe 101 102 data_files += guiframe.data_files() … … 114 115 data_files.append(('.', [f])) 115 116 f = 'custom_config.py' 117 if os.path.isfile(f): 118 data_files.append(('.', [f])) 119 f = 'local_config.py' 116 120 if os.path.isfile(f): 117 121 data_files.append(('.', [f])) … … 134 138 for f in findall(plugins_dir): 135 139 if os.path.split(f)[0].count('.svn')==0: 136 data_files.append(( os.path.split(f)[0], [f]))140 data_files.append(('plugins', [f])) 137 141 138 142 -
sansview/welcome_panel.py
rfa597990 rd4c19e5 95 95 ScrolledPanel.__init__(self, parent, **kwds) 96 96 self.SetupScrolling() 97 image = os.path.join("images","SVwelcome.png") 97 path = os.getcwd() 98 import local_config 99 #icon_path = os.path.join(path, "images") 100 #print "PPP", icon_path,path 101 image = os.path.join(local_config._welcome_image) 98 102 self.SetWindowVariant(variant = FONT_VARIANT) 99 103 self.bitmap_logo = wx.StaticBitmap(self, -1, wx.Bitmap(image))
Note: See TracChangeset
for help on using the changeset viewer.