ArchComponent.IfcEditorDelegate Class Reference

Public Member Functions

def createEditor (self, parent, option, index)
 
def setEditorData (self, editor, index)
 
def setModelData (self, editor, model, index)
 

Public Attributes

 dialog
 
 plabels
 
 ptypes
 

Detailed Description

This class manages the editing of the individual table cells in the IFC editor.

Parameters
----------
parent: <PySide2.QtWidgets.QWidget>
    Unclear.
dialog: <ArchComponent.ComponentTaskPanel>
    The dialog box this delegate was created in.
ptypes: list of str
    A list of the names of IFC property types.
plables: list of str
    A list of the human readable names of IFC property types.

Member Function Documentation

◆ createEditor()

def ArchComponent.IfcEditorDelegate.createEditor (   self,
  parent,
  option,
  index 
)
Return the widget used to change data.

Return a text line editor if editing the property name.  Return a
dropdown to change property type if editing property type.  If
editing the property's value, return an appropriate widget
depending on the datatype of the value.

Parameters
----------
parent: <pyside2.qtwidgets.qwidget>
    The table cell that is being edited.
option:
    Unused?
index: <PySide2.QtCore.QModelIndex>
    The index object of the table of the IFC editor.

Returns
-------
<pyside2.qtwidgets.qwidget>
    The editor widget this method has created.

◆ setEditorData()

def ArchComponent.IfcEditorDelegate.setEditorData (   self,
  editor,
  index 
)
Give data to the edit widget.

Extract the data already present in the table, and write it to the
editor. This means the user starts the editor with their previous
data already present, instead of a blank slate.

Parameters
----------
editor: <pyside2.qtwidgets.qwidget>
    The editor widget.
index: <PySide2.QtCore.QModelIndex>
    The index object of the table, of the IFC editor

References ArchComponent.ComponentTaskPanel.plabels, and ArchComponent.IfcEditorDelegate.plabels.

◆ setModelData()

def ArchComponent.IfcEditorDelegate.setModelData (   self,
  editor,
  model,
  index 
)
Write the data in the editor to the IFC editor's table.

Parameters
----------
editor: <pyside2.qtwidgets.qwidget>
    The editor widget.
model:
    The table object of the IFC editor.
index: <PySide2.QtCore.QModelIndex>
    The index object of the table, of the IFC editor

References Gui::Dialog::DlgParameterFind.dialog, RemoteDebugger.RemoteDebugger.dialog, Gui::Dialog::TaskTextureMapping.dialog, Gui::Dialog::TaskTransform.dialog, AddonManager.CommandAddonManager.dialog, ArchComponent.IfcEditorDelegate.dialog, draftguitools.gui_shapestrings.ShapeString.dialog, draftguitools.gui_texts.Text.dialog, PathScripts.PathJobDlg.JobCreate.dialog, PathScripts.PathJobDlg.JobTemplateExport.dialog, PathScripts.PathPost.DlgSelectPostProcessor.dialog, ArchComponent.ComponentTaskPanel.plabels, and ArchComponent.IfcEditorDelegate.plabels.

Member Data Documentation

◆ dialog

ArchComponent.IfcEditorDelegate.dialog

Referenced by RemoteDebugger.RemoteDebugger.accept(), PathScripts.PathJobDlg.JobTemplateExport.checkUncheckTools(), AddonManager.CommandAddonManager.dependency_installation_failure(), AddonManager.CommandAddonManager.do_next_startup_phase(), AddonManager.CommandAddonManager.enable_updates(), RemoteDebugger.RemoteDebugger.exec_(), PathScripts.PathJobDlg.JobCreate.exec_(), PathScripts.PathJobDlg.JobTemplateExport.exec_(), PathScripts.PathPost.DlgSelectPostProcessor.exec_(), AddonManager.CommandAddonManager.executemacro(), PathScripts.PathJobDlg.JobTemplateExport.exportButton(), draftguitools.gui_texts.Text.finish(), AddonManager.CommandAddonManager.force_check_updates(), PathScripts.PathJobDlg.JobCreate.getTemplate(), AddonManager.CommandAddonManager.handle_disallowed_python(), AddonManager.CommandAddonManager.hide_progress_widgets(), PathScripts.PathJobDlg.JobTemplateExport.includePostProcessing(), PathScripts.PathJobDlg.JobTemplateExport.includeSettingCoolant(), PathScripts.PathJobDlg.JobTemplateExport.includeSettingOperationDepths(), PathScripts.PathJobDlg.JobTemplateExport.includeSettingOperationHeights(), PathScripts.PathJobDlg.JobTemplateExport.includeSettingOpsSettings(), PathScripts.PathJobDlg.JobTemplateExport.includeSettings(), PathScripts.PathJobDlg.JobTemplateExport.includeSettingToolRapid(), PathScripts.PathJobDlg.JobTemplateExport.includeStock(), PathScripts.PathJobDlg.JobTemplateExport.includeStockExtent(), PathScripts.PathJobDlg.JobTemplateExport.includeStockPlacement(), PathScripts.PathJobDlg.JobTemplateExport.includeToolControllers(), AddonManager.CommandAddonManager.no_pip(), AddonManager.CommandAddonManager.no_python_exe(), AddonManager.CommandAddonManager.on_buttonUpdateCache_clicked(), AddonManager.CommandAddonManager.on_installation_failed(), AddonManager.CommandAddonManager.on_package_installed(), AddonManager.CommandAddonManager.on_update_all_completed(), RemoteDebugger.RemoteDebugger.reject(), AddonManager.CommandAddonManager.reject(), AddonManager.CommandAddonManager.remove(), AddonManager.CommandAddonManager.report_missing_workbenches(), ArchComponent.IfcEditorDelegate.setModelData(), PathScripts.PathJobDlg.JobCreate.setupModel(), PathScripts.PathJobDlg.JobCreate.setupTemplate(), PathScripts.PathJobDlg.JobCreate.setupTitle(), AddonManager.CommandAddonManager.show_information(), AddonManager.CommandAddonManager.show_progress_widgets(), AddonManager.CommandAddonManager.stop_update(), AddonManager.CommandAddonManager.update_check_complete(), AddonManager.CommandAddonManager.update_progress_bar(), PathScripts.PathPost.DlgSelectPostProcessor.updateTooltip(), and PathScripts.PathJobDlg.JobTemplateExport.updateUI().

◆ plabels

◆ ptypes


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