|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef CUSTOM_ELEMENT_GRAPHIC_PART_H
19 #define CUSTOM_ELEMENT_GRAPHIC_PART_H
21 #include <QGraphicsObject>
37 #define SHADOWS_HEIGHT 4.0
268 QGraphicsItem *parent =
nullptr);
271 static void drawCross (
const QPointF ¢er,
295 const QVariant &value)
override {
296 QObject::setProperty(
name, value);}
298 return QObject::property(
name);}
312 QVariant
itemChange(GraphicsItemChange change,
313 const QVariant &value)
override;
320 QGraphicsSceneMouseEvent *event)
override;
@ HTMLPurpleMagentaColor
Definition: customelementgraphicpart.h:241
@ BrunColor
Definition: customelementgraphicpart.h:186
void enableAnimation(bool animate=true)
QPropertyUndoCommand::enableAnimation True to enable animation.
Definition: qpropertyundocommand.cpp:92
@ HTMLBlueMediumBlueColor
Definition: customelementgraphicpart.h:236
@ HTMLWhiteSnowFilling
Definition: customelementgraphicpart.h:158
@ HTMLWhiteHoneydewColor
Definition: customelementgraphicpart.h:249
@ HTMLGreenMediumSpringGreenFilling
Definition: customelementgraphicpart.h:112
@ HTMLWhiteSeashellFilling
Definition: customelementgraphicpart.h:164
@ HTMLPurpleMediumPurpleColor
Definition: customelementgraphicpart.h:242
@ HTMLGraySlateGrayColor
Definition: customelementgraphicpart.h:260
@ HTMLBlueBlueColor
Definition: customelementgraphicpart.h:235
@ HTMLRedDarkSalmonFilling
Definition: customelementgraphicpart.h:74
@ HTMLBlueSteelBlueColor
Definition: customelementgraphicpart.h:234
@ HTMLYellowLemonChiffonFilling
Definition: customelementgraphicpart.h:83
@ DashdottedStyle
Definition: customelementgraphicpart.h:52
@ HTMLGreenSpringGreenFilling
Definition: customelementgraphicpart.h:111
@ HTMLGreenLimeGreenColor
Definition: customelementgraphicpart.h:215
@ HTMLPinkPinkFilling
Definition: customelementgraphicpart.h:69
@ HTMLOrangeTomatoColor
Definition: customelementgraphicpart.h:196
virtual void resetAllHandlerColor()
Definition: customelementgraphicpart.h:303
@ HTMLYellowGoldFilling
Definition: customelementgraphicpart.h:91
@ HTMLYellowPeachPuffFilling
Definition: customelementgraphicpart.h:87
@ HTMLBrownRosyBrownFilling
Definition: customelementgraphicpart.h:96
QUndoStack & undoStack()
ElementScene::undoStack.
Definition: elementscene.cpp:603
@ HTMLWhiteIvoryFilling
Definition: customelementgraphicpart.h:167
@ HTMLGreenYellowGreenColor
Definition: customelementgraphicpart.h:214
@ MagentaColor
Definition: customelementgraphicpart.h:187
@ HTMLBrownGoldenrodColor
Definition: customelementgraphicpart.h:209
static void drawCross(const QPointF ¢er, QPainter *painter)
CustomElementGraphicPart::drawCross Draw a cross at pos center.
Definition: customelementgraphicpart.cpp:60
@ PurpleFilling
Definition: customelementgraphicpart.h:68
virtual QString name() const =0
@ HTMLGreenSeaGreenColor
Definition: customelementgraphicpart.h:222
void setLineStyle(const LineStyle ls)
CustomElementGraphicPart::setLineStyle Set line style to ls.
Definition: customelementgraphicpart.cpp:86
@ HTMLWhiteLavenderBlushFilling
Definition: customelementgraphicpart.h:170
@ HTMLCyanCyanFilling
Definition: customelementgraphicpart.h:121
@ HTMLBlueLightSkyBlueFilling
Definition: customelementgraphicpart.h:134
@ PurpleColor
Definition: customelementgraphicpart.h:187
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
CustomElementGraphicPart::hoverEnterEvent Reimplemented from QGraphicsObject. Set m_hovered to true.
Definition: customelementgraphicpart.cpp:1281
@ HTMLGreenDarkSeaGreenFilling
Definition: customelementgraphicpart.h:115
The CustomElementGraphicPart class This class is the base for all home-made primitive like line,...
Definition: customelementgraphicpart.h:36
@ HTMLPinkDeepPinkColor
Definition: customelementgraphicpart.h:189
@ RedFilling
Definition: customelementgraphicpart.h:65
@ HTMLGreenPaleGreenColor
Definition: customelementgraphicpart.h:219
@ CyanColor
Definition: customelementgraphicpart.h:186
@ HTMLWhiteLavenderBlushColor
Definition: customelementgraphicpart.h:255
@ GreenColor
Definition: customelementgraphicpart.h:185
@ HTMLYellowLemonChiffonColor
Definition: customelementgraphicpart.h:199
@ HTMLBlueLightSteelBlueFilling
Definition: customelementgraphicpart.h:131
@ HTMLRedDarkRedFilling
Definition: customelementgraphicpart.h:77
@ HTMLYellowMoccasinColor
Definition: customelementgraphicpart.h:201
@ HTMLOrangeCoralColor
Definition: customelementgraphicpart.h:197
@ HTMLOrangeOrangeRedColor
Definition: customelementgraphicpart.h:196
@ HTMLWhiteLinenFilling
Definition: customelementgraphicpart.h:169
@ HTMLGreenForestGreenColor
Definition: customelementgraphicpart.h:223
@ HTMLCyanCyanColor
Definition: customelementgraphicpart.h:225
@ ThinWeight
Definition: customelementgraphicpart.h:57
@ HTMLGreenPaleGreenFilling
Definition: customelementgraphicpart.h:114
@ HTMLBlueNavyFilling
Definition: customelementgraphicpart.h:141
@ HTMLYellowKhakiFilling
Definition: customelementgraphicpart.h:89
@ HTMLBrownGoldenrodFilling
Definition: customelementgraphicpart.h:98
@ HTMLGreenLimeGreenFilling
Definition: customelementgraphicpart.h:107
@ HTMLBrownChocolateColor
Definition: customelementgraphicpart.h:210
@ HTMLBlueCornflowerBlueColor
Definition: customelementgraphicpart.h:234
~CustomElementGraphicPart() override
CustomElementGraphicPart::~CustomElementGraphicPart Destructor.
Definition: customelementgraphicpart.cpp:51
@ HTMLPurpleMediumOrchidColor
Definition: customelementgraphicpart.h:241
@ HTMLGreenLimeFilling
Definition: customelementgraphicpart.h:107
void stylesToXml(QDomElement &) const
CustomElementGraphicPart::stylesToXml Write the curent style to xml element. The style are stored lik...
Definition: customelementgraphicpart.cpp:162
@ HTMLBrownSaddleBrownFilling
Definition: customelementgraphicpart.h:101
@ HTMLGreenForestGreenFilling
Definition: customelementgraphicpart.h:119
@ HTMLGreenMediumSeaGreenColor
Definition: customelementgraphicpart.h:222
@ HTMLPurpleDarkVioletFilling
Definition: customelementgraphicpart.h:151
@ HTMLPurpleOrchidFilling
Definition: customelementgraphicpart.h:145
@ HTMLBrownTanFilling
Definition: customelementgraphicpart.h:96
@ HTMLBlueDeepSkyBlueFilling
Definition: customelementgraphicpart.h:135
@ HTMLWhiteBeigeColor
Definition: customelementgraphicpart.h:252
virtual QPainterPath shadowShape() const =0
@ HTMLPurpleLavenderFilling
Definition: customelementgraphicpart.h:143
@ HTMLBrownMaroonFilling
Definition: customelementgraphicpart.h:103
@ HTMLWhiteWhiteFilling
Definition: customelementgraphicpart.h:158
void setFilling(const Filling f)
CustomElementGraphicPart::setFilling Set filling to f.
Definition: customelementgraphicpart.cpp:123
@ HTMLRedDarkSalmonColor
Definition: customelementgraphicpart.h:192
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Definition: customelementgraphicpart.cpp:1318
@ HTMLWhiteAliceBlueFilling
Definition: customelementgraphicpart.h:161
@ NormalWeight
Definition: customelementgraphicpart.h:58
@ HTMLWhiteBeigeFilling
Definition: customelementgraphicpart.h:164
@ HTMLRedSalmonColor
Definition: customelementgraphicpart.h:192
@ HTMLCyanCadetBlueFilling
Definition: customelementgraphicpart.h:129
@ HTMLCyanDarkCyanFilling
Definition: customelementgraphicpart.h:130
@ HTMLBrownBurlywoodColor
Definition: customelementgraphicpart.h:207
@ HTMLGraySlateGrayFilling
Definition: customelementgraphicpart.h:177
LineStyle lineStyle() const
Definition: customelementgraphicpart.h:275
@ HTMLRedRedFilling
Definition: customelementgraphicpart.h:78
@ HTMLWhiteGhostWhiteFilling
Definition: customelementgraphicpart.h:162
@ HTMLWhiteMintCreamFilling
Definition: customelementgraphicpart.h:160
@ HTMLPurpleIndigoFilling
Definition: customelementgraphicpart.h:154
@ HTMLPurplePlumColor
Definition: customelementgraphicpart.h:239
@ HTMLPurpleMediumSlateBlueColor
Definition: customelementgraphicpart.h:247
@ FdiagFilling
Definition: customelementgraphicpart.h:180
@ HTMLPurpleDarkMagentaColor
Definition: customelementgraphicpart.h:244
@ HTMLWhiteWhiteColor
Definition: customelementgraphicpart.h:248
@ HTMLGrayDarkSlateGrayColor
Definition: customelementgraphicpart.h:260
@ HTMLRedIndianRedColor
Definition: customelementgraphicpart.h:193
bool antialiased() const
Definition: customelementgraphicpart.h:288
@ HTMLGreenLimeColor
Definition: customelementgraphicpart.h:215
@ NoneColor
Definition: customelementgraphicpart.h:261
@ HTMLCyanDarkTurquoiseFilling
Definition: customelementgraphicpart.h:127
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
CustomElementGraphicPart::hoverLeaveEvent Reimplemented from QGraphicsObject. Set m_hovered to false.
Definition: customelementgraphicpart.cpp:1293
@ HTMLYellowMoccasinFilling
Definition: customelementgraphicpart.h:86
@ HTMLBlueRoyalBlueColor
Definition: customelementgraphicpart.h:235
@ HTMLGreenDarkGreenFilling
Definition: customelementgraphicpart.h:120
@ CyanFilling
Definition: customelementgraphicpart.h:67
@ HTMLRedCrimsonFilling
Definition: customelementgraphicpart.h:76
@ HTMLPurpleFuchsiaColor
Definition: customelementgraphicpart.h:240
@ HTMLCyanLightCyanColor
Definition: customelementgraphicpart.h:225
Filling filling
Definition: customelementgraphicpart.h:43
@ HTMLPinkHotPinkFilling
Definition: customelementgraphicpart.h:70
@ HTMLYellowDarkKhakiFilling
Definition: customelementgraphicpart.h:90
@ HTMLWhiteSnowColor
Definition: customelementgraphicpart.h:248
Filling
Definition: customelementgraphicpart.h:64
LineStyle _linestyle
Definition: customelementgraphicpart.h:325
@ HTMLGreenOliveFilling
Definition: customelementgraphicpart.h:105
@ YellowFilling
Definition: customelementgraphicpart.h:66
@ HTMLBrownPeruColor
Definition: customelementgraphicpart.h:210
@ HTMLBlueCornflowerBlueFilling
Definition: customelementgraphicpart.h:137
@ HTMLGreenGreenYellowColor
Definition: customelementgraphicpart.h:217
@ HTMLGreenDarkSeaGreenColor
Definition: customelementgraphicpart.h:220
@ HTMLCyanDarkTurquoiseColor
Definition: customelementgraphicpart.h:228
@ HTMLBrownNavajoWhiteColor
Definition: customelementgraphicpart.h:206
@ HTMLBrownChocolateFilling
Definition: customelementgraphicpart.h:100
@ HTMLPurpleIndigoColor
Definition: customelementgraphicpart.h:245
bool _antialiased
Definition: customelementgraphicpart.h:329
@ RedColor
Definition: customelementgraphicpart.h:185
@ GreenFilling
Definition: customelementgraphicpart.h:65
@ HTMLGreenDarkOliveGreenColor
Definition: customelementgraphicpart.h:213
@ HTMLPinkPaleVioletRedFilling
Definition: customelementgraphicpart.h:71
@ BlackFilling
Definition: customelementgraphicpart.h:64
@ HTMLBrownNavajoWhiteFilling
Definition: customelementgraphicpart.h:94
LineStyle
Definition: customelementgraphicpart.h:49
@ HTMLGrayLightSlateGrayColor
Definition: customelementgraphicpart.h:259
@ HTMLPinkLightPinkFilling
Definition: customelementgraphicpart.h:69
@ HTMLPurpleMediumSlateBlueFilling
Definition: customelementgraphicpart.h:157
@ HTMLYellowGoldColor
Definition: customelementgraphicpart.h:204
@ HTMLGreenSeaGreenFilling
Definition: customelementgraphicpart.h:118
void stylesFromXml(const QDomElement &)
CustomElementGraphicPart::stylesFromXml Read the style used by this, from a xml element.
Definition: customelementgraphicpart.cpp:508
@ HTMLGreenLightGreenFilling
Definition: customelementgraphicpart.h:113
@ HTMLBrownWheatFilling
Definition: customelementgraphicpart.h:95
@ HTMLGrayDarkGrayFilling
Definition: customelementgraphicpart.h:174
Color _color
Definition: customelementgraphicpart.h:328
@ HTMLWhiteAntiqueWhiteColor
Definition: customelementgraphicpart.h:254
@ HTMLOrangeTomatoFilling
Definition: customelementgraphicpart.h:79
@ HTMLRedCrimsonColor
Definition: customelementgraphicpart.h:194
@ HTMLBlueSkyBlueFilling
Definition: customelementgraphicpart.h:133
@ HTMLGreenGreenColor
Definition: customelementgraphicpart.h:223
Filling filling() const
Definition: customelementgraphicpart.h:282
@ HTMLYellowYellowFilling
Definition: customelementgraphicpart.h:81
@ HTMLCyanCadetBlueColor
Definition: customelementgraphicpart.h:229
LineWeight
Definition: customelementgraphicpart.h:56
@ HTMLGreenSpringGreenColor
Definition: customelementgraphicpart.h:217
@ HTMLPinkMediumVioletRedFilling
Definition: customelementgraphicpart.h:72
@ HTMLGreenDarkOliveGreenFilling
Definition: customelementgraphicpart.h:104
Filling _filling
Definition: customelementgraphicpart.h:327
@ HTMLGreenLawnGreenFilling
Definition: customelementgraphicpart.h:108
@ BrunFilling
Definition: customelementgraphicpart.h:66
Color color() const
Definition: customelementgraphicpart.h:285
LineWeight line_weight
Definition: customelementgraphicpart.h:42
@ VerFilling
Definition: customelementgraphicpart.h:179
@ HTMLRedLightSalmonColor
Definition: customelementgraphicpart.h:191
@ HTMLBlueSkyBlueColor
Definition: customelementgraphicpart.h:232
@ HTMLRedSalmonFilling
Definition: customelementgraphicpart.h:73
virtual void updateCurrentPartEditor() const
Definition: customelementpart.cpp:30
@ HTMLCyanMediumTurquoiseColor
Definition: customelementgraphicpart.h:227
@ HTMLBlueBlueFilling
Definition: customelementgraphicpart.h:139
@ HTMLBlueLightSkyBlueColor
Definition: customelementgraphicpart.h:232
@ HTMLPinkPaleVioletRedColor
Definition: customelementgraphicpart.h:190
@ HTMLBrownBrownColor
Definition: customelementgraphicpart.h:212
@ HTMLGrayGainsboroFilling
Definition: customelementgraphicpart.h:172
@ HTMLBlueDodgerBlueFilling
Definition: customelementgraphicpart.h:136
@ HTMLWhiteWhiteSmokeColor
Definition: customelementgraphicpart.h:251
@ HTMLRedLightSalmonFilling
Definition: customelementgraphicpart.h:73
@ HTMLWhiteIvoryColor
Definition: customelementgraphicpart.h:254
@ HTMLBrownSaddleBrownColor
Definition: customelementgraphicpart.h:211
LineWeight _lineweight
Definition: customelementgraphicpart.h:326
@ HTMLRedRedColor
Definition: customelementgraphicpart.h:195
@ HTMLGreenYellowGreenFilling
Definition: customelementgraphicpart.h:106
@ HTMLGrayBlackColor
Definition: customelementgraphicpart.h:261
void resetStyles()
CustomElementGraphicPart::resetStyles Reset the curent style to default, same style of default constr...
Definition: customelementgraphicpart.cpp:871
@ HTMLWhiteGhostWhiteColor
Definition: customelementgraphicpart.h:251
@ HTMLBlueRoyalBlueFilling
Definition: customelementgraphicpart.h:139
@ HTMLGreenMediumAquamarineFilling
Definition: customelementgraphicpart.h:116
@ HTMLYellowPapayaWhipFilling
Definition: customelementgraphicpart.h:85
@ HTMLPurplePurpleFilling
Definition: customelementgraphicpart.h:154
@ HTMLCyanAquamarineColor
Definition: customelementgraphicpart.h:226
@ HorFilling
Definition: customelementgraphicpart.h:179
@ DottedStyle
Definition: customelementgraphicpart.h:51
virtual void setHandlerColor(QPointF, const QColor &)
Definition: customelementgraphicpart.h:301
@ HTMLPurpleOrchidColor
Definition: customelementgraphicpart.h:240
@ HTMLCyanAquaColor
Definition: customelementgraphicpart.h:224
@ HTMLCyanLightCyanFilling
Definition: customelementgraphicpart.h:122
@ HTMLOrangeDarkOrangeColor
Definition: customelementgraphicpart.h:197
@ NormalStyle
Definition: customelementgraphicpart.h:49
@ HTMLYellowPeachPuffColor
Definition: customelementgraphicpart.h:202
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Definition: customelementgraphicpart.cpp:1299
@ HTMLOrangeOrangeRedFilling
Definition: customelementgraphicpart.h:78
@ LightgrayColor
Definition: customelementgraphicpart.h:187
@ HTMLBrownWheatColor
Definition: customelementgraphicpart.h:206
@ UltraWeight
Definition: customelementgraphicpart.h:59
@ HTMLBrownBlanchedAlmondFilling
Definition: customelementgraphicpart.h:92
@ HTMLBlueMidnightBlueColor
Definition: customelementgraphicpart.h:237
@ HTMLGreenLightGreenColor
Definition: customelementgraphicpart.h:219
@ HTMLGrayGrayFilling
Definition: customelementgraphicpart.h:174
@ HTMLBrownSiennaColor
Definition: customelementgraphicpart.h:211
@ HTMLBrownPeruFilling
Definition: customelementgraphicpart.h:100
@ HTMLCyanTealFilling
Definition: customelementgraphicpart.h:130
@ HTMLPurpleDarkSlateBlueFilling
Definition: customelementgraphicpart.h:155
@ HTMLWhiteMistyRoseFilling
Definition: customelementgraphicpart.h:171
@ HTMLGrayLightGrayColor
Definition: customelementgraphicpart.h:257
@ HTMLGreenOliveColor
Definition: customelementgraphicpart.h:213
@ HTMLPurplePurpleColor
Definition: customelementgraphicpart.h:244
@ HTMLBlueSteelBlueFilling
Definition: customelementgraphicpart.h:138
@ HTMLGreenMediumSpringGreenColor
Definition: customelementgraphicpart.h:218
@ HTMLCyanPaleTurquoiseColor
Definition: customelementgraphicpart.h:226
@ HTMLPurpleSlateBlueFilling
Definition: customelementgraphicpart.h:156
@ HTMLPurpleMagentaFilling
Definition: customelementgraphicpart.h:147
@ HTMLPurpleBlueVioletFilling
Definition: customelementgraphicpart.h:150
QPointF m_origin_pos
Definition: customelementgraphicpart.h:330
@ HTMLYellowPapayaWhipColor
Definition: customelementgraphicpart.h:201
@ HTMLGrayBlackFilling
Definition: customelementgraphicpart.h:179
void setAntialiased(const bool b)
CustomElementGraphicPart::setAntialiased Set antialias to b.
Definition: customelementgraphicpart.cpp:147
@ HTMLYellowLightGoldenrodYellowColor
Definition: customelementgraphicpart.h:200
@ HTMLWhiteMintCreamColor
Definition: customelementgraphicpart.h:249
@ HTMLYellowYellowColor
Definition: customelementgraphicpart.h:198
@ HTMLPurpleSlateBlueColor
Definition: customelementgraphicpart.h:246
@ HTMLOrangeOrangeFilling
Definition: customelementgraphicpart.h:81
@ HTMLPurpleMediumPurpleFilling
Definition: customelementgraphicpart.h:149
@ HTMLGreenGreenYellowFilling
Definition: customelementgraphicpart.h:110
@ HTMLRedLightCoralFilling
Definition: customelementgraphicpart.h:75
@ HTMLCyanLightSeaGreenFilling
Definition: customelementgraphicpart.h:128
@ HTMLWhiteWhiteSmokeFilling
Definition: customelementgraphicpart.h:163
@ HTMLYellowPaleGoldenrodFilling
Definition: customelementgraphicpart.h:88
@ HTMLGreenLawnGreenColor
Definition: customelementgraphicpart.h:216
bool m_hovered
Definition: customelementgraphicpart.h:323
@ HTMLWhiteFloralWhiteFilling
Definition: customelementgraphicpart.h:166
@ HTMLCyanDarkCyanColor
Definition: customelementgraphicpart.h:229
@ HTMLOrangeDarkOrangeFilling
Definition: customelementgraphicpart.h:80
@ HTMLGrayGrayColor
Definition: customelementgraphicpart.h:258
@ HTMLGrayDarkSlateGrayFilling
Definition: customelementgraphicpart.h:178
@ HTMLPinkPinkColor
Definition: customelementgraphicpart.h:188
@ HTMLWhiteFloralWhiteColor
Definition: customelementgraphicpart.h:253
@ HTMLWhiteOldLaceColor
Definition: customelementgraphicpart.h:253
@ HTMLCyanTealColor
Definition: customelementgraphicpart.h:230
@ HTMLPurpleVioletFilling
Definition: customelementgraphicpart.h:145
@ BlueFilling
Definition: customelementgraphicpart.h:65
@ HTMLYellowLightGoldenrodYellowFilling
Definition: customelementgraphicpart.h:84
@ OrangeFilling
Definition: customelementgraphicpart.h:68
@ HTMLRedFirebrickFilling
Definition: customelementgraphicpart.h:77
@ HTMLGrayDimGrayColor
Definition: customelementgraphicpart.h:259
@ HTMLPinkDeepPinkFilling
Definition: customelementgraphicpart.h:70
@ HTMLWhiteLinenColor
Definition: customelementgraphicpart.h:255
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Definition: customelementgraphicpart.cpp:1307
@ HTMLGrayDarkGrayColor
Definition: customelementgraphicpart.h:258
@ HTMLPurpleDarkOrchidColor
Definition: customelementgraphicpart.h:243
@ HTMLPurpleVioletColor
Definition: customelementgraphicpart.h:239
@ HTMLWhiteHoneydewFilling
Definition: customelementgraphicpart.h:159
@ HTMLPinkMediumVioletRedColor
Definition: customelementgraphicpart.h:191
@ HTMLWhiteAntiqueWhiteFilling
Definition: customelementgraphicpart.h:168
@ HTMLRedIndianRedFilling
Definition: customelementgraphicpart.h:76
@ HTMLPurpleDarkMagentaFilling
Definition: customelementgraphicpart.h:153
@ HTMLBrownBisqueFilling
Definition: customelementgraphicpart.h:93
#define SHADOWS_HEIGHT
Definition: customelementgraphicpart.h:37
@ HTMLGrayLightGrayFilling
Definition: customelementgraphicpart.h:173
@ HTMLCyanAquamarineFilling
Definition: customelementgraphicpart.h:124
@ HTMLCyanTurquoiseFilling
Definition: customelementgraphicpart.h:125
@ HTMLCyanTurquoiseColor
Definition: customelementgraphicpart.h:227
@ BlackColor
Definition: customelementgraphicpart.h:185
@ HTMLOrangeOrangeColor
Definition: customelementgraphicpart.h:198
@ HTMLBlueDeepSkyBlueColor
Definition: customelementgraphicpart.h:233
@ WhiteColor
Definition: customelementgraphicpart.h:185
@ HTMLRedDarkRedColor
Definition: customelementgraphicpart.h:195
@ HTMLGreenChartreuseFilling
Definition: customelementgraphicpart.h:109
@ HTMLGreenDarkGreenColor
Definition: customelementgraphicpart.h:224
Color color
Definition: customelementgraphicpart.h:44
@ HTMLYellowKhakiColor
Definition: customelementgraphicpart.h:203
@ HTMLPurpleFuchsiaFilling
Definition: customelementgraphicpart.h:146
@ HTMLCyanPaleTurquoiseFilling
Definition: customelementgraphicpart.h:123
LineStyle line_style
Definition: customelementgraphicpart.h:41
@ HTMLWhiteSeashellColor
Definition: customelementgraphicpart.h:252
@ WhiteFilling
Definition: customelementgraphicpart.h:64
@ HTMLGreenOliveDrabColor
Definition: customelementgraphicpart.h:214
@ HTMLBlueDodgerBlueColor
Definition: customelementgraphicpart.h:233
@ HTMLBrownRosyBrownColor
Definition: customelementgraphicpart.h:208
@ HTMLBlueMediumBlueFilling
Definition: customelementgraphicpart.h:140
@ HTMLPinkHotPinkColor
Definition: customelementgraphicpart.h:189
@ HTMLYellowPaleGoldenrodColor
Definition: customelementgraphicpart.h:202
CustomElementGraphicPart CEGP
Definition: customelementgraphicpart.h:333
@ HTMLBlueDarkBlueColor
Definition: customelementgraphicpart.h:236
@ HTMLBrownSandyBrownColor
Definition: customelementgraphicpart.h:208
@ HTMLOrangeCoralFilling
Definition: customelementgraphicpart.h:79
The CustomElementPart class This abstract class represents a primitive of the visual representation o...
Definition: customelementpart.h:40
virtual ElementScene * elementScene() const
Definition: customelementpart.cpp:37
@ HTMLYellowLightYellowFilling
Definition: customelementgraphicpart.h:82
@ HTMLWhiteAzureColor
Definition: customelementgraphicpart.h:250
@ HTMLCyanLightSeaGreenColor
Definition: customelementgraphicpart.h:228
@ HTMLBrownBisqueColor
Definition: customelementgraphicpart.h:205
@ HTMLGrayLightSlateGrayFilling
Definition: customelementgraphicpart.h:176
@ HTMLPurpleDarkSlateBlueColor
Definition: customelementgraphicpart.h:245
void setLineWeight(const LineWeight lw)
CustomElementGraphicPart::setLineWeight Set line weight to lw.
Definition: customelementgraphicpart.cpp:98
@ HTMLWhiteAzureFilling
Definition: customelementgraphicpart.h:160
void setColor(const Color c)
CustomElementGraphicPart::setColor Set color to c.
Definition: customelementgraphicpart.cpp:135
@ HTMLBrownBurlywoodFilling
Definition: customelementgraphicpart.h:95
@ HTMLWhiteAliceBlueColor
Definition: customelementgraphicpart.h:250
@ HTMLCyanAquaFilling
Definition: customelementgraphicpart.h:121
@ HTMLBrownCornsilkFilling
Definition: customelementgraphicpart.h:91
@ HTMLGreenMediumAquamarineColor
Definition: customelementgraphicpart.h:221
@ HTMLBrownDarkGoldenrodColor
Definition: customelementgraphicpart.h:209
@ HTMLBrownMaroonColor
Definition: customelementgraphicpart.h:212
@ MagentaFilling
Definition: customelementgraphicpart.h:67
@ NoneFilling
Definition: customelementgraphicpart.h:64
@ NoneWeight
Definition: customelementgraphicpart.h:56
@ HTMLRedFirebrickColor
Definition: customelementgraphicpart.h:194
void applyStylesToQPainter(QPainter &) const
CustomElementGraphicPart::applyStylesToQPainter Apply the current style to the QPainter.
Definition: customelementgraphicpart.cpp:885
@ HTMLBlueLightSteelBlueColor
Definition: customelementgraphicpart.h:230
void setProperty(const char *name, const QVariant &value) override
Definition: customelementgraphicpart.h:294
@ HTMLGraySilverColor
Definition: customelementgraphicpart.h:257
qreal penWeight() const
CustomElementGraphicPart::penWeight.
Definition: customelementgraphicpart.cpp:109
@ HTMLBlueLightBlueFilling
Definition: customelementgraphicpart.h:133
@ HTMLBrownBlanchedAlmondColor
Definition: customelementgraphicpart.h:205
@ HTMLBlueMidnightBlueFilling
Definition: customelementgraphicpart.h:142
bool antialias
Definition: customelementgraphicpart.h:45
@ BigWeight
Definition: customelementgraphicpart.h:60
@ HTMLRedLightCoralColor
Definition: customelementgraphicpart.h:193
@ HTMLGrayDimGrayFilling
Definition: customelementgraphicpart.h:175
@ HTMLBrownBrownFilling
Definition: customelementgraphicpart.h:102
@ HTMLPinkLightPinkColor
Definition: customelementgraphicpart.h:188
QVariant itemChange(GraphicsItemChange change, const QVariant &value) override
CustomElementGraphicPart::itemChange Reimplemented from QGraphicsObject. If the item position change ...
Definition: customelementgraphicpart.cpp:1266
@ YellowColor
Definition: customelementgraphicpart.h:186
@ HTMLPurpleThistleFilling
Definition: customelementgraphicpart.h:144
@ HTMLBrownCornsilkColor
Definition: customelementgraphicpart.h:204
@ HTMLGreenMediumSeaGreenFilling
Definition: customelementgraphicpart.h:117
@ HTMLBrownSandyBrownFilling
Definition: customelementgraphicpart.h:97
@ HTMLBluePowderBlueFilling
Definition: customelementgraphicpart.h:132
@ HTMLGreenChartreuseColor
Definition: customelementgraphicpart.h:216
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
@ HTMLGraySilverFilling
Definition: customelementgraphicpart.h:173
@ HTMLBlueLightBlueColor
Definition: customelementgraphicpart.h:231
@ HTMLPurpleMediumOrchidFilling
Definition: customelementgraphicpart.h:148
@ HTMLBluePowderBlueColor
Definition: customelementgraphicpart.h:231
@ GrayColor
Definition: customelementgraphicpart.h:186
@ BlueColor
Definition: customelementgraphicpart.h:185
@ HTMLYellowDarkKhakiColor
Definition: customelementgraphicpart.h:203
@ HTMLGreenOliveDrabFilling
Definition: customelementgraphicpart.h:105
@ HTMLPurplePlumFilling
Definition: customelementgraphicpart.h:144
@ HTMLPurpleThistleColor
Definition: customelementgraphicpart.h:238
@ HTMLPurpleBlueVioletColor
Definition: customelementgraphicpart.h:242
Color
Definition: customelementgraphicpart.h:184
@ HTMLBrownTanColor
Definition: customelementgraphicpart.h:207
@ HTMLBrownDarkGoldenrodFilling
Definition: customelementgraphicpart.h:99
@ HTMLBlueNavyColor
Definition: customelementgraphicpart.h:237
@ HTMLWhiteOldLaceFilling
Definition: customelementgraphicpart.h:165
QIcon tr
Definition: qeticons.cpp:206
@ OrangeColor
Definition: customelementgraphicpart.h:187
@ GrayFilling
Definition: customelementgraphicpart.h:66
@ HTMLPurpleLavenderColor
Definition: customelementgraphicpart.h:238
@ HTMLPurpleDarkOrchidFilling
Definition: customelementgraphicpart.h:152
@ HTMLGreenGreenFilling
Definition: customelementgraphicpart.h:120
@ DashedStyle
Definition: customelementgraphicpart.h:50
@ HTMLYellowLightYellowColor
Definition: customelementgraphicpart.h:199
Definition: qetelementeditor.h:33
@ LightgrayFilling
Definition: customelementgraphicpart.h:67
@ HTMLBrownSiennaFilling
Definition: customelementgraphicpart.h:102
@ HTMLCyanMediumTurquoiseFilling
Definition: customelementgraphicpart.h:126
@ HTMLWhiteMistyRoseColor
Definition: customelementgraphicpart.h:256
void drawShadowShape(QPainter *painter)
CustomElementGraphicPart::drawShadowShape Draw a transparent blue shadow arround the shape of this it...
Definition: customelementgraphicpart.cpp:1240
@ HTMLBlueDarkBlueFilling
Definition: customelementgraphicpart.h:141
QVariant property(const char *name) const override
Definition: customelementgraphicpart.h:297
CustomElementGraphicPart(QETElementEditor *editor, QGraphicsItem *parent=nullptr)
CustomElementGraphicPart::CustomElementGraphicPart Default constructor. By default,...
Definition: customelementgraphicpart.cpp:30
@ BdiagFilling
Definition: customelementgraphicpart.h:180
LineWeight lineWeight() const
Definition: customelementgraphicpart.h:278
@ HTMLPurpleDarkVioletColor
Definition: customelementgraphicpart.h:243
@ HTMLGrayGainsboroColor
Definition: customelementgraphicpart.h:256