The link between the tree and a document object. More...
#include <Tree.h>
Friends | |
class | DocumentItem |
class | TreeWidget |
The link between the tree and a document object.
Every object in the document gets its associated DocumentObjectItem which controls the visibility and the functions of the object.
DocumentObjectItem::DocumentObjectItem | ( | DocumentItem * | ownerDocItem, |
DocumentObjectDataPtr | data | ||
) |
DocumentObjectItem::~DocumentObjectItem | ( | ) |
References Gui::DocumentItem::getTree().
void DocumentObjectItem::displayStatusInfo | ( | ) |
References Gui::MainWindow::Err, Gui::getMainWindow(), Base::Type::getName(), App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), App::DocumentObject::getStatusString(), Base::Persistence::getTypeId(), App::DocumentObject::isError(), App::DocumentObject::mustExecute(), object(), Gui::MainWindow::showMessage(), Gui::MainWindow::showStatus(), and draftguitools.gui_setstyle::translate.
App::DocumentObject * DocumentObjectItem::getFullSubName | ( | std::ostringstream & | str, |
DocumentObjectItem * | parent = nullptr |
||
) | const |
References getName(), Gui::ViewProviderDocumentObject::getObject(), getParentItem(), isGroup(), and object().
const char * DocumentObjectItem::getName | ( | void | ) | const |
References App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), and object().
Referenced by Gui::DocumentItem::findItem(), getFullSubName(), getRelativeParent(), and setData().
DocumentItem * DocumentObjectItem::getOwnerDocument | ( | ) | const |
DocumentItem * DocumentObjectItem::getParentDocument | ( | ) | const |
References Gui::TreeWidget::getDocumentItem(), and getTree().
DocumentObjectItem * DocumentObjectItem::getParentItem | ( | ) | const |
App::DocumentObject * DocumentObjectItem::getRelativeParent | ( | std::ostringstream & | str, |
DocumentObjectItem * | cousin, | ||
App::DocumentObject ** | topParent = nullptr , |
||
std::string * | topSubname = nullptr |
||
) | const |
References getName(), and getSubName().
int DocumentObjectItem::getSubName | ( | std::ostringstream & | str, |
App::DocumentObject *& | topParent | ||
) | const |
TreeWidget * DocumentObjectItem::getTree | ( | ) | const |
Referenced by getParentDocument(), and testStatus().
const char * DocumentObjectItem::getTreeName | ( | ) | const |
bool DocumentObjectItem::isChildOfItem | ( | DocumentObjectItem * | item | ) |
Referenced by Gui::DocumentItem::populateItem().
int DocumentObjectItem::isGroup | ( | ) | const |
bool DocumentObjectItem::isLink | ( | ) | const |
bool DocumentObjectItem::isLinkFinal | ( | ) | const |
int DocumentObjectItem::isParentGroup | ( | ) | const |
References getParentItem().
Referenced by Gui::DocumentItem::findItemByObject(), and Gui::DocumentItem::getTopParent().
bool DocumentObjectItem::isParentLink | ( | ) | const |
References getParentItem().
Gui::ViewProviderDocumentObject * DocumentObjectItem::object | ( | ) | const |
Referenced by ArchIFCView.IfcContextUI::accept(), Gui::TreeWidget::contextMenuEvent(), Gui::TreeWidgetEditDelegate::createEditor(), displayStatusInfo(), Gui::TreeWidget::dragMoveEvent(), Gui::TreeWidget::dropEvent(), Gui::DocumentItem::findItem(), getFullSubName(), getName(), Gui::TreeWidget::getSelection(), isGroup(), isLink(), isLinkFinal(), Gui::TreeWidget::mimeData(), Gui::TreeWidget::mouseDoubleClickEvent(), Gui::TreeWidget::onCreateGroup(), Gui::TreeWidget::onFinishEditing(), Gui::TreeWidget::onMarkRecompute(), Gui::TreeWidget::onPreSelectTimer(), Gui::TreeWidget::onRecomputeObject(), Gui::TreeWidget::onSelectDependents(), Gui::TreeWidget::onStartEditing(), Gui::DocumentItem::populateItem(), ArchIFCView.IfcContextUI::prefillMapConversionForm(), Gui::DocumentItem::selectItems(), importIFCHelper.ProjectImporter::setAttributes(), importIFCHelper.ProjectImporter::setComplexAttributes(), setData(), setExpandedStatus(), testStatus(), Gui::DocumentItem::updateItemSelection(), and Gui::DocumentItem::updateItemsVisibility().
References getOwnerDocument(), and getParentItem().
Referenced by Gui::DocumentItem::populateItem().
void DocumentObjectItem::restoreBackground | ( | ) |
void DocumentObjectItem::setExpandedStatus | ( | bool | on | ) |
void DocumentObjectItem::setHighlight | ( | bool | set, |
Gui::HighlightMode | high = HighlightMode::LightBlue |
||
) |
void DocumentObjectItem::testStatus | ( | bool | resetStatus | ) |
References testStatus().
void DocumentObjectItem::testStatus | ( | bool | resetStatus, |
QIcon & | icon1, | ||
QIcon & | icon2 | ||
) |
References Gui::BitmapFactory(), Gui::BitmapFactoryInst::BottomRight, Gui::DocumentItem::document(), Gui::ViewProviderDocumentObject::getDocument(), Gui::ViewProvider::getIcon(), App::DocumentObject::getLinkedObject(), App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), getOwnerDocument(), getParentItem(), getTree(), App::DocumentObject::isError(), Gui::ViewProvider::isShow(), App::DocumentObject::isTouched(), Gui::BitmapFactoryInst::merge(), Gui::ViewProvider::mergeColorfulOverlayIcons(), App::DocumentObject::mustExecute(), object(), setData(), Gui::ViewProviderDocumentObject::showInTree(), Gui::BitmapFactoryInst::TopLeft, and Gui::BitmapFactoryInst::TopRight.
Referenced by Gui::DocumentItem::createNewItem(), and testStatus().
|
friend |
|
friend |