Changeset 3595309d in sasview
- Timestamp:
- Jun 12, 2009 4:37:57 PM (16 years ago)
- 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:
- a00ee4c
- Parents:
- 0d88a09
- Location:
- sansview/perspectives/fitting
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r240b9966 r3595309d 499 499 return the current state of the page 500 500 """ 501 502 501 return self.state.clone() 503 502 … … 698 697 self.npts.SetValue(str(state.npts)) 699 698 699 700 700 def _save_typeOfmodel(self): 701 701 """ … … 706 706 self.state.struct_rbutton = self.struct_rbutton.GetValue() 707 707 self.state.plugin_rbutton = self.plugin_rbutton.GetValue() 708 self.state.structurebox= self.structurebox.GetCurrentSelection() 709 self.state.formfactorbox = self.formfactorbox.GetCurrentSelection() 710 711 self._undo.Enable(True) 708 712 ## post state to fit panel 709 713 event = PageInfoEvent(page = self) 710 714 wx.PostEvent(self.parent, event) 711 self._undo.Enable(True)715 712 716 713 717 def _save_plotting_range(self ): … … 1123 1127 self._populate_box( self.formfactorbox, 1124 1128 self.model_list_box["Customized Models"]) 1129 1130 self._on_select_model(event=None) 1125 1131 self._save_typeOfmodel() 1126 self._on_select_model(event=None)1127 1132 self.sizer4_4.Layout() 1128 1133 self.sizer4.Layout() … … 1200 1205 ## save current state 1201 1206 self.save_current_state() 1202 1203 event = PageInfoEvent(page = self) 1204 wx.PostEvent(self.parent, event) 1207 if event !=None: 1208 self._undo.Enable(True) 1209 event = PageInfoEvent(page = self) 1210 wx.PostEvent(self.parent, event) 1205 1211 1206 1212 if check_float(tcrtl): … … 1305 1311 self.save_current_state() 1306 1312 if event !=None: 1313 self._undo.Enable(True) 1307 1314 event = PageInfoEvent(page = self) 1308 1315 wx.PostEvent(self.parent, event) 1309 1316 1310 1317 self.sizer4_4.Layout() 1311 1318 self.sizer4.Layout() -
sansview/perspectives/fitting/fitpage.py
r240b9966 r3595309d 549 549 self.state.enable_disp = self.enable_disp.GetValue() 550 550 self.state.disable_disp = self.disable_disp.GetValue() 551 ## post state to fit panel 552 event = PageInfoEvent(page = self) 553 wx.PostEvent(self.parent, event) 551 if event !=None: 552 self._undo.Enable(True) 553 ## post state to fit panel 554 event = PageInfoEvent(page = self) 555 wx.PostEvent(self.parent, event) 554 556 555 557 … … 582 584 ## new state posted 583 585 if self.state_change: 586 self._undo.Enable(True) 584 587 event = PageInfoEvent(page = self) 585 588 wx.PostEvent(self.parent, event) … … 601 604 ## new state posted 602 605 if self.state_change: 603 event = PageInfoEvent(page = self) 604 wx.PostEvent(self.parent, event) 605 self.state_change= False 606 self._undo.Enable(True) 607 event = PageInfoEvent(page = self) 608 wx.PostEvent(self.parent, event) 609 self.state_change= False 606 610 else: 607 611 msg= "Cannot Plot :Must enter a number!!! " … … 936 940 937 941 #self.save_current_state() 938 942 if event !=None: 943 self._undo.Enable(True) 944 ## post state to fit panel 945 event = PageInfoEvent(page = self) 946 wx.PostEvent(self.parent, event) 947 939 948 940 949 … … 978 987 979 988 #self.save_current_state() 980 989 if event !=None: 990 self._undo.Enable(True) 991 ## post state to fit panel 992 event = PageInfoEvent(page = self) 993 wx.PostEvent(self.parent, event) 994 981 995 982 996 -
sansview/perspectives/fitting/fitpanel.py
r240b9966 r3595309d 356 356 else: 357 357 self.model_page.select_model(model) 358 self.fit_page_name[ name]=ListOfState()358 self.fit_page_name[page_title]=ListOfState() 359 359 #self.fit_page_name[page_title].insert(0,self.model_page.createMemento()) 360 360 … … 453 453 self.model_page=self.GetPage(self.GetSelection()) 454 454 455 ## 455 ##resetting page 456 456 if reset: 457 457 if page_title in self.fit_page_name.keys(): … … 462 462 self.fit_page_name[page_title]=ListOfState() 463 463 #self.fit_page_name[page_title]=[] 464 self.fit_page_name[page_title].insert(0,panel.createMemento())464 #self.fit_page_name[page_title].insert(0,panel.createMemento()) 465 465 466 466 -
sansview/perspectives/fitting/modelpage.py
r330573d r3595309d 317 317 self.state.enable2D = copy.deepcopy(self.enable2D) 318 318 ## post state to fit panel 319 self._undo.Enable(True) 319 320 event = PageInfoEvent(page = self) 320 321 wx.PostEvent(self.parent, event) … … 348 349 self._draw_model() 349 350 ## post state to fit panel 351 self._undo.Enable(True) 350 352 event = PageInfoEvent(page = self) 351 353 wx.PostEvent(self.parent, event)
Note: See TracChangeset
for help on using the changeset viewer.