Пример #1
0
	def _addSettingsToPanels(self, category, left, right):
		count = len(profile.getSubCategoriesFor(category)) + len(profile.getSettingsForCategory(category))

		p = left
		n = 0
		for title in profile.getSubCategoriesFor(category):
			n += 1 + len(profile.getSettingsForCategory(category, title))
			if n > count / 2:
				p = right
			configBase.TitleRow(p, _(title))
			for s in profile.getSettingsForCategory(category, title):
				configBase.SettingRow(p, s.getName())
Пример #2
0
	def _addSettingsToPanels(self, category, left, right):
		count = len(profile.getSubCategoriesFor(category)) + len(profile.getSettingsForCategory(category))

		p = left
		n = 0
		for title in profile.getSubCategoriesFor(category):
			n += 1 + len(profile.getSettingsForCategory(category, title))
			if n > count / 2:
				p = right
			configBase.TitleRow(p, _(title))
			for s in profile.getSettingsForCategory(category, title):
				configBase.SettingRow(p, s.getName())
Пример #3
0
 def _addSettingsToPanels(self, category, left, right):
     count = len(profile.getSubCategoriesFor(category)) + len(
         profile.getSettingsForCategory(category))
     p = left
     n = 0
     for title in profile.getSubCategoriesFor(category):
         if title not in profile.getPreference('filter'):
             n += 1 + len(profile.getSettingsForCategory(category, title))
             if n > count / 2:
                 p = right
             configBase.TitleRow(p, title)
             for s in profile.getSettingsForCategory(category, title):
                 if s.checkConditions():
                     configBase.SettingRow(p, s.getName())
Пример #4
0
	def _addSettingsToPanels(self, category, sub_category, left, right):
		count = len(profile.getSubCategoriesFor(category)) + len(profile.getSettingsForCategory(category))

		p = left
		n = 0
		for title in profile.getSubCategoriesFor(category):
			if sub_category is not None and _(sub_category) != title:
				continue
			n += 1 + len(profile.getSettingsForCategory(category, title))
			if n > count / 2:
				p = right
			configBase.TitleRow(p, title)
			for s in profile.getSettingsForCategory(category, title):
				if s.checkConditions():
					configBase.SettingRow(p, s.getName())
Пример #5
0
    def _addSettingsToPanels(self, category, sub_category, left, right):
        count = len(profile.getSubCategoriesFor(category)) + len(
            profile.getSettingsForCategory(category))

        p = left
        n = 0
        for title in profile.getSubCategoriesFor(category):
            if sub_category is not None and sub_category != title:
                continue
            n += 1 + len(profile.getSettingsForCategory(category, title))
            if n > count / 2:
                p = right
            configBase.TitleRow(p, _(title))
            for s in profile.getSettingsForCategory(category, title):
                if s.checkConditions():
                    configBase.SettingRow(p, s.getName())
Пример #6
0
 def __init__(self, parent):
     super(optionOnOffDialog,
           self).__init__(None,
                          title=_("Option filter for expert settings"),
                          size=(200, 350),
                          style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER)
     wx.EVT_CLOSE(self, self.OnClose)
     self.parent = parent
     self.panel = configBase.configPanelBase(self)
     left, right, main = self.panel.CreateConfigPanel(self)
     wx.StaticText(self,
                   -1,
                   _("please uncheck the settings you do not want to see"),
                   style=wx.ALIGN_CENTER)
     self.y = 35
     self.id_name_dic = {}
     for name in profile.getSubCategoriesFor('expert'):
         id = wx.NewId()
         self.id_name_dic[id] = name
         i = wx.CheckBox(self,
                         id,
                         label=name,
                         pos=(20, self.y),
                         style=wx.ALIGN_LEFT)
         self.y += 25
         if name not in Filter:
             i.SetValue(True)
         else:
             i.SetValue(False)
         i.Bind(wx.EVT_CHECKBOX, self.Oncheck, i)
     main.Fit()
Пример #7
0
	def _addSettingsToPanels(self, category, left, right):
		count = len(profile.getSubCategoriesFor(category)) + len(profile.getSettingsForCategory(category))

		p = left
		n = 0

		configBase.StaticTopRow(p)
		for title in profile.getSubCategoriesFor(category):
			n += 1 + len(profile.getSettingsForCategory(category, title))
			if n > count / 2:
				p = right
			configBase.TitleRow(p, _(title))
			for s in profile.getSettingsForCategory(category, title):
				configBase.SettingRow(p, s.getName())

			if str(title) == "Speed and Temperature":
				warning = self.PrintBedWarning(p)
				configBase.BoxedText(p, warning)
Пример #8
0
    def _addSettingsToPanels(self, category, left, right):
        count = len(profile.getSubCategoriesFor(category)) + len(
            profile.getSettingsForCategory(category))

        p = left
        n = 0
        for title in profile.getSubCategoriesFor(category):

            if title not in ['Machine', 'Retraction']:
                n += 1 + len(profile.getSettingsForCategory(category, title))
                if n > count / 2:
                    p = right
                configBase.TitleRow(p, _(title))
                for s in profile.getSettingsForCategory(category, title):
                    if s._name not in [
                            'filament_diameter', 'filament_diameter2',
                            'retraction_enable', 'cool_min_layer_time',
                            'layer0_width_factor', 'overlap_dual'
                    ]:
                        configBase.SettingRow(p, s.getName())