Exemple #1
0
 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 ()
Exemple #2
0
 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()
Exemple #3
0
 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 ()
Exemple #4
0
	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 ()
Exemple #5
0
 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 () 
Exemple #6
0
 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()
Exemple #7
0
 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 ()
Exemple #8
0
 def onReverseFlow(self, check):
     #
     self.workArea.reverseFlow = bool(check)
     app_settings.beginGroup('WorkArea')
     app_settings.setValue('reverse_flow', bool(check))
     app_settings.endGroup()
Exemple #9
0
 def onSnapGrid(self, check):
     #
     self.workArea.gridSnap = bool(check)
     app_settings.beginGroup('WorkArea')
     app_settings.setValue('grid_snap', bool(check))
     app_settings.endGroup()
Exemple #10
0
 def onReverseFlow ( self, check ) :
   #
   self.workArea.reverseFlow = bool ( check )
   app_settings.beginGroup ( 'WorkArea' )
   app_settings.setValue ( 'reverse_flow', bool ( check ) )
   app_settings.endGroup ()
Exemple #11
0
 def onSnapGrid ( self, check ) :
   #
   self.workArea.gridSnap = bool ( check )
   app_settings.beginGroup ( 'WorkArea' )
   app_settings.setValue ( 'grid_snap', bool ( check ) )
   app_settings.endGroup ()