source: sasview/sansview/scripts/local_config.py @ 584f474

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 584f474 was 584f474, checked in by Jae Cho <jhjcho@…>, 13 years ago

newpath for tutorials

  • Property mode set to 100644
File size: 3.2 KB
Line 
1"""
2    Application settings
3"""
4import time
5import os
6from sans.guiframe.gui_style import GUIFRAME
7import sans.perspectives.fitting as fitting
8# Version of the application
9__appname__ = "SansView"
10__version__ = '1.9.2dev_AUG'
11__download_page__ = 'http://danse.chem.utk.edu'
12__update_URL__ = 'http://danse.chem.utk.edu/sansview_version.php'
13
14
15# Debug message flag
16__EVT_DEBUG__ = False
17
18# Flag for automated testing
19__TEST__ = False
20
21# Debug message should be written to a file?
22__EVT_DEBUG_2_FILE__   = False
23__EVT_DEBUG_FILENAME__ = "debug.log"
24
25# About box info
26_do_aboutbox = True
27_do_tutorial = True
28_acknowledgement =  \
29'''This software was developed by the University of Tennessee as part of the
30Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
31project funded by the US National Science Foundation.
32
33'''
34_homepage = "http://danse.chem.utk.edu"
35_download = "http://danse.chem.utk.edu/sansview.html"
36_authors = []
37_paper = "http://danse.us/trac/sans/newticket"
38_license = "mailto:sansdanse@gmail.com"
39
40_nsf_logo = "images/nsf_logo.png"
41_danse_logo = "images/danse_logo.png"
42_inst_logo = "images/utlogo.gif"
43_nsf_url = "http://www.nsf.gov"
44_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html"
45_inst_url = "http://www.utk.edu"
46_corner_image = "images/angles_flat.png"
47_welcome_image = "images/SVwelcome.png"
48_copyright = "(c) 2009, University of Tennessee"
49
50
51#edit the list of file state your plugin can read
52APPLICATION_WLIST = 'SansView files (*.svs)|*.svs'
53APPLICATION_STATE_EXTENSION = '.svs'
54GUIFRAME_WIDTH = 1150
55GUIFRAME_HEIGHT = 840
56PLUGIN_STATE_EXTENSIONS = ['.fitv', '.inv', '.prv']
57PLUGINS_WLIST = ['Fitting files (*.fitv)|*.fitv',
58                  'Invariant files (*.inv)|*.inv',
59                  'P(r) files (*.prv)|*.prv']
60PLOPANEL_WIDTH = 415
61PLOPANEL_HEIGTH = 370
62DATAPANEL_WIDTH = 235
63DATAPANEL_HEIGHT = 700
64SPLASH_SCREEN_PATH = os.path.join("images","SVwelcome_mini.png")
65try:
66    fit_media_path = fitting.get_data_path(media='media')
67    TUTORIAL_PATH = os.path.join(fit_media_path,"Tutorial.pdf")
68except:
69    raise
70DEFAULT_STYLE = GUIFRAME.MULTIPLE_APPLICATIONS|GUIFRAME.MANAGER_ON\
71                    |GUIFRAME.CALCULATOR_ON|GUIFRAME.TOOLBAR_ON
72SPLASH_SCREEN_WIDTH = 512
73SPLASH_SCREEN_HEIGHT = 366
74SS_MAX_DISPLAY_TIME = 6000 #6 sec
75WELCOME_PANEL_SHOW = False
76CLEANUP_PLOT = False
77# OPEN and SAVE project menu
78OPEN_SAVE_PROJECT_MENU = True
79#VIEW MENU
80VIEW_MENU = True
81#EDIT MENU
82EDIT_MENU = True
83SetupIconFile_win = os.path.join("images", "ball.ico")
84SetupIconFile_mac = os.path.join("images", "ball.icns")
85DefaultGroupName = "DANSE"
86OutputBaseFilename = "setupSansView"
87DATAPANEL_WIDTH = 235
88FIXED_PANEL = True
89DATALOADER_SHOW = True
90CLEANUP_PLOT = False
91WELCOME_PANEL_SHOW = False
92#Show or hide toolbar at the start up
93TOOLBAR_SHOW = True
94# set a default perspective
95DEFAULT_PERSPECTIVE = 'None'
96
97def printEVT(message):
98    if __EVT_DEBUG__:
99        print "%g%s" % (time.clock(), message)
100       
101        if __EVT_DEBUG_2_FILE__:
102            out = open(__EVT_DEBUG_FILENAME__, 'a')
103            out.write("%10g%s\n" % (time.clock(), message))
104            out.close()
105           
Note: See TracBrowser for help on using the repository browser.