Sets the "mode" for this view:

        BuildMode 0: Allowing adding, moving and editing of component items

        AutoParamMode 1: For adding components to a selection of an 
        auto-parameter. clicks toggle membership in selection. Moving and 
        editing of components disabled.
        
        :param mode: which mode to set
        :type mode: int

def setMode(self, mode):
        """Sets the "mode" for this view:

        BuildMode 0: Allowing adding, moving and editing of component items

        AutoParamMode 1: For adding components to a selection of an 
        auto-parameter. clicks toggle membership in selection. Moving and 
        editing of components disabled.
        
        :param mode: which mode to set
        :type mode: int
        """
        self.mode = mode
        if mode == BuildMode:
            self.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
            self.setSelectionModel(QtGui.QItemSelectionModel(self.model()))
            self.setEnabled(True)
            self.model().updateComponentStartVals()
        else:
            self.model().purgeAutoSelected()
            self.setSelectionModel(ComponentSelectionModel(self.model()))
            self.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)