'Set the scheme to display/edit'

def setScheme(self, scheme):

    self.scheme = scheme
    if (not scheme.title):
        self.name_edit.setText(self.tr('untitled'))
        self.name_edit.selectAll()
        self.__schemeIsUntitled = True
    else:
        self.name_edit.setText(scheme.title)
        self.__schemeIsUntitled = False
    self.desc_edit.setPlainText((scheme.description or ''))
