![]() |
QElectroTech 0.100.0-dev
|
The ElementFactory class this class is a pattern factory and also a singleton factory. this class create new instance of herited class element like simple element or report element. More...
#include <elementfactory.h>

Public Member Functions | |
| Element * | createElement (const ElementsLocation &, QGraphicsItem *=nullptr, int *=nullptr) |
| ElementFactory::createElement. | |
Static Public Member Functions | |
| static ElementFactory * | Instance () |
| static void | dropInstance () |
Private Member Functions | |
| ElementFactory () | |
| ElementFactory (const ElementFactory &) | |
| ElementFactory | operator= (const ElementFactory &) |
| ~ElementFactory () | |
Static Private Attributes | |
| static ElementFactory * | factory_ = nullptr |
The ElementFactory class this class is a pattern factory and also a singleton factory. this class create new instance of herited class element like simple element or report element.
|
inlineprivate |

|
private |
|
inlineprivate |
| Element * ElementFactory::createElement | ( | const ElementsLocation & | location, |
| QGraphicsItem * | qgi = nullptr, |
||
| int * | state = nullptr |
||
| ) |
ElementFactory::createElement.
| location | create element at this location |
| qgi | parent item for this element |
| state | state of the creation |

|
inlinestatic |

|
inlinestatic |


|
private |
|
staticprivate |