package_list.PackageListItemModel Class Reference

Public Member Functions

None append_item (self, Addon repo)
 
None clear (self)
 
int columnCount (self, QModelIndex parent=QModelIndex())
 
def data (self, QModelIndex index, int role=Qt.DisplayRole)
 
def headerData (self, section, orientation, role=Qt.DisplayRole)
 
None reload_item (self, Addon repo)
 
int rowCount (self, QModelIndex parent=QModelIndex())
 
None setData (self, QModelIndex index, value, role=Qt.EditRole)
 
None update_item_icon (self, str name, QIcon icon)
 
None update_item_status (self, str name, Addon.Status status)
 

Public Attributes

 repos
 

Static Public Attributes

 DataAccessRole = Qt.UserRole
 
int IconUpdateRole = Qt.UserRole + 2
 
list repos = []
 
int StatusUpdateRole = Qt.UserRole + 1
 
 write_lock = threading.Lock()
 

Member Function Documentation

◆ append_item()

◆ clear()

◆ columnCount()

int package_list.PackageListItemModel.columnCount (   self,
QModelIndex   parent = QModelIndex() 
)

◆ data()

◆ headerData()

def package_list.PackageListItemModel.headerData (   self,
  section,
  orientation,
  role = Qt.DisplayRole 
)

◆ reload_item()

◆ rowCount()

◆ setData()

None package_list.PackageListItemModel.setData (   self,
QModelIndex  index,
  value,
  role = Qt.EditRole 
)
Set the data for this row. The column of the index is ignored.

References kdtreeNode.index, SMDS_FaceOfEdges_MyIterator.index, SMDS_VolumeOfFaces_MyIterator.index, App::LinkBaseExtension::PropInfo.index, App::VRMLObject.index, Base::Type.index, NetworkManager.QueueItem.index, Dice3DS.dom3ds.FileLikeBuffer.index, automotive_design.index_expression.index(), MeshGui::ViewProviderFace.index, MeshGui::SoFCMeshSegmentShape.index, PartGui::FaceColors::Private.index, Path::Voronoi::diagram_type.index(), DrawingGui::OrthoViews.index(), PartGui::ResultModel.index(), Gui::Dialog::CommandModel.index(), Gui::DocumentModel.index(), ExpressionCompleterModel.index(), Gui::PropertyEditor::PropertyModel.index(), Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction.index(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction.index(), SMDS_MeshInfo.index(), Path::VoronoiCell.index, Path::VoronoiEdge.index, Path::VoronoiVertex.index, geoff_geometry::SpanVertex.index, PathScripts.PathJobDlg.JobCreate.index, PathScripts.PathUtils.depth_params.index, Sketcher::Sketch::GeoDef.index, Spreadsheet_legacy.MathParser.index, TechDraw::GeometryUtils::ReturnType.index, addonmanager_workers.CheckWorkbenchesForUpdatesWorker.repos, addonmanager_workers.CacheMacroCode.repos, addonmanager_workers.UpdateMetadataCacheWorker.repos, addonmanager_workers.UpdateAllWorker.repos, package_list.PackageListItemModel.repos, and package_list.PackageListItemModel.write_lock.

Referenced by package_list.PackageListItemModel.update_item_icon(), and package_list.PackageListItemModel.update_item_status().

◆ update_item_icon()

None package_list.PackageListItemModel.update_item_icon (   self,
str  name,
QIcon  icon 
)

References kdtreeNode.index, SMDS_FaceOfEdges_MyIterator.index, SMDS_VolumeOfFaces_MyIterator.index, App::LinkBaseExtension::PropInfo.index, App::VRMLObject.index, Base::Type.index, automotive_design.index_expression.index(), Path::Voronoi::diagram_type.index(), DrawingGui::OrthoViews.index(), PartGui::ResultModel.index(), Gui::Dialog::CommandModel.index(), Gui::DocumentModel.index(), ExpressionCompleterModel.index(), Gui::PropertyEditor::PropertyModel.index(), NetworkManager.QueueItem.index, Dice3DS.dom3ds.FileLikeBuffer.index, MeshGui::ViewProviderFace.index, MeshGui::SoFCMeshSegmentShape.index, PartGui::FaceColors::Private.index, Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction.index(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction.index(), SMDS_MeshInfo.index(), Path::VoronoiCell.index, Path::VoronoiEdge.index, Path::VoronoiVertex.index, geoff_geometry::SpanVertex.index, PathScripts.PathJobDlg.JobCreate.index, PathScripts.PathUtils.depth_params.index, Sketcher::Sketch::GeoDef.index, Spreadsheet_legacy.MathParser.index, TechDraw::GeometryUtils::ReturnType.index, addonmanager_workers.CheckWorkbenchesForUpdatesWorker.repos, addonmanager_workers.CacheMacroCode.repos, addonmanager_workers.UpdateMetadataCacheWorker.repos, addonmanager_workers.UpdateAllWorker.repos, package_list.PackageListItemModel.repos, Gui::GraphvizWorker.setData(), Gui::DocumentModel.setData(), Gui::PropertyEditor::PropertyModel.setData(), SpreadsheetGui::SheetModel.setData(), Gui::VectorTableModel.setData(), PartGui::FilletRadiusModel.setData(), Gui::PropertyEditor::PropertyItem.setData(), Gui::DocumentModelIndex.setData(), Gui::Dialog::ParameterGroupItem.setData(), Gui::Dialog::ParameterValueItem.setData(), Gui::DocumentObjectItem.setData(), PartGui::BooleanOperationItem.setData(), Gui::DocumentItem.setData(), ConstraintItem.setData(), and package_list.PackageListItemModel.setData().

◆ update_item_status()

None package_list.PackageListItemModel.update_item_status (   self,
str  name,
Addon.Status  status 
)

References kdtreeNode.index, SMDS_FaceOfEdges_MyIterator.index, SMDS_VolumeOfFaces_MyIterator.index, App::LinkBaseExtension::PropInfo.index, App::VRMLObject.index, Base::Type.index, automotive_design.index_expression.index(), Path::Voronoi::diagram_type.index(), DrawingGui::OrthoViews.index(), PartGui::ResultModel.index(), Gui::Dialog::CommandModel.index(), Gui::DocumentModel.index(), ExpressionCompleterModel.index(), Gui::PropertyEditor::PropertyModel.index(), NetworkManager.QueueItem.index, Dice3DS.dom3ds.FileLikeBuffer.index, MeshGui::ViewProviderFace.index, MeshGui::SoFCMeshSegmentShape.index, PartGui::FaceColors::Private.index, Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction.index(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction.index(), SMDS_MeshInfo.index(), Path::VoronoiCell.index, Path::VoronoiEdge.index, Path::VoronoiVertex.index, geoff_geometry::SpanVertex.index, PathScripts.PathJobDlg.JobCreate.index, PathScripts.PathUtils.depth_params.index, Sketcher::Sketch::GeoDef.index, Spreadsheet_legacy.MathParser.index, TechDraw::GeometryUtils::ReturnType.index, addonmanager_workers.CheckWorkbenchesForUpdatesWorker.repos, addonmanager_workers.CacheMacroCode.repos, addonmanager_workers.UpdateMetadataCacheWorker.repos, addonmanager_workers.UpdateAllWorker.repos, package_list.PackageListItemModel.repos, Gui::GraphvizWorker.setData(), Gui::DocumentModel.setData(), Gui::PropertyEditor::PropertyModel.setData(), SpreadsheetGui::SheetModel.setData(), Gui::VectorTableModel.setData(), PartGui::FilletRadiusModel.setData(), Gui::PropertyEditor::PropertyItem.setData(), Gui::DocumentModelIndex.setData(), Gui::Dialog::ParameterGroupItem.setData(), Gui::Dialog::ParameterValueItem.setData(), Gui::DocumentObjectItem.setData(), PartGui::BooleanOperationItem.setData(), Gui::DocumentItem.setData(), ConstraintItem.setData(), and package_list.PackageListItemModel.setData().

Member Data Documentation

◆ DataAccessRole

package_list.PackageListItemModel.DataAccessRole = Qt.UserRole
static

◆ IconUpdateRole

int package_list.PackageListItemModel.IconUpdateRole = Qt.UserRole + 2
static

◆ repos [1/2]

◆ repos [2/2]

◆ StatusUpdateRole

int package_list.PackageListItemModel.StatusUpdateRole = Qt.UserRole + 1
static

◆ write_lock


The documentation for this class was generated from the following file: