|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef DIAGRAM_CONTENT_H
19 #define DIAGRAM_CONTENT_H
88 QList<QGraphicsItem *>
items(
int =
All)
const;
@ Tables
Definition: diagramcontent.h:64
@ Images
Definition: diagramcontent.h:57
@ AnyConductor
Definition: diagramcontent.h:61
@ ConductorsToMove
Definition: diagramcontent.h:58
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition: dynamicelementtextitem.h:39
@ Type
Definition: independenttextitem.h:39
QList< QGraphicsItem * > m_selected_items
Definition: diagramcontent.h:79
The QetGraphicsTableItem class This item display a table destined to represent the content of a QAbst...
Definition: qetgraphicstableitem.h:43
QList< Conductor * > m_conductors_to_move
Definition: diagramcontent.h:74
bool hasTextEditing()
DiagramContent::hasTextEditing.
Definition: diagramcontent.cpp:358
@ TextFields
Definition: diagramcontent.h:55
QSet< DiagramImageItem * > m_images
Definition: diagramcontent.h:71
@ Type
Definition: qetshapeitem.h:63
Definition: diagramcontent.h:46
void clear()
DiagramContent::clear Remove all items from the diagram content.
Definition: diagramcontent.cpp:227
QList< Element * > m_elements
Definition: diagramcontent.h:69
QList< Conductor * > m_conductors_to_update
Definition: diagramcontent.h:73
bool hasCopiableItems() const
DiagramContent::hasCopiableItems.
Definition: diagramcontent.cpp:213
@ Type
Definition: element.h:74
QString ElementsAndConductorsSentence(int elements=0, int conductors=0, int indi_texts=0, int images=0, int shapes=0, int element_text=0, int tables_count=0)
QET::ElementsAndConductorsSentence Permet de composer rapidement la proposition "x elements et y cond...
Definition: qet.cpp:258
QList< Conductor * > conductors(int=AnyConductor) const
DiagramContent::conductors.
Definition: diagramcontent.cpp:167
@ ElementTextFields
Definition: diagramcontent.h:56
QString sentence(int=All) const
DiagramContent::sentence.
Definition: diagramcontent.cpp:438
QDebug & operator<<(QDebug, DiagramContent &)
operator << Use to debug a diagram content
Definition: diagramcontent.cpp:467
Definition: diagramimageitem.h:31
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
@ Type
Definition: dynamicelementtextitem.h:61
Filter
Used to filter the different items carried by this container.
Definition: diagramcontent.h:53
QList< ElementTextItemGroup * > selectedTextsGroup() const
DiagramContent::selectedTextsGroup.
Definition: diagramcontent.cpp:150
@ Type
Definition: qetgraphicstableitem.h:57
@ ConductorsToUpdate
Definition: diagramcontent.h:59
QSet< ElementTextItemGroup * > m_texts_groups
Definition: diagramcontent.h:78
QVector< QetGraphicsTableItem * > m_tables
Definition: diagramcontent.h:80
~DiagramContent()
Definition: diagramcontent.cpp:120
bool potentialIsManaged(QList< Conductor * >conductors)
DiagramContent::potentialIsManaged.
Definition: diagramcontent.cpp:341
bool hasDeletableItems() const
DiagramContent::hasDeletableItems.
Definition: diagramcontent.cpp:190
int count(int=All) const
DiagramContent::count.
Definition: diagramcontent.cpp:401
QList< Conductor * > m_potential_conductors
Definition: diagramcontent.h:76
Definition: diagramtextitem.h:34
@ All
Definition: diagramcontent.h:65
QSet< DynamicElementTextItem * > m_element_texts
Definition: diagramcontent.h:77
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition: elementtextitemgroup.h:36
@ SelectedOnly
Definition: diagramcontent.h:66
QSet< Conductor * > relatedPotentialConductors(const bool all_diagram=true, QList< Terminal * > *t_list=nullptr)
Conductor::relatedPotentialConductors Return all conductors at the same potential of this conductor,...
Definition: conductor.cpp:1647
QSet< QetShapeItem * > m_shapes
Definition: diagramcontent.h:72
@ Type
Definition: conductor.h:64
QList< DiagramTextItem * > selectedTexts() const
DiagramContent::selectedTexts.
Definition: diagramcontent.cpp:130
@ TextGroup
Definition: diagramcontent.h:63
Definition: independenttextitem.h:28
@ Shapes
Definition: diagramcontent.h:62
@ OtherConductors
Definition: diagramcontent.h:60
QList< QGraphicsItem * > items(int=All) const
DiagramContent::items.
Definition: diagramcontent.cpp:374
The QetShapeItem class this class is used to draw a basic shape (line, rectangle, ellipse) into a dia...
Definition: qetshapeitem.h:36
@ Type
Definition: conductortextitem.h:42
DiagramContent()
DiagramContent::DiagramContent.
Definition: diagramcontent.cpp:35
int removeNonMovableItems()
DiagramContent::removeNonMovableItems Remove all non movable item.
Definition: diagramcontent.cpp:247
Definition: conductor.h:43
@ Type
Definition: diagramimageitem.h:42
QDebug & operator<<(QDebug d, DiagramContent &content)
operator << Use to debug a diagram content
Definition: diagramcontent.cpp:467
The Terminal class This class represents a terminal of an electrical element, i.e....
Definition: terminal.h:35
@ Elements
Definition: diagramcontent.h:54
QSet< IndependentTextItem * > m_text_fields
Definition: diagramcontent.h:70
DiagramContent & operator+=(const DiagramContent &other)
Definition: diagramcontent.cpp:278
QList< Conductor * > m_other_conductors
Definition: diagramcontent.h:75