Changeset 52f3c98 in sasview
- Timestamp:
- Apr 19, 2011 10:56:22 AM (14 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:
- 48665ed
- Parents:
- fdc690f
- Location:
- guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
rf932c02 r52f3c98 784 784 for (menu, name) in self._plotting_plugin.populate_menu(self): 785 785 self._window_menu.AppendSubMenu(menu, name) 786 self._menubar.Append(self._window_menu, '& Window')787 786 self._menubar.Append(self._window_menu, '&Graph') 787 788 788 style = self.__gui_style & GUIFRAME.PLOTTING_ON 789 789 if style == GUIFRAME.PLOTTING_ON: … … 792 792 preferences_menu = wx.Menu() 793 793 hint = "All plot panels will floating" 794 preferences_menu.Append(id, '&Float ing Graphs', hint)794 preferences_menu.Append(id, '&Float', hint) 795 795 wx.EVT_MENU(self, id, self.set_plotpanel_floating) 796 796 id = wx.NewId() 797 797 hint = "All plot panels will displayed within the frame" 798 preferences_menu.Append(id, '& Fixed Graphs', hint)798 preferences_menu.Append(id, '&Dock', hint) 799 799 wx.EVT_MENU(self, id, self.set_plotpanel_fixed) 800 id = wx.NewId() 801 style1 = self.__gui_style & GUIFRAME.MULTIPLE_APPLICATIONS 802 if style1 == GUIFRAME.MULTIPLE_APPLICATIONS: 803 id = wx.NewId() 804 self._toolbar_menu = preferences_menu.Append(id,'&Show Toolbar', '') 805 wx.EVT_MENU(self, id, self._on_hide_toolbar) 800 806 801 self._window_menu.AppendSubMenu(preferences_menu,'&Preferences') 807 802 if self._window_menu.GetMenuItemCount() == 0: 808 pos = self._menubar.FindMenu(' Window')803 pos = self._menubar.FindMenu('Graph') 809 804 self._menubar.Remove(pos) 810 805 #wx.EVT_MENU(self, id, self.show_preferences_panel) … … 928 923 'Reset current panel') 929 924 wx.EVT_MENU(self, GUIFRAME_ID.RESET_ID, self.on_reset_panel) 925 926 self._edit_menu.AppendSeparator() 927 style1 = self.__gui_style & GUIFRAME.MULTIPLE_APPLICATIONS 928 if style1 == GUIFRAME.MULTIPLE_APPLICATIONS: 929 id = wx.NewId() 930 self._toolbar_menu = self._edit_menu.Append(id,'&Show Toolbar', '') 931 wx.EVT_MENU(self, id, self._on_hide_toolbar) 932 930 933 self._menubar.Append(self._edit_menu, '&Edit') 931 934 self.enable_edit_menu() … … 1046 1049 if show == 'on': 1047 1050 self._mgr.GetPane(self.panels[ID].window_name).Show() 1048 elif self.panels[ID].window_name.split(" ")[0] == "Residuals": 1051 elif self.panels[ID].window_caption.split(" ")[0] == \ 1052 "Residuals": 1049 1053 self._mgr.GetPane(self.panels[ID].window_name).Hide() 1050 1054 else: … … 1527 1531 list_data, _ = self._data_manager.get_by_id(data_id) 1528 1532 if self._current_perspective is not None: 1533 for uid, panel in self.plot_panels.iteritems() : 1534 #panel = self.plot_panels[uid] 1535 window = self._mgr.GetPane(panel.window_name) 1536 if not window.IsFloating(): 1537 self.hide_panel(uid) 1529 1538 self._current_perspective.set_data(list_data.values()) 1530 1539 self.on_close_welcome_panel() … … 1631 1640 #Set the SansView title 1632 1641 self._set_title_name(name) 1633 1642 1634 1643 1635 1644 def _set_title_name(self, name): … … 1687 1696 style = self.__gui_style & GUIFRAME.FIXED_PANEL 1688 1697 if style == GUIFRAME.FIXED_PANEL: 1698 self._mgr.GetPane(p.window_name).Dock() 1689 1699 self._mgr.GetPane(p.window_name).Floatable() 1690 1700 self._mgr.GetPane(p.window_name).Right() -
guiframe/local_perspectives/plotting/Plotter2D.py
r2ca51f44 r52f3c98 287 287 slicerpop.AppendSeparator() 288 288 id = wx.NewId() 289 slicerpop.Append(id, '& Detector Parameters')289 slicerpop.Append(id, '&2D Color Map') 290 290 wx.EVT_MENU(self, id, self._onEditDetector) 291 291 id = wx.NewId() -
guiframe/local_perspectives/plotting/plotting.py
r6d727ae r52f3c98 20 20 from sans.guiframe.dataFitting import Data2D 21 21 22 DEFAULT_MENU_ITEM_LABEL = "No plotavailable"22 DEFAULT_MENU_ITEM_LABEL = "No graph available" 23 23 DEFAULT_MENU_ITEM_ID = wx.NewId() 24 24 … … 64 64 "No graph available") 65 65 self.menu.FindItemByPosition(0).Enable(False) 66 return [(self.menu, " Graph")]66 return [(self.menu, "Show")] 67 67 68 68 def get_panels(self, parent): … … 216 216 if self.menu.GetMenuItemCount() == 0: 217 217 self.menu.Append(DEFAULT_MENU_ITEM_ID, DEFAULT_MENU_ITEM_LABEL, 218 "No plotavailable")218 "No graph available") 219 219 self.menu.FindItemByPosition(0).Enable(False) 220 220
Note: See TracChangeset
for help on using the changeset viewer.