source: sasview/sansview/local_config.py @ cfe1feb

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 cfe1feb was 8d2f5bb, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

Re #3 improve versioning

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