source: sasview/sansview/local_config.py @ 162c778

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 162c778 was 9cd75d7, checked in by Jae Cho <jhjcho@…>, 12 years ago

trying to fix config bug

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