QElectroTech 0.100.0-dev
|
#include <elementprovider.h>
Public Member Functions | |
ElementProvider (QETProject *prj, Diagram *diagram=nullptr) | |
ElementProvider::ElementProvider Constructor. | |
ElementProvider (Diagram *diag) | |
ElementProvider::ElementProvider Constructor. | |
QVector< QPointer< Element > > | freeElement (ElementData::Types 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. | |
QList< Element * > | fromUuids (QList< QUuid >) const |
ElementProvider::fromUuids. | |
QVector< QPointer< Element > > | find (ElementData::Types elmt_type) const |
ElementProvider::find Search and return the element with the type given in parameter. | |
QVector< QetGraphicsTableItem * > | table (QetGraphicsTableItem *table=nullptr, QAbstractItemModel *model=nullptr) |
ElementProvider::table. | |
QetGraphicsTableItem * | tableFromUuid (const QUuid &uuid) |
ElementProvider::tableFromUuid. | |
QVector< TerminalElement * > | freeTerminal () const |
ElementProvider::freeTerminal. | |
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 |
QVector< QPointer< Element > > ElementProvider::find | ( | ElementData::Types | elmt_type | ) | const |
ElementProvider::find Search and return the element with the type given in parameter.
elmt_type |
QVector< QPointer< Element > > ElementProvider::freeElement | ( | ElementData::Types | 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 |
QVector< TerminalElement * > ElementProvider::freeTerminal | ( | ) | const |
ElementProvider::freeTerminal.
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 |