1 | """ |
---|
2 | Application settings |
---|
3 | """ |
---|
4 | import os |
---|
5 | import time |
---|
6 | from sans.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/sansview.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_tutorial = True |
---|
29 | _acknowledgement = \ |
---|
30 | '''This software was developed by the University of Tennessee as part of the |
---|
31 | Distributed Data Analysis of Neutron Scattering Experiments (DANSE) |
---|
32 | project funded by the US National Science Foundation. |
---|
33 | |
---|
34 | ''' |
---|
35 | _homepage = "http://www.sasview.org" |
---|
36 | _download = "http://sourceforge.net/projects/sasview/files/" |
---|
37 | _authors = [] |
---|
38 | _paper = "http://sourceforge.net/p/sasview/tickets/" |
---|
39 | _license = "mailto:help@sasview.org" |
---|
40 | _nsf_logo = "images/nsf_logo.png" |
---|
41 | _danse_logo = "images/danse_logo.png" |
---|
42 | _inst_logo = "images/utlogo.gif" |
---|
43 | _nist_logo = "images/nist_logo.png" |
---|
44 | _umd_logo = "images/umd_logo.png" |
---|
45 | _sns_logo = "images/sns_logo.png" |
---|
46 | _isis_logo = "images/isis_logo.png" |
---|
47 | _ess_logo = "images/ess_logo.png" |
---|
48 | _ill_logo = "images/ill_logo.png" |
---|
49 | _nist_url = "http://www.nist.gov/" |
---|
50 | _umd_url = "http://www.umd.edu/" |
---|
51 | _sns_url = "http://neutrons.ornl.gov/" |
---|
52 | _nsf_url = "http://www.nsf.gov" |
---|
53 | _danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" |
---|
54 | _inst_url = "http://www.utk.edu" |
---|
55 | _isis_url = "http://www.isis.stfc.ac.uk/" |
---|
56 | _ess_url = "http://ess-scandinavia.eu/" |
---|
57 | _ill_url = "http://www.ill.eu/" |
---|
58 | _corner_image = "images/angles_flat.png" |
---|
59 | _welcome_image = "images/SVwelcome.png" |
---|
60 | _copyright = "(c) 2008, University of Tennessee" |
---|
61 | #edit the lists below of file state your plugin can read |
---|
62 | #for sansview this how you can edit these lists |
---|
63 | #PLUGIN_STATE_EXTENSIONS = ['.prv','.fitv', '.inv'] |
---|
64 | #APPLICATION_STATE_EXTENSION = '.svs' |
---|
65 | #PLUGINS_WLIST = ['P(r) files (*.prv)|*.prv', |
---|
66 | # 'Fitting files (*.fitv)|*.fitv', |
---|
67 | # 'Invariant files (*.inv)|*.inv'] |
---|
68 | #APPLICATION_WLIST = 'SansView files (*.svs)|*.svs' |
---|
69 | APPLICATION_WLIST = '' |
---|
70 | APPLICATION_STATE_EXTENSION = None |
---|
71 | PLUGINS_WLIST = [] |
---|
72 | PLUGIN_STATE_EXTENSIONS = [] |
---|
73 | SPLASH_SCREEN_PATH = "images/danse_logo.png" |
---|
74 | DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION |
---|
75 | SPLASH_SCREEN_WIDTH = 500 |
---|
76 | SPLASH_SCREEN_HEIGHT = 300 |
---|
77 | WELCOME_PANEL_ON = False |
---|
78 | TUTORIAL_PATH = None |
---|
79 | SS_MAX_DISPLAY_TIME = 4000 #4 sec |
---|
80 | PLOPANEL_WIDTH = 350 |
---|
81 | PLOPANEL_HEIGTH = 350 |
---|
82 | GUIFRAME_WIDTH = 1000 |
---|
83 | GUIFRAME_HEIGHT = 800 |
---|
84 | CONTROL_WIDTH = -1 |
---|
85 | CONTROL_HEIGHT = -1 |
---|
86 | SetupIconFile_win = os.path.join("images", "ball.ico") |
---|
87 | SetupIconFile_mac = os.path.join("images", "ball.icns") |
---|
88 | DefaultGroupName = "DANSE" |
---|
89 | OutputBaseFilename = "setupGuiFrame" |
---|
90 | DATAPANEL_WIDTH = 235 |
---|
91 | DATAPANEL_HEIGHT = 700 |
---|
92 | FIXED_PANEL = True |
---|
93 | DATALOADER_SHOW = True |
---|
94 | CLEANUP_PLOT = False |
---|
95 | WELCOME_PANEL_SHOW = False |
---|
96 | #Show or hide toolbar at the start up |
---|
97 | TOOLBAR_SHOW = True |
---|
98 | # set a default perspective |
---|
99 | DEFAULT_PERSPECTIVE = 'None' |
---|
100 | # OPEN and SAVE project menu |
---|
101 | OPEN_SAVE_PROJECT_MENU = True |
---|
102 | CLEANUP_PLOT = False |
---|
103 | # OPEN and SAVE project menu |
---|
104 | OPEN_SAVE_PROJECT_MENU = False |
---|
105 | #VIEW MENU |
---|
106 | VIEW_MENU = False |
---|
107 | #EDIT MENU |
---|
108 | EDIT_MENU = False |
---|
109 | import wx.lib.newevent |
---|
110 | (StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent() |
---|
111 | |
---|
112 | def printEVT(message): |
---|
113 | if __EVT_DEBUG__: |
---|
114 | print "%g: %s" % (time.clock(), message) |
---|
115 | |
---|
116 | if __EVT_DEBUG_2_FILE__: |
---|
117 | out = open(__EVT_DEBUG_FILENAME__, 'a') |
---|
118 | out.write("%10g: %s\n" % (time.clock(), message)) |
---|
119 | out.close() |
---|
120 | |
---|