1 | """ |
---|
2 | Application settings |
---|
3 | """ |
---|
4 | import os |
---|
5 | import time |
---|
6 | from 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 |
---|
32 | its use in your publications as suggested below and reference the SasView website: |
---|
33 | http://www.sasview.org/. Please also consider letting us know by sending us the |
---|
34 | reference to your work. This will help us to ensure the long term support and |
---|
35 | development of the software. |
---|
36 | ''' |
---|
37 | _acknowledgement_publications = \ |
---|
38 | '''This work benefited from software developed by the DANSE project under NSF |
---|
39 | award DMR-0520547 and currently maintained by NIST, UMD, ORNL, ISIS, ESS |
---|
40 | and ILL. |
---|
41 | ''' |
---|
42 | _acknowledgement = \ |
---|
43 | '''This software was developed by the University of Tennessee as part of the |
---|
44 | Distributed Data Analysis of Neutron Scattering Experiments (DANSE) |
---|
45 | project 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' |
---|
82 | APPLICATION_WLIST = '' |
---|
83 | APPLICATION_STATE_EXTENSION = None |
---|
84 | PLUGINS_WLIST = [] |
---|
85 | PLUGIN_STATE_EXTENSIONS = [] |
---|
86 | SPLASH_SCREEN_PATH = "images/danse_logo.png" |
---|
87 | DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION |
---|
88 | SPLASH_SCREEN_WIDTH = 500 |
---|
89 | SPLASH_SCREEN_HEIGHT = 300 |
---|
90 | WELCOME_PANEL_ON = False |
---|
91 | TUTORIAL_PATH = None |
---|
92 | SS_MAX_DISPLAY_TIME = 1500 |
---|
93 | PLOPANEL_WIDTH = 350 |
---|
94 | PLOPANEL_HEIGTH = 350 |
---|
95 | GUIFRAME_WIDTH = 1000 |
---|
96 | GUIFRAME_HEIGHT = 800 |
---|
97 | CONTROL_WIDTH = -1 |
---|
98 | CONTROL_HEIGHT = -1 |
---|
99 | SetupIconFile_win = os.path.join("images", "ball.ico") |
---|
100 | SetupIconFile_mac = os.path.join("images", "ball.icns") |
---|
101 | DefaultGroupName = "DANSE" |
---|
102 | OutputBaseFilename = "setupGuiFrame" |
---|
103 | DATAPANEL_WIDTH = 235 |
---|
104 | DATAPANEL_HEIGHT = 700 |
---|
105 | FIXED_PANEL = True |
---|
106 | DATALOADER_SHOW = True |
---|
107 | CLEANUP_PLOT = False |
---|
108 | WELCOME_PANEL_SHOW = False |
---|
109 | #Show or hide toolbar at the start up |
---|
110 | TOOLBAR_SHOW = True |
---|
111 | # set a default perspective |
---|
112 | DEFAULT_PERSPECTIVE = 'None' |
---|
113 | # OPEN and SAVE project menu |
---|
114 | OPEN_SAVE_PROJECT_MENU = True |
---|
115 | CLEANUP_PLOT = False |
---|
116 | # OPEN and SAVE project menu |
---|
117 | OPEN_SAVE_PROJECT_MENU = False |
---|
118 | #VIEW MENU |
---|
119 | VIEW_MENU = False |
---|
120 | #EDIT MENU |
---|
121 | EDIT_MENU = False |
---|
122 | import wx.lib.newevent |
---|
123 | (StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent() |
---|
124 | |
---|
125 | def 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() |
---|
133 | |
---|