def newobject(self):
        newdialog = newclassdialog.newClassDialog()
        result = newdialog.exec_()
        if result:
            newclasses = newdialog.selected
            for n  in newclasses:
                self.idf.insertRecordByClassname(n)

            self.idf.buildDependsTree()
            self.model.reset()
            self.sizeTree()
    def newobject(self):
        newdialog = newclassdialog.newClassDialog()
        result = newdialog.exec_()
        if result:
            newclasses = newdialog.selected
            for n in newclasses:
                self.idfdata.insertRecordByClassname(n)

            self.idfdata.buildDependsTree()
            self.idfdata.datachanged.emit()
            self.updateTabs()