[3be3a80] | 1 | """ |
---|
| 2 | Application settings |
---|
| 3 | """ |
---|
| 4 | import time |
---|
[ad01b7c4] | 5 | import os |
---|
| 6 | from sans.guiframe.gui_style import GUIFRAME |
---|
[3be3a80] | 7 | # Version of the application |
---|
| 8 | __appname__ = "SansViewTool" |
---|
[ad01b7c4] | 9 | __version__ = '0.9.2dev' |
---|
[3be3a80] | 10 | __download_page__ = 'http://danse.chem.utk.edu' |
---|
| 11 | #__update_URL__ = 'http://danse.chem.utk.edu/sansview_version.php' |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | # Debug message flag |
---|
| 15 | __EVT_DEBUG__ = False |
---|
| 16 | |
---|
| 17 | # Flag for automated testing |
---|
| 18 | __TEST__ = False |
---|
| 19 | |
---|
| 20 | # Debug message should be written to a file? |
---|
| 21 | __EVT_DEBUG_2_FILE__ = False |
---|
| 22 | __EVT_DEBUG_FILENAME__ = "debug.log" |
---|
| 23 | |
---|
| 24 | # About box info |
---|
| 25 | _do_aboutbox=True |
---|
[ad01b7c4] | 26 | _do_tutorial = False |
---|
[3be3a80] | 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/sansview.html" |
---|
| 35 | _authors = [] |
---|
| 36 | _paper = "http://danse.us/trac/sans/newticket" |
---|
| 37 | _license = "mailto:sansdanse@gmail.com" |
---|
| 38 | |
---|
[ed94228] | 39 | _nsf_logo = "images/icons/nsf_logo.png" |
---|
| 40 | _danse_logo = "images/icons/danse_logo.png" |
---|
| 41 | _inst_logo = "images/icons/utlogo.gif" |
---|
[3be3a80] | 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" |
---|
[ed94228] | 45 | _corner_image = "images/icons/angles_flat.png" |
---|
| 46 | _welcome_image = "images/icons/SVwelcome.png" |
---|
[3be3a80] | 47 | _copyright = "(c) 2009, University of Tennessee" |
---|
| 48 | |
---|
[ad01b7c4] | 49 | |
---|
| 50 | #edit the list of file state your plugin can read |
---|
| 51 | APPLICATION_WLIST = '' |
---|
[ed94228] | 52 | APPLICATION_STATE_EXTENSION = None |
---|
[ad01b7c4] | 53 | GUIFRAME_WIDTH = 300 |
---|
| 54 | GUIFRAME_HEIGHT = 200 |
---|
| 55 | PLUGIN_STATE_EXTENSIONS = [] |
---|
| 56 | PLUGINS_WLIST = [] |
---|
| 57 | PLOPANEL_WIDTH = 415 |
---|
| 58 | PLOPANEL_HEIGTH = 370 |
---|
| 59 | DATAPANEL_WIDTH = 235 |
---|
| 60 | DATAPANEL_HEIGHT = 700 |
---|
[ed94228] | 61 | SPLASH_SCREEN_PATH = os.path.join("images","icons","SVwelcome_mini.png") |
---|
[ad01b7c4] | 62 | TUTORIAL_PATH = os.path.join("media","Tutorial.pdf") |
---|
| 63 | DEFAULT_STYLE = GUIFRAME.CALCULATOR_ON |
---|
| 64 | SPLASH_SCREEN_WIDTH = 512 |
---|
| 65 | SPLASH_SCREEN_HEIGHT = 366 |
---|
| 66 | SS_MAX_DISPLAY_TIME = 6000 #6 sec |
---|
[8e3dc19] | 67 | WELCOME_PANEL_ON = False |
---|
[ad01b7c4] | 68 | CLEANUP_PLOT = False |
---|
[ed94228] | 69 | SetupIconFile_win = os.path.join("images","icons", "ball.ico") |
---|
| 70 | SetupIconFile_mac = os.path.join("images","icons", "ball.icns") |
---|
[ad01b7c4] | 71 | DefaultGroupName = "DANSE" |
---|
| 72 | OutputBaseFilename = "setupSansViewTool" |
---|
| 73 | DATAPANEL_WIDTH = 235 |
---|
| 74 | FIXED_PANEL = True |
---|
| 75 | DATALOADER_SHOW = False |
---|
| 76 | CLEANUP_PLOT = False |
---|
| 77 | WELCOME_PANEL_SHOW = False |
---|
| 78 | #Open Save project menu |
---|
| 79 | OPEN_SAVE_PROJECT_MENU = False |
---|
[83a0940] | 80 | #VIEW MENU |
---|
| 81 | VIEW_MENU = False |
---|
| 82 | #EDIT MENU |
---|
| 83 | EDIT_MENU = False |
---|
[ad01b7c4] | 84 | #Show or hide toolbar at the start up |
---|
| 85 | TOOLBAR_SHOW = False |
---|
| 86 | # set a default perspective |
---|
| 87 | DEFAULT_PERSPECTIVE = 'None' |
---|
| 88 | |
---|
[3be3a80] | 89 | def printEVT(message): |
---|
| 90 | if __EVT_DEBUG__: |
---|
| 91 | print "%g: %s" % (time.clock(), message) |
---|
| 92 | |
---|
| 93 | if __EVT_DEBUG_2_FILE__: |
---|
| 94 | out = open(__EVT_DEBUG_FILENAME__, 'a') |
---|
| 95 | out.write("%10g: %s\n" % (time.clock(), message)) |
---|
| 96 | out.close() |
---|
| 97 | |
---|