Exemplo n.º 1
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.inset.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Inset', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Inset'
     )
     self.addCustomCodeForTemperatureReading = settings.BooleanSetting(
     ).getFromValue('Add Custom Code for Temperature Reading', self, True)
     self.bridgeWidthMultiplier = settings.FloatSpin().getFromValue(
         0.8, 'Bridge Width Multiplier (ratio):', self, 1.2, 1.0)
     self.loopOrderChoice = settings.MenuButtonDisplay().getFromName(
         'Loop Order Choice:', self)
     self.loopOrderAscendingArea = settings.MenuRadio(
     ).getFromMenuButtonDisplay(self.loopOrderChoice, 'Ascending Area',
                                self, True)
     self.loopOrderDescendingArea = settings.MenuRadio(
     ).getFromMenuButtonDisplay(self.loopOrderChoice, 'Descending Area',
                                self, False)
     self.overlapRemovalWidthOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(0.3,
                    'Overlap Removal Width over Perimeter Width (ratio):',
                    self, 0.9, 0.6)
     self.turnExtruderHeaterOffAtShutDown = settings.BooleanSetting(
     ).getFromValue('Turn Extruder Heater Off at Shut Down', self, True)
     self.executeTitle = 'Inset'
Exemplo n.º 2
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository('skeinforge.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Skeinforge', self, '')
     versionText = gcodec.getFileText(gcodec.getVersionFileName())
     self.createdOnLabel = settings.LabelDisplay().getFromName(
         'Created On: ' + versionText, self)
     self.profileType = settings.MenuButtonDisplay().getFromName(
         'Profile Type: ', self)
     self.profileSelection = settings.MenuButtonDisplay().getFromName(
         'Profile Selection: ', self)
     addToProfileMenu(self.profileSelection, self.profileType, self)
     settings.LabelDisplay().getFromName('', self)
     self.skeinforgeLabel = settings.LabelDisplay().getFromName(
         'Open Settings: ', self)
     importantFileNames = ['craft', 'profile']
     settings.getDisplayToolButtonsRepository(
         gcodec.getAbsoluteFolderPath(__file__, 'skeinforge_tools'),
         importantFileNames, getPluginFileNames(), self)
     self.executeTitle = 'Skeinforge'
Exemplo n.º 3
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.cool.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Cool', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Cool' )
		self.activateCool = settings.BooleanSetting().getFromValue( 'Activate Cool', self, True )
		self.coolType = settings.MenuButtonDisplay().getFromName( 'Cool Type:', self )
		self.orbit = settings.MenuRadio().getFromMenuButtonDisplay( self.coolType, 'Orbit', self, False )
		self.slowDown = settings.MenuRadio().getFromMenuButtonDisplay( self.coolType, 'Slow Down', self, True )
		self.maximumCool = settings.FloatSpin().getFromValue( 0.0, 'Maximum Cool (Celcius):', self, 10.0, 2.0 )
		self.minimumLayerTime = settings.FloatSpin().getFromValue( 0.0, 'Minimum Layer Time (seconds):', self, 120.0, 60.0 )
		self.minimumOrbitalRadius = settings.FloatSpin().getFromValue( 0.0, 'Minimum Orbital Radius (millimeters):', self, 20.0, 10.0 )
		self.turnFanOnAtBeginning = settings.BooleanSetting().getFromValue( 'Turn Fan On at Beginning', self, True )
		self.turnFanOffAtEnding = settings.BooleanSetting().getFromValue( 'Turn Fan Off at Ending', self, True )
		self.executeTitle = 'Cool'
Exemplo n.º 4
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository(
         'skeinforge_tools.analyze_plugins.skeinview.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         [('Gcode text files', '*.gcode')], 'Open File to Skeinview', self,
         '')
     #		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Skeinview' )
     self.activateSkeinview = settings.BooleanSetting().getFromValue(
         'Activate Skeinview', self, True)
     self.addAnimation()
     self.drawArrows = settings.BooleanSetting().getFromValue(
         'Draw Arrows', self, True)
     self.goAroundExtruderOffTravel = settings.BooleanSetting(
     ).getFromValue('Go Around Extruder Off Travel', self, False)
     self.layer = settings.IntSpinNotOnMenu().getSingleIncrementFromValue(
         0, 'Layer (index):', self, 912345678, 0)
     self.layerExtraSpan = settings.IntSpinUpdate(
     ).getSingleIncrementFromValue(-3, 'Layer Extra Span (integer):', self,
                                   3, 0)
     self.line = settings.IntSpinNotOnMenu().getSingleIncrementFromValue(
         0, 'Line (index):', self, 912345678, 0)
     self.mouseMode = settings.MenuButtonDisplay().getFromName(
         'Mouse Mode:', self)
     self.displayLine = settings.MenuRadio().getFromMenuButtonDisplay(
         self.mouseMode, 'Display Line', self, True)
     self.viewMove = settings.MenuRadio().getFromMenuButtonDisplay(
         self.mouseMode, 'View Move', self, False)
     self.numericPointer = settings.BooleanSetting().getFromValue(
         'Numeric Pointer', self, True)
     self.addScaleScreenSlide()
     self.widthOfExtrusionThread = settings.IntSpinUpdate(
     ).getSingleIncrementFromValue(0, 'Width of Extrusion Thread (pixels):',
                                   self, 5, 2)
     self.widthOfSelectionThread = settings.IntSpinUpdate(
     ).getSingleIncrementFromValue(0, 'Width of Selection Thread (pixels):',
                                   self, 10, 6)
     self.widthOfTravelThread = settings.IntSpinUpdate(
     ).getSingleIncrementFromValue(0, 'Width of Travel Thread (pixels):',
                                   self, 5, 1)
     self.executeTitle = 'Skeinview'
Exemplo n.º 5
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository(
         'skeinforge_tools.analyze_plugins.behold.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         [('Gcode text files', '*.gcode')], 'Open File to Behold', self, '')
     #		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Behold' )
     self.activateBehold = settings.BooleanSetting().getFromValue(
         'Activate Behold', self, True)
     self.addAnimation()
     self.axisRulings = settings.BooleanSetting().getFromValue(
         'Axis Rulings', self, True)
     self.bandHeight = settings.IntSpinUpdate().getFromValue(
         0, 'Band Height (layers):', self, 10, 5)
     self.bottomBandBrightness = settings.FloatSpinUpdate().getFromValue(
         0.0, 'Bottom Band Brightness (ratio):', self, 1.0, 0.7)
     self.bottomLayerBrightness = settings.FloatSpinUpdate().getFromValue(
         0.0, 'Bottom Layer Brightness (ratio):', self, 1.0, 1.0)
     self.brightBandStart = settings.MenuButtonDisplay().getFromName(
         'Bright Band Start:', self)
     self.fromTheBottom = settings.MenuRadio().getFromMenuButtonDisplay(
         self.brightBandStart, 'From the Bottom', self, False)
     self.fromTheTop = settings.MenuRadio().getFromMenuButtonDisplay(
         self.brightBandStart, 'From the Top', self, True)
     self.drawArrows = settings.BooleanSetting().getFromValue(
         'Draw Arrows', self, False)
     self.goAroundExtruderOffTravel = settings.BooleanSetting(
     ).getFromValue('Go Around Extruder Off Travel', self, False)
     self.layer = settings.IntSpinNotOnMenu().getSingleIncrementFromValue(
         0, 'Layer (index):', self, 912345678, 0)
     self.layerExtraSpan = settings.IntSpinUpdate(
     ).getSingleIncrementFromValue(-912345678,
                                   'Layer Extra Span (integer):', self,
                                   912345678, 912345678)
     self.line = settings.IntSpinNotOnMenu().getSingleIncrementFromValue(
         0, 'Line (index):', self, 912345678, 0)
     self.mouseMode = settings.MenuButtonDisplay().getFromName(
         'Mouse Mode:', self)
     self.displayLine = settings.MenuRadio().getFromMenuButtonDisplay(
         self.mouseMode, 'Display Line', self, True)
     self.viewMove = settings.MenuRadio().getFromMenuButtonDisplay(
         self.mouseMode, 'View Move', self, False)
     self.viewRotate = settings.MenuRadio().getFromMenuButtonDisplay(
         self.mouseMode, 'View Rotate', self, False)
     self.numberOfFillBottomLayers = settings.IntSpinUpdate().getFromValue(
         0, 'Number of Fill Bottom Layers (integer):', self, 5, 1)
     self.numberOfFillTopLayers = settings.IntSpinUpdate().getFromValue(
         0, 'Number of Fill Top Layers (integer):', self, 5, 1)
     self.addScaleScreenSlide()
     self.viewpointLatitude = settings.FloatSpin().getFromValue(
         0.0, 'Viewpoint Latitude (degrees):', self, 180.0, 15.0)
     self.viewpointLongitude = settings.FloatSpin().getFromValue(
         0.0, 'Viewpoint Longitude (degrees):', self, 360.0, 210.0)
     self.widthOfAxisNegativeSide = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Axis Negative Side (pixels):', self, 10, 2)
     self.widthOfAxisPositiveSide = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Axis Positive Side (pixels):', self, 10, 6)
     self.widthOfFillBottomThread = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Fill Bottom Thread (pixels):', self, 10, 2)
     self.widthOfFillTopThread = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Fill Top Thread (pixels):', self, 10, 2)
     self.widthOfInfillThread = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Infill Thread (pixels):', self, 10, 1)
     self.widthOfLoopThread = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Loop Thread (pixels):', self, 10, 2)
     self.widthOfPerimeterInsideThread = settings.IntSpinUpdate(
     ).getFromValue(0, 'Width of Perimeter Inside Thread (pixels):', self,
                    10, 8)
     self.widthOfPerimeterOutsideThread = settings.IntSpinUpdate(
     ).getFromValue(0, 'Width of Perimeter Outside Thread (pixels):', self,
                    10, 8)
     self.widthOfRaftThread = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Raft Thread (pixels):', self, 10, 1)
     self.widthOfSelectionThread = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Selection Thread (pixels):', self, 10, 6)
     self.widthOfTravelThread = settings.IntSpinUpdate().getFromValue(
         0, 'Width of Travel Thread (pixels):', self, 10, 0)
     self.executeTitle = 'Behold'