[gegl-qt] Widgets: Add access to new GeglQtViewOptions instance.
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-qt] Widgets: Add access to new GeglQtViewOptions instance.
- Date: Sun, 31 Jul 2011 17:43:40 +0000 (UTC)
commit b9c26b829dcb134ddb640245f4b85f917ff5195c
Author: Jon Nordby <jononor gmail com>
Date: Sun Jul 31 17:16:56 2011 +0200
Widgets: Add access to new GeglQtViewOptions instance.
gegl-qt/gegl-qt.h | 3 +++
gegl-qt/geglqtdeclarativeview.cpp | 6 ++++++
gegl-qt/geglqtdeclarativeview.h | 3 +++
gegl-qt/geglqtgraphicswidgetview.cpp | 6 ++++++
gegl-qt/geglqtgraphicswidgetview.h | 3 +++
gegl-qt/geglqtview.cpp | 6 ++++++
gegl-qt/geglqtview.h | 4 ++++
7 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/gegl-qt/gegl-qt.h b/gegl-qt/gegl-qt.h
index 910d72a..494d785 100644
--- a/gegl-qt/gegl-qt.h
+++ b/gegl-qt/gegl-qt.h
@@ -1,8 +1,11 @@
#ifndef GEGLQT_H
#define GEGLQT_H
+// Widgets
#include "geglqtview.h"
#include "geglqtgraphicswidgetview.h"
#include "geglqtdeclarativeview.h"
+#include "geglqtviewoptions.h"
+
#endif // GEGLQT_H
diff --git a/gegl-qt/geglqtdeclarativeview.cpp b/gegl-qt/geglqtdeclarativeview.cpp
index 432269d..5882bde 100644
--- a/gegl-qt/geglqtdeclarativeview.cpp
+++ b/gegl-qt/geglqtdeclarativeview.cpp
@@ -33,6 +33,12 @@ GeglQtDeclarativeView::inputNode()
return qVariantFromValue(static_cast<void*>(priv->inputNode()));
}
+GeglQtViewOptions *
+GeglQtDeclarativeView::options() const
+{
+ return priv->options();
+}
+
void
GeglQtDeclarativeView::invalidate(QRect rect)
{
diff --git a/gegl-qt/geglqtdeclarativeview.h b/gegl-qt/geglqtdeclarativeview.h
index 67d2c72..0a6708d 100644
--- a/gegl-qt/geglqtdeclarativeview.h
+++ b/gegl-qt/geglqtdeclarativeview.h
@@ -4,6 +4,7 @@
#include <QtDeclarative>
#include <QtCore>
#include <gegl.h>
+#include "geglqtviewoptions.h"
class GeglQtViewImplementation;
@@ -19,6 +20,8 @@ public:
QVariant inputNode();
Q_PROPERTY(QVariant inputNode READ inputNode WRITE setInputNode NOTIFY inputNodeChanged)
+ Q_INVOKABLE GeglQtViewOptions *options() const;
+
//! reimpl
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
//! reimpl end
diff --git a/gegl-qt/geglqtgraphicswidgetview.cpp b/gegl-qt/geglqtgraphicswidgetview.cpp
index 4e3b893..0bad69e 100644
--- a/gegl-qt/geglqtgraphicswidgetview.cpp
+++ b/gegl-qt/geglqtgraphicswidgetview.cpp
@@ -46,6 +46,12 @@ GeglQtGraphicsWidgetView::inputNode()
return priv->inputNode();
}
+GeglQtViewOptions *
+GeglQtGraphicsWidgetView::options() const
+{
+ return priv->options();
+}
+
void
GeglQtGraphicsWidgetView::invalidate(QRect rect)
{
diff --git a/gegl-qt/geglqtgraphicswidgetview.h b/gegl-qt/geglqtgraphicswidgetview.h
index bb6fc42..fcb09d1 100644
--- a/gegl-qt/geglqtgraphicswidgetview.h
+++ b/gegl-qt/geglqtgraphicswidgetview.h
@@ -21,6 +21,7 @@
#include <QGraphicsWidget>
#include <gegl.h>
+#include "geglqtviewoptions.h"
class GeglQtViewImplementation;
@@ -34,6 +35,8 @@ public:
void setInputNode(GeglNode *node);
GeglNode *inputNode();
+ GeglQtViewOptions *options() const;
+
//! reimpl
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
//! reimpl end
diff --git a/gegl-qt/geglqtview.cpp b/gegl-qt/geglqtview.cpp
index 315bc32..2ce042f 100644
--- a/gegl-qt/geglqtview.cpp
+++ b/gegl-qt/geglqtview.cpp
@@ -58,6 +58,12 @@ GeglQtView::setInputNode(GeglNode *newNode)
priv->setInputNode(newNode);
}
+GeglQtViewOptions *
+GeglQtView::options() const
+{
+ return priv->options();
+}
+
void
GeglQtView::invalidate(QRect rect)
{
diff --git a/gegl-qt/geglqtview.h b/gegl-qt/geglqtview.h
index f3a021e..6ec4b9e 100644
--- a/gegl-qt/geglqtview.h
+++ b/gegl-qt/geglqtview.h
@@ -23,6 +23,8 @@
#include <gegl.h>
+#include "geglqtviewoptions.h"
+
class GeglQtViewImplementation;
class GeglQtView : public QWidget
@@ -36,6 +38,8 @@ public:
GeglNode *inputNode() const;
void setInputNode(GeglNode *node);
+ GeglQtViewOptions *options() const;
+
//! \reimpl
virtual void paintEvent(QPaintEvent *event);
//! \reimpl end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]