Add menu which allows to add target profiles to graph

This commit is contained in:
DarkPhoenix
2019-07-31 16:23:11 +03:00
parent 1f5fe47580
commit d571191ec2
5 changed files with 65 additions and 78 deletions

View File

@@ -226,7 +226,7 @@ class FitList(BaseList):
@property
def defaultTTText(self):
return 'Drag a fit into this list to graph it'
return 'Drag a fit into this list to graph it'
class TargetList(BaseList):
@@ -294,4 +294,14 @@ class TargetList(BaseList):
@property
def defaultTTText(self):
return 'Drag a fit into this list to have your fits graphed against it'
return 'Drag a fit into this list to have your fits graphed against it'
# Context menu handlers
def addProfile(self, profile):
if profile is None:
return
if profile in self.profiles:
return
self.profiles.append(profile)
self.updateView()
self.graphFrame.draw()