Add checkbox to UI which will control if RAAR/RASB will reload or not

This commit is contained in:
DarkPhoenix
2019-08-19 01:28:12 +03:00
parent 9b15f1942d
commit d0a56e3ee8
5 changed files with 40 additions and 16 deletions

View File

@@ -18,6 +18,6 @@
# =============================================================================
from .cache import FitDataCache
from .defs import XDef, YDef, VectorDef, Input
from .defs import XDef, YDef, VectorDef, Input, InputCheckbox
from .getter import PointGetter, SmoothPointGetter
from .graph import FitGraph

View File

@@ -22,6 +22,7 @@ from collections import namedtuple
VectorDef = namedtuple('VectorDef', ('lengthHandle', 'lengthUnit', 'angleHandle', 'angleUnit', 'label'))
InputCheckbox = namedtuple('InputCheckbox', ('handle', 'label', 'defaultValue'))
class YDef:

View File

@@ -79,17 +79,17 @@ class FitGraph(metaclass=ABCMeta):
def inputMap(self):
return OrderedDict(((i.handle, i.unit), i) for i in self.inputs)
@property
def srcExtraCols(self):
return ()
checkboxes = ()
@property
def tgtExtraCols(self):
return ()
def checkboxesMap(self):
return OrderedDict((ec.handle, ec) for ec in self.checkboxes)
hasTargets = False
srcVectorDef = None
tgtVectorDef = None
hasTargets = False
srcExtraCols = ()
tgtExtraCols = ()
usesHpEffectivity = False
def getPlotPoints(self, mainInput, miscInputs, xSpec, ySpec, src, tgt=None):