Author: bugman Date: Sat Aug 6 11:21:35 2011 New Revision: 14194 URL: http://svn.gna.org/viewcvs/relax?rev=14194&view=rev Log: The original zoom level is available in the relax controller log control pop up menu. Modified: branches/gui_testing/gui/controller.py Modified: branches/gui_testing/gui/controller.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/controller.py?rev=14194&r1=14193&r2=14194&view=diff ============================================================================== --- branches/gui_testing/gui/controller.py (original) +++ branches/gui_testing/gui/controller.py Sat Aug 6 11:21:35 2011 @@ -534,6 +534,7 @@ self.menu_id_select_all = wx.NewId() self.menu_id_zoom_in = wx.NewId() self.menu_id_zoom_out = wx.NewId() + self.menu_id_zoom_orig = wx.NewId() # Make the control read only. self.SetReadOnly(True) @@ -552,6 +553,7 @@ self.Bind(wx.EVT_MENU, self.on_select_all, id=self.menu_id_select_all) self.Bind(wx.EVT_MENU, self.on_zoom_in, id=self.menu_id_zoom_in) self.Bind(wx.EVT_MENU, self.on_zoom_out, id=self.menu_id_zoom_out) + self.Bind(wx.EVT_MENU, self.on_zoom_orig, id=self.menu_id_zoom_orig) def capture_keys(self, event): @@ -846,6 +848,7 @@ menu.AppendSeparator() menu.Append(self.menu_id_zoom_in, "Zoom in") menu.Append(self.menu_id_zoom_out, "Zoom out") + menu.Append(self.menu_id_zoom_orig, "Original zoom") # Pop up the menu. self.PopupMenu(menu)