32 #include <QPainterPath>
33 #include <QGraphicsItem>
34 #include <QGraphicsRectItem>
35 #include <QGraphicsPathItem>
36 #include <QGraphicsSceneMouseEvent>
37 #include <QGraphicsSceneHoverEvent>
38 #include "ui_lensdialogbase.h"
39 #include "pluginapi.h"
40 #include "scribusdoc.h"
44 class PLUGIN_API
LensItem :
public QGraphicsRectItem
49 void setStrength(
double s);
51 QPainterPath lensDeform(
const QPainterPath &source,
const QPointF &offset,
double m_radius,
double s);
52 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *item, QWidget *widget);
58 QVariant itemChange(GraphicsItemChange change,
const QVariant &value);
59 void mousePressEvent(QGraphicsSceneMouseEvent *event);
60 void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
61 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
62 void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
63 void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
64 void hoverLeaveEvent(QGraphicsSceneHoverEvent *);
68 class PLUGIN_API
LensDialog :
public QDialog, Ui::LensDialogBase
77 void setLensPositionValues(QPointF p);
79 QList<QPainterPath> origPath;
80 QList<QGraphicsPathItem*> origPathItem;
81 QList<PageItem*> origPageItem;
82 QList<LensItem*> lensList;
87 void showEvent(QShowEvent *e);
95 void selectionHasChanged();
96 void setNewLensX(
double x);
97 void setNewLensY(
double y);
98 void setNewLensRadius(
double radius);
99 void setNewLensStrength(
double s);
Definition: lensdialog.h:44
the Document Class
Definition: scribusdoc.h:90
Definition: lensdialog.h:68
Definition: pageitem.h:92
Definition: selection.h:34