Changeset ad01b7c4 in sasview for guiframe


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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() 
Note: See TracChangeset for help on using the changeset viewer.