|
enum | { Type = UserType + 1101
} |
|
enum | LineStyle { NormalStyle
, DashedStyle
, DottedStyle
, DashdottedStyle
} |
|
enum | LineWeight {
NoneWeight
, ThinWeight
, NormalWeight
, UltraWeight
,
BigWeight
} |
|
enum | Filling {
NoneFilling
, BlackFilling
, WhiteFilling
, GreenFilling
,
RedFilling
, BlueFilling
, GrayFilling
, BrunFilling
,
YellowFilling
, CyanFilling
, MagentaFilling
, LightgrayFilling
,
OrangeFilling
, PurpleFilling
, HTMLPinkPinkFilling
, HTMLPinkLightPinkFilling
,
HTMLPinkHotPinkFilling
, HTMLPinkDeepPinkFilling
, HTMLPinkPaleVioletRedFilling
, HTMLPinkMediumVioletRedFilling
,
HTMLRedLightSalmonFilling
, HTMLRedSalmonFilling
, HTMLRedDarkSalmonFilling
, HTMLRedLightCoralFilling
,
HTMLRedIndianRedFilling
, HTMLRedCrimsonFilling
, HTMLRedFirebrickFilling
, HTMLRedDarkRedFilling
,
HTMLRedRedFilling
, HTMLOrangeOrangeRedFilling
, HTMLOrangeTomatoFilling
, HTMLOrangeCoralFilling
,
HTMLOrangeDarkOrangeFilling
, HTMLOrangeOrangeFilling
, HTMLYellowYellowFilling
, HTMLYellowLightYellowFilling
,
HTMLYellowLemonChiffonFilling
, HTMLYellowLightGoldenrodYellowFilling
, HTMLYellowPapayaWhipFilling
, HTMLYellowMoccasinFilling
,
HTMLYellowPeachPuffFilling
, HTMLYellowPaleGoldenrodFilling
, HTMLYellowKhakiFilling
, HTMLYellowDarkKhakiFilling
,
HTMLYellowGoldFilling
, HTMLBrownCornsilkFilling
, HTMLBrownBlanchedAlmondFilling
, HTMLBrownBisqueFilling
,
HTMLBrownNavajoWhiteFilling
, HTMLBrownWheatFilling
, HTMLBrownBurlywoodFilling
, HTMLBrownTanFilling
,
HTMLBrownRosyBrownFilling
, HTMLBrownSandyBrownFilling
, HTMLBrownGoldenrodFilling
, HTMLBrownDarkGoldenrodFilling
,
HTMLBrownPeruFilling
, HTMLBrownChocolateFilling
, HTMLBrownSaddleBrownFilling
, HTMLBrownSiennaFilling
,
HTMLBrownBrownFilling
, HTMLBrownMaroonFilling
, HTMLGreenDarkOliveGreenFilling
, HTMLGreenOliveFilling
,
HTMLGreenOliveDrabFilling
, HTMLGreenYellowGreenFilling
, HTMLGreenLimeGreenFilling
, HTMLGreenLimeFilling
,
HTMLGreenLawnGreenFilling
, HTMLGreenChartreuseFilling
, HTMLGreenGreenYellowFilling
, HTMLGreenSpringGreenFilling
,
HTMLGreenMediumSpringGreenFilling
, HTMLGreenLightGreenFilling
, HTMLGreenPaleGreenFilling
, HTMLGreenDarkSeaGreenFilling
,
HTMLGreenMediumAquamarineFilling
, HTMLGreenMediumSeaGreenFilling
, HTMLGreenSeaGreenFilling
, HTMLGreenForestGreenFilling
,
HTMLGreenGreenFilling
, HTMLGreenDarkGreenFilling
, HTMLCyanAquaFilling
, HTMLCyanCyanFilling
,
HTMLCyanLightCyanFilling
, HTMLCyanPaleTurquoiseFilling
, HTMLCyanAquamarineFilling
, HTMLCyanTurquoiseFilling
,
HTMLCyanMediumTurquoiseFilling
, HTMLCyanDarkTurquoiseFilling
, HTMLCyanLightSeaGreenFilling
, HTMLCyanCadetBlueFilling
,
HTMLCyanDarkCyanFilling
, HTMLCyanTealFilling
, HTMLBlueLightSteelBlueFilling
, HTMLBluePowderBlueFilling
,
HTMLBlueLightBlueFilling
, HTMLBlueSkyBlueFilling
, HTMLBlueLightSkyBlueFilling
, HTMLBlueDeepSkyBlueFilling
,
HTMLBlueDodgerBlueFilling
, HTMLBlueCornflowerBlueFilling
, HTMLBlueSteelBlueFilling
, HTMLBlueRoyalBlueFilling
,
HTMLBlueBlueFilling
, HTMLBlueMediumBlueFilling
, HTMLBlueDarkBlueFilling
, HTMLBlueNavyFilling
,
HTMLBlueMidnightBlueFilling
, HTMLPurpleLavenderFilling
, HTMLPurpleThistleFilling
, HTMLPurplePlumFilling
,
HTMLPurpleVioletFilling
, HTMLPurpleOrchidFilling
, HTMLPurpleFuchsiaFilling
, HTMLPurpleMagentaFilling
,
HTMLPurpleMediumOrchidFilling
, HTMLPurpleMediumPurpleFilling
, HTMLPurpleBlueVioletFilling
, HTMLPurpleDarkVioletFilling
,
HTMLPurpleDarkOrchidFilling
, HTMLPurpleDarkMagentaFilling
, HTMLPurplePurpleFilling
, HTMLPurpleIndigoFilling
,
HTMLPurpleDarkSlateBlueFilling
, HTMLPurpleSlateBlueFilling
, HTMLPurpleMediumSlateBlueFilling
, HTMLWhiteWhiteFilling
,
HTMLWhiteSnowFilling
, HTMLWhiteHoneydewFilling
, HTMLWhiteMintCreamFilling
, HTMLWhiteAzureFilling
,
HTMLWhiteAliceBlueFilling
, HTMLWhiteGhostWhiteFilling
, HTMLWhiteWhiteSmokeFilling
, HTMLWhiteSeashellFilling
,
HTMLWhiteBeigeFilling
, HTMLWhiteOldLaceFilling
, HTMLWhiteFloralWhiteFilling
, HTMLWhiteIvoryFilling
,
HTMLWhiteAntiqueWhiteFilling
, HTMLWhiteLinenFilling
, HTMLWhiteLavenderBlushFilling
, HTMLWhiteMistyRoseFilling
,
HTMLGrayGainsboroFilling
, HTMLGrayLightGrayFilling
, HTMLGraySilverFilling
, HTMLGrayDarkGrayFilling
,
HTMLGrayGrayFilling
, HTMLGrayDimGrayFilling
, HTMLGrayLightSlateGrayFilling
, HTMLGraySlateGrayFilling
,
HTMLGrayDarkSlateGrayFilling
, HTMLGrayBlackFilling
, HorFilling
, VerFilling
,
BdiagFilling
, FdiagFilling
} |
|
enum | Color {
BlackColor
, WhiteColor
, GreenColor
, RedColor
,
BlueColor
, GrayColor
, BrunColor
, YellowColor
,
CyanColor
, MagentaColor
, LightgrayColor
, OrangeColor
,
PurpleColor
, HTMLPinkPinkColor
, HTMLPinkLightPinkColor
, HTMLPinkHotPinkColor
,
HTMLPinkDeepPinkColor
, HTMLPinkPaleVioletRedColor
, HTMLPinkMediumVioletRedColor
, HTMLRedLightSalmonColor
,
HTMLRedSalmonColor
, HTMLRedDarkSalmonColor
, HTMLRedLightCoralColor
, HTMLRedIndianRedColor
,
HTMLRedCrimsonColor
, HTMLRedFirebrickColor
, HTMLRedDarkRedColor
, HTMLRedRedColor
,
HTMLOrangeOrangeRedColor
, HTMLOrangeTomatoColor
, HTMLOrangeCoralColor
, HTMLOrangeDarkOrangeColor
,
HTMLOrangeOrangeColor
, HTMLYellowYellowColor
, HTMLYellowLightYellowColor
, HTMLYellowLemonChiffonColor
,
HTMLYellowLightGoldenrodYellowColor
, HTMLYellowPapayaWhipColor
, HTMLYellowMoccasinColor
, HTMLYellowPeachPuffColor
,
HTMLYellowPaleGoldenrodColor
, HTMLYellowKhakiColor
, HTMLYellowDarkKhakiColor
, HTMLYellowGoldColor
,
HTMLBrownCornsilkColor
, HTMLBrownBlanchedAlmondColor
, HTMLBrownBisqueColor
, HTMLBrownNavajoWhiteColor
,
HTMLBrownWheatColor
, HTMLBrownBurlywoodColor
, HTMLBrownTanColor
, HTMLBrownRosyBrownColor
,
HTMLBrownSandyBrownColor
, HTMLBrownGoldenrodColor
, HTMLBrownDarkGoldenrodColor
, HTMLBrownPeruColor
,
HTMLBrownChocolateColor
, HTMLBrownSaddleBrownColor
, HTMLBrownSiennaColor
, HTMLBrownBrownColor
,
HTMLBrownMaroonColor
, HTMLGreenDarkOliveGreenColor
, HTMLGreenOliveColor
, HTMLGreenOliveDrabColor
,
HTMLGreenYellowGreenColor
, HTMLGreenLimeGreenColor
, HTMLGreenLimeColor
, HTMLGreenLawnGreenColor
,
HTMLGreenChartreuseColor
, HTMLGreenGreenYellowColor
, HTMLGreenSpringGreenColor
, HTMLGreenMediumSpringGreenColor
,
HTMLGreenLightGreenColor
, HTMLGreenPaleGreenColor
, HTMLGreenDarkSeaGreenColor
, HTMLGreenMediumAquamarineColor
,
HTMLGreenMediumSeaGreenColor
, HTMLGreenSeaGreenColor
, HTMLGreenForestGreenColor
, HTMLGreenGreenColor
,
HTMLGreenDarkGreenColor
, HTMLCyanAquaColor
, HTMLCyanCyanColor
, HTMLCyanLightCyanColor
,
HTMLCyanPaleTurquoiseColor
, HTMLCyanAquamarineColor
, HTMLCyanTurquoiseColor
, HTMLCyanMediumTurquoiseColor
,
HTMLCyanDarkTurquoiseColor
, HTMLCyanLightSeaGreenColor
, HTMLCyanCadetBlueColor
, HTMLCyanDarkCyanColor
,
HTMLCyanTealColor
, HTMLBlueLightSteelBlueColor
, HTMLBluePowderBlueColor
, HTMLBlueLightBlueColor
,
HTMLBlueSkyBlueColor
, HTMLBlueLightSkyBlueColor
, HTMLBlueDeepSkyBlueColor
, HTMLBlueDodgerBlueColor
,
HTMLBlueCornflowerBlueColor
, HTMLBlueSteelBlueColor
, HTMLBlueRoyalBlueColor
, HTMLBlueBlueColor
,
HTMLBlueMediumBlueColor
, HTMLBlueDarkBlueColor
, HTMLBlueNavyColor
, HTMLBlueMidnightBlueColor
,
HTMLPurpleLavenderColor
, HTMLPurpleThistleColor
, HTMLPurplePlumColor
, HTMLPurpleVioletColor
,
HTMLPurpleOrchidColor
, HTMLPurpleFuchsiaColor
, HTMLPurpleMagentaColor
, HTMLPurpleMediumOrchidColor
,
HTMLPurpleMediumPurpleColor
, HTMLPurpleBlueVioletColor
, HTMLPurpleDarkVioletColor
, HTMLPurpleDarkOrchidColor
,
HTMLPurpleDarkMagentaColor
, HTMLPurplePurpleColor
, HTMLPurpleIndigoColor
, HTMLPurpleDarkSlateBlueColor
,
HTMLPurpleSlateBlueColor
, HTMLPurpleMediumSlateBlueColor
, HTMLWhiteWhiteColor
, HTMLWhiteSnowColor
,
HTMLWhiteHoneydewColor
, HTMLWhiteMintCreamColor
, HTMLWhiteAzureColor
, HTMLWhiteAliceBlueColor
,
HTMLWhiteGhostWhiteColor
, HTMLWhiteWhiteSmokeColor
, HTMLWhiteSeashellColor
, HTMLWhiteBeigeColor
,
HTMLWhiteOldLaceColor
, HTMLWhiteFloralWhiteColor
, HTMLWhiteIvoryColor
, HTMLWhiteAntiqueWhiteColor
,
HTMLWhiteLinenColor
, HTMLWhiteLavenderBlushColor
, HTMLWhiteMistyRoseColor
, HTMLGrayGainsboroColor
,
HTMLGrayLightGrayColor
, HTMLGraySilverColor
, HTMLGrayDarkGrayColor
, HTMLGrayGrayColor
,
HTMLGrayDimGrayColor
, HTMLGrayLightSlateGrayColor
, HTMLGraySlateGrayColor
, HTMLGrayDarkSlateGrayColor
,
HTMLGrayBlackColor
, NoneColor
} |
|
|
| PartArc (QETElementEditor *editor, QGraphicsItem *parent=nullptr) |
| PartArc::PartArc Constructor.
|
|
| ~PartArc () override |
| PartArc::~PartArc Destructor.
|
|
int | type () const override |
|
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override |
| PartArc::paint Draw this arc.
|
|
QString | name () const override |
|
QString | xmlName () const override |
|
const QDomElement | toXml (QDomDocument &) const override |
| PartArc::toXml Export this arc in xml.
|
|
void | fromXml (const QDomElement &) override |
| PartArc::fromXml Import the properties of this arc from a xml element.
|
|
QPainterPath | shape () const override |
| PartArc::shape.
|
|
QPainterPath | shadowShape () const override |
|
void | setRect (const QRectF &rect) override |
| AbstractPartEllipse::setRect Sets the item's ellipse geometry to rect. The rectangle's left edge defines the left edge of the ellipse, and the rectangle's top edge describes the top of the ellipse The height and width of the rectangle describe the height and width of the ellipse.
|
|
void | setStartAngle (const int &start_angle) override |
| AbstractPartEllipse::setStartAngle Sets the start angle for an ellipse segment to angle, which is in 16ths of a degree. This angle is used together with spanAngle() for representing an ellipse segment (a pie). By default, the start angle is 0.
|
|
void | setSpanAngle (const int &span_angle) override |
| AbstractPartEllipse::setSpanAngle Returns the span angle of an ellipse segment in 16ths of a degree. This angle is used together with startAngle() for representing an ellipse segment (a pie). By default, this function returns 5760 (360 * 16, a full ellipse).
|
|
QRectF | sceneGeometricRect () const override |
| PartArc::sceneGeometricRect.
|
|
void | addHandler () override |
| PartArc::addHandler Add handlers for this item.
|
|
void | removeHandler () override |
| PartArc::removeHandler Remove the handlers of this item.
|
|
| AbstractPartEllipse (QETElementEditor *editor, QGraphicsItem *parent=nullptr) |
| AbstractPartEllipse::AbstractPartEllipse Constructor.
|
|
| ~AbstractPartEllipse () override |
| AbstractPartEllipse::~AbstractPartEllipse Destructor.
|
|
void | startUserTransformation (const QRectF &) override |
| AbstractPartEllipse::startUserTransformation Start the user-induced transformation, provided this primitive is contained within the initial_selection_rect bounding rectangle.
|
|
void | handleUserTransformation (const QRectF &, const QRectF &) override |
| AbstractPartEllipse::handleUserTransformation Handle the user-induced transformation from initial_selection_rect to new_selection_rect.
|
|
QRectF | boundingRect () const override |
| AbstractPartEllipse::boundingRect Bounding rectangle this part can fit into.
|
|
virtual QPointF | sceneTopLeft () const |
| AbstractPartEllipse::sceneTopLeft.
|
|
QRectF | rect () const |
| AbstractPartEllipse::rect Returns the item's ellipse geometry as a QRectF.
|
|
bool | isUseless () const override |
| AbstractPartEllipse::isUseless.
|
|
int | startAngle () const |
|
int | spanAngle () const |
|
| CustomElementGraphicPart (QETElementEditor *editor, QGraphicsItem *parent=nullptr) |
| CustomElementGraphicPart::CustomElementGraphicPart Default constructor. By default, item is selectable, send geometry change (Qt > 4.6), accept mouse left button and accept hover event.
|
|
| ~CustomElementGraphicPart () override |
| CustomElementGraphicPart::~CustomElementGraphicPart Destructor.
|
|
LineStyle | lineStyle () const |
|
void | setLineStyle (const LineStyle ls) |
| CustomElementGraphicPart::setLineStyle Set line style to ls.
|
|
LineWeight | lineWeight () const |
|
void | setLineWeight (const LineWeight lw) |
| CustomElementGraphicPart::setLineWeight Set line weight to lw.
|
|
qreal | penWeight () const |
| CustomElementGraphicPart::penWeight.
|
|
Filling | filling () const |
|
void | setFilling (const Filling f) |
| CustomElementGraphicPart::setFilling Set filling to f.
|
|
Color | color () const |
|
void | setColor (const Color c) |
| CustomElementGraphicPart::setColor Set color to c.
|
|
bool | antialiased () const |
|
void | setAntialiased (const bool b) |
| CustomElementGraphicPart::setAntialiased Set antialias to b.
|
|
void | setProperty (const char *name, const QVariant &value) override |
|
QVariant | property (const char *name) const override |
|
virtual void | setHandlerColor (QPointF, const QColor &) |
|
virtual void | resetAllHandlerColor () |
|
| CustomElementPart (QETElementEditor *editor) |
| CustomElementPart Constructor.
|
|
virtual | ~CustomElementPart () |
| ~CustomElementPart Destructor
|
|
virtual QETElementEditor * | elementEditor () const |
|
virtual void | updateCurrentPartEditor () const |
|
virtual ElementScene * | elementScene () const |
|
virtual QUndoStack & | undoStack () const |
|
virtual QGraphicsItem * | toItem () |
|
virtual QET::ScalingMethod | preferredScalingMethod () const |
|
The PartArc class This class represents an elliptical arc primitive which may be used to compose the drawing of an electrical element within the element editor.