source: sasview/simview/local_config.py @ 92a5ac92

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 92a5ac92 was b7b9c16, checked in by Gervaise Alina <gervyh@…>, 13 years ago

add new perspective simulationview

  • Property mode set to 100644
File size: 3.4 KB
Line 
1"""
2    SimView Application settings
3"""
4import time
5
6import os
7from 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
29Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
30project 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
49path = os.getcwd()
50icon_path = os.path.join(path, "images")
51media_path = os.path.join(path, "media")
52test_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
66APPLICATION_WLIST = ''
67APPLICATION_STATE_EXTENSION = ''
68GUIFRAME_WIDTH = 1000
69GUIFRAME_HEIGHT = 800
70PLUGIN_STATE_EXTENSIONS = []
71PLUGINS_WLIST = []
72PLOPANEL_WIDTH = 415
73PLOPANEL_HEIGTH = 370
74DATAPANEL_WIDTH = 235
75DATAPANEL_HEIGHT = 700
76SPLASH_SCREEN_PATH = None
77TUTORIAL_PATH = None
78DEFAULT_STYLE = GUIFRAME.MULTIPLE_APPLICATIONS|GUIFRAME.MANAGER_ON\
79                    |GUIFRAME.CALCULATOR_ON|GUIFRAME.TOOLBAR_ON
80SPLASH_SCREEN_WIDTH = 512
81SPLASH_SCREEN_HEIGHT = 366
82SS_MAX_DISPLAY_TIME = 6000 #6 sec
83WELCOME_PANEL_ON  = True
84WELCOME_PANEL_SHOW = False
85CLEANUP_PLOT = False
86# OPEN and SAVE project menu
87OPEN_SAVE_PROJECT_MENU = True
88#VIEW MENU
89VIEW_MENU = True
90#EDIT MENU
91EDIT_MENU = True
92
93SetupIconFile_win = os.path.join(icon_path, "ball.ico")
94SetupIconFile_mac = os.path.join(icon_path, "ball.icns")
95DefaultGroupName = "DANSE"
96OutputBaseFilename = "setupSimView"
97DATAPANEL_WIDTH = 235
98FIXED_PANEL = True
99DATALOADER_SHOW = True
100CLEANUP_PLOT = False
101WELCOME_PANEL_SHOW = False
102#Show or hide toolbar at the start up
103TOOLBAR_SHOW = True
104# set a default perspective
105DEFAULT_PERSPECTIVE = 'None'
106
107def 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           
Note: See TracBrowser for help on using the repository browser.