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 RemoteDebugger.RemoteDebugger.dialog, Gui::Dialog::DlgParameterFind.dialog, Gui::Dialog::TaskTextureMapping.dialog, AddonManager.CommandAddonManager.dialog, Gui::Dialog::TaskTransform.dialog, ArchComponent.IfcEditorDelegate.dialog, ArchComponent.ComponentTaskPanel.plabels, and ArchComponent.IfcEditorDelegate.plabels.
Member Data Documentation
◆ dialog
ArchComponent.IfcEditorDelegate.dialog |
Referenced by PathScripts.PathJobDlg.JobTemplateExport.checkUncheckTools(), PathScripts.PathToolBitGui.ToolBitSelector.createTool(), PathScripts.PathPost.DlgSelectPostProcessor.exec_(), PathScripts.PathJobDlg.JobCreate.exec_(), PathScripts.PathJobDlg.JobTemplateExport.exec_(), PathScripts.PathJobDlg.JobTemplateExport.exportButton(), draftguitools.gui_texts.Text.finish(), PathScripts.PathJobDlg.JobCreate.getTemplate(), PathScripts.PathJobDlg.JobTemplateExport.includePostProcessing(), 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(), ArchComponent.IfcEditorDelegate.setModelData(), PathScripts.PathJobDlg.JobCreate.setupModel(), PathScripts.PathJobDlg.JobCreate.setupTemplate(), PathScripts.PathJobDlg.JobCreate.setupTitle(), PathScripts.PathPost.DlgSelectPostProcessor.updateTooltip(), and PathScripts.PathJobDlg.JobTemplateExport.updateUI().
◆ plabels
ArchComponent.IfcEditorDelegate.plabels |
◆ ptypes
ArchComponent.IfcEditorDelegate.ptypes |
The documentation for this class was generated from the following file:
- src/Mod/Arch/ArchComponent.py