QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
customelementgraphicpart.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef CUSTOM_ELEMENT_GRAPHIC_PART_H
19#define CUSTOM_ELEMENT_GRAPHIC_PART_H
20
21#include <QGraphicsObject>
22#include "customelementpart.h"
23
25class QPainter;
26
27
35class CustomElementGraphicPart : public QGraphicsObject, public CustomElementPart
36{
37 #define SHADOWS_HEIGHT 4.0
38
39 Q_OBJECT
40
43 Q_PROPERTY(Filling filling READ filling WRITE setFilling)
44 Q_PROPERTY(Color color READ color WRITE setColor)
45 Q_PROPERTY(bool antialias READ antialiased WRITE setAntialiased)
46
47 public:
48 //Line style
53 Q_ENUM (LineStyle)
54
55 //Line weight : invisible, 0px, 1px, 2px, 5px
61 Q_ENUM (LineWeight)
62
63 //Filling color of the part : NoneFilling -> No filling (i.e. transparent)
181 Q_ENUM (Filling)
182
183 //Line color
184 enum Color {
262 Q_ENUM (Color)
263
264 // constructors, destructor
265 public:
266
268 QGraphicsItem *parent = nullptr);
269 ~CustomElementGraphicPart() override;
270
271 static void drawCross (const QPointF &center,
272 QPainter *painter);
273
274 //Getter and setter
275 LineStyle lineStyle () const {return _linestyle;}
276 void setLineStyle (const LineStyle ls);
277
279 void setLineWeight (const LineWeight lw);
280 qreal penWeight () const;
281
282 Filling filling () const {return _filling;}
283 void setFilling(const Filling f);
284
285 Color color () const {return _color;}
286 void setColor(const Color c);
287
288 bool antialiased () const {return _antialiased;}
289 void setAntialiased(const bool b);
290 //End of getter and setter
291
292
293 //Rediriged to QObject Q_PROPERTY system
294 void setProperty (const char *name,
295 const QVariant &value) override {
296 QObject::setProperty(name, value);}
297 QVariant property (const char *name) const override {
298 return QObject::property(name);}
299
300 virtual QPainterPath shadowShape ()const = 0;
301
302 virtual void addHandler() {}
303 virtual void removeHandler() {}
304 virtual void setHandlerColor(QPointF /*pos*/,
305 const QColor &/*color*/) {}
306 virtual void resetAllHandlerColor() {}
307
308 protected:
309 void stylesToXml (QDomElement &) const;
310 void stylesFromXml(const QDomElement &);
311 void resetStyles ();
312 void applyStylesToQPainter(QPainter &) const;
313 void drawShadowShape (QPainter *painter);
314
315 void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
316 void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override;
317
318 void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
319 void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
321 QGraphicsSceneMouseEvent *event) override;
322
323 // attributes
325 private:
333};
334
336#endif
The CustomElementGraphicPart class This class is the base for all home-made primitive like line,...
Definition customelementgraphicpart.h:36
Filling
Definition customelementgraphicpart.h:64
@ HTMLGreenLightGreenFilling
Definition customelementgraphicpart.h:113
@ BlueFilling
Definition customelementgraphicpart.h:65
@ HTMLBrownBurlywoodFilling
Definition customelementgraphicpart.h:95
@ HTMLGraySilverFilling
Definition customelementgraphicpart.h:173
@ HTMLBrownRosyBrownFilling
Definition customelementgraphicpart.h:96
@ HTMLCyanDarkTurquoiseFilling
Definition customelementgraphicpart.h:127
@ HTMLBrownSiennaFilling
Definition customelementgraphicpart.h:102
@ HTMLBluePowderBlueFilling
Definition customelementgraphicpart.h:132
@ MagentaFilling
Definition customelementgraphicpart.h:67
@ HTMLRedSalmonFilling
Definition customelementgraphicpart.h:73
@ HTMLGrayDarkGrayFilling
Definition customelementgraphicpart.h:174
@ HTMLCyanAquaFilling
Definition customelementgraphicpart.h:121
@ HTMLPurpleDarkOrchidFilling
Definition customelementgraphicpart.h:152
@ GreenFilling
Definition customelementgraphicpart.h:65
@ HTMLGrayDarkSlateGrayFilling
Definition customelementgraphicpart.h:178
@ HTMLRedFirebrickFilling
Definition customelementgraphicpart.h:77
@ HTMLGreenMediumAquamarineFilling
Definition customelementgraphicpart.h:116
@ HTMLWhiteHoneydewFilling
Definition customelementgraphicpart.h:159
@ HTMLPinkPaleVioletRedFilling
Definition customelementgraphicpart.h:71
@ HTMLGreenPaleGreenFilling
Definition customelementgraphicpart.h:114
@ HTMLGraySlateGrayFilling
Definition customelementgraphicpart.h:177
@ HTMLGreenLawnGreenFilling
Definition customelementgraphicpart.h:108
@ HTMLBrownSaddleBrownFilling
Definition customelementgraphicpart.h:101
@ HTMLBlueCornflowerBlueFilling
Definition customelementgraphicpart.h:137
@ HTMLRedDarkRedFilling
Definition customelementgraphicpart.h:77
@ HTMLWhiteGhostWhiteFilling
Definition customelementgraphicpart.h:162
@ HTMLYellowLemonChiffonFilling
Definition customelementgraphicpart.h:83
@ HTMLGreenSeaGreenFilling
Definition customelementgraphicpart.h:118
@ HTMLPurplePurpleFilling
Definition customelementgraphicpart.h:154
@ HTMLCyanCadetBlueFilling
Definition customelementgraphicpart.h:129
@ HTMLCyanPaleTurquoiseFilling
Definition customelementgraphicpart.h:123
@ HTMLBlueDodgerBlueFilling
Definition customelementgraphicpart.h:136
@ HTMLYellowLightYellowFilling
Definition customelementgraphicpart.h:82
@ HTMLYellowPaleGoldenrodFilling
Definition customelementgraphicpart.h:88
@ HTMLPurpleDarkVioletFilling
Definition customelementgraphicpart.h:151
@ HTMLYellowKhakiFilling
Definition customelementgraphicpart.h:89
@ HTMLGrayLightGrayFilling
Definition customelementgraphicpart.h:173
@ HorFilling
Definition customelementgraphicpart.h:179
@ HTMLPurpleMediumOrchidFilling
Definition customelementgraphicpart.h:148
@ HTMLWhiteMistyRoseFilling
Definition customelementgraphicpart.h:171
@ HTMLPinkLightPinkFilling
Definition customelementgraphicpart.h:69
@ HTMLWhiteOldLaceFilling
Definition customelementgraphicpart.h:165
@ HTMLPurpleOrchidFilling
Definition customelementgraphicpart.h:145
@ HTMLOrangeOrangeFilling
Definition customelementgraphicpart.h:81
@ HTMLYellowPeachPuffFilling
Definition customelementgraphicpart.h:87
@ HTMLWhiteWhiteFilling
Definition customelementgraphicpart.h:158
@ HTMLGreenMediumSpringGreenFilling
Definition customelementgraphicpart.h:112
@ HTMLCyanMediumTurquoiseFilling
Definition customelementgraphicpart.h:126
@ HTMLGreenDarkGreenFilling
Definition customelementgraphicpart.h:120
@ HTMLGreenLimeGreenFilling
Definition customelementgraphicpart.h:107
@ HTMLBlueSteelBlueFilling
Definition customelementgraphicpart.h:138
@ HTMLYellowMoccasinFilling
Definition customelementgraphicpart.h:86
@ HTMLBlueLightBlueFilling
Definition customelementgraphicpart.h:133
@ HTMLGreenYellowGreenFilling
Definition customelementgraphicpart.h:106
@ HTMLBrownSandyBrownFilling
Definition customelementgraphicpart.h:97
@ HTMLGreenDarkSeaGreenFilling
Definition customelementgraphicpart.h:115
@ HTMLBrownBlanchedAlmondFilling
Definition customelementgraphicpart.h:92
@ HTMLGrayDimGrayFilling
Definition customelementgraphicpart.h:175
@ HTMLPurpleMediumPurpleFilling
Definition customelementgraphicpart.h:149
@ HTMLBlueDeepSkyBlueFilling
Definition customelementgraphicpart.h:135
@ HTMLBlueLightSkyBlueFilling
Definition customelementgraphicpart.h:134
@ HTMLBrownBisqueFilling
Definition customelementgraphicpart.h:93
@ HTMLGreenOliveFilling
Definition customelementgraphicpart.h:105
@ HTMLBrownNavajoWhiteFilling
Definition customelementgraphicpart.h:94
@ HTMLBrownWheatFilling
Definition customelementgraphicpart.h:95
@ BrunFilling
Definition customelementgraphicpart.h:66
@ HTMLCyanLightSeaGreenFilling
Definition customelementgraphicpart.h:128
@ HTMLBlueSkyBlueFilling
Definition customelementgraphicpart.h:133
@ HTMLPurpleIndigoFilling
Definition customelementgraphicpart.h:154
@ HTMLBrownBrownFilling
Definition customelementgraphicpart.h:102
@ HTMLRedIndianRedFilling
Definition customelementgraphicpart.h:76
@ HTMLGrayLightSlateGrayFilling
Definition customelementgraphicpart.h:176
@ HTMLBlueLightSteelBlueFilling
Definition customelementgraphicpart.h:131
@ HTMLPurpleDarkSlateBlueFilling
Definition customelementgraphicpart.h:155
@ HTMLOrangeDarkOrangeFilling
Definition customelementgraphicpart.h:80
@ HTMLGreenForestGreenFilling
Definition customelementgraphicpart.h:119
@ FdiagFilling
Definition customelementgraphicpart.h:180
@ HTMLWhiteMintCreamFilling
Definition customelementgraphicpart.h:160
@ HTMLBrownCornsilkFilling
Definition customelementgraphicpart.h:91
@ BdiagFilling
Definition customelementgraphicpart.h:180
@ HTMLCyanCyanFilling
Definition customelementgraphicpart.h:121
@ HTMLWhiteFloralWhiteFilling
Definition customelementgraphicpart.h:166
@ HTMLOrangeTomatoFilling
Definition customelementgraphicpart.h:79
@ GrayFilling
Definition customelementgraphicpart.h:66
@ HTMLCyanTurquoiseFilling
Definition customelementgraphicpart.h:125
@ HTMLBlueBlueFilling
Definition customelementgraphicpart.h:139
@ HTMLPinkPinkFilling
Definition customelementgraphicpart.h:69
@ HTMLBrownMaroonFilling
Definition customelementgraphicpart.h:103
@ HTMLYellowYellowFilling
Definition customelementgraphicpart.h:81
@ HTMLPinkHotPinkFilling
Definition customelementgraphicpart.h:70
@ HTMLRedRedFilling
Definition customelementgraphicpart.h:78
@ HTMLPurpleLavenderFilling
Definition customelementgraphicpart.h:143
@ HTMLPurpleThistleFilling
Definition customelementgraphicpart.h:144
@ HTMLRedLightCoralFilling
Definition customelementgraphicpart.h:75
@ RedFilling
Definition customelementgraphicpart.h:65
@ HTMLPurpleMediumSlateBlueFilling
Definition customelementgraphicpart.h:157
@ HTMLPurpleSlateBlueFilling
Definition customelementgraphicpart.h:156
@ HTMLYellowLightGoldenrodYellowFilling
Definition customelementgraphicpart.h:84
@ HTMLPurpleBlueVioletFilling
Definition customelementgraphicpart.h:150
@ HTMLWhiteAntiqueWhiteFilling
Definition customelementgraphicpart.h:168
@ BlackFilling
Definition customelementgraphicpart.h:64
@ HTMLGreenChartreuseFilling
Definition customelementgraphicpart.h:109
@ HTMLOrangeOrangeRedFilling
Definition customelementgraphicpart.h:78
@ NoneFilling
Definition customelementgraphicpart.h:64
@ HTMLBrownChocolateFilling
Definition customelementgraphicpart.h:100
@ HTMLGreenGreenFilling
Definition customelementgraphicpart.h:120
@ HTMLGrayBlackFilling
Definition customelementgraphicpart.h:179
@ HTMLPurplePlumFilling
Definition customelementgraphicpart.h:144
@ HTMLBrownPeruFilling
Definition customelementgraphicpart.h:100
@ HTMLGreenGreenYellowFilling
Definition customelementgraphicpart.h:110
@ VerFilling
Definition customelementgraphicpart.h:179
@ HTMLYellowDarkKhakiFilling
Definition customelementgraphicpart.h:90
@ HTMLWhiteLavenderBlushFilling
Definition customelementgraphicpart.h:170
@ HTMLCyanTealFilling
Definition customelementgraphicpart.h:130
@ HTMLWhiteIvoryFilling
Definition customelementgraphicpart.h:167
@ HTMLGreenDarkOliveGreenFilling
Definition customelementgraphicpart.h:104
@ CyanFilling
Definition customelementgraphicpart.h:67
@ HTMLWhiteLinenFilling
Definition customelementgraphicpart.h:169
@ HTMLYellowGoldFilling
Definition customelementgraphicpart.h:91
@ HTMLRedDarkSalmonFilling
Definition customelementgraphicpart.h:74
@ HTMLBrownGoldenrodFilling
Definition customelementgraphicpart.h:98
@ HTMLRedCrimsonFilling
Definition customelementgraphicpart.h:76
@ HTMLWhiteBeigeFilling
Definition customelementgraphicpart.h:164
@ HTMLGreenSpringGreenFilling
Definition customelementgraphicpart.h:111
@ HTMLGrayGainsboroFilling
Definition customelementgraphicpart.h:172
@ HTMLWhiteAzureFilling
Definition customelementgraphicpart.h:160
@ HTMLCyanDarkCyanFilling
Definition customelementgraphicpart.h:130
@ PurpleFilling
Definition customelementgraphicpart.h:68
@ HTMLBlueRoyalBlueFilling
Definition customelementgraphicpart.h:139
@ HTMLPinkDeepPinkFilling
Definition customelementgraphicpart.h:70
@ HTMLWhiteSeashellFilling
Definition customelementgraphicpart.h:164
@ HTMLCyanLightCyanFilling
Definition customelementgraphicpart.h:122
@ HTMLBlueMidnightBlueFilling
Definition customelementgraphicpart.h:142
@ HTMLGreenMediumSeaGreenFilling
Definition customelementgraphicpart.h:117
@ WhiteFilling
Definition customelementgraphicpart.h:64
@ HTMLGreenOliveDrabFilling
Definition customelementgraphicpart.h:105
@ LightgrayFilling
Definition customelementgraphicpart.h:67
@ HTMLWhiteWhiteSmokeFilling
Definition customelementgraphicpart.h:163
@ HTMLRedLightSalmonFilling
Definition customelementgraphicpart.h:73
@ HTMLOrangeCoralFilling
Definition customelementgraphicpart.h:79
@ HTMLPurpleVioletFilling
Definition customelementgraphicpart.h:145
@ HTMLBlueNavyFilling
Definition customelementgraphicpart.h:141
@ HTMLGreenLimeFilling
Definition customelementgraphicpart.h:107
@ HTMLYellowPapayaWhipFilling
Definition customelementgraphicpart.h:85
@ HTMLGrayGrayFilling
Definition customelementgraphicpart.h:174
@ YellowFilling
Definition customelementgraphicpart.h:66
@ HTMLWhiteAliceBlueFilling
Definition customelementgraphicpart.h:161
@ HTMLCyanAquamarineFilling
Definition customelementgraphicpart.h:124
@ HTMLWhiteSnowFilling
Definition customelementgraphicpart.h:158
@ HTMLBlueMediumBlueFilling
Definition customelementgraphicpart.h:140
@ HTMLBrownDarkGoldenrodFilling
Definition customelementgraphicpart.h:99
@ HTMLBrownTanFilling
Definition customelementgraphicpart.h:96
@ HTMLPurpleFuchsiaFilling
Definition customelementgraphicpart.h:146
@ HTMLPurpleDarkMagentaFilling
Definition customelementgraphicpart.h:153
@ HTMLBlueDarkBlueFilling
Definition customelementgraphicpart.h:141
@ HTMLPinkMediumVioletRedFilling
Definition customelementgraphicpart.h:72
@ OrangeFilling
Definition customelementgraphicpart.h:68
@ HTMLPurpleMagentaFilling
Definition customelementgraphicpart.h:147
virtual void addHandler()
Definition customelementgraphicpart.h:302
LineWeight
Definition customelementgraphicpart.h:56
@ NoneWeight
Definition customelementgraphicpart.h:56
@ ThinWeight
Definition customelementgraphicpart.h:57
@ BigWeight
Definition customelementgraphicpart.h:60
@ UltraWeight
Definition customelementgraphicpart.h:59
@ NormalWeight
Definition customelementgraphicpart.h:58
Filling filling
Definition customelementgraphicpart.h:43
void setLineWeight(const LineWeight lw)
CustomElementGraphicPart::setLineWeight Set line weight to lw.
Definition customelementgraphicpart.cpp:101
Filling filling() const
Definition customelementgraphicpart.h:282
LineWeight line_weight
Definition customelementgraphicpart.h:42
LineStyle lineStyle() const
Definition customelementgraphicpart.h:275
QPointF m_origin_pos
Definition customelementgraphicpart.h:331
qreal penWeight() const
CustomElementGraphicPart::penWeight.
Definition customelementgraphicpart.cpp:112
virtual void removeHandler()
Definition customelementgraphicpart.h:303
bool antialiased() const
Definition customelementgraphicpart.h:288
LineWeight lineWeight() const
Definition customelementgraphicpart.h:278
Color color
Definition customelementgraphicpart.h:44
void setAntialiased(const bool b)
CustomElementGraphicPart::setAntialiased Set antialias to b.
Definition customelementgraphicpart.cpp:150
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
CustomElementGraphicPart::hoverEnterEvent Reimplemented from QGraphicsObject. Set m_hovered to true.
Definition customelementgraphicpart.cpp:1305
void applyStylesToQPainter(QPainter &) const
CustomElementGraphicPart::applyStylesToQPainter Apply the current style to the QPainter.
Definition customelementgraphicpart.cpp:909
static void drawCross(const QPointF &center, QPainter *painter)
CustomElementGraphicPart::drawCross Draw a cross at pos center.
Definition customelementgraphicpart.cpp:63
virtual QPainterPath shadowShape() const =0
void setProperty(const char *name, const QVariant &value) override
Definition customelementgraphicpart.h:294
bool m_hovered
Definition customelementgraphicpart.h:324
Color color() const
Definition customelementgraphicpart.h:285
void stylesFromXml(const QDomElement &)
CustomElementGraphicPart::stylesFromXml Read the style used by this, from a xml element.
Definition customelementgraphicpart.cpp:517
bool _antialiased
Definition customelementgraphicpart.h:330
LineStyle line_style
Definition customelementgraphicpart.h:41
bool m_first_move
Definition customelementgraphicpart.h:332
void setFilling(const Filling f)
CustomElementGraphicPart::setFilling Set filling to f.
Definition customelementgraphicpart.cpp:126
virtual void resetAllHandlerColor()
Definition customelementgraphicpart.h:306
LineWeight _lineweight
Definition customelementgraphicpart.h:327
QVariant property(const char *name) const override
Definition customelementgraphicpart.h:297
void drawShadowShape(QPainter *painter)
CustomElementGraphicPart::drawShadowShape Draw a transparent blue shadow arround the shape of this it...
Definition customelementgraphicpart.cpp:1282
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Definition customelementgraphicpart.cpp:1357
LineStyle
Definition customelementgraphicpart.h:49
@ NormalStyle
Definition customelementgraphicpart.h:49
@ DashdottedStyle
Definition customelementgraphicpart.h:52
@ DashedStyle
Definition customelementgraphicpart.h:50
@ DottedStyle
Definition customelementgraphicpart.h:51
Filling _filling
Definition customelementgraphicpart.h:328
void resetStyles()
CustomElementGraphicPart::resetStyles Reset the current style to default, same style of default const...
Definition customelementgraphicpart.cpp:895
bool antialias
Definition customelementgraphicpart.h:45
void stylesToXml(QDomElement &) const
CustomElementGraphicPart::stylesToXml Write the current style to xml element. The style are stored li...
Definition customelementgraphicpart.cpp:165
void setLineStyle(const LineStyle ls)
CustomElementGraphicPart::setLineStyle Set line style to ls.
Definition customelementgraphicpart.cpp:89
Color
Definition customelementgraphicpart.h:184
@ CyanColor
Definition customelementgraphicpart.h:186
@ HTMLCyanLightCyanColor
Definition customelementgraphicpart.h:225
@ HTMLBrownRosyBrownColor
Definition customelementgraphicpart.h:208
@ HTMLGreenDarkGreenColor
Definition customelementgraphicpart.h:224
@ HTMLPurpleLavenderColor
Definition customelementgraphicpart.h:238
@ HTMLGreenDarkSeaGreenColor
Definition customelementgraphicpart.h:220
@ HTMLGrayLightSlateGrayColor
Definition customelementgraphicpart.h:259
@ HTMLPurpleVioletColor
Definition customelementgraphicpart.h:239
@ HTMLGrayDimGrayColor
Definition customelementgraphicpart.h:259
@ HTMLGreenLightGreenColor
Definition customelementgraphicpart.h:219
@ HTMLBrownBurlywoodColor
Definition customelementgraphicpart.h:207
@ HTMLRedDarkSalmonColor
Definition customelementgraphicpart.h:192
@ HTMLPinkPaleVioletRedColor
Definition customelementgraphicpart.h:190
@ HTMLBrownBisqueColor
Definition customelementgraphicpart.h:205
@ HTMLWhiteSnowColor
Definition customelementgraphicpart.h:248
@ HTMLBlueRoyalBlueColor
Definition customelementgraphicpart.h:235
@ HTMLGrayGrayColor
Definition customelementgraphicpart.h:258
@ HTMLPurpleOrchidColor
Definition customelementgraphicpart.h:240
@ HTMLPurpleBlueVioletColor
Definition customelementgraphicpart.h:242
@ HTMLRedRedColor
Definition customelementgraphicpart.h:195
@ HTMLYellowPapayaWhipColor
Definition customelementgraphicpart.h:201
@ HTMLWhiteHoneydewColor
Definition customelementgraphicpart.h:249
@ HTMLBrownPeruColor
Definition customelementgraphicpart.h:210
@ LightgrayColor
Definition customelementgraphicpart.h:187
@ HTMLPinkPinkColor
Definition customelementgraphicpart.h:188
@ GreenColor
Definition customelementgraphicpart.h:185
@ HTMLWhiteWhiteColor
Definition customelementgraphicpart.h:248
@ HTMLBlueLightSteelBlueColor
Definition customelementgraphicpart.h:230
@ HTMLWhiteAliceBlueColor
Definition customelementgraphicpart.h:250
@ HTMLRedLightSalmonColor
Definition customelementgraphicpart.h:191
@ HTMLBrownNavajoWhiteColor
Definition customelementgraphicpart.h:206
@ HTMLPurpleSlateBlueColor
Definition customelementgraphicpart.h:246
@ HTMLGrayDarkGrayColor
Definition customelementgraphicpart.h:258
@ HTMLGreenSpringGreenColor
Definition customelementgraphicpart.h:217
@ HTMLRedSalmonColor
Definition customelementgraphicpart.h:192
@ HTMLBrownMaroonColor
Definition customelementgraphicpart.h:212
@ BrunColor
Definition customelementgraphicpart.h:186
@ HTMLYellowGoldColor
Definition customelementgraphicpart.h:204
@ HTMLBlueMediumBlueColor
Definition customelementgraphicpart.h:236
@ HTMLBluePowderBlueColor
Definition customelementgraphicpart.h:231
@ HTMLBrownSiennaColor
Definition customelementgraphicpart.h:211
@ HTMLWhiteSeashellColor
Definition customelementgraphicpart.h:252
@ HTMLRedFirebrickColor
Definition customelementgraphicpart.h:194
@ HTMLPurpleIndigoColor
Definition customelementgraphicpart.h:245
@ HTMLBlueMidnightBlueColor
Definition customelementgraphicpart.h:237
@ HTMLWhiteOldLaceColor
Definition customelementgraphicpart.h:253
@ HTMLPurpleDarkMagentaColor
Definition customelementgraphicpart.h:244
@ HTMLGreenOliveDrabColor
Definition customelementgraphicpart.h:214
@ HTMLPinkDeepPinkColor
Definition customelementgraphicpart.h:189
@ HTMLWhiteIvoryColor
Definition customelementgraphicpart.h:254
@ HTMLPinkMediumVioletRedColor
Definition customelementgraphicpart.h:191
@ HTMLGrayLightGrayColor
Definition customelementgraphicpart.h:257
@ HTMLGreenOliveColor
Definition customelementgraphicpart.h:213
@ BlueColor
Definition customelementgraphicpart.h:185
@ HTMLWhiteFloralWhiteColor
Definition customelementgraphicpart.h:253
@ HTMLGreenLawnGreenColor
Definition customelementgraphicpart.h:216
@ HTMLYellowKhakiColor
Definition customelementgraphicpart.h:203
@ HTMLGreenMediumAquamarineColor
Definition customelementgraphicpart.h:221
@ HTMLWhiteAntiqueWhiteColor
Definition customelementgraphicpart.h:254
@ HTMLPurplePlumColor
Definition customelementgraphicpart.h:239
@ HTMLBlueBlueColor
Definition customelementgraphicpart.h:235
@ HTMLBrownTanColor
Definition customelementgraphicpart.h:207
@ HTMLYellowLemonChiffonColor
Definition customelementgraphicpart.h:199
@ HTMLPurpleMediumOrchidColor
Definition customelementgraphicpart.h:241
@ HTMLPurpleDarkOrchidColor
Definition customelementgraphicpart.h:243
@ HTMLBlueDarkBlueColor
Definition customelementgraphicpart.h:236
@ HTMLBrownChocolateColor
Definition customelementgraphicpart.h:210
@ HTMLGreenDarkOliveGreenColor
Definition customelementgraphicpart.h:213
@ HTMLWhiteWhiteSmokeColor
Definition customelementgraphicpart.h:251
@ HTMLCyanAquamarineColor
Definition customelementgraphicpart.h:226
@ HTMLGreenGreenColor
Definition customelementgraphicpart.h:223
@ HTMLCyanCadetBlueColor
Definition customelementgraphicpart.h:229
@ HTMLBrownGoldenrodColor
Definition customelementgraphicpart.h:209
@ HTMLCyanLightSeaGreenColor
Definition customelementgraphicpart.h:228
@ HTMLYellowPaleGoldenrodColor
Definition customelementgraphicpart.h:202
@ HTMLOrangeDarkOrangeColor
Definition customelementgraphicpart.h:197
@ HTMLPurpleFuchsiaColor
Definition customelementgraphicpart.h:240
@ HTMLBrownBlanchedAlmondColor
Definition customelementgraphicpart.h:205
@ HTMLGreenMediumSeaGreenColor
Definition customelementgraphicpart.h:222
@ HTMLBlueDeepSkyBlueColor
Definition customelementgraphicpart.h:233
@ HTMLBlueCornflowerBlueColor
Definition customelementgraphicpart.h:234
@ HTMLCyanTealColor
Definition customelementgraphicpart.h:230
@ HTMLGreenLimeColor
Definition customelementgraphicpart.h:215
@ HTMLYellowLightYellowColor
Definition customelementgraphicpart.h:199
@ HTMLGreenPaleGreenColor
Definition customelementgraphicpart.h:219
@ HTMLRedCrimsonColor
Definition customelementgraphicpart.h:194
@ HTMLCyanCyanColor
Definition customelementgraphicpart.h:225
@ HTMLYellowPeachPuffColor
Definition customelementgraphicpart.h:202
@ MagentaColor
Definition customelementgraphicpart.h:187
@ HTMLCyanMediumTurquoiseColor
Definition customelementgraphicpart.h:227
@ HTMLGreenChartreuseColor
Definition customelementgraphicpart.h:216
@ HTMLWhiteBeigeColor
Definition customelementgraphicpart.h:252
@ HTMLGrayDarkSlateGrayColor
Definition customelementgraphicpart.h:260
@ HTMLBrownWheatColor
Definition customelementgraphicpart.h:206
@ OrangeColor
Definition customelementgraphicpart.h:187
@ HTMLPurpleMagentaColor
Definition customelementgraphicpart.h:241
@ HTMLBlueLightSkyBlueColor
Definition customelementgraphicpart.h:232
@ HTMLGrayBlackColor
Definition customelementgraphicpart.h:261
@ HTMLGraySlateGrayColor
Definition customelementgraphicpart.h:260
@ HTMLPinkHotPinkColor
Definition customelementgraphicpart.h:189
@ GrayColor
Definition customelementgraphicpart.h:186
@ HTMLOrangeOrangeColor
Definition customelementgraphicpart.h:198
@ HTMLYellowMoccasinColor
Definition customelementgraphicpart.h:201
@ HTMLPurplePurpleColor
Definition customelementgraphicpart.h:244
@ HTMLPurpleDarkVioletColor
Definition customelementgraphicpart.h:243
@ HTMLCyanDarkTurquoiseColor
Definition customelementgraphicpart.h:228
@ HTMLPinkLightPinkColor
Definition customelementgraphicpart.h:188
@ HTMLBrownSaddleBrownColor
Definition customelementgraphicpart.h:211
@ HTMLOrangeTomatoColor
Definition customelementgraphicpart.h:196
@ HTMLCyanAquaColor
Definition customelementgraphicpart.h:224
@ HTMLGreenLimeGreenColor
Definition customelementgraphicpart.h:215
@ HTMLCyanTurquoiseColor
Definition customelementgraphicpart.h:227
@ NoneColor
Definition customelementgraphicpart.h:261
@ HTMLBrownDarkGoldenrodColor
Definition customelementgraphicpart.h:209
@ HTMLYellowDarkKhakiColor
Definition customelementgraphicpart.h:203
@ HTMLBlueSkyBlueColor
Definition customelementgraphicpart.h:232
@ HTMLOrangeCoralColor
Definition customelementgraphicpart.h:197
@ HTMLBlueNavyColor
Definition customelementgraphicpart.h:237
@ HTMLBlueSteelBlueColor
Definition customelementgraphicpart.h:234
@ HTMLRedLightCoralColor
Definition customelementgraphicpart.h:193
@ HTMLBrownCornsilkColor
Definition customelementgraphicpart.h:204
@ HTMLRedIndianRedColor
Definition customelementgraphicpart.h:193
@ HTMLGrayGainsboroColor
Definition customelementgraphicpart.h:256
@ HTMLWhiteMistyRoseColor
Definition customelementgraphicpart.h:256
@ HTMLWhiteAzureColor
Definition customelementgraphicpart.h:250
@ HTMLRedDarkRedColor
Definition customelementgraphicpart.h:195
@ HTMLPurpleMediumSlateBlueColor
Definition customelementgraphicpart.h:247
@ HTMLBrownSandyBrownColor
Definition customelementgraphicpart.h:208
@ PurpleColor
Definition customelementgraphicpart.h:187
@ HTMLGreenYellowGreenColor
Definition customelementgraphicpart.h:214
@ HTMLWhiteLinenColor
Definition customelementgraphicpart.h:255
@ YellowColor
Definition customelementgraphicpart.h:186
@ HTMLWhiteMintCreamColor
Definition customelementgraphicpart.h:249
@ HTMLWhiteGhostWhiteColor
Definition customelementgraphicpart.h:251
@ HTMLPurpleDarkSlateBlueColor
Definition customelementgraphicpart.h:245
@ WhiteColor
Definition customelementgraphicpart.h:185
@ HTMLBlueDodgerBlueColor
Definition customelementgraphicpart.h:233
@ HTMLYellowLightGoldenrodYellowColor
Definition customelementgraphicpart.h:200
@ RedColor
Definition customelementgraphicpart.h:185
@ HTMLGreenSeaGreenColor
Definition customelementgraphicpart.h:222
@ HTMLGreenGreenYellowColor
Definition customelementgraphicpart.h:217
@ HTMLCyanPaleTurquoiseColor
Definition customelementgraphicpart.h:226
@ HTMLCyanDarkCyanColor
Definition customelementgraphicpart.h:229
@ BlackColor
Definition customelementgraphicpart.h:185
@ HTMLBlueLightBlueColor
Definition customelementgraphicpart.h:231
@ HTMLPurpleMediumPurpleColor
Definition customelementgraphicpart.h:242
@ HTMLPurpleThistleColor
Definition customelementgraphicpart.h:238
@ HTMLBrownBrownColor
Definition customelementgraphicpart.h:212
@ HTMLWhiteLavenderBlushColor
Definition customelementgraphicpart.h:255
@ HTMLGraySilverColor
Definition customelementgraphicpart.h:257
@ HTMLGreenMediumSpringGreenColor
Definition customelementgraphicpart.h:218
@ HTMLOrangeOrangeRedColor
Definition customelementgraphicpart.h:196
@ HTMLGreenForestGreenColor
Definition customelementgraphicpart.h:223
@ HTMLYellowYellowColor
Definition customelementgraphicpart.h:198
void setColor(const Color c)
CustomElementGraphicPart::setColor Set color to c.
Definition customelementgraphicpart.cpp:138
Color _color
Definition customelementgraphicpart.h:329
LineStyle _linestyle
Definition customelementgraphicpart.h:326
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Definition customelementgraphicpart.cpp:1323
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Definition customelementgraphicpart.cpp:1333
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
CustomElementGraphicPart::hoverLeaveEvent Reimplemented from QGraphicsObject. Set m_hovered to false.
Definition customelementgraphicpart.cpp:1317
virtual void setHandlerColor(QPointF, const QColor &)
Definition customelementgraphicpart.h:304
~CustomElementGraphicPart() override
CustomElementGraphicPart::~CustomElementGraphicPart Destructor.
Definition customelementgraphicpart.cpp:54
The CustomElementPart class This abstract class represents a primitive of the visual representation o...
Definition customelementpart.h:40
virtual QString name() const =0
Definition qetelementeditor.h:39
CustomElementGraphicPart CEGP
Definition customelementgraphicpart.h:335