From 683a9111494b0c4780ada4edd98989e39dcb782c Mon Sep 17 00:00:00 2001 From: Lucas Thode Date: Thu, 28 Oct 2010 09:45:13 -0500 Subject: [PATCH] Finished export-to-clipboard dialog support. (Well, almost: it defaults to EFT at the moment, which is not quite right. I strongly suspect that the default should be configurable, although further discussion is needed on this matter. --- gui/mainFrame.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gui/mainFrame.py b/gui/mainFrame.py index 35cdd6b2a..5818de7fd 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -255,11 +255,17 @@ class MainFrame(wx.Frame): pass def exportToClipboard(self, event): - sFit = service.Fit.getInstance() dlg = CopySelectDialog(self) dlg.ShowModal() selected = dlg.GetSelected() - print selected + if selected == CopySelectDialog.copyFormatEft: + self.clipboardEft() + elif selected == CopySelectDialog.copyFormatXml: + self.clipboardXml() + elif selected == CopySelectDialog.copyFormatDna: + self.clipboardDna() + else: + print "Invalid clipboard export format, we should never get here!" dlg.Destroy() def toClipboard(self, text):