mailr16707 - in /branches/uf_redesign/gui: menu.py relax_gui.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 06, 2012 - 16:41:
Author: bugman
Date: Wed Jun  6 16:41:21 2012
New Revision: 16707

URL: http://svn.gna.org/viewcvs/relax?rev=16707&view=rev
Log:
Created a dummy menu entry called 'File->Export for BMRB deposition'.

The back end code, which will be an export wizard, does not exist yet.


Modified:
    branches/uf_redesign/gui/menu.py
    branches/uf_redesign/gui/relax_gui.py

Modified: branches/uf_redesign/gui/menu.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/menu.py?rev=16707&r1=16706&r2=16707&view=diff
==============================================================================
--- branches/uf_redesign/gui/menu.py (original)
+++ branches/uf_redesign/gui/menu.py Wed Jun  6 16:41:21 2012
@@ -51,6 +51,7 @@
     MENU_FILE_OPEN = wx.NewId()
     MENU_FILE_SAVE = wx.NewId()
     MENU_FILE_SAVE_AS = wx.NewId()
+    MENU_FILE_EXPORT_BMRB = wx.NewId()
     MENU_FILE_EXIT = wx.NewId()
     MENU_VIEW_CONTROLLER = wx.NewId()
     MENU_VIEW_SPIN_VIEW = wx.NewId()
@@ -90,6 +91,8 @@
         menu.AppendItem(build_menu_item(menu, id=self.MENU_FILE_SAVE, 
text="S&ave relax state\tCtrl+S", icon=paths.icon_16x16.document_save))
         menu.AppendItem(build_menu_item(menu, id=self.MENU_FILE_SAVE_AS, 
text="Save as...\tCtrl+Shift+S", icon=paths.icon_16x16.document_save_as))
         menu.AppendSeparator()
+        menu.AppendItem(build_menu_item(menu, id=self.MENU_FILE_EXPORT_BMRB, 
text="Export for BMRB deposition", icon=fetch_icon('relax.bmrb')))
+        menu.AppendSeparator()
         menu.AppendItem(build_menu_item(menu, id=self.MENU_FILE_EXIT, 
text="E&xit\tCtrl+Q", icon=paths.icon_16x16.exit))
         self.menubar.Append(menu, "&File")
 
@@ -100,6 +103,7 @@
         self.gui.Bind(wx.EVT_MENU, self.gui.state_load, 
id=self.MENU_FILE_OPEN)
         self.gui.Bind(wx.EVT_MENU, self.gui.action_state_save, 
id=self.MENU_FILE_SAVE)
         self.gui.Bind(wx.EVT_MENU, self.gui.action_state_save_as, 
id=self.MENU_FILE_SAVE_AS)
+        self.gui.Bind(wx.EVT_MENU, self.gui.action_export_bmrb, 
id=self.MENU_FILE_EXPORT_BMRB)
         self.gui.Bind(wx.EVT_MENU, self.gui.exit_gui, id=self.MENU_FILE_EXIT)
 
         # The 'View' menu entries.

Modified: branches/uf_redesign/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/relax_gui.py?rev=16707&r1=16706&r2=16707&view=diff
==============================================================================
--- branches/uf_redesign/gui/relax_gui.py (original)
+++ branches/uf_redesign/gui/relax_gui.py Wed Jun  6 16:41:21 2012
@@ -205,6 +205,14 @@
             dialog.Show()
 
 
+    def action_export_bmrb(self, event=None):
+        """Export the contents of the current data pipe for BMRB deposition.
+
+        @keyword event: The wx event.
+        @type event:    wx event
+        """
+
+
     def action_state_save(self, event=None):
         """Save the program state.
 




Related Messages


Powered by MHonArc, Updated Wed Jun 06 17:20:01 2012