self.toolbar.AddLabelTool(6," "+_("Fit to plate"),wx.Image(imagefile('fit.png'),wx.BITMAP_TYPE_PNG).ConvertToBitmap(),shortHelp=_("Fit to plate [F]"),longHelp='')
confirmation=wx.MessageDialog(None,_("Are you sure you want to reset the setting to the default value: {0!r} ?").format(self.default),_("Confirm set default"),wx.ICON_EXCLAMATION|wx.YES_NO|wx.NO_DEFAULT)
confirmation=wx.MessageDialog(None,_("Are you sure you want to reset the setting to the default value: {0!r} ?").format(self.default),_("Confirm set default"),wx.ICON_EXCLAMATION|wx.YES_NO|wx.NO_DEFAULT)
ifconfirmation.ShowModal()==wx.ID_YES:
self._set_value(self.default)
else:
...
...
@@ -117,7 +121,7 @@ class Setting(object):
defupdate(self):
raiseNotImplementedError
def__str__(self):
returnself.name
...
...
@@ -125,7 +129,7 @@ class Setting(object):
returnself.name
classHiddenSetting(Setting):
hidden=True
def_set_value(self,value):
...
...
@@ -133,7 +137,7 @@ class HiddenSetting(Setting):
value=property(Setting._get_value,_set_value)
classwxSetting(Setting):
widget=None
def_set_value(self,value):
...
...
@@ -153,7 +157,7 @@ class StringSetting(wxSetting):
self.log(_("Creates a gcode file from an stl model using the slicer (with tab-completion)"))
...
...
@@ -1443,8 +1447,8 @@ class pronsole(cmd.Cmd):
self.log(_("Turns off everything on the printer"))
defadd_cmdline_arguments(self,parser):
parser.add_argument('-c','--conf','--config',help=_("load this file on startup instead of .pronsolerc ; you may chain config files, if so settings auto-save will use the last specified file"),action="append",default=[])
parser.add_argument('-e','--execute',help=_("executes command after configuration/.pronsolerc is loaded ; macros/settings from these commands are not autosaved"),action="append",default=[])
parser.add_argument('-c','--conf','--config',help=_("load this file on startup instead of .pronsolerc ; you may chain config files, if so settings auto-save will use the last specified file"),action="append",default=[])
parser.add_argument('-e','--execute',help=_("executes command after configuration/.pronsolerc is loaded ; macros/settings from these commands are not autosaved"),action="append",default=[])
parser.add_argument('filename',nargs='?',help=_("file to load"))
self.settings._add(ComboSetting("uimode","Standard",["Standard","Compact","Tabbed"],_("Interface mode"),_("Standard interface is a one-page, three columns layout with controls/visualization/log\nCompact mode is a one-page, two columns layout with controls + log/visualization\nTabbed mode is a two-pages mode, where the first page shows controls and the second one shows visualization and log."),"UI"))
self.settings._add(BooleanSetting("viz3d",False,_("Enable 3D viewer"),_("Use 3D visualization instead of 2D layered visualization"),"UI"))
self.settings._add(BooleanSetting("slic3rintegration",False,_("Enable Slic3r integration"),_("Add a menu to select Slic3r profiles directly from Pronterface"),"UI"))
self.settings._add(ComboSetting("mainviz","2D",["2D","3D","None"],_("Main visualization"),_("Select visualization for main window."),"UI"))
self.settings._add(BooleanSetting("viz3d",False,_("Use 3D in GCode viewer window"),_("Use 3D mode instead of 2D layered mode in the visualization window"),"UI"))
self.settings._add(BooleanSetting("tempgraph",True,_("Display temperature graph"),_("Display time-lapse temperature graph"),"UI"))
self.settings._add(BooleanSetting("tempgauges",False,_("Display temperature gauges"),_("Display graphical gauges for temperatures visualization"),"UI"))
self.settings._add(BooleanSetting("lockbox",False,_("Display interface lock checkbox"),_("Display a checkbox that, when check, locks most of Pronterface"),"UI"))
...
...
@@ -211,17 +214,14 @@ class PronterWindow(MainWindow, pronsole.pronsole):