Added UI for new type of copying data about fit to the clipboard

This commit is contained in:
Gochim
2019-10-26 18:36:38 +03:00
parent 76bdefcda6
commit 10dfdc3627
3 changed files with 32 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ class CopySelectDialog(wx.Dialog):
("ESI", (CopySelectDialog.copyFormatEsi, None)),
("DNA", (CopySelectDialog.copyFormatDna, DNA_OPTIONS)),
("EFS", (CopySelectDialog.copyFormatEfs, None)),
("Fit Stats", (CopySelectDialog.copyFormatFitStats, None)),
("Fit stats", (CopySelectDialog.copyFormatFitStats, None)),
# ("XML", (CopySelectDialog.copyFormatXml, None)),
))
@@ -120,7 +120,8 @@ class CopySelectDialog(wx.Dialog):
self.Center()
def Validate(self):
# Since this dialog is shown through as ShowModal(), we hook into the Validate function to veto the closing of the dialog until we're ready.
# Since this dialog is shown through as ShowModal(),
# we hook into the Validate function to veto the closing of the dialog until we're ready.
# This always returns False, and when we're ready will EndModal()
selected = self.GetSelected()
options = self.GetOptions()
@@ -192,5 +193,8 @@ class CopySelectDialog(wx.Dialog):
"""
Puts fit stats in textual format into the clipboard
"""
# noinspection PyUnusedLocal
def exportFitStats(self, options, callback):
pass
fit = getFit(self.mainFrame.getActiveFit())
Port.exportFitStats(fit, callback)