Changeset ad01b7c4 in sasview


Ignore:
Timestamp:
Aug 5, 2011 1:20:40 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
4206aa1
Parents:
44429d0
Message:

added choice for having open/close project file manu

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/local_config.py

    r3be3a80 rad01b7c4  
    33""" 
    44import time 
    5  
     5import os 
     6from sans.guiframe.gui_style import GUIFRAME 
    67# Version of the application 
    78__appname__ = "SansViewTool" 
    8 __version__ = '1.dev' 
     9__version__ = '0.9.2dev' 
    910__download_page__ = 'http://danse.chem.utk.edu' 
    1011#__update_URL__ = 'http://danse.chem.utk.edu/sansview_version.php' 
     
    2324# About box info 
    2425_do_aboutbox=True 
     26_do_tutorial = False 
    2527_acknowledgement =  \ 
    2628'''This software was developed by the University of Tennessee as part of the 
     
    4547_copyright = "(c) 2009, University of Tennessee" 
    4648 
     49 
     50#edit the list of file state your plugin can read 
     51APPLICATION_WLIST = '' 
     52APPLICATION_STATE_EXTENSION = '' 
     53GUIFRAME_WIDTH = 300 
     54GUIFRAME_HEIGHT = 200 
     55PLUGIN_STATE_EXTENSIONS = [] 
     56PLUGINS_WLIST = [] 
     57PLOPANEL_WIDTH = 415 
     58PLOPANEL_HEIGTH = 370 
     59DATAPANEL_WIDTH = 235 
     60DATAPANEL_HEIGHT = 700 
     61SPLASH_SCREEN_PATH = os.path.join("images","SVwelcome_mini.png") 
     62TUTORIAL_PATH = os.path.join("media","Tutorial.pdf") 
     63DEFAULT_STYLE = GUIFRAME.CALCULATOR_ON 
     64SPLASH_SCREEN_WIDTH = 512 
     65SPLASH_SCREEN_HEIGHT = 366 
     66SS_MAX_DISPLAY_TIME = 6000 #6 sec 
     67WELCOME_PANEL_SHOW = False 
     68CLEANUP_PLOT = False 
     69SetupIconFile_win = os.path.join("images", "ball.ico") 
     70SetupIconFile_mac = os.path.join("images", "ball.icns") 
     71DefaultGroupName = "DANSE" 
     72OutputBaseFilename = "setupSansViewTool" 
     73DATAPANEL_WIDTH = 235 
     74FIXED_PANEL = True 
     75DATALOADER_SHOW = False 
     76CLEANUP_PLOT = False 
     77WELCOME_PANEL_SHOW = False 
     78#Open Save project menu 
     79OPEN_SAVE_PROJECT_MENU = False 
     80#Show or hide toolbar at the start up 
     81TOOLBAR_SHOW = False 
     82# set a default perspective 
     83DEFAULT_PERSPECTIVE = 'None' 
     84 
    4785def printEVT(message): 
    4886    if __EVT_DEBUG__: 
  • guiframe/gui_manager.py

    rbc7bc839 rad01b7c4  
    118118DATAPANEL_HEIGHT = config.DATAPANEL_HEIGHT 
    119119PLUGIN_STATE_EXTENSIONS =  config.PLUGIN_STATE_EXTENSIONS 
     120OPEN_SAVE_MENU = config.OPEN_SAVE_PROJECT_MENU 
    120121extension_list = [] 
    121122if APPLICATION_STATE_EXTENSION is not None: 
     
    11471148        style = self.__gui_style & GUIFRAME.DATALOADER_ON 
    11481149        style1 = self.__gui_style & GUIFRAME.MULTIPLE_APPLICATIONS 
    1149          
    1150         id = wx.NewId() 
    1151         hint_load_file = "read all analysis states saved previously" 
    1152         self._save_appl_menu = self._file_menu.Append(id,  
    1153                                 '&Open Project', hint_load_file) 
    1154         wx.EVT_MENU(self, id, self._on_open_state_project) 
     1150        if OPEN_SAVE_MENU: 
     1151            id = wx.NewId() 
     1152            hint_load_file = "read all analysis states saved previously" 
     1153            self._save_appl_menu = self._file_menu.Append(id,  
     1154                                    '&Open Project', hint_load_file) 
     1155            wx.EVT_MENU(self, id, self._on_open_state_project) 
    11551156             
    11561157        if style1 == GUIFRAME.MULTIPLE_APPLICATIONS: 
     
    11621163                                    '&Open Analysis', hint_load_file) 
    11631164            wx.EVT_MENU(self, id, self._on_open_state_application) 
    1164                  
    1165         self._file_menu.AppendSeparator() 
    1166         id = wx.NewId() 
    1167         self._file_menu.Append(id, '&Save Project', 
    1168                              'Save the state of the whole analysis') 
    1169         wx.EVT_MENU(self, id, self._on_save_project) 
     1165        if OPEN_SAVE_MENU:         
     1166            self._file_menu.AppendSeparator() 
     1167            id = wx.NewId() 
     1168            self._file_menu.Append(id, '&Save Project', 
     1169                                 'Save the state of the whole analysis') 
     1170            wx.EVT_MENU(self, id, self._on_save_project) 
    11701171        if style1 == GUIFRAME.MULTIPLE_APPLICATIONS: 
    11711172            #self._file_menu.AppendSeparator() 
  • sansview/local_config.py

    rbc7bc839 rad01b7c4  
    7070WELCOME_PANEL_SHOW = False 
    7171CLEANUP_PLOT = False 
     72OPEN_SAVE_PROJECT_MENU = True 
    7273SetupIconFile_win = os.path.join("images", "ball.ico") 
    7374SetupIconFile_mac = os.path.join("images", "ball.icns") 
Note: See TracChangeset for help on using the changeset viewer.