Changeset d4d78c9 in sasview


Ignore:
Timestamp:
Apr 20, 2011 7:39:00 PM (14 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:
2a62d5c
Parents:
1258aa3
Message:

fixed history and status problem; inv file still to go

Location:
invariantview/perspectives/invariant
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant.py

    rb24cfd9 rd4d78c9  
    1717import copy 
    1818import logging 
    19  
    2019 
    2120from sans.guiframe.dataFitting import Data1D 
     
    210209        current_plottable = self.__data 
    211210 
    212         if issubclass(current_plottable.__class__, LoaderData1D): 
     211        if issubclass(current_plottable.__class__, Data1D): 
    213212            self.state_reader.write(filepath, current_plottable, state) 
    214213        else: 
  • invariantview/perspectives/invariant/invariant_panel.py

    rf932c02 rd4d78c9  
    623623        : param event: undo button event 
    624624        """ 
    625         if event != None:  
    626             event.Skip() 
    627625        if self.state.state_num < 0: 
    628626            return 
     
    630628        # get the previous state_num 
    631629        pre_state_num = int(self.state.saved_state['state_num']) - 1 
     630 
    632631        self.get_state_by_num(state_num=str(pre_state_num)) 
    633632         
     
    639638        self.is_power_out = False   
    640639        self._info_state_num() 
    641          
     640 
    642641         
    643642    def on_redo(self,event=None): 
     
    647646        : param event: redo button event 
    648647        """ 
    649         if event != None: 
    650             event.Skip() 
    651648        self.is_power_out = True 
    652649        # get the next state_num 
     
    732729        self.state.saved_state = current_state 
    733730        self.state.state_num = state_num 
    734             
     731 
    735732         
    736733    def get_bookmark_by_num(self, num=None): 
     
    855852        self._set_undo_flag(True) 
    856853        self._set_redo_flag(False) 
    857         event.Skip() 
     854        #event.Skip() 
    858855                    
    859856    def _set_compute_state(self,state=None): 
     
    943940        # check if this event is from do/undo button 
    944941        if self.state.saved_state['is_time_machine'] or self.new_state: 
    945             event.Skip() 
     942            #event.Skip() 
    946943            return 
    947944         
     
    979976            pass 
    980977 
    981         event.Skip() 
     978        #event.Skip() 
    982979        self._set_undo_flag(True) 
    983980        self._set_redo_flag(False) 
     
    1001998        except: 
    1002999            pass 
    1003         if event != None: event.Skip()\ 
     1000        #if event != None: event.Skip() 
    10041001 
    10051002    def _get_input_list(self):      
Note: See TracChangeset for help on using the changeset viewer.