1 | """ |
---|
2 | SimView Application settings |
---|
3 | """ |
---|
4 | import time |
---|
5 | |
---|
6 | import os |
---|
7 | from sans.guiframe.gui_style import GUIFRAME |
---|
8 | # Version of the application |
---|
9 | __appname__ = "SimView" |
---|
10 | __version__ = '0.2.0' |
---|
11 | __download_page__ = 'http://danse.chem.utk.edu' |
---|
12 | __update_URL__ = 'http://danse.chem.utk.edu/simview_version.php' |
---|
13 | |
---|
14 | |
---|
15 | # Debug message flag |
---|
16 | __EVT_DEBUG__ = True |
---|
17 | |
---|
18 | # Flag for automated testing |
---|
19 | __TEST__ = __EVT_DEBUG__ |
---|
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 | _acknowledgement = \ |
---|
28 | '''This software was developed by the University of Tennessee as part of the |
---|
29 | Distributed Data Analysis of Neutron Scattering Experiments (DANSE) |
---|
30 | project funded by the US National Science Foundation. |
---|
31 | |
---|
32 | ''' |
---|
33 | _homepage = "http://danse.chem.utk.edu" |
---|
34 | _download = "http://danse.chem.utk.edu/simview.html" |
---|
35 | _authors = [] |
---|
36 | _paper = "http://danse.us/trac/sans/newticket" |
---|
37 | _license = "mailto:sansdanse@gmail.com" |
---|
38 | |
---|
39 | _nsf_logo = "images/nsf_logo.png" |
---|
40 | _danse_logo = "images/danse_logo.png" |
---|
41 | _inst_logo = "images/utlogo.gif" |
---|
42 | _nsf_url = "http://www.nsf.gov" |
---|
43 | _danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" |
---|
44 | _inst_url = "http://www.utk.edu" |
---|
45 | _corner_image = "images/angles_flat.png" |
---|
46 | _welcome_image = "images/SVwelcome.png" |
---|
47 | _copyright = "(c) 2009, University of Tennessee" |
---|
48 | |
---|
49 | path = os.getcwd() |
---|
50 | icon_path = os.path.join(path, "images") |
---|
51 | media_path = os.path.join(path, "media") |
---|
52 | test_path = os.path.join(path, "test") |
---|
53 | |
---|
54 | _nsf_logo = os.path.join(icon_path, "nsf_logo.png") |
---|
55 | _danse_logo = os.path.join(icon_path, "danse_logo.png") |
---|
56 | _inst_logo = os.path.join(icon_path, "utlogo.gif") |
---|
57 | _nsf_url = "http://www.nsf.gov" |
---|
58 | _danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" |
---|
59 | _inst_url = "http://www.utk.edu" |
---|
60 | _corner_image = os.path.join(icon_path, "angles_flat.png") |
---|
61 | _welcome_image = os.path.join(icon_path, "SVwelcome.png") |
---|
62 | _copyright = "(c) 2009, University of Tennessee" |
---|
63 | |
---|
64 | |
---|
65 | #edit the list of file state your plugin can read |
---|
66 | APPLICATION_WLIST = '' |
---|
67 | APPLICATION_STATE_EXTENSION = '' |
---|
68 | GUIFRAME_WIDTH = 1000 |
---|
69 | GUIFRAME_HEIGHT = 800 |
---|
70 | PLUGIN_STATE_EXTENSIONS = [] |
---|
71 | PLUGINS_WLIST = [] |
---|
72 | PLOPANEL_WIDTH = 415 |
---|
73 | PLOPANEL_HEIGTH = 370 |
---|
74 | DATAPANEL_WIDTH = 235 |
---|
75 | DATAPANEL_HEIGHT = 700 |
---|
76 | SPLASH_SCREEN_PATH = None |
---|
77 | TUTORIAL_PATH = None |
---|
78 | DEFAULT_STYLE = GUIFRAME.MULTIPLE_APPLICATIONS|GUIFRAME.MANAGER_ON\ |
---|
79 | |GUIFRAME.CALCULATOR_ON|GUIFRAME.TOOLBAR_ON |
---|
80 | SPLASH_SCREEN_WIDTH = 512 |
---|
81 | SPLASH_SCREEN_HEIGHT = 366 |
---|
82 | SS_MAX_DISPLAY_TIME = 6000 #6 sec |
---|
83 | WELCOME_PANEL_ON = True |
---|
84 | WELCOME_PANEL_SHOW = False |
---|
85 | CLEANUP_PLOT = False |
---|
86 | # OPEN and SAVE project menu |
---|
87 | OPEN_SAVE_PROJECT_MENU = True |
---|
88 | #VIEW MENU |
---|
89 | VIEW_MENU = True |
---|
90 | #EDIT MENU |
---|
91 | EDIT_MENU = True |
---|
92 | |
---|
93 | SetupIconFile_win = os.path.join(icon_path, "ball.ico") |
---|
94 | SetupIconFile_mac = os.path.join(icon_path, "ball.icns") |
---|
95 | DefaultGroupName = "DANSE" |
---|
96 | OutputBaseFilename = "setupSimView" |
---|
97 | DATAPANEL_WIDTH = 235 |
---|
98 | FIXED_PANEL = True |
---|
99 | DATALOADER_SHOW = True |
---|
100 | CLEANUP_PLOT = False |
---|
101 | WELCOME_PANEL_SHOW = False |
---|
102 | #Show or hide toolbar at the start up |
---|
103 | TOOLBAR_SHOW = True |
---|
104 | # set a default perspective |
---|
105 | DEFAULT_PERSPECTIVE = 'None' |
---|
106 | |
---|
107 | def printEVT(message): |
---|
108 | if __EVT_DEBUG__: |
---|
109 | print "%g: %s" % (time.clock(), message) |
---|
110 | |
---|
111 | if __EVT_DEBUG_2_FILE__: |
---|
112 | out = open(__EVT_DEBUG_FILENAME__, 'a') |
---|
113 | out.write("%10g: %s\n" % (time.clock(), message)) |
---|
114 | out.close() |
---|
115 | |
---|