|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
21 #include <QDomElement>
164 bool attributeIsAReal(
const QDomElement &,
const QString& , qreal * =
nullptr);
165 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);
167 QList<QDomElement>
findInDomElement(
const QDomElement &,
const QString &,
const QString &);
176 qreal
round(qreal, qreal);
179 bool writeXmlFile(QDomDocument &xml_doc,
const QString &filepath, QString * error_message=
nullptr);
180 bool writeToFile (QDomDocument &xml_doc, QFile *file, QString *error_message =
nullptr);
187 class
Qet : public QObject
@ Project
Definition: qet.h:109
@ NoOperation
Definition: qet.h:69
QIcon Lower
Definition: qeticons.cpp:117
static bool isOpposed(Qet::Orientation a, Qet::Orientation b)
Qet::isOpposed.
Definition: qet.cpp:77
@ West
Definition: qet.h:209
@ RelativeToTotalLength
the length is just a fraction of the total available length
Definition: qet.h:147
@ Ignore
Skip the current item.
Definition: qet.h:129
@ All
Definition: qet.h:110
QIcon West
Definition: qeticons.cpp:174
@ ElementsArea
Export the content of the diagram only.
Definition: qet.h:141
@ ToEast
Definition: qet.h:56
qreal round(qreal, qreal)
Definition: qet.cpp:537
Q_DECLARE_METATYPE(NamesList)
@ None
Regular line.
Definition: qet.h:194
QActionGroup * depthActionGroup(QObject *parent=nullptr)
QET::depthActionGroup.
Definition: qet.cpp:676
@ Custom
From user collection.
Definition: qet.h:154
OrientedMovement
Oriented movements.
Definition: qet.h:53
@ ResizeFromBottomRightCorner
Definition: qet.h:77
@ RegularFilter
Definition: qet.h:118
@ ElementsContainer
Definition: qet.h:103
OperationAreas
List areas related to some common operations.
Definition: qet.h:65
const QString version
QElectroTech version (as string, used to mark projects and elements XML documents)
Definition: qet.h:32
@ SnapScalingPointToGrid
snap the point used to define the new bounding rectangle to the grid
Definition: qet.h:83
QetCollection
Enum used to specify the origin of a collection of thing (title block, element etc....
Definition: qet.h:152
bool lineContainsPoint(const QLineF &, const QPointF &)
Definition: qet.cpp:150
ItemType
Definition: qet.h:99
@ Simple
Base-less triangle.
Definition: qet.h:195
@ Raise
Raise item one layer above their current one; zValues are incremented.
Definition: qet.h:47
@ FreeScaling
do not interfer with the default scaling process
Definition: qet.h:82
GraphicsItemState
Definition: qet.h:38
QStringList splitWithSpaces(const QString &)
Definition: qet.cpp:469
QET::DiagramArea diagramAreaFromString(const QString &)
Definition: qet.cpp:528
@ ToSouthEast
Definition: qet.h:57
@ Diamond
Diamond.
Definition: qet.h:198
TitleBlockColumnLength
enum used to specify the type of a length
Definition: qet.h:145
static Qet::Orientation nextOrientation(Qet::Orientation)
Definition: qet.cpp:127
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< QDomElement > findInDomElement(const QDomElement &, const QString &)
Definition: qet.cpp:333
@ Managed
the current item was handled by the Strategy object: do not treat it and continue
Definition: qet.h:132
QIcon SendBackward
Definition: qeticons.cpp:158
QString unescapeSpaces(const QString &)
Definition: qet.cpp:442
QString escapeSpaces(const QString &)
Definition: qet.cpp:433
QList< QChar > forbiddenCharacters()
Definition: qet.cpp:401
@ ElementsCollection
Definition: qet.h:102
bool eachStrIsEqual(const QStringList &qsl)
QET::eachStrIsEqual.
Definition: qet.cpp:624
@ SendBackward
Send item to the background so they have the lowest zValue.
Definition: qet.h:49
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition: titleblocktemplate.h:36
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
@ BringForward
Bring item to the foreground so they have the highest zValue.
Definition: qet.h:46
bool orthogonalProjection(const QPointF &, const QLineF &, QPointF *=nullptr)
Definition: qet.cpp:166
@ ChangeInnerPoints
Definition: qet.h:66
static bool surLeMemeAxe(Qet::Orientation, Qet::Orientation)
Definition: qet.cpp:65
QString stringToFileName(const QString &)
Definition: qet.cpp:414
@ ResizeFromTopLeftCorner
Definition: qet.h:70
const QString displayedVersion
QElectroTech displayed version.
Definition: qet.h:34
@ ResizeFromTopCenterCorner
Definition: qet.h:71
@ GIOK
General state.
Definition: qet.h:39
@ Rename
the target has to be renamed
Definition: qet.h:133
QString diagramAreaToString(const QET::DiagramArea &)
Definition: qet.cpp:518
qreal correctAngle(const qreal &)
Definition: qet.cpp:545
QString qetCollectionToString(const QetCollection &c)
QET::qetCollectionToString.
Definition: qet.cpp:637
@ Absolute
the length is absolute and should be applied as is
Definition: qet.h:146
QString license()
Definition: qet.cpp:373
Orientation
Orientation (used for electrical elements and their terminals)
Definition: qet.h:206
@ BorderArea
Export the diagram along with its border and title block.
Definition: qet.h:140
EndType
This enum lists the various available endings for line primitives when drawing an electrical element.
Definition: qet.h:193
QIcon North
Definition: qeticons.cpp:122
@ ToSouthWest
Definition: qet.h:59
DepthOption
List the various kind of changes for the zValue.
Definition: qet.h:45
bool writeXmlFile(QDomDocument &xml_doc, const QString &filepath, QString *error_message=nullptr)
Definition: qet.cpp:584
static QString orientationToString(Qet::Orientation)
Definition: qet.cpp:48
@ ResizeFromBottomCenterCorner
Definition: qet.h:76
@ ResizeFromTopRightCorner
Definition: qet.h:72
@ Abort
abort the whole operation, ignoring the curent item
Definition: qet.h:131
@ ToNorthWest
Definition: qet.h:61
@ ElementsCategory
Definition: qet.h:101
@ Lower
Send item one layer below their current one; zValues are decremented.
Definition: qet.h:48
bool compareCanonicalFilePaths(const QString &, const QString &)
Definition: qet.cpp:559
@ MoveArea
Definition: qet.h:68
QetCollection qetCollectionFromString(const QString &str)
QET::qetCollectionFromString.
Definition: qet.cpp:658
@ ToNorth
Definition: qet.h:54
static Qet::Orientation previousOrientation(Qet::Orientation)
Definition: qet.cpp:139
QIcon it
Definition: qeticons.cpp:196
static bool isHorizontal(Qet::Orientation)
Qet::isHorizontal.
Definition: qet.cpp:107
@ North
Definition: qet.h:206
@ ResizeFromMiddleLeftCorner
Definition: qet.h:73
static Qet::EndType endTypeFromString(const QString &)
Definition: qet.cpp:506
@ Circle
Circle.
Definition: qet.h:197
Action
Definition: qet.h:127
@ EndFilter
Definition: qet.h:119
@ Embedded
From an embedded collection (a project for exemple)
Definition: qet.h:155
Filtering
Definition: qet.h:116
@ Vertical
Vertical segment.
Definition: qet.h:90
QIcon Raise
Definition: qeticons.cpp:154
static QString endTypeToString(const Qet::EndType &)
Definition: qet.cpp:489
@ Erase
Erase the target content.
Definition: qet.h:130
@ South
Definition: qet.h:208
static Qet::Orientation orientationFromString(const QString &)
Definition: qet.cpp:36
bool attributeIsAnInteger(const QDomElement &, const QString &, int *=nullptr)
Definition: qet.cpp:210
static bool isVertical(Qet::Orientation)
Qet::isVertical.
Definition: qet.cpp:116
Definition: templatescollection.h:34
bool writeToFile(QDomDocument &xml_doc, QFile *file, QString *error_message=nullptr)
Definition: qet.cpp:703
@ Both
Invalid segment.
Definition: qet.h:91
ConductorSegmentType
Known kinds of conductor segments.
Definition: qet.h:88
@ GIBuildingFromXml
Item is currently building from a xml description (element)
Definition: qet.h:40
@ ResizeFromBottomLeftCorner
Definition: qet.h:75
@ Triangle
Triangle.
Definition: qet.h:196
ScalingMethod
Supported types of interactive scaling, typically for a single element primitive.
Definition: qet.h:81
@ GILoadingFromXml
Item is loading her properties from a xml description.
Definition: qet.h:41
@ Horizontal
Horizontal segment.
Definition: qet.h:89
@ TitleBlockTemplatesCollectionItem
Definition: qet.h:107
@ ElementsCollectionItem
Definition: qet.h:104
@ RoundScaleRatios
adjust the scaling movement so that the induced scaling ratios are rounded
Definition: qet.h:84
@ ResizeFromMiddleRightCorner
Definition: qet.h:74
@ East
Definition: qet.h:207
@ Common
From common collection.
Definition: qet.h:153
@ ToSouth
Definition: qet.h:58
@ BeginFilter
Definition: qet.h:117
QIcon tr
Definition: qeticons.cpp:206
DiagramArea
Definition: qet.h:139
bool attributeIsAReal(const QDomElement &, const QString &, qreal *=nullptr)
Definition: qet.cpp:231
@ Retry
The operation must be tried again.
Definition: qet.h:128
@ ToWest
Definition: qet.h:60
@ RotateArea
Definition: qet.h:67
@ RelativeToRemainingLength
the length is just a fraction of the length that is still available when other types of lengths have ...
Definition: qet.h:148
QIcon BringForward
Definition: qeticons.cpp:33
QString joinWithSpaces(const QStringList &)
Definition: qet.cpp:452
@ ToNorthEast
Definition: qet.h:55