source: sasview/sansview/local_config.py @ 5376e03

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 5376e03 was 5376e03, checked in by Mathieu Doucet <doucetm@…>, 12 years ago

Re #3 modify local_config to find resources regardless of where sansview runs

  • Property mode set to 100644
File size: 3.4 KB
Line 
1"""
2    Application settings
3"""
4import time
5import os
6from sans.guiframe.gui_style import GUIFRAME
7# Version of the application
8__appname__ = "SansView"
9__version__ = '2.0.1'
10__build__ = '2.0.1'
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
41icon_path = os.path.join(os.path.dirname(__file__), "images")
42media_path = os.path.join(os.path.dirname(__file__), "media")
43test_path =  os.path.join(os.path.dirname(__file__), "test")
44
45_nsf_logo = os.path.join(icon_path, "nsf_logo.png")
46_danse_logo = os.path.join(icon_path, "danse_logo.png")
47_inst_logo = os.path.join(icon_path, "utlogo.gif")
48_nsf_url = "http://www.nsf.gov"
49_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html"
50_inst_url = "http://www.utk.edu"
51_corner_image = os.path.join(icon_path, "angles_flat.png")
52_welcome_image = os.path.join(icon_path, "SVwelcome.png")
53_copyright = "(c) 2009 - 2011, University of Tennessee"
54
55
56#edit the list of file state your plugin can read
57APPLICATION_WLIST = 'SansView files (*.svs)|*.svs'
58APPLICATION_STATE_EXTENSION = '.svs'
59GUIFRAME_WIDTH = 1150
60GUIFRAME_HEIGHT = 840
61PLUGIN_STATE_EXTENSIONS = ['.fitv', '.inv', '.prv']
62PLUGINS_WLIST = ['Fitting files (*.fitv)|*.fitv',
63                  'Invariant files (*.inv)|*.inv',
64                  'P(r) files (*.prv)|*.prv']
65PLOPANEL_WIDTH = 415
66PLOPANEL_HEIGTH = 370
67DATAPANEL_WIDTH = 235
68DATAPANEL_HEIGHT = 700
69SPLASH_SCREEN_PATH = os.path.join(icon_path,"SVwelcome_mini.png")
70TUTORIAL_PATH = os.path.join(media_path,"Tutorial.pdf")
71DEFAULT_STYLE = GUIFRAME.MULTIPLE_APPLICATIONS|GUIFRAME.MANAGER_ON\
72                    |GUIFRAME.CALCULATOR_ON|GUIFRAME.TOOLBAR_ON
73SPLASH_SCREEN_WIDTH = 512
74SPLASH_SCREEN_HEIGHT = 366
75SS_MAX_DISPLAY_TIME = 6000 #6 sec
76WELCOME_PANEL_ON  = True
77WELCOME_PANEL_SHOW = False
78CLEANUP_PLOT = False
79# OPEN and SAVE project menu
80OPEN_SAVE_PROJECT_MENU = True
81#VIEW MENU
82VIEW_MENU = True
83#EDIT MENU
84EDIT_MENU = True
85
86SetupIconFile_win = os.path.join(icon_path, "ball.ico")
87SetupIconFile_mac = os.path.join(icon_path, "ball.icns")
88DefaultGroupName = "DANSE"
89OutputBaseFilename = "setupSansView"
90
91FIXED_PANEL = True
92DATALOADER_SHOW = True
93CLEANUP_PLOT = False
94WELCOME_PANEL_SHOW = False
95#Show or hide toolbar at the start up
96TOOLBAR_SHOW = True
97# set a default perspective
98DEFAULT_PERSPECTIVE = 'None'
99
100def printEVT(message):
101    if __EVT_DEBUG__:
102        print "%g%s" % (time.clock(), message)
103       
104        if __EVT_DEBUG_2_FILE__:
105            out = open(__EVT_DEBUG_FILENAME__, 'a')
106            out.write("%10g%s\n" % (time.clock(), message))
107            out.close()
108           
Note: See TracBrowser for help on using the repository browser.