The link between the tree and a document object. More...
#include <Tree.h>
Friends | |
class | DocumentItem |
class | TreeWidget |
Detailed Description
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.
Constructor & Destructor Documentation
◆ DocumentObjectItem()
DocumentObjectItem::DocumentObjectItem | ( | DocumentItem * | ownerDocItem, |
DocumentObjectDataPtr | data | ||
) |
◆ ~DocumentObjectItem()
DocumentObjectItem::~DocumentObjectItem | ( | ) |
References Gui::DocumentItem::getTree().
Member Function Documentation
◆ displayStatusInfo()
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(), and Gui::MainWindow::showStatus().
◆ getFullSubName()
App::DocumentObject * DocumentObjectItem::getFullSubName | ( | std::ostringstream & | str, |
DocumentObjectItem * | parent = 0 |
||
) | const |
References getName(), Gui::ViewProviderDocumentObject::getObject(), getParentItem(), isGroup(), and object().
◆ getName()
const char * DocumentObjectItem::getName | ( | ) | const |
References App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), and object().
Referenced by Gui::DocumentItem::findItem(), getFullSubName(), getRelativeParent(), and setData().
◆ getOwnerDocument()
DocumentItem * DocumentObjectItem::getOwnerDocument | ( | ) | const |
◆ getParentDocument()
DocumentItem * DocumentObjectItem::getParentDocument | ( | ) | const |
References Gui::TreeWidget::getDocumentItem(), and getTree().
◆ getParentItem()
DocumentObjectItem * DocumentObjectItem::getParentItem | ( | ) | const |
◆ getRelativeParent()
App::DocumentObject * DocumentObjectItem::getRelativeParent | ( | std::ostringstream & | str, |
DocumentObjectItem * | cousin, | ||
App::DocumentObject ** | topParent = 0 , |
||
std::string * | topSubname = 0 |
||
) | const |
References getName(), and getSubName().
◆ getSubName()
int DocumentObjectItem::getSubName | ( | std::ostringstream & | str, |
App::DocumentObject *& | topParent | ||
) | const |
◆ getTree()
TreeWidget * DocumentObjectItem::getTree | ( | ) | const |
Referenced by getParentDocument(), and testStatus().
◆ getTreeName()
const char * DocumentObjectItem::getTreeName | ( | ) | const |
◆ isChildOfItem()
bool DocumentObjectItem::isChildOfItem | ( | DocumentObjectItem * | item | ) |
Referenced by Gui::DocumentItem::populateItem().
◆ isGroup()
int DocumentObjectItem::isGroup | ( | ) | const |
◆ isLink()
bool DocumentObjectItem::isLink | ( | ) | const |
◆ isLinkFinal()
bool DocumentObjectItem::isLinkFinal | ( | ) | const |
◆ isParentGroup()
int DocumentObjectItem::isParentGroup | ( | ) | const |
References getParentItem().
Referenced by Gui::DocumentItem::findItemByObject(), and Gui::DocumentItem::getTopParent().
◆ isParentLink()
bool DocumentObjectItem::isParentLink | ( | ) | const |
References getParentItem().
◆ object()
Gui::ViewProviderDocumentObject * DocumentObjectItem::object | ( | ) | const |
Referenced by 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::onStartEditing(), Gui::DocumentItem::populateItem(), Gui::DocumentItem::selectItems(), setData(), setExpandedStatus(), Gui::DocumentItem::slotResetEdit(), testStatus(), and Gui::DocumentItem::updateItemSelection().
◆ requiredAtRoot()
References getOwnerDocument(), and getParentItem().
Referenced by Gui::DocumentItem::populateItem().
◆ restoreBackground()
void DocumentObjectItem::restoreBackground | ( | ) |
◆ setData()
void DocumentObjectItem::setData | ( | int | column, |
int | role, | ||
const QVariant & | value | ||
) |
References getName(), Gui::ViewProviderDocumentObject::getObject(), and object().
Referenced by Gui::DocumentItem::slotResetEdit(), and testStatus().
◆ setExpandedStatus()
void DocumentObjectItem::setExpandedStatus | ( | bool | on | ) |
◆ setHighlight()
void DocumentObjectItem::setHighlight | ( | bool | set, |
Gui::HighlightMode | high = HighlightMode::LightBlue |
||
) |
References Gui::Blue, Gui::Bold, App::GetApplication(), ParameterGrp::GetBool(), App::Application::GetParameterGroupByPath(), ParameterGrp::GetUnsigned(), Gui::Italic, Gui::LightBlue, Gui::Overlined, Gui::Underlined, and Gui::UserDefined.
Referenced by Gui::DocumentItem::populateItem(), and Gui::DocumentItem::slotHighlightObject().
◆ testStatus() [1/2]
void DocumentObjectItem::testStatus | ( | bool | resetStatus | ) |
References testStatus().
◆ testStatus() [2/2]
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(), App::GroupExtension::getObject(), getOwnerDocument(), getParentItem(), getTree(), App::DocumentObject::isElementVisible(), App::DocumentObject::isError(), Gui::ViewProvider::isShow(), App::DocumentObject::isTouched(), Gui::BitmapFactoryInst::merge(), App::DocumentObject::mustExecute(), object(), setData(), Gui::ViewProviderDocumentObject::showInTree(), Gui::BitmapFactoryInst::TopLeft, and Gui::BitmapFactoryInst::TopRight.
Referenced by Gui::DocumentItem::createNewItem(), and testStatus().
Friends And Related Function Documentation
◆ DocumentItem
|
friend |
◆ TreeWidget
|
friend |
The documentation for this class was generated from the following files:
- src/Gui/Tree.h
- src/Gui/Tree.cpp