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())
Exemple #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())
 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())
Exemple #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())
    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())
	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)
    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())