Changes in / [95eef00:60df6c1] in sasview


Ignore:
Location:
src/sas/sasgui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/panel_base.py

    rd85c194 r18b7ecb9  
    317317        """ 
    318318        return self._drag_flag 
    319      
     319 
     320    def _set_analysis(self, flag): 
     321        """ 
     322        Set the Analysis Save state flag and informs the manager 
     323        so it refreshes the menu/whole panel 
     324        """ 
     325        self._set_save_flag(flag) 
     326        if self._manager is not None: 
     327            wx.PostEvent(self._manager.parent, PanelOnFocusEvent(panel=self)) 
     328 
    320329    def _set_reset_flag(self, flag=True): 
    321330        """ 
  • src/sas/sasgui/perspectives/file_converter/converter_panel.py

    rbe88076 red9f872  
    499499        vbox = wx.BoxSizer(wx.VERTICAL) 
    500500 
    501         instructions = ("Select either single column ASCII files or 1D OTOKO " 
    502         "files containing the Q-Axis and Intensity-Axis data, or a 2D BSL file" 
    503         ", then chose where to save the converted file, and click Convert.\n" 
    504         "ASCII and OTOKO files can be converted to CanSAS XML, or NXcanSAS " 
    505         "HDF5 format. OTOKO files can only be converted to NXcanSAS.\nCanSAS " 
    506         "metadata can also be optionally input below.") 
     501        instructions = ( 
     502        "Select linked single column 1D ASCII files containing the Q-axis and " 
     503        "Intensity-axis data, or 1D BSL/OTOKO files, or a 2D BSL/OTOKO file, " 
     504        "then choose where to save the converted file, and click Convert.\n" 
     505        "1D ASCII and BSL/OTOKO files can be converted to CanSAS (XML) or " 
     506        "NXcanSAS (HDF5) formats. 2D BSL/OTOKO files can only be converted to " 
     507        "the NXcanSAS format.\n" 
     508        "Metadata can be optionally added for the CanSAS XML format." 
     509        ) 
    507510 
    508511        instruction_label = wx.StaticText(self, -1, instructions, 
     
    527530        ascii_btn.Bind(wx.EVT_RADIOBUTTON, self.datatype_changed) 
    528531        radio_sizer.Add(ascii_btn) 
    529         otoko_btn = wx.RadioButton(self, -1, "OTOKO 1D", name="otoko") 
     532        otoko_btn = wx.RadioButton(self, -1, "BSL 1D", name="otoko") 
    530533        otoko_btn.Bind(wx.EVT_RADIOBUTTON, self.datatype_changed) 
    531534        radio_sizer.Add(otoko_btn) 
  • src/sas/sasgui/perspectives/invariant/invariant_panel.py

    r654e8e0 r18b7ecb9  
    9595        self.is_state_data = False 
    9696        self.is_power_out = False 
     97        self._set_analysis(False) 
    9798 
    9899        #container of invariant value 
     
    170171            self._reset_state_list() 
    171172            self._set_bookmark_flag(True) 
     173            self._set_analysis(True) 
    172174        return True 
    173175 
     
    281283            self.new_state = False 
    282284            self.is_state_data = False 
     285            self._set_analysis(True) 
    283286 
    284287    def clear_panel(self): 
     
    911914        self.button_calculate.SetFocus() 
    912915        #self.SetupScrolling() 
     916        self._set_analysis(False) 
    913917 
    914918    def _set_state(self, event): 
  • src/sas/sasgui/perspectives/pr/inversion_panel.py

    r5a58656 r18b7ecb9  
    4343        #Set window's font size 
    4444        self.SetWindowVariant(variant=FONT_VARIANT) 
     45        self._set_analysis(False) 
    4546 
    4647        self.plots = plots 
     
    396397            self.bck = state.bck 
    397398 
     399        # We have the data available for serialization 
     400        self._set_analysis(True) 
     401 
    398402        # Perform inversion 
    399403        self._on_invert(None) 
     
    401405    def set_manager(self, manager): 
    402406        self._manager = manager 
     407        if manager is not None: 
     408            self._set_analysis(False) 
    403409 
    404410    def _do_layout(self): 
     
    752758        self.nterms_estimate_ctl.Enable(False) 
    753759        self.nterms_estimate_ctl.SetLabel("") 
     760        self._set_analysis(False) 
     761 
    754762        self._on_pars_changed() 
    755763 
     
    936944                self._on_pars_changed(None) 
    937945                self._on_invert(None) 
     946                self._set_analysis(True) 
    938947            except: 
    939948                msg = "InversionControl._change_file: %s" % sys.exc_value 
Note: See TracChangeset for help on using the changeset viewer.