[f53cd30] | 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 =\ |
---|
[0ea31ca] | 31 | '''To ensure the long term support and development of this software please''' +\ |
---|
| 32 | ''' remember to do the following.''' |
---|
| 33 | _acknowledgement_preamble_bullet1 =\ |
---|
| 34 | '''Acknowledge its use in your publications as suggested below''' |
---|
| 35 | _acknowledgement_preamble_bullet2 =\ |
---|
| 36 | '''Reference the following website: http://www.sasview.org''' |
---|
| 37 | _acknowledgement_preamble_bullet3 =\ |
---|
| 38 | '''Send us your reference for our records: sansdanse@gmail.com''' |
---|
[f53cd30] | 39 | _acknowledgement_publications = \ |
---|
[0ea31ca] | 40 | '''This work benefited from the use of the SasView application, originally |
---|
| 41 | developed under NSF award DMR-0520547. |
---|
[f53cd30] | 42 | ''' |
---|
| 43 | _acknowledgement = \ |
---|
[0ea31ca] | 44 | '''This work originally developed as part of the DANSE project funded by the NSF |
---|
| 45 | under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS |
---|
| 46 | and ILL. |
---|
[f53cd30] | 47 | |
---|
| 48 | ''' |
---|
| 49 | _homepage = "http://www.sasview.org" |
---|
| 50 | _download = "http://sourceforge.net/projects/sasview/files/" |
---|
| 51 | _authors = [] |
---|
| 52 | _paper = "http://sourceforge.net/p/sasview/tickets/" |
---|
| 53 | _license = "mailto:help@sasview.org" |
---|
| 54 | _nsf_logo = "images/nsf_logo.png" |
---|
| 55 | _danse_logo = "images/danse_logo.png" |
---|
| 56 | _inst_logo = "images/utlogo.gif" |
---|
| 57 | _nist_logo = "images/nist_logo.png" |
---|
| 58 | _umd_logo = "images/umd_logo.png" |
---|
| 59 | _sns_logo = "images/sns_logo.png" |
---|
| 60 | _isis_logo = "images/isis_logo.png" |
---|
| 61 | _ess_logo = "images/ess_logo.png" |
---|
| 62 | _ill_logo = "images/ill_logo.png" |
---|
| 63 | _nist_url = "http://www.nist.gov/" |
---|
| 64 | _umd_url = "http://www.umd.edu/" |
---|
| 65 | _sns_url = "http://neutrons.ornl.gov/" |
---|
| 66 | _nsf_url = "http://www.nsf.gov" |
---|
| 67 | _danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" |
---|
| 68 | _inst_url = "http://www.utk.edu" |
---|
| 69 | _isis_url = "http://www.isis.stfc.ac.uk/" |
---|
| 70 | _ess_url = "http://ess-scandinavia.eu/" |
---|
| 71 | _ill_url = "http://www.ill.eu/" |
---|
| 72 | _corner_image = "images/angles_flat.png" |
---|
| 73 | _welcome_image = "images/SVwelcome.png" |
---|
| 74 | _copyright = "(c) 2008, University of Tennessee" |
---|
| 75 | #edit the lists below of file state your plugin can read |
---|
| 76 | #for sasview this how you can edit these lists |
---|
| 77 | #PLUGIN_STATE_EXTENSIONS = ['.prv','.fitv', '.inv'] |
---|
| 78 | #APPLICATION_STATE_EXTENSION = '.svs' |
---|
| 79 | #PLUGINS_WLIST = ['P(r) files (*.prv)|*.prv', |
---|
| 80 | # 'Fitting files (*.fitv)|*.fitv', |
---|
| 81 | # 'Invariant files (*.inv)|*.inv'] |
---|
| 82 | #APPLICATION_WLIST = 'SasView files (*.svs)|*.svs' |
---|
| 83 | APPLICATION_WLIST = '' |
---|
| 84 | APPLICATION_STATE_EXTENSION = None |
---|
| 85 | PLUGINS_WLIST = [] |
---|
| 86 | PLUGIN_STATE_EXTENSIONS = [] |
---|
| 87 | SPLASH_SCREEN_PATH = "images/danse_logo.png" |
---|
| 88 | DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION |
---|
| 89 | SPLASH_SCREEN_WIDTH = 500 |
---|
| 90 | SPLASH_SCREEN_HEIGHT = 300 |
---|
| 91 | WELCOME_PANEL_ON = False |
---|
| 92 | TUTORIAL_PATH = None |
---|
| 93 | SS_MAX_DISPLAY_TIME = 1500 |
---|
| 94 | PLOPANEL_WIDTH = 350 |
---|
| 95 | PLOPANEL_HEIGTH = 350 |
---|
| 96 | GUIFRAME_WIDTH = 1000 |
---|
| 97 | GUIFRAME_HEIGHT = 800 |
---|
| 98 | CONTROL_WIDTH = -1 |
---|
| 99 | CONTROL_HEIGHT = -1 |
---|
| 100 | SetupIconFile_win = os.path.join("images", "ball.ico") |
---|
| 101 | SetupIconFile_mac = os.path.join("images", "ball.icns") |
---|
| 102 | DefaultGroupName = "DANSE" |
---|
| 103 | OutputBaseFilename = "setupGuiFrame" |
---|
| 104 | DATAPANEL_WIDTH = 235 |
---|
| 105 | DATAPANEL_HEIGHT = 700 |
---|
| 106 | FIXED_PANEL = True |
---|
| 107 | DATALOADER_SHOW = True |
---|
| 108 | CLEANUP_PLOT = False |
---|
| 109 | WELCOME_PANEL_SHOW = False |
---|
| 110 | #Show or hide toolbar at the start up |
---|
| 111 | TOOLBAR_SHOW = True |
---|
| 112 | # set a default perspective |
---|
| 113 | DEFAULT_PERSPECTIVE = 'None' |
---|
| 114 | # OPEN and SAVE project menu |
---|
| 115 | OPEN_SAVE_PROJECT_MENU = True |
---|
| 116 | CLEANUP_PLOT = False |
---|
| 117 | # OPEN and SAVE project menu |
---|
| 118 | OPEN_SAVE_PROJECT_MENU = False |
---|
| 119 | #VIEW MENU |
---|
| 120 | VIEW_MENU = False |
---|
| 121 | #EDIT MENU |
---|
| 122 | EDIT_MENU = False |
---|
| 123 | import wx.lib.newevent |
---|
| 124 | (StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent() |
---|
| 125 | |
---|
| 126 | def printEVT(message): |
---|
| 127 | if __EVT_DEBUG__: |
---|
| 128 | print "%g: %s" % (time.clock(), message) |
---|
| 129 | |
---|
| 130 | if __EVT_DEBUG_2_FILE__: |
---|
| 131 | out = open(__EVT_DEBUG_FILENAME__, 'a') |
---|
| 132 | out.write("%10g: %s\n" % (time.clock(), message)) |
---|
| 133 | out.close() |
---|
[41d466f] | 134 | |
---|