First working prototype of toggleable projected fits. Creates a new association object that stores projection-specific information. GUI hasn't been touched (need to show state), and there are a lot of variables that I need to rename.

This commit is contained in:
blitzmann
2015-07-06 23:39:20 -04:00
parent 5e56107582
commit 9ef182aa99
4 changed files with 100 additions and 31 deletions

View File

@@ -363,6 +363,9 @@ class Fit(object):
thing.state = self.__getProposedState(thing, click)
if not thing.canHaveState(thing.state, fit):
thing.state = State.OFFLINE
elif isinstance(thing, eos.types.Fit):
print "toggle fit"
thing.projectionInfo.amount = not thing.projectionInfo.amount
eos.db.commit()
self.recalc(fit)