- Timestamp:
- Sep 15, 2016 8:33:57 AM (8 years ago)
- Branches:
- 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
- Children:
- 0d0aa40
- Parents:
- c313c88
- git-author:
- Lewis O'Driscoll <lewis.o'driscoll@…> (08/12/16 06:37:22)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (09/15/16 08:33:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py
r0663a957 rbc9efde 555 555 self._slicerpop.set_graph(self.graph) 556 556 ids = iter(self._menu_ids) 557 if not self.graph.selected_plottable in self.plots: 558 559 560 561 562 563 564 565 566 567 568 569 570 571 557 558 # Various plot options 559 wx_id = ids.next() 560 self._slicerpop.Append(wx_id, '&Save Image', 'Save image as PNG') 561 wx.EVT_MENU(self, wx_id, self.onSaveImage) 562 wx_id = ids.next() 563 self._slicerpop.Append(wx_id, '&Print Image', 'Print image ') 564 wx.EVT_MENU(self, wx_id, self.onPrint) 565 566 wx_id = ids.next() 567 self._slicerpop.Append(wx_id, '&Copy to Clipboard', 568 'Copy to the clipboard') 569 wx.EVT_MENU(self, wx_id, self.OnCopyFigureMenu) 570 571 self._slicerpop.AppendSeparator() 572 572 573 573 for plot in self.plots.values(): … … 641 641 # Option to hide 642 642 # TODO: implement functionality to hide a plottable (legend click) 643 if not self.graph.selected_plottable in self.plots: 643 644 self._slicerpop.AppendSeparator() 645 loc_menu = wx.Menu() 646 for label in self._loc_labels: 647 wx_id = ids.next() 648 loc_menu.Append(wx_id, str(label), str(label)) 649 wx.EVT_MENU(self, wx_id, self.onChangeLegendLoc) 650 651 wx_id = ids.next() 652 self._slicerpop.Append(wx_id, '&Modify Graph Appearance', 653 'Modify graph appearance') 654 wx.EVT_MENU(self, wx_id, self.modifyGraphAppearance) 655 self._slicerpop.AppendSeparator() 656 657 658 if self.position != None: 659 wx_id = ids.next() 660 self._slicerpop.Append(wx_id, '&Add Text') 661 wx.EVT_MENU(self, wx_id, self._on_addtext) 662 wx_id = ids.next() 663 self._slicerpop.Append(wx_id, '&Remove Text') 664 wx.EVT_MENU(self, wx_id, self._on_removetext) 644 665 self._slicerpop.AppendSeparator() 645 loc_menu = wx.Menu() 646 for label in self._loc_labels: 647 wx_id = ids.next() 648 loc_menu.Append(wx_id, str(label), str(label)) 649 wx.EVT_MENU(self, wx_id, self.onChangeLegendLoc) 650 651 wx_id = ids.next() 652 self._slicerpop.Append(wx_id, '&Modify Graph Appearance', 653 'Modify graph appearance') 654 wx.EVT_MENU(self, wx_id, self.modifyGraphAppearance) 655 self._slicerpop.AppendSeparator() 656 657 658 if self.position != None: 659 wx_id = ids.next() 660 self._slicerpop.Append(wx_id, '&Add Text') 661 wx.EVT_MENU(self, wx_id, self._on_addtext) 662 wx_id = ids.next() 663 self._slicerpop.Append(wx_id, '&Remove Text') 664 wx.EVT_MENU(self, wx_id, self._on_removetext) 665 self._slicerpop.AppendSeparator() 666 wx_id = ids.next() 667 self._slicerpop.Append(wx_id, '&Change Scale') 668 wx.EVT_MENU(self, wx_id, self._onProperties) 666 wx_id = ids.next() 667 self._slicerpop.Append(wx_id, '&Change Scale') 668 wx.EVT_MENU(self, wx_id, self._onProperties) 669 self._slicerpop.AppendSeparator() 670 wx_id = ids.next() 671 self._slicerpop.Append(wx_id, '&Reset Graph Range') 672 wx.EVT_MENU(self, wx_id, self.onResetGraph) 673 674 if self.parent.ClassName.count('wxDialog') == 0: 669 675 self._slicerpop.AppendSeparator() 670 676 wx_id = ids.next() 671 self._slicerpop.Append(wx_id, '&Reset Graph Range') 672 wx.EVT_MENU(self, wx_id, self.onResetGraph) 673 674 if self.parent.ClassName.count('wxDialog') == 0: 675 self._slicerpop.AppendSeparator() 676 wx_id = ids.next() 677 self._slicerpop.Append(wx_id, '&Window Title') 678 wx.EVT_MENU(self, wx_id, self.onChangeCaption) 677 self._slicerpop.Append(wx_id, '&Window Title') 678 wx.EVT_MENU(self, wx_id, self.onChangeCaption) 679 679 try: 680 680 pos_evt = event.GetPosition()
Note: See TracChangeset
for help on using the changeset viewer.