Changeset f932c02 in sasview
- Timestamp:
- Apr 14, 2011 9:50:37 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:
- 0cf97c5
- Parents:
- 56fb77f
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r0a2fdca rf932c02 642 642 self._menubar = wx.MenuBar() 643 643 self._add_menu_file() 644 self._add_menu_edit() 644 645 self._add_menu_data() 645 646 self._add_menu_application() 646 self._add_menu_edit()647 647 648 self._add_menu_tool() 648 649 self._add_current_plugin_menu() … … 695 696 wx.EVT_MENU(self, id, tool[2]) 696 697 if self._tool_menu is not None: 697 self._menubar.Append(self._tool_menu, '&Tool s')698 self._menubar.Append(self._tool_menu, '&Tool') 698 699 699 700 def _add_current_plugin_menu(self): … … 784 785 self._window_menu.AppendSubMenu(menu, name) 785 786 self._menubar.Append(self._window_menu, '&Window') 786 787 style = self.__gui_style & GUIFRAME.MANAGER_ON788 id = wx.NewId()789 self._data_panel_menu = self._window_menu.Append(id,790 '&Data Explorer ON', '')791 wx.EVT_MENU(self, id, self.show_data_panel)792 if style == GUIFRAME.MANAGER_ON:793 self._data_panel_menu.SetText('Data Explorer OFF')794 else:795 self._data_panel_menu.SetText('Data Explorer ON')796 787 797 788 style = self.__gui_style & GUIFRAME.PLOTTING_ON … … 800 791 id = wx.NewId() 801 792 preferences_menu = wx.Menu() 802 hint = " Plot panels will floating"803 preferences_menu.Append(id, '&Floating Plot Panel', hint)793 hint = "All plot panels will floating" 794 preferences_menu.Append(id, '&Floating Graphs', hint) 804 795 wx.EVT_MENU(self, id, self.set_plotpanel_floating) 805 796 id = wx.NewId() 806 hint = " Plot panels will displayed within the frame"807 preferences_menu.Append(id, '&Fixed Plot Panel', hint)797 hint = "All plot panels will displayed within the frame" 798 preferences_menu.Append(id, '&Fixed Graphs', hint) 808 799 wx.EVT_MENU(self, id, self.set_plotpanel_fixed) 809 800 id = wx.NewId() … … 868 859 if (not plug_data_count or not plug_no_data_count): 869 860 self._applications_menu.RemoveItem(separator) 870 self._menubar.Append(self._applications_menu, '&Application s')861 self._menubar.Append(self._applications_menu, '&Application') 871 862 self._check_applications_menu() 872 863 … … 955 946 self._menubar.Append(menu, name) 956 947 948 style = self.__gui_style & GUIFRAME.MANAGER_ON 949 if self._data_plugin != None: 950 _data_menu = self._data_plugin._data_menu 951 _data_menu.AppendSeparator() 952 id = wx.NewId() 953 self._data_panel_menu = _data_menu.Append(id, 954 '&Data Explorer ON', '') 955 wx.EVT_MENU(self, id, self.show_data_panel) 956 if style == GUIFRAME.MANAGER_ON: 957 self._data_panel_menu.SetText('Data Explorer OFF') 958 else: 959 self._data_panel_menu.SetText('Data Explorer ON') 960 957 961 def _on_hide_toolbar(self, event=None): 958 962 """ -
guiframe/gui_toolbar.py
ra1a252e rf932c02 59 59 drag_bmp = drag_im.ConvertToBitmap() 60 60 self.AddSeparator() 61 save_im = GUIFRAME_ICON.SAVE_ICON 62 save_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) 63 save_bmp = save_im.ConvertToBitmap() 64 disable_save_bmp = wx.NullBitmap 65 self.AddLabelTool(GUIFRAME_ID.SAVE_ID, 'Save', save_bmp, 66 disable_save_bmp, button_type,'Save') 67 self.AddSeparator() 61 68 report_im = GUIFRAME_ICON.REPORT_ICON 62 69 report_im.Rescale(tbar_size[0], tbar_size[1], wx.IMAGE_QUALITY_HIGH) … … 141 148 self.parent.Bind(wx.EVT_TOOL, self.parent.on_reset_panel, 142 149 id=GUIFRAME_ID.RESET_ID) 150 self.parent.Bind(wx.EVT_TOOL, self.parent.on_save_panel, 151 id=GUIFRAME_ID.SAVE_ID) 143 152 self.parent.Bind(wx.EVT_TOOL, self.parent.on_preview_panel, 144 153 id=GUIFRAME_ID.PREVIEW_ID) … … 161 170 self.EnableTool(GUIFRAME_ID.PREVIEW_ID, False) 162 171 self.EnableTool(GUIFRAME_ID.RESET_ID, False) 172 self.EnableTool(GUIFRAME_ID.SAVE_ID, False) 163 173 self._bookmark_bt.Disable() 164 174 … … 169 179 self.EnableTool(GUIFRAME_ID.PREVIEW_ID, panel.get_preview_flag()) 170 180 self.EnableTool(GUIFRAME_ID.RESET_ID, panel.get_reset_flag()) 181 self.EnableTool(GUIFRAME_ID.SAVE_ID, panel.get_save_flag()) 171 182 self._bookmark_bt.Enable(panel.get_bookmark_flag()) 172 183 self.Realize() -
invariantview/perspectives/invariant/invariant_panel.py
rbe738e3 rf932c02 133 133 #Reset the list of states 134 134 self.state.data = copy.deepcopy(data) 135 self._set_save_flag(True) 135 136 self._set_preview_flag(False) 136 137 self._reset_state_list() -
sansview/perspectives/fitting/fitpage.py
raad74b3 rf932c02 1019 1019 if self.model != None: 1020 1020 self._set_bookmark_flag(True) 1021 self._set_save_flag(True)1021 #self._set_save_flag(True) 1022 1022 # Reset smearer, model and data 1023 1023 self._set_smear(self.data) -
sansview/perspectives/fitting/fitting.py
r1b1bbf9 rf932c02 137 137 138 138 id1 = wx.NewId() 139 simul_help = "Add new fit pa ge"140 self.menu1.Append(id1, '& Create NewPage',simul_help)139 simul_help = "Add new fit panel" 140 self.menu1.Append(id1, '&New Fit Page',simul_help) 141 141 wx.EVT_MENU(owner, id1, self.on_add_new_page) 142 142
Note: See TracChangeset
for help on using the changeset viewer.