def onReverseFlow ( self, check ): # print ">> MainWindow: onReverseFlow = %d" % check self.workArea.reverseFlow = bool( check ) app_settings.beginGroup ( 'WorkArea' ) app_settings.setValue ( 'reverse_flow', bool( check ) ) app_settings.endGroup ()
def onShowGrid(self, check): # self.workArea.drawGrid = bool(check) app_settings.beginGroup('WorkArea') app_settings.setValue('grid_enabled', bool(check)) app_settings.endGroup() self.workArea.resetCachedContent()
def onSnapGrid ( self, check ): # print ">> MainWindow: onSnapGrid = %d" % check self.workArea.gridSnap = bool( check ) app_settings.beginGroup ( 'WorkArea' ) app_settings.setValue ( 'grid_snap', bool( check ) ) app_settings.endGroup ()
def onShowGrid ( self, check ) : # self.workArea.drawGrid = bool ( check ) app_settings.beginGroup ( 'WorkArea' ) app_settings.setValue ( 'grid_enabled', bool ( check ) ) app_settings.endGroup () self.workArea.resetCachedContent ()
def onStraightLinks ( self, check ): # print ">> MainWindow: onStraightLinks = %d" % check self.workArea.straightLinks = bool( check ) app_settings.beginGroup ( 'WorkArea' ) app_settings.setValue ( 'straight_links', bool( check ) ) app_settings.endGroup () self.workArea.resetCachedContent ()
def onStraightLinks(self, check): # self.workArea.straightLinks = bool(check) app_settings.beginGroup('WorkArea') app_settings.setValue('straight_links', bool(check)) app_settings.endGroup() self.workArea.resetCachedContent() self.workArea.adjustLinks()
def onStraightLinks ( self, check ) : # self.workArea.straightLinks = bool ( check ) app_settings.beginGroup ( 'WorkArea' ) app_settings.setValue ( 'straight_links', bool ( check ) ) app_settings.endGroup () self.workArea.resetCachedContent () self.workArea.adjustLinks ()
def onReverseFlow(self, check): # self.workArea.reverseFlow = bool(check) app_settings.beginGroup('WorkArea') app_settings.setValue('reverse_flow', bool(check)) app_settings.endGroup()
def onSnapGrid(self, check): # self.workArea.gridSnap = bool(check) app_settings.beginGroup('WorkArea') app_settings.setValue('grid_snap', bool(check)) app_settings.endGroup()
def onReverseFlow ( self, check ) : # self.workArea.reverseFlow = bool ( check ) app_settings.beginGroup ( 'WorkArea' ) app_settings.setValue ( 'reverse_flow', bool ( check ) ) app_settings.endGroup ()
def onSnapGrid ( self, check ) : # self.workArea.gridSnap = bool ( check ) app_settings.beginGroup ( 'WorkArea' ) app_settings.setValue ( 'grid_snap', bool ( check ) ) app_settings.endGroup ()