[f53cd30] | 1 | """ |
---|
| 2 | Application settings |
---|
| 3 | """ |
---|
| 4 | import os |
---|
| 5 | import time |
---|
[d85c194] | 6 | from sas.sasgui.guiframe.gui_style import GUIFRAME |
---|
[f53cd30] | 7 | # Version of the application |
---|
| 8 | __appname__ = "DummyView" |
---|
| 9 | __version__ = '0.0.0' |
---|
| 10 | __build__ = '1' |
---|
[c8d22ec] | 11 | __download_page__ = 'https://github.com/SasView/sasview/releases' |
---|
[9989a6a] | 12 | __update_URL__ = 'http://www.sasview.org/latestversion.json' |
---|
[f53cd30] | 13 | |
---|
| 14 | |
---|
| 15 | # Debug message flag |
---|
| 16 | __EVT_DEBUG__ = True |
---|
| 17 | |
---|
| 18 | # Flag for automated testing |
---|
| 19 | __TEST__ = False |
---|
| 20 | |
---|
| 21 | # Debug message should be written to a file? |
---|
[c8d22ec] | 22 | __EVT_DEBUG_2_FILE__ = False |
---|
[f53cd30] | 23 | __EVT_DEBUG_FILENAME__ = "debug.log" |
---|
| 24 | |
---|
| 25 | # About box info |
---|
| 26 | _do_aboutbox = True |
---|
| 27 | _do_acknowledge = True |
---|
| 28 | _do_tutorial = True |
---|
| 29 | _acknowledgement_preamble =\ |
---|
[0ea31ca] | 30 | '''To ensure the long term support and development of this software please''' +\ |
---|
| 31 | ''' remember to do the following.''' |
---|
| 32 | _acknowledgement_preamble_bullet1 =\ |
---|
| 33 | '''Acknowledge its use in your publications as suggested below''' |
---|
| 34 | _acknowledgement_preamble_bullet2 =\ |
---|
| 35 | '''Reference the following website: http://www.sasview.org''' |
---|
| 36 | _acknowledgement_preamble_bullet3 =\ |
---|
[c8d22ec] | 37 | '''Reference the model you used if appropriate (see documentation for refs)''' |
---|
| 38 | _acknowledgement_preamble_bullet4 =\ |
---|
| 39 | '''Send us your reference for our records: developers@sasview.org''' |
---|
[f53cd30] | 40 | _acknowledgement_publications = \ |
---|
[c8d22ec] | 41 | '''This work benefited from the use of the SasView application, originally |
---|
[0ea31ca] | 42 | developed under NSF award DMR-0520547. |
---|
[f53cd30] | 43 | ''' |
---|
| 44 | _acknowledgement = \ |
---|
[0ea31ca] | 45 | '''This work originally developed as part of the DANSE project funded by the NSF |
---|
[c8d22ec] | 46 | under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS |
---|
[0ea31ca] | 47 | and ILL. |
---|
[f53cd30] | 48 | |
---|
| 49 | ''' |
---|
| 50 | _homepage = "http://www.sasview.org" |
---|
| 51 | _download = "http://sourceforge.net/projects/sasview/files/" |
---|
| 52 | _authors = [] |
---|
| 53 | _paper = "http://sourceforge.net/p/sasview/tickets/" |
---|
| 54 | _license = "mailto:help@sasview.org" |
---|
| 55 | _nsf_logo = "images/nsf_logo.png" |
---|
| 56 | _danse_logo = "images/danse_logo.png" |
---|
| 57 | _inst_logo = "images/utlogo.gif" |
---|
| 58 | _nist_logo = "images/nist_logo.png" |
---|
| 59 | _umd_logo = "images/umd_logo.png" |
---|
| 60 | _sns_logo = "images/sns_logo.png" |
---|
| 61 | _isis_logo = "images/isis_logo.png" |
---|
| 62 | _ess_logo = "images/ess_logo.png" |
---|
| 63 | _ill_logo = "images/ill_logo.png" |
---|
| 64 | _nist_url = "http://www.nist.gov/" |
---|
| 65 | _umd_url = "http://www.umd.edu/" |
---|
| 66 | _sns_url = "http://neutrons.ornl.gov/" |
---|
| 67 | _nsf_url = "http://www.nsf.gov" |
---|
| 68 | _danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" |
---|
| 69 | _inst_url = "http://www.utk.edu" |
---|
| 70 | _isis_url = "http://www.isis.stfc.ac.uk/" |
---|
| 71 | _ess_url = "http://ess-scandinavia.eu/" |
---|
| 72 | _ill_url = "http://www.ill.eu/" |
---|
| 73 | _corner_image = "images/angles_flat.png" |
---|
| 74 | _welcome_image = "images/SVwelcome.png" |
---|
| 75 | _copyright = "(c) 2008, University of Tennessee" |
---|
| 76 | #edit the lists below of file state your plugin can read |
---|
| 77 | #for sasview this how you can edit these lists |
---|
| 78 | #PLUGIN_STATE_EXTENSIONS = ['.prv','.fitv', '.inv'] |
---|
| 79 | #APPLICATION_STATE_EXTENSION = '.svs' |
---|
| 80 | #PLUGINS_WLIST = ['P(r) files (*.prv)|*.prv', |
---|
| 81 | # 'Fitting files (*.fitv)|*.fitv', |
---|
| 82 | # 'Invariant files (*.inv)|*.inv'] |
---|
| 83 | #APPLICATION_WLIST = 'SasView files (*.svs)|*.svs' |
---|
| 84 | APPLICATION_WLIST = '' |
---|
| 85 | APPLICATION_STATE_EXTENSION = None |
---|
| 86 | PLUGINS_WLIST = [] |
---|
| 87 | PLUGIN_STATE_EXTENSIONS = [] |
---|
[c8d22ec] | 88 | SPLASH_SCREEN_PATH = "images/danse_logo.png" |
---|
[f53cd30] | 89 | DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION |
---|
| 90 | SPLASH_SCREEN_WIDTH = 500 |
---|
| 91 | SPLASH_SCREEN_HEIGHT = 300 |
---|
[c8d22ec] | 92 | WELCOME_PANEL_ON = False |
---|
[f53cd30] | 93 | TUTORIAL_PATH = None |
---|
| 94 | SS_MAX_DISPLAY_TIME = 1500 |
---|
| 95 | PLOPANEL_WIDTH = 350 |
---|
| 96 | PLOPANEL_HEIGTH = 350 |
---|
| 97 | GUIFRAME_WIDTH = 1000 |
---|
| 98 | GUIFRAME_HEIGHT = 800 |
---|
| 99 | CONTROL_WIDTH = -1 |
---|
| 100 | CONTROL_HEIGHT = -1 |
---|
| 101 | SetupIconFile_win = os.path.join("images", "ball.ico") |
---|
| 102 | SetupIconFile_mac = os.path.join("images", "ball.icns") |
---|
| 103 | DefaultGroupName = "DANSE" |
---|
| 104 | OutputBaseFilename = "setupGuiFrame" |
---|
| 105 | DATAPANEL_WIDTH = 235 |
---|
| 106 | DATAPANEL_HEIGHT = 700 |
---|
| 107 | FIXED_PANEL = True |
---|
| 108 | DATALOADER_SHOW = True |
---|
| 109 | CLEANUP_PLOT = False |
---|
| 110 | WELCOME_PANEL_SHOW = False |
---|
| 111 | #Show or hide toolbar at the start up |
---|
| 112 | TOOLBAR_SHOW = True |
---|
| 113 | # set a default perspective |
---|
| 114 | DEFAULT_PERSPECTIVE = 'None' |
---|
| 115 | # OPEN and SAVE project menu |
---|
| 116 | OPEN_SAVE_PROJECT_MENU = True |
---|
| 117 | CLEANUP_PLOT = False |
---|
| 118 | # OPEN and SAVE project menu |
---|
| 119 | OPEN_SAVE_PROJECT_MENU = False |
---|
| 120 | #VIEW MENU |
---|
| 121 | VIEW_MENU = False |
---|
| 122 | #EDIT MENU |
---|
| 123 | EDIT_MENU = False |
---|
| 124 | import wx.lib.newevent |
---|
| 125 | (StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent() |
---|
| 126 | |
---|
[efe730d] | 127 | # Time out for updating sasview |
---|
| 128 | UPDATE_TIMEOUT = 2 |
---|
| 129 | |
---|
[f53cd30] | 130 | def printEVT(message): |
---|
[c8d22ec] | 131 | """ |
---|
| 132 | :TODO - need method documentation |
---|
| 133 | """ |
---|
[f53cd30] | 134 | if __EVT_DEBUG__: |
---|
| 135 | print "%g: %s" % (time.clock(), message) |
---|
[c8d22ec] | 136 | |
---|
[f53cd30] | 137 | if __EVT_DEBUG_2_FILE__: |
---|
| 138 | out = open(__EVT_DEBUG_FILENAME__, 'a') |
---|
| 139 | out.write("%10g: %s\n" % (time.clock(), message)) |
---|
| 140 | out.close() |
---|
[41d466f] | 141 | |
---|