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

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 fa6a8d1 was f53cd30, checked in by krzywon, 10 years ago

Created and implemented an acknowledgement window that can be accessed
under the Help menu.

  • Property mode set to 100644
File size: 4.2 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'
11__download_page__ = 'http://sourceforge.net/projects/sasview/files/'
12__update_URL__ = ['svn.code.sf.net', 
13                  '/p/sasview/code/trunk/sasview.latestversion']
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?
23__EVT_DEBUG_2_FILE__   = False
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 =\
31'''If you found this software useful to your work please remember to acknowledge
32its use in your publications as suggested below and reference the SasView website:
33http://www.sasview.org/index.html. Please also consider letting us know by sending us the
34reference to your work. This will help us to ensure the long term support and
35development of the software.
36'''
37_acknowledgement_publications = \
38'''This work originally developed as part of the DANSE project funded by the NSF
39under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS
40and ILL.
41'''
42_acknowledgement =  \
43'''This software was developed by the University of Tennessee as part of the
44Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
45project funded by the US National Science Foundation.
46
47'''
48_homepage = "http://www.sasview.org"
49_download = "http://sourceforge.net/projects/sasview/files/"
50_authors = []
51_paper = "http://sourceforge.net/p/sasview/tickets/"
52_license = "mailto:help@sasview.org"
53_nsf_logo = "images/nsf_logo.png"
54_danse_logo = "images/danse_logo.png"
55_inst_logo = "images/utlogo.gif"
56_nist_logo = "images/nist_logo.png"
57_umd_logo = "images/umd_logo.png"
58_sns_logo = "images/sns_logo.png"
59_isis_logo = "images/isis_logo.png"
60_ess_logo = "images/ess_logo.png"
61_ill_logo = "images/ill_logo.png"
62_nist_url = "http://www.nist.gov/"
63_umd_url = "http://www.umd.edu/"
64_sns_url = "http://neutrons.ornl.gov/"
65_nsf_url = "http://www.nsf.gov"
66_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html"
67_inst_url = "http://www.utk.edu"
68_isis_url = "http://www.isis.stfc.ac.uk/"
69_ess_url = "http://ess-scandinavia.eu/"
70_ill_url = "http://www.ill.eu/"
71_corner_image = "images/angles_flat.png"
72_welcome_image = "images/SVwelcome.png"
73_copyright = "(c) 2008, University of Tennessee"
74#edit the lists below of file state your plugin can read
75#for sasview this how you can edit these lists
76#PLUGIN_STATE_EXTENSIONS = ['.prv','.fitv', '.inv']
77#APPLICATION_STATE_EXTENSION = '.svs'
78#PLUGINS_WLIST = ['P(r) files (*.prv)|*.prv',
79#                  'Fitting files (*.fitv)|*.fitv',
80#                  'Invariant files (*.inv)|*.inv']
81#APPLICATION_WLIST = 'SasView files (*.svs)|*.svs'
82APPLICATION_WLIST = ''
83APPLICATION_STATE_EXTENSION = None
84PLUGINS_WLIST = []
85PLUGIN_STATE_EXTENSIONS = []
86SPLASH_SCREEN_PATH = "images/danse_logo.png"     
87DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION
88SPLASH_SCREEN_WIDTH = 500
89SPLASH_SCREEN_HEIGHT = 300
90WELCOME_PANEL_ON  = False
91TUTORIAL_PATH = None
92SS_MAX_DISPLAY_TIME = 1500
93PLOPANEL_WIDTH = 350
94PLOPANEL_HEIGTH = 350
95GUIFRAME_WIDTH = 1000
96GUIFRAME_HEIGHT = 800
97CONTROL_WIDTH = -1
98CONTROL_HEIGHT = -1
99SetupIconFile_win = os.path.join("images", "ball.ico")
100SetupIconFile_mac = os.path.join("images", "ball.icns")
101DefaultGroupName = "DANSE"
102OutputBaseFilename = "setupGuiFrame"
103DATAPANEL_WIDTH = 235
104DATAPANEL_HEIGHT = 700
105FIXED_PANEL = True
106DATALOADER_SHOW = True
107CLEANUP_PLOT = False
108WELCOME_PANEL_SHOW = False
109#Show or hide toolbar at the start up
110TOOLBAR_SHOW = True
111# set a default perspective
112DEFAULT_PERSPECTIVE = 'None'
113# OPEN and SAVE project menu
114OPEN_SAVE_PROJECT_MENU = True
115CLEANUP_PLOT = False
116# OPEN and SAVE project menu
117OPEN_SAVE_PROJECT_MENU = False
118#VIEW MENU
119VIEW_MENU = False
120#EDIT MENU
121EDIT_MENU = False
122import wx.lib.newevent
123(StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent()
124
125def printEVT(message):
126    if __EVT_DEBUG__:
127        print "%g%s" % (time.clock(), message)
128       
129        if __EVT_DEBUG_2_FILE__:
130            out = open(__EVT_DEBUG_FILENAME__, 'a')
131            out.write("%10g%s\n" % (time.clock(), message))
132            out.close()
[41d466f]133           
Note: See TracBrowser for help on using the repository browser.