source: sasview/src/sas/sasgui/guiframe/config.py @ c812d11

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 c812d11 was d85c194, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago

Remaining modules refactored

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