Gui::DocumentIndex Class Reference
Public Member Functions | |
ViewProviderIndex * cloneViewProvider (const ViewProviderDocumentObject &) const | |
QVariant data (int role) const | |
DocumentIndex (const Gui::Document &d) | |
void findViewProviders (const ViewProviderDocumentObject &, QList< ViewProviderIndex * > &) const | |
int rowOfViewProvider (const ViewProviderDocumentObject &) const | |
~DocumentIndex () | |
![]() | |
void appendChild (DocumentModelIndex *child) | |
DocumentModelIndex * child (int row) | |
int childCount () const | |
virtual Qt::ItemFlags flags () const | |
DocumentModelIndex * parent () const | |
QList< DocumentModelIndex * > removeAll () | |
void removeChild (int row) | |
int row () const | |
virtual bool setData (const QVariant &value, int role) | |
void setParent (DocumentModelIndex *parent) | |
virtual ~DocumentModelIndex () | |
![]() | |
BaseClass () | |
Construction. More... | |
virtual PyObject * getPyObject (void) | |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type getTypeId (void) const | |
bool isDerivedFrom (const Type type) const | |
virtual void setPyObject (PyObject *) | |
virtual ~BaseClass () | |
Destruction. More... | |
Public Attributes | |
const Gui::Document & d | |
Friends | |
class ViewProviderIndex | |
Additional Inherited Members | |
![]() | |
static void * create (void) | |
static Type getClassTypeId (void) | |
static void init (void) | |
![]() | |
DocumentModelIndex () | |
void reset () | |
![]() | |
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) | |
![]() | |
QList< DocumentModelIndex * > childItems | |
DocumentModelIndex * parentItem | |
Constructor & Destructor Documentation
◆ DocumentIndex()
Gui::DocumentIndex::DocumentIndex | ( | const Gui::Document & | d | ) |
References Gui::BitmapFactory().
◆ ~DocumentIndex()
Gui::DocumentIndex::~DocumentIndex | ( | ) |
References Gui::DocumentModelIndex::childItems.
Member Function Documentation
◆ cloneViewProvider()
ViewProviderIndex * Gui::DocumentIndex::cloneViewProvider | ( | const ViewProviderDocumentObject & | vp | ) | const |
References ViewProviderIndex.
◆ data()
|
virtual |
Reimplemented from Gui::DocumentModelIndex.
References Gui::Application::activeDocument(), d, Gui::Document::getDocument(), and Gui::Application::Instance.
Referenced by ArchSchedule.CommandArchSchedule::IsActive().
◆ findViewProviders()
void Gui::DocumentIndex::findViewProviders | ( | const ViewProviderDocumentObject & | vp, |
QList< ViewProviderIndex * > & | index | ||
) | const |
◆ rowOfViewProvider()
int Gui::DocumentIndex::rowOfViewProvider | ( | const ViewProviderDocumentObject & | vp | ) | const |
References Gui::DocumentModelIndex::childItems.
Friends And Related Function Documentation
◆ ViewProviderIndex
|
friend |
Referenced by cloneViewProvider().
Member Data Documentation
◆ d
const Gui::Document& Gui::DocumentIndex::d |
Referenced by data().
The documentation for this class was generated from the following file:
- src/Gui/DocumentModel.cpp