Gui::DocumentItem Class Reference

The link between the tree and a document. More...

#include <Tree.h>

List of all members.

Public Member Functions

void clearSelection (void)
const Gui::Documentdocument () const
 DocumentItem (const Gui::Document *doc, QTreeWidgetItem *parent)
void selectItems (void)
void setData (int column, int role, const QVariant &value)
void setObjectHighlighted (const char *, bool)
void setObjectSelected (const char *, bool)
void testStatus (void)
void updateSelection (void)
 ~DocumentItem ()

Protected Member Functions

void slotActiveObject (const Gui::ViewProviderDocumentObject &)
void slotChangeObject (const Gui::ViewProviderDocumentObject &)
void slotDeleteObject (const Gui::ViewProviderDocumentObject &)
 Removes a view provider from the document item.
void slotInEdit (const Gui::ViewProviderDocumentObject &)
void slotNewObject (const Gui::ViewProviderDocumentObject &)
 Adds a view provider to the document item.
void slotRenameObject (const Gui::ViewProviderDocumentObject &)
void slotResetEdit (const Gui::ViewProviderDocumentObject &)

Detailed Description

The link between the tree and a document.

Every document in the application gets its associated DocumentItem which controls the visibility and the functions of the document.

Author:
Jürgen Riegel

Definition at line 110 of file Tree.h.


Constructor & Destructor Documentation

DocumentItem::DocumentItem ( const Gui::Document doc,
QTreeWidgetItem *  parent 
)
DocumentItem::~DocumentItem (  ) 

Definition at line 730 of file Gui/Tree.cpp.


Member Function Documentation

void DocumentItem::clearSelection ( void   ) 

Definition at line 952 of file Gui/Tree.cpp.

const Gui::Document * DocumentItem::document (  )  const

Definition at line 911 of file Gui/Tree.cpp.

Referenced by Gui::TreeWidget::onCreateGroup().

void DocumentItem::selectItems ( void   ) 
void DocumentItem::setData ( int  column,
int  role,
const QVariant &  value 
)

Definition at line 923 of file Gui/Tree.cpp.

References Gui::Document::getDocument(), and App::Document::Label.

void DocumentItem::setObjectHighlighted ( const char *  name,
bool  select 
)

Definition at line 933 of file Gui/Tree.cpp.

void DocumentItem::setObjectSelected ( const char *  name,
bool  select 
)

Definition at line 943 of file Gui/Tree.cpp.

void DocumentItem::slotActiveObject ( const Gui::ViewProviderDocumentObject obj  )  [protected]
void DocumentItem::slotChangeObject ( const Gui::ViewProviderDocumentObject view  )  [protected]
void DocumentItem::slotDeleteObject ( const Gui::ViewProviderDocumentObject obj  )  [protected]

Removes a view provider from the document item.

If this view provider is not added nothing happens.

Definition at line 768 of file Gui/Tree.cpp.

References App::DocumentObject::getNameInDocument(), and Gui::ViewProviderDocumentObject::getObject().

Referenced by DocumentItem().

void DocumentItem::slotInEdit ( const Gui::ViewProviderDocumentObject v  )  [protected]
void DocumentItem::slotNewObject ( const Gui::ViewProviderDocumentObject obj  )  [protected]

Adds a view provider to the document item.

If this view provider is already added nothing happens.

Definition at line 751 of file Gui/Tree.cpp.

References Base::Console(), Gui::ViewProvider::getIcon(), App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), and App::DocumentObject::Label.

Referenced by DocumentItem().

void DocumentItem::slotRenameObject ( const Gui::ViewProviderDocumentObject obj  )  [protected]
void DocumentItem::slotResetEdit ( const Gui::ViewProviderDocumentObject v  )  [protected]
void DocumentItem::testStatus ( void   ) 

Definition at line 916 of file Gui/Tree.cpp.

void DocumentItem::updateSelection ( void   ) 

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

Generated on Wed Nov 23 19:01:59 2011 for FreeCAD by  doxygen 1.6.1