def updateSolverUIShowValidateButtonWidget(self, config): key = pref_const.SOLVER_UI_SHOW_VALIDATE_BTN_KEY value = userprefs_lib.get_value(config, key) label = userprefs_lib.get_label_from_value(key, value) assert isinstance(label, pycompat.TEXT_TYPE) labels = userprefs_lib.get_labels(key) self.showValidateButtonComboBox.clear() self.showValidateButtonComboBox.addItems(labels) self.showValidateButtonComboBox.setCurrentText(label) return
def updateAddNewMarkersToWidget(self, config): key = pref_const.REG_EVNT_ADD_NEW_MKR_TO_KEY value = userprefs_lib.get_value(config, key) label = userprefs_lib.get_label_from_value(key, value) assert isinstance(label, pycompat.TEXT_TYPE) labels = userprefs_lib.get_labels(key) self.addNewMarkersToComboBox.clear() self.addNewMarkersToComboBox.addItems(labels) self.addNewMarkersToComboBox.setCurrentText(label) return
def updateSolverUIAllowObjectRelationsWidget(self, config): key = pref_const.SOLVER_UI_ALLOW_OBJECT_RELATIONS_KEY value = userprefs_lib.get_value(config, key) label = userprefs_lib.get_label_from_value(key, value) assert isinstance(label, pycompat.TEXT_TYPE) labels = userprefs_lib.get_labels(key) self.allowObjectRelationsComboBox.clear() self.allowObjectRelationsComboBox.addItems(labels) self.allowObjectRelationsComboBox.setCurrentText(label) return
def updateSolverUIMinimalUIWhileSolvingWidget(self, config): key = pref_const.SOLVER_UI_MINIMAL_UI_WHILE_SOLVING_KEY value = userprefs_lib.get_value(config, key) label = userprefs_lib.get_label_from_value(key, value) assert isinstance(label, pycompat.TEXT_TYPE) labels = userprefs_lib.get_labels(key) self.minimalUIWhileSolvingComboBox.clear() self.minimalUIWhileSolvingComboBox.addItems(labels) self.minimalUIWhileSolvingComboBox.setCurrentText(label) return
def updateSolverUIValidateOnOpenWidget(self, config): key = pref_const.SOLVER_UI_VALIDATE_ON_OPEN_KEY value = userprefs_lib.get_value(config, key) label = userprefs_lib.get_label_from_value(key, value) assert isinstance(label, basestring) labels = userprefs_lib.get_labels(key) self.validateSolverOnUIOpenComboBox.clear() self.validateSolverOnUIOpenComboBox.addItems(labels) self.validateSolverOnUIOpenComboBox.setCurrentText(label) return