QElectroTech  0.8-dev
Classes | Namespaces | Enumerations | Functions | Variables
qet.h File Reference
#include <QDomElement>
#include <QFile>
#include <QObject>
Include dependency graph for qet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Qet
 

Namespaces

 QET
 

Enumerations

enum  QET::GraphicsItemState { QET::GIOK, QET::GIBuildingFromXml, QET::GILoadingFromXml }
 
enum  QET::DepthOption { QET::BringForward, QET::Raise, QET::Lower, QET::SendBackward }
 List the various kind of changes for the zValue. More...
 
enum  QET::OrientedMovement {
  QET::ToNorth, QET::ToNorthEast, QET::ToEast, QET::ToSouthEast,
  QET::ToSouth, QET::ToSouthWest, QET::ToWest, QET::ToNorthWest
}
 Oriented movements. More...
 
enum  QET::OperationAreas {
  QET::ChangeInnerPoints = -4, QET::RotateArea = -3, QET::MoveArea = -2, QET::NoOperation = -1,
  QET::ResizeFromTopLeftCorner = 0, QET::ResizeFromTopCenterCorner = 1, QET::ResizeFromTopRightCorner = 2, QET::ResizeFromMiddleLeftCorner = 3,
  QET::ResizeFromMiddleRightCorner = 4, QET::ResizeFromBottomLeftCorner = 5, QET::ResizeFromBottomCenterCorner = 6, QET::ResizeFromBottomRightCorner = 7
}
 List areas related to some common operations. More...
 
enum  QET::ScalingMethod { QET::FreeScaling, QET::SnapScalingPointToGrid, QET::RoundScaleRatios }
 Supported types of interactive scaling, typically for a single element primitive. More...
 
enum  QET::ConductorSegmentType { QET::Horizontal = 1, QET::Vertical = 2, QET::Both = 3 }
 Known kinds of conductor segments. More...
 
enum  QET::ItemType {
  QET::Element = 1, QET::ElementsCategory = 2, QET::ElementsCollection = 4, QET::ElementsContainer = 6,
  QET::ElementsCollectionItem = 7, QET::TitleBlockTemplate = 8, QET::TitleBlockTemplatesCollection = 16, QET::TitleBlockTemplatesCollectionItem = 24,
  QET::Diagram = 32, QET::Project = 64, QET::All = 127
}
 
enum  QET::Filtering { QET::BeginFilter, QET::RegularFilter, QET::EndFilter }
 
enum  QET::Action {
  QET::Retry, QET::Ignore, QET::Erase, QET::Abort,
  QET::Managed, QET::Rename
}
 
enum  QET::DiagramArea { QET::BorderArea, QET::ElementsArea }
 
enum  QET::TitleBlockColumnLength { QET::Absolute, QET::RelativeToTotalLength, QET::RelativeToRemainingLength }
 enum used to specify the type of a length More...
 
enum  QET::QetCollection { QET::Common, QET::Custom, QET::Embedded }
 Enum used to specify the origin of a collection of thing (title block, element etc...) More...
 

Functions

QString QET::license ()
 
QString QET::qetCollectionToString (const QetCollection &c)
 QET::qetCollectionToString. More...
 
QetCollection QET::qetCollectionFromString (const QString &str)
 QET::qetCollectionFromString. More...
 
bool QET::lineContainsPoint (const QLineF &, const QPointF &)
 
bool QET::orthogonalProjection (const QPointF &, const QLineF &, QPointF *=nullptr)
 
bool QET::attributeIsAnInteger (const QDomElement &, const QString &, int *=nullptr)
 
bool QET::attributeIsAReal (const QDomElement &, const QString &, qreal *=nullptr)
 
QString QET::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 conducteurs" ou encore "x elements, y conducteurs et z champs de texte". More...
 
QList< QDomElement > QET::findInDomElement (const QDomElement &, const QString &)
 
QList< QDomElement > QET::findInDomElement (const QDomElement &, const QString &, const QString &)
 
QList< QChar > QET::forbiddenCharacters ()
 
QString QET::stringToFileName (const QString &)
 
QString QET::escapeSpaces (const QString &)
 
QString QET::unescapeSpaces (const QString &)
 
QString QET::joinWithSpaces (const QStringList &)
 
QStringList QET::splitWithSpaces (const QString &)
 
QString QET::diagramAreaToString (const QET::DiagramArea &)
 
QET::DiagramArea QET::diagramAreaFromString (const QString &)
 
qreal QET::round (qreal, qreal)
 
qreal QET::correctAngle (const qreal &)
 
bool QET::compareCanonicalFilePaths (const QString &, const QString &)
 
bool QET::writeXmlFile (QDomDocument &xml_doc, const QString &filepath, QString *error_message=nullptr)
 
bool QET::writeToFile (QDomDocument &xml_doc, QFile *file, QString *error_message=nullptr)
 
bool QET::eachStrIsEqual (const QStringList &qsl)
 QET::eachStrIsEqual. More...
 
QActionGroup * QET::depthActionGroup (QObject *parent=nullptr)
 QET::depthActionGroup. More...
 

Variables

const QString QET::version = "0.80"
 QElectroTech version (as string, used to mark projects and elements XML documents) More...
 
const QString QET::displayedVersion = "0.80-DEV"
 QElectroTech displayed version. More...