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.
This commit is contained in:
Lucas Thode
2010-10-28 09:45:13 -05:00
parent 92457a8006
commit 683a911149

View File

@@ -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):