basictoolsplugin.h Example File
tools/plugandpaintplugins/basictools/basictoolsplugin.h
#ifndef BASICTOOLSPLUGIN_H
#define BASICTOOLSPLUGIN_H
#include <QRect>
#include <QObject>
#include <QStringList>
#include <QPainterPath>
#include <QImage>
#include <plugandpaint/interfaces.h>
class BasicToolsPlugin : public QObject,
public BrushInterface,
public ShapeInterface,
public FilterInterface
{
Q_OBJECT
Q_INTERFACES(BrushInterface ShapeInterface FilterInterface)
public:
QStringList brushes() const;
QRect mousePress(const QString &brush, QPainter &painter,
const QPoint &pos);
QRect mouseMove(const QString &brush, QPainter &painter,
const QPoint &oldPos, const QPoint &newPos);
QRect mouseRelease(const QString &brush, QPainter &painter,
const QPoint &pos);
QStringList shapes() const;
QPainterPath generateShape(const QString &shape, QWidget *parent);
QStringList filters() const;
QImage filterImage(const QString &filter, const QImage &image,
QWidget *parent);
};
#endif
Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies) |
Trademarks |
Qt 4.4.3 |