source: sasview/src/sas/guiframe/config.py @ aceae8c

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 aceae8c was 5846bb5, checked in by butler, 10 years ago

This should fix checking for the latest revision on github

  • Property mode set to 100644
File size: 4.4 KB
RevLine 
[f53cd30]1"""
2Application settings
3"""
4import os
5import time
6from sas.guiframe.gui_style import GUIFRAME
7# Version of the application
8__appname__ = "DummyView"
9__version__ = '0.0.0'
10__build__ = '1'
[c8d22ec]11__download_page__ = 'https://github.com/SasView/sasview/releases'
[5846bb5]12__update_URL__ = ['raw.githubusercontent.com',
13                  '/SasView/sasview/master/sasview.latestversion']
[f53cd30]14
15
16# Debug message flag
17__EVT_DEBUG__ = True
18
19# Flag for automated testing
20__TEST__ = False
21
22# Debug message should be written to a file?
[c8d22ec]23__EVT_DEBUG_2_FILE__ = False
[f53cd30]24__EVT_DEBUG_FILENAME__ = "debug.log"
25
26# About box info
27_do_aboutbox = True
28_do_acknowledge = True
29_do_tutorial = True
30_acknowledgement_preamble =\
[0ea31ca]31'''To ensure the long term support and development of this software please''' +\
32''' remember to do the following.'''
33_acknowledgement_preamble_bullet1 =\
34'''Acknowledge its use in your publications as suggested below'''
35_acknowledgement_preamble_bullet2 =\
36'''Reference the following website: http://www.sasview.org'''
37_acknowledgement_preamble_bullet3 =\
[c8d22ec]38'''Reference the model you used if appropriate (see documentation for refs)'''
39_acknowledgement_preamble_bullet4 =\
40'''Send us your reference for our records: developers@sasview.org'''
[f53cd30]41_acknowledgement_publications = \
[c8d22ec]42'''This work benefited from the use of the SasView application, originally
[0ea31ca]43developed under NSF award DMR-0520547.
[f53cd30]44'''
45_acknowledgement =  \
[0ea31ca]46'''This work originally developed as part of the DANSE project funded by the NSF
[c8d22ec]47under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS
[0ea31ca]48and ILL.
[f53cd30]49
50'''
51_homepage = "http://www.sasview.org"
52_download = "http://sourceforge.net/projects/sasview/files/"
53_authors = []
54_paper = "http://sourceforge.net/p/sasview/tickets/"
55_license = "mailto:help@sasview.org"
56_nsf_logo = "images/nsf_logo.png"
57_danse_logo = "images/danse_logo.png"
58_inst_logo = "images/utlogo.gif"
59_nist_logo = "images/nist_logo.png"
60_umd_logo = "images/umd_logo.png"
61_sns_logo = "images/sns_logo.png"
62_isis_logo = "images/isis_logo.png"
63_ess_logo = "images/ess_logo.png"
64_ill_logo = "images/ill_logo.png"
65_nist_url = "http://www.nist.gov/"
66_umd_url = "http://www.umd.edu/"
67_sns_url = "http://neutrons.ornl.gov/"
68_nsf_url = "http://www.nsf.gov"
69_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html"
70_inst_url = "http://www.utk.edu"
71_isis_url = "http://www.isis.stfc.ac.uk/"
72_ess_url = "http://ess-scandinavia.eu/"
73_ill_url = "http://www.ill.eu/"
74_corner_image = "images/angles_flat.png"
75_welcome_image = "images/SVwelcome.png"
76_copyright = "(c) 2008, University of Tennessee"
77#edit the lists below of file state your plugin can read
78#for sasview this how you can edit these lists
79#PLUGIN_STATE_EXTENSIONS = ['.prv','.fitv', '.inv']
80#APPLICATION_STATE_EXTENSION = '.svs'
81#PLUGINS_WLIST = ['P(r) files (*.prv)|*.prv',
82#                  'Fitting files (*.fitv)|*.fitv',
83#                  'Invariant files (*.inv)|*.inv']
84#APPLICATION_WLIST = 'SasView files (*.svs)|*.svs'
85APPLICATION_WLIST = ''
86APPLICATION_STATE_EXTENSION = None
87PLUGINS_WLIST = []
88PLUGIN_STATE_EXTENSIONS = []
[c8d22ec]89SPLASH_SCREEN_PATH = "images/danse_logo.png"
[f53cd30]90DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION
91SPLASH_SCREEN_WIDTH = 500
92SPLASH_SCREEN_HEIGHT = 300
[c8d22ec]93WELCOME_PANEL_ON = False
[f53cd30]94TUTORIAL_PATH = None
95SS_MAX_DISPLAY_TIME = 1500
96PLOPANEL_WIDTH = 350
97PLOPANEL_HEIGTH = 350
98GUIFRAME_WIDTH = 1000
99GUIFRAME_HEIGHT = 800
100CONTROL_WIDTH = -1
101CONTROL_HEIGHT = -1
102SetupIconFile_win = os.path.join("images", "ball.ico")
103SetupIconFile_mac = os.path.join("images", "ball.icns")
104DefaultGroupName = "DANSE"
105OutputBaseFilename = "setupGuiFrame"
106DATAPANEL_WIDTH = 235
107DATAPANEL_HEIGHT = 700
108FIXED_PANEL = True
109DATALOADER_SHOW = True
110CLEANUP_PLOT = False
111WELCOME_PANEL_SHOW = False
112#Show or hide toolbar at the start up
113TOOLBAR_SHOW = True
114# set a default perspective
115DEFAULT_PERSPECTIVE = 'None'
116# OPEN and SAVE project menu
117OPEN_SAVE_PROJECT_MENU = True
118CLEANUP_PLOT = False
119# OPEN and SAVE project menu
120OPEN_SAVE_PROJECT_MENU = False
121#VIEW MENU
122VIEW_MENU = False
123#EDIT MENU
124EDIT_MENU = False
125import wx.lib.newevent
126(StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent()
127
128def printEVT(message):
[c8d22ec]129    """
130    :TODO - need method documentation
131    """
[f53cd30]132    if __EVT_DEBUG__:
133        print "%g%s" % (time.clock(), message)
[c8d22ec]134   
[f53cd30]135        if __EVT_DEBUG_2_FILE__:
136            out = open(__EVT_DEBUG_FILENAME__, 'a')
137            out.write("%10g%s\n" % (time.clock(), message))
138            out.close()
[41d466f]139           
Note: See TracBrowser for help on using the repository browser.