QElectroTech
0.8-dev
|
#include <elementprovider.h>
Public Member Functions | |
ElementProvider (QETProject *prj, Diagram *diagram=nullptr) | |
ElementProvider::ElementProvider Constructor. More... | |
ElementProvider (Diagram *diag) | |
ElementProvider::ElementProvider Constructor. More... | |
QList< Element * > | freeElement (const int filter) const |
ElementProvider::FreeElement Search and return the asked element corresponding with the given filter All returned element are free, ie element aren't connected with another element. More... | |
QList< Element * > | fromUuids (QList< QUuid >) const |
ElementProvider::fromUuids. More... | |
QList< Element * > | find (const int filter) const |
ElementProvider::find Search and return the asked element corresponding with the given filter. More... | |
QVector< QetGraphicsTableItem * > | table (QetGraphicsTableItem *table=nullptr, QAbstractItemModel *model=nullptr) |
ElementProvider::table. More... | |
QetGraphicsTableItem * | tableFromUuid (const QUuid &uuid) |
ElementProvider::tableFromUuid. More... | |
Private Attributes | |
QList< Diagram * > | m_diagram_list |
this class can search in the given diagram or project some kind of element like 'folio report' or 'master' and return it. We can get element element with specific status like 'free'.
ElementProvider::ElementProvider | ( | QETProject * | prj, |
Diagram * | diagram = nullptr |
||
) |
ElementProvider::ElementProvider Constructor.
prj | the project where we must find element |
diagram | the diagram to exclude from the search |
ElementProvider::ElementProvider | ( | Diagram * | diag | ) |
ElementProvider::ElementProvider Constructor.
diag | Diagram to search |
QList< Element * > ElementProvider::find | ( | const int | filter | ) | const |
ElementProvider::find Search and return the asked element corresponding with the given filter.
filter | the filter for search element (You can find all filter with the define in Element.h) |
QList< Element * > ElementProvider::freeElement | ( | const int | filter | ) | const |
ElementProvider::FreeElement Search and return the asked element corresponding with the given filter All returned element are free, ie element aren't connected with another element.
filter | the filter for search element (You can find all filter with the define in Element.h) |
QList< Element * > ElementProvider::fromUuids | ( | QList< QUuid > | uuid_list | ) | const |
uuid_list | list of uuid must be found |
QVector< QetGraphicsTableItem * > ElementProvider::table | ( | QetGraphicsTableItem * | table = nullptr , |
QAbstractItemModel * | model = nullptr |
||
) |
table | |
model |
QetGraphicsTableItem * ElementProvider::tableFromUuid | ( | const QUuid & | uuid | ) |
ElementProvider::tableFromUuid.
uuid |
|
private |