def OnResetProfile(self, e):
		dlg = wx.MessageDialog(self, 'This will reset all profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost!\nDo you really want to reset?', 'Profile reset', wx.YES_NO | wx.ICON_QUESTION)
		result = dlg.ShowModal() == wx.ID_YES
		dlg.Destroy()
		if result:
			profile.resetProfile()
			self.updateProfileToControls()
Example #2
0
	def OnResetProfile(self, e):
		dlg = wx.MessageDialog(self, _("This will reset all profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost!\nDo you really want to reset?"), _("Profile reset"), wx.YES_NO | wx.ICON_QUESTION)
		result = dlg.ShowModal() == wx.ID_YES
		dlg.Destroy()
		if result:
			profile.resetProfile()
			self.updateProfileToAllControls()
			self.scene.notification.message("Profile settings have been reset to Default.")
Example #3
0
	def OnNormalSwitch(self, e):
		profile.putPreference('startMode', 'Normal')
		dlg = wx.MessageDialog(self, _("Copy the settings from quickprint to your full settings?\n(This will overwrite any full setting modifications you have)"), _("Profile copy"), wx.YES_NO | wx.ICON_QUESTION)
		result = dlg.ShowModal() == wx.ID_YES
		dlg.Destroy()
		if result:
			profile.resetProfile()
			for k, v in self.simpleSettingsPanel.getSettingOverrides().items():
				profile.putProfileSetting(k, v)
			self.updateProfileToAllControls()
		self.updateSliceMode()
Example #4
0
 def OnNormalSwitch(self, e):
     profile.putPreference('startMode', 'Normal')
     dlg = wx.MessageDialog(
         self,
         _("Copy the settings from quickprint to your full settings?\n(This will overwrite any full setting modifications you have)"
           ), _("Profile copy"), wx.YES_NO | wx.ICON_QUESTION)
     result = dlg.ShowModal() == wx.ID_YES
     dlg.Destroy()
     if result:
         profile.resetProfile()
         for k, v in self.simpleSettingsPanel.getSettingOverrides().items():
             profile.putProfileSetting(k, v)
         self.updateProfileToAllControls()
     self.updateSliceMode()
	def OnNormalSwitch(self, e):
		profile.putPreference('startMode', 'Normal')
		dlg = wx.MessageDialog(self, _("Copy the settings from quickprint to your full settings?\n(This will overwrite any full setting modifications you have)"), _("Profile copy"), wx.YES_NO | wx.ICON_QUESTION)
		result = dlg.ShowModal() == wx.ID_YES
		dlg.Destroy()
		if result:
			profile.resetProfile()
			for k, v in self.simpleSettingsPanel.getSettingOverrides().items():
				if profile.getMachineSetting('machine_type').startswith('ultimaker2+'):
					if k == 'nozzle_size':
						v = round(float(v) * 1.14, 2)
					if k == 'wall_thickness':
						v = round(float(v) * 1.14, 1)
				profile.putProfileSetting(k, v)
			self.updateProfileToAllControls()
		self.updateSliceMode()
Example #6
0
 def OnNormalSwitch(self, e):
     profile.putPreference('startMode', 'Normal')
     dlg = wx.MessageDialog(
         self,
         _("Copy the settings from quickprint to your full settings?\n(This will overwrite any full setting modifications you have)"
           ), _("Profile copy"), wx.YES_NO | wx.ICON_QUESTION)
     result = dlg.ShowModal() == wx.ID_YES
     dlg.Destroy()
     if result:
         profile.resetProfile()
         for k, v in self.simpleSettingsPanel.getSettingOverrides().items():
             if profile.getMachineSetting('machine_type').startswith(
                     'ultimaker2+'):
                 if k == 'nozzle_size':
                     v = round(float(v) * 1.14, 2)
                 if k == 'wall_thickness':
                     v = round(float(v) * 1.14, 1)
             profile.putProfileSetting(k, v)
         self.updateProfileToAllControls()
     self.updateSliceMode()