The link between the tree and a document object. More...
#include <Tree.h>
Public Member Functions | |
void | displayStatusInfo () |
DocumentObjectItem (Gui::ViewProviderDocumentObject *pcViewProvider, QTreeWidgetItem *parent) | |
Gui::ViewProviderDocumentObject * | object () const |
void | setData (int column, int role, const QVariant &value) |
void | testStatus () |
~DocumentObjectItem () | |
Protected Member Functions | |
void | slotChangeIcon () |
void | slotChangeStatusTip (const QString &) |
void | slotChangeToolTip (const QString &) |
Friends | |
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.
Definition at line 150 of file Tree.h.
DocumentObjectItem::DocumentObjectItem | ( | Gui::ViewProviderDocumentObject * | pcViewProvider, | |
QTreeWidgetItem * | parent | |||
) |
Definition at line 1042 of file Gui/Tree.cpp.
References draftlibs::fcgeo::bind(), Gui::ViewProvider::signalChangeIcon, Gui::ViewProvider::signalChangeStatusTip, Gui::ViewProvider::signalChangeToolTip, slotChangeIcon(), slotChangeStatusTip(), and slotChangeToolTip().
DocumentObjectItem::~DocumentObjectItem | ( | ) |
Definition at line 1053 of file Gui/Tree.cpp.
void DocumentObjectItem::displayStatusInfo | ( | ) |
Definition at line 1163 of file Gui/Tree.cpp.
References Gui::getMainWindow(), Gui::ViewProviderDocumentObject::getObject(), App::DocumentObject::getStatusString(), App::DocumentObject::mustExecute(), and Gui::MainWindow::showMessage().
Gui::ViewProviderDocumentObject * DocumentObjectItem::object | ( | ) | const |
Definition at line 1060 of file Gui/Tree.cpp.
Referenced by Gui::TreeWidget::contextMenuEvent(), Gui::TreeWidget::onCreateGroup(), Gui::TreeWidget::onFinishEditing(), Gui::TreeWidget::onStartEditing(), Gui::ObjectItem_Equal::operator()(), and Gui::ObjectItem_Less::operator()().
void DocumentObjectItem::setData | ( | int | column, | |
int | role, | |||
const QVariant & | value | |||
) |
Definition at line 1174 of file Gui/Tree.cpp.
References Gui::ViewProviderDocumentObject::getObject(), and App::DocumentObject::Label.
Referenced by testStatus().
void DocumentObjectItem::slotChangeIcon | ( | ) | [protected] |
Definition at line 1183 of file Gui/Tree.cpp.
References testStatus().
Referenced by DocumentObjectItem().
void DocumentObjectItem::slotChangeStatusTip | ( | const QString & | tip | ) | [protected] |
Definition at line 1194 of file Gui/Tree.cpp.
Referenced by DocumentObjectItem().
void DocumentObjectItem::slotChangeToolTip | ( | const QString & | tip | ) | [protected] |
Definition at line 1189 of file Gui/Tree.cpp.
Referenced by DocumentObjectItem().
void DocumentObjectItem::testStatus | ( | void | ) |
Definition at line 1065 of file Gui/Tree.cpp.
References Gui::BitmapFactory(), Gui::ViewProvider::getIcon(), Gui::ViewProviderDocumentObject::getObject(), App::DocumentObject::isError(), Gui::ViewProvider::isShow(), App::DocumentObject::mustExecute(), px, setData(), Gui::BitmapFactoryInst::TopRight, and RobotExample::w.
Referenced by slotChangeIcon().
friend class TreeWidget [friend] |