Changeset 3a37fe0 in sasview
- Timestamp:
- Sep 17, 2009 1:54:43 PM (15 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:
- a720d1f
- Parents:
- a85f622
- Location:
- sansview/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
rd4bb639 r3a37fe0 95 95 ## Create context menu for page 96 96 self.popUpMenu = wx.Menu() 97 id = wx.NewId()98 self._undo = wx.MenuItem(self.popUpMenu,id, "Undo","cancel the previous action")99 self.popUpMenu.AppendItem(self._undo)100 self._undo.Enable(False)101 wx.EVT_MENU(self, id, self.onUndo)102 103 id = wx.NewId()104 self._redo = wx.MenuItem(self.popUpMenu,id,"Redo"," Restore the previous action")105 self.popUpMenu.AppendItem(self._redo)106 self._redo.Enable(False)107 wx.EVT_MENU(self, id, self.onRedo)108 self.popUpMenu.AppendSeparator()97 #id = wx.NewId() 98 #self._undo = wx.MenuItem(self.popUpMenu,id, "Undo","cancel the previous action") 99 #self.popUpMenu.AppendItem(self._undo) 100 #self._undo.Enable(False) 101 #wx.EVT_MENU(self, id, self.onUndo) 102 103 #id = wx.NewId() 104 #self._redo = wx.MenuItem(self.popUpMenu,id,"Redo"," Restore the previous action") 105 #self.popUpMenu.AppendItem(self._redo) 106 #self._redo.Enable(False) 107 #wx.EVT_MENU(self, id, self.onRedo) 108 #self.popUpMenu.AppendSeparator() 109 109 110 110 id = wx.NewId() 111 self._keep = wx.MenuItem(self.popUpMenu,id," Keep"," Keep the panel status to recall it later")111 self._keep = wx.MenuItem(self.popUpMenu,id,"Bookmark"," Keep the panel status to recall it later") 112 112 self.popUpMenu.AppendItem(self._keep) 113 113 self._keep.Enable(True) … … 641 641 """ 642 642 if state ==None: 643 self._undo.Enable(False)643 #self._undo.Enable(False) 644 644 return 645 645 … … 806 806 self.state.formfactorbox = self.formfactorbox.GetCurrentSelection() 807 807 808 self._undo.Enable(True)808 #self._undo.Enable(True) 809 809 ## post state to fit panel 810 810 event = PageInfoEvent(page = self) … … 828 828 use : _check_value_enter 829 829 """ 830 self._undo.Enable(True)830 #self._undo.Enable(True) 831 831 if self.model !=None: 832 832 … … 1315 1315 self.save_current_state() 1316 1316 if event !=None: 1317 self._undo.Enable(True)1317 #self._undo.Enable(True) 1318 1318 event = PageInfoEvent(page = self) 1319 1319 wx.PostEvent(self.parent, event) … … 1431 1431 self.save_current_state() 1432 1432 if event !=None: 1433 self._undo.Enable(True)1433 #self._undo.Enable(True) 1434 1434 event = PageInfoEvent(page = self) 1435 1435 wx.PostEvent(self.parent, event) … … 1533 1533 self.state.disp_box= n 1534 1534 1535 self._undo.Enable(True)1535 #self._undo.Enable(True) 1536 1536 event = PageInfoEvent(page = self) 1537 1537 wx.PostEvent(self.parent, event) -
sansview/perspectives/fitting/fitpage.py
r5582a9f1 r3a37fe0 663 663 664 664 if event !=None: 665 self._undo.Enable(True)665 #self._undo.Enable(True) 666 666 ## post state to fit panel 667 667 event = PageInfoEvent(page = self) … … 698 698 ## new state posted 699 699 if self.state_change: 700 self._undo.Enable(True)700 #self._undo.Enable(True) 701 701 event = PageInfoEvent(page = self) 702 702 wx.PostEvent(self.parent, event) … … 719 719 ## new state posted 720 720 if self.state_change: 721 self._undo.Enable(True)721 #self._undo.Enable(True) 722 722 event = PageInfoEvent(page = self) 723 723 wx.PostEvent(self.parent, event) … … 751 751 ## new state posted 752 752 if self.state_change: 753 self._undo.Enable(True)753 #self._undo.Enable(True) 754 754 event = PageInfoEvent(page = self) 755 755 wx.PostEvent(self.parent, event) … … 774 774 reset the state 775 775 """ 776 if first:777 self._undo.Enable(False)776 #if first: 777 # self._undo.Enable(False) 778 778 779 779 self.reset_page_helper(state) … … 1079 1079 #self.save_current_state() 1080 1080 if event !=None: 1081 self._undo.Enable(True)1081 #self._undo.Enable(True) 1082 1082 ## post state to fit panel 1083 1083 event = PageInfoEvent(page = self) … … 1126 1126 #self.save_current_state() 1127 1127 if event !=None: 1128 self._undo.Enable(True)1128 #self._undo.Enable(True) 1129 1129 ## post state to fit panel 1130 1130 event = PageInfoEvent(page = self) -
sansview/perspectives/fitting/modelpage.py
r08ba57d r3a37fe0 331 331 self.Layout() 332 332 ## post state to fit panel 333 self._undo.Enable(True)333 #self._undo.Enable(True) 334 334 event = PageInfoEvent(page = self) 335 335 wx.PostEvent(self.parent, event) … … 365 365 366 366 ## post state to fit panel 367 self._undo.Enable(True)367 #self._undo.Enable(True) 368 368 event = PageInfoEvent(page = self) 369 369 wx.PostEvent(self.parent, event)
Note: See TracChangeset
for help on using the changeset viewer.