35 QSizeF pixel2size(
const QSizeF& s)
const;
36 QSizeF size2pixel(
const QSizeF& s)
const;
50 virtual bool isEditable()
const override {
return true; }
51 virtual void startEditDrag(
EditData&)
override;
52 virtual void editDrag(
EditData& ed)
override;
61 virtual void write(
XmlWriter& xml)
const override;
63 bool load(
const QString& s);
64 bool loadFromData(
const QString&,
const QByteArray&);
65 virtual void layout()
override;
66 virtual void draw(QPainter*)
const override;
68 void setSize(
const QSizeF& s) { _size = s; }
69 QSizeF
size()
const {
return _size; }
78 QVariant getProperty(
Pid )
const;
80 QVariant propertyDefault(
Pid id)
const;
82 QSizeF imageSize()
const;
86 bool isValid()
const {
return rasterDoc || svgDoc; }
92 std::vector<QPointF> gripsPositions(
const EditData&)
const override;
bool _autoScale
fill parent frame
Definition: image.h:46
ImageStoreItem * storeItem() const
Definition: image.h:74
Pid
Definition: property.h:62
virtual ElementType type() const override
Definition: image.h:60
virtual QPointF gripAnchor(Grip) const override
Definition: image.h:53
Element::EditBehavior normalModeEditBehavior() const override
Definition: image.h:88
QImage * rasterDoc
Definition: image.h:30
bool _sizeIsSpatium
Definition: image.h:47
ImageType getImageType() const
Definition: image.h:85
QSvgRenderer * svgDoc
Definition: image.h:31
Grip defaultGrip() const override
Definition: image.h:91
base class for Symbol and Image
Definition: bsymbol.h:25
void setSizeIsSpatium(bool val)
Definition: image.h:76
QString _storePath
Definition: image.h:40
Definition: imageStore.h:25
bool lockAspectRatio() const
Definition: image.h:70
virtual Image * clone() const override
Definition: image.h:59
bool sizeIsSpatium() const
Definition: image.h:75
Grip initialEditModeGrip() const override
Definition: image.h:90
QSizeF _size
Definition: image.h:44
bool autoScale() const
Definition: image.h:72
Grip
Definition: element.h:43
ImageStoreItem * _storeItem
Definition: image.h:39
QSizeF size() const
Definition: image.h:69
Definition: aeolus.cpp:26
virtual bool isEditable() const override
Definition: image.h:50
bool isValid() const
Definition: image.h:86
void setSize(const QSizeF &s)
Definition: image.h:68
Definition: element.h:111
QString _linkPath
Definition: image.h:41
void setAutoScale(bool v)
Definition: image.h:73
bool _linkIsValid
Definition: image.h:42
void setLockAspectRatio(bool v)
Definition: image.h:71
ElementType
Definition: types.h:34
int gripsCount() const override
Definition: image.h:89
ImageType imageType
Definition: image.h:33
ImageType
Definition: image.h:22
QPixmap buffer
cached rendering
Definition: image.h:43
bool _dirty
Definition: image.h:48
Pid propertyId(const QStringRef &s)
Definition: property.cpp:347
EditBehavior
Definition: element.h:173
bool _lockAspectRatio
Definition: image.h:45