KReportDesignerItemRectBase

Search for usage in LXR

#include <KReportDesignerItemRectBase.h>

Inheritance diagram for KReportDesignerItemRectBase:

Public Member Functions

 KReportDesignerItemRectBase (KReportDesigner *r, KReportItemBase *b)
 
virtual void enterInlineEditingMode ()
 
virtual void exitInlineEditingMode ()
 
QRectF pointRect () const
 
- Public Member Functions inherited from QGraphicsRectItem
 QGraphicsRectItem (const QRectF &rect, QGraphicsItem *parent)
 
 QGraphicsRectItem (QGraphicsItem *parent)
 
 QGraphicsRectItem (qreal x, qreal y, qreal width, qreal height, QGraphicsItem *parent)
 
virtual QRectF boundingRect () const const override
 
virtual bool contains (const QPointF &point) const const override
 
virtual bool isObscuredBy (const QGraphicsItem *item) const const override
 
virtual QPainterPath opaqueArea () const const override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
QRectF rect () const const
 
void setRect (const QRectF &rectangle)
 
void setRect (qreal x, qreal y, qreal width, qreal height)
 
virtual QPainterPath shape () const const override
 
virtual int type () const const override
 
- Public Member Functions inherited from QAbstractGraphicsShapeItem
 QAbstractGraphicsShapeItem (QGraphicsItem *parent)
 
QBrush brush () const const
 
QPen pen () const const
 
void setBrush (const QBrush &brush)
 
void setPen (const QPen &pen)
 
- Public Member Functions inherited from QGraphicsItem
 QGraphicsItem (QGraphicsItem *parent)
 
bool acceptDrops () const const
 
Qt::MouseButtons acceptedMouseButtons () const const
 
bool acceptHoverEvents () const const
 
bool acceptTouchEvents () const const
 
virtual void advance (int phase)
 
QRegion boundingRegion (const QTransform &itemToDeviceTransform) const const
 
qreal boundingRegionGranularity () const const
 
CacheMode cacheMode () const const
 
QList< QGraphicsItem * > childItems () const const
 
QRectF childrenBoundingRect () const const
 
void clearFocus ()
 
QPainterPath clipPath () const const
 
virtual bool collidesWithItem (const QGraphicsItem *other, Qt::ItemSelectionMode mode) const const
 
virtual bool collidesWithPath (const QPainterPath &path, Qt::ItemSelectionMode mode) const const
 
QList< QGraphicsItem * > collidingItems (Qt::ItemSelectionMode mode) const const
 
QGraphicsItemcommonAncestorItem (const QGraphicsItem *other) const const
 
QCursor cursor () const const
 
QVariant data (int key) const const
 
QTransform deviceTransform (const QTransform &viewportTransform) const const
 
qreal effectiveOpacity () const const
 
void ensureVisible (const QRectF &rect, int xmargin, int ymargin)
 
void ensureVisible (qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin)
 
bool filtersChildEvents () const const
 
GraphicsItemFlags flags () const const
 
QGraphicsItemfocusItem () const const
 
QGraphicsItemfocusProxy () const const
 
void grabKeyboard ()
 
void grabMouse ()
 
QGraphicsEffectgraphicsEffect () const const
 
QGraphicsItemGroupgroup () const const
 
bool handlesChildEvents () const const
 
bool hasCursor () const const
 
bool hasFocus () const const
 
void hide ()
 
Qt::InputMethodHints inputMethodHints () const const
 
void installSceneEventFilter (QGraphicsItem *filterItem)
 
bool isActive () const const
 
bool isAncestorOf (const QGraphicsItem *child) const const
 
bool isBlockedByModalPanel (QGraphicsItem **blockingPanel) const const
 
bool isClipped () const const
 
bool isEnabled () const const
 
bool isObscured (const QRectF &rect) const const
 
bool isObscured (qreal x, qreal y, qreal w, qreal h) const const
 
bool isPanel () const const
 
bool isSelected () const const
 
bool isUnderMouse () const const
 
bool isVisible () const const
 
bool isVisibleTo (const QGraphicsItem *parent) const const
 
bool isWidget () const const
 
bool isWindow () const const
 
QTransform itemTransform (const QGraphicsItem *other, bool *ok) const const
 
QPainterPath mapFromItem (const QGraphicsItem *item, const QPainterPath &path) const const
 
QPointF mapFromItem (const QGraphicsItem *item, const QPointF &point) const const
 
QPolygonF mapFromItem (const QGraphicsItem *item, const QPolygonF &polygon) const const
 
QPolygonF mapFromItem (const QGraphicsItem *item, const QRectF &rect) const const
 
QPointF mapFromItem (const QGraphicsItem *item, qreal x, qreal y) const const
 
QPolygonF mapFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const const
 
QPainterPath mapFromParent (const QPainterPath &path) const const
 
QPointF mapFromParent (const QPointF &point) const const
 
QPolygonF mapFromParent (const QPolygonF &polygon) const const
 
QPolygonF mapFromParent (const QRectF &rect) const const
 
QPointF mapFromParent (qreal x, qreal y) const const
 
QPolygonF mapFromParent (qreal x, qreal y, qreal w, qreal h) const const
 
QPainterPath mapFromScene (const QPainterPath &path) const const
 
QPointF mapFromScene (const QPointF &point) const const
 
QPolygonF mapFromScene (const QPolygonF &polygon) const const
 
QPolygonF mapFromScene (const QRectF &rect) const const
 
QPointF mapFromScene (qreal x, qreal y) const const
 
QPolygonF mapFromScene (qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectFromItem (const QGraphicsItem *item, const QRectF &rect) const const
 
QRectF mapRectFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectFromParent (const QRectF &rect) const const
 
QRectF mapRectFromParent (qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectFromScene (const QRectF &rect) const const
 
QRectF mapRectFromScene (qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectToItem (const QGraphicsItem *item, const QRectF &rect) const const
 
QRectF mapRectToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectToParent (const QRectF &rect) const const
 
QRectF mapRectToParent (qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectToScene (const QRectF &rect) const const
 
QRectF mapRectToScene (qreal x, qreal y, qreal w, qreal h) const const
 
QPainterPath mapToItem (const QGraphicsItem *item, const QPainterPath &path) const const
 
QPointF mapToItem (const QGraphicsItem *item, const QPointF &point) const const
 
QPolygonF mapToItem (const QGraphicsItem *item, const QPolygonF &polygon) const const
 
QPolygonF mapToItem (const QGraphicsItem *item, const QRectF &rect) const const
 
QPointF mapToItem (const QGraphicsItem *item, qreal x, qreal y) const const
 
QPolygonF mapToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const const
 
QPainterPath mapToParent (const QPainterPath &path) const const
 
QPointF mapToParent (const QPointF &point) const const
 
QPolygonF mapToParent (const QPolygonF &polygon) const const
 
QPolygonF mapToParent (const QRectF &rect) const const
 
QPointF mapToParent (qreal x, qreal y) const const
 
QPolygonF mapToParent (qreal x, qreal y, qreal w, qreal h) const const
 
QPainterPath mapToScene (const QPainterPath &path) const const
 
QPointF mapToScene (const QPointF &point) const const
 
QPolygonF mapToScene (const QPolygonF &polygon) const const
 
QPolygonF mapToScene (const QRectF &rect) const const
 
QPointF mapToScene (qreal x, qreal y) const const
 
QPolygonF mapToScene (qreal x, qreal y, qreal w, qreal h) const const
 
void moveBy (qreal dx, qreal dy)
 
qreal opacity () const const
 
QGraphicsItempanel () const const
 
PanelModality panelModality () const const
 
QGraphicsItemparentItem () const const
 
QGraphicsObjectparentObject () const const
 
QGraphicsWidgetparentWidget () const const
 
QPointF pos () const const
 
qgraphicsitem_cast (QGraphicsItem *item)
 
void removeSceneEventFilter (QGraphicsItem *filterItem)
 
void resetTransform ()
 
qreal rotation () const const
 
qreal scale () const const
 
QGraphicsScenescene () const const
 
QRectF sceneBoundingRect () const const
 
QPointF scenePos () const const
 
QTransform sceneTransform () const const
 
void scroll (qreal dx, qreal dy, const QRectF &rect)
 
void setAcceptDrops (bool on)
 
void setAcceptedMouseButtons (Qt::MouseButtons buttons)
 
void setAcceptHoverEvents (bool enabled)
 
void setAcceptTouchEvents (bool enabled)
 
void setActive (bool active)
 
void setBoundingRegionGranularity (qreal granularity)
 
void setCacheMode (CacheMode mode, const QSize &logicalCacheSize)
 
void setCursor (const QCursor &cursor)
 
void setData (int key, const QVariant &value)
 
void setEnabled (bool enabled)
 
void setFiltersChildEvents (bool enabled)
 
void setFlag (GraphicsItemFlag flag, bool enabled)
 
void setFlags (GraphicsItemFlags flags)
 
void setFocus (Qt::FocusReason focusReason)
 
void setFocusProxy (QGraphicsItem *item)
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void setGroup (QGraphicsItemGroup *group)
 
void setHandlesChildEvents (bool enabled)
 
void setInputMethodHints (Qt::InputMethodHints hints)
 
void setOpacity (qreal opacity)
 
void setPanelModality (PanelModality panelModality)
 
void setParentItem (QGraphicsItem *newParent)
 
void setPos (const QPointF &pos)
 
void setPos (qreal x, qreal y)
 
void setRotation (qreal angle)
 
void setScale (qreal factor)
 
void setSelected (bool selected)
 
void setToolTip (const QString &toolTip)
 
void setTransform (const QTransform &matrix, bool combine)
 
void setTransformations (const QList< QGraphicsTransform * > &transformations)
 
void setTransformOriginPoint (const QPointF &origin)
 
void setTransformOriginPoint (qreal x, qreal y)
 
void setVisible (bool visible)
 
void setX (qreal x)
 
void setY (qreal y)
 
void setZValue (qreal z)
 
void show ()
 
void stackBefore (const QGraphicsItem *sibling)
 
QGraphicsObjecttoGraphicsObject ()
 
const QGraphicsObjecttoGraphicsObject () const const
 
QString toolTip () const const
 
QGraphicsItemtopLevelItem () const const
 
QGraphicsWidgettopLevelWidget () const const
 
QTransform transform () const const
 
QList< QGraphicsTransform * > transformations () const const
 
QPointF transformOriginPoint () const const
 
void ungrabKeyboard ()
 
void ungrabMouse ()
 
void unsetCursor ()
 
void update (const QRectF &rect)
 
void update (qreal x, qreal y, qreal width, qreal height)
 
QGraphicsWidgetwindow () const const
 
qreal x () const const
 
qreal y () const const
 
qreal zValue () const const
 
- Public Member Functions inherited from KReportDesignerItemBase
virtual void buildXML (QDomDocument *doc, QDomElement *parent)=0
 
virtual KReportDesignerItemBaseclone ()=0
 
KReportDesignerdesigner () const
 
void setDesigner (KReportDesigner *rd)
 

Protected Types

enum class  SceneRectFlag { UpdateProperty , DontUpdateProperty }
 

Protected Member Functions

int dpiX () const
 
int dpiY () const
 
void drawHandles (QPainter *)
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *event) override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void move (const QPointF &) override
 
QRectF properRect (const KReportDesigner &d, qreal minWidth, qreal minHeight) const
 
void propertyChanged (const KPropertySet &s, const KProperty &p)
 
QRectF sceneRect ()
 
void setSceneRect (const QPointF &topLeft, const QSizeF &size, SceneRectFlag update=SceneRectFlag::UpdateProperty)
 
void setSceneRect (const QRectF &rect, SceneRectFlag update=SceneRectFlag::UpdateProperty)
 
- Protected Member Functions inherited from QGraphicsItem
virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 
virtual void dragEnterEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void dragLeaveEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void dragMoveEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void dropEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const const
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 
void prepareGeometryChange ()
 
virtual bool sceneEvent (QEvent *event)
 
virtual bool sceneEventFilter (QGraphicsItem *watched, QEvent *event)
 
void updateMicroFocus ()
 
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)
 
- Protected Member Functions inherited from KReportDesignerItemBase
 KReportDesignerItemBase (KReportDesigner *r, KReportItemBase *)
 
QString dataSourceAndObjectTypeName (const QString &dataSource, const QString &objectTypeName) const
 
KReportItemBaseitem () const
 
QString renderText () const
 
void setRenderText (const QString &text)
 
void updateRenderText (const QString &itemDataSource, const QString &itemStaticValue, const QString &itemType)
 

Additional Inherited Members

- Public Types inherited from QGraphicsItem
enum  CacheMode
 
enum  GraphicsItemChange
 
enum  GraphicsItemFlag
 
typedef  GraphicsItemFlags
 
enum  PanelModality
 
- Static Public Member Functions inherited from KReportDesignerItemBase
static void addPropertyAsAttribute (QDomElement *e, KProperty *p)
 
static void buildXML (QGraphicsItem *item, QDomDocument *doc, QDomElement *parent)
 
static void buildXMLLineStyle (QDomDocument *doc, QDomElement *entity, const KReportLineStyle &ls)
 
static void buildXMLRect (QDomDocument *doc, QDomElement *entity, KReportItemBase *i)
 
static void buildXMLTextStyle (QDomDocument *doc, QDomElement *entity, const KReportTextStyleData &ts)
 
- Public Attributes inherited from QGraphicsItem
 DeviceCoordinateCache
 
 ItemAcceptsInputMethod
 
 ItemChildAddedChange
 
 ItemChildRemovedChange
 
 ItemClipsChildrenToShape
 
 ItemClipsToShape
 
 ItemContainsChildrenInShape
 
 ItemCoordinateCache
 
 ItemCursorChange
 
 ItemCursorHasChanged
 
 ItemDoesntPropagateOpacityToChildren
 
 ItemEnabledChange
 
 ItemEnabledHasChanged
 
 ItemFlagsChange
 
 ItemFlagsHaveChanged
 
 ItemHasNoContents
 
 ItemIgnoresParentOpacity
 
 ItemIgnoresTransformations
 
 ItemIsFocusable
 
 ItemIsFocusScope
 
 ItemIsMovable
 
 ItemIsPanel
 
 ItemIsSelectable
 
 ItemNegativeZStacksBehindParent
 
 ItemOpacityChange
 
 ItemOpacityHasChanged
 
 ItemParentChange
 
 ItemParentHasChanged
 
 ItemPositionChange
 
 ItemPositionHasChanged
 
 ItemRotationChange
 
 ItemRotationHasChanged
 
 ItemScaleChange
 
 ItemScaleHasChanged
 
 ItemSceneChange
 
 ItemSceneHasChanged
 
 ItemScenePositionHasChanged
 
 ItemSelectedChange
 
 ItemSelectedHasChanged
 
 ItemSendsGeometryChanges
 
 ItemSendsScenePositionChanges
 
 ItemStacksBehindParent
 
 ItemStopsClickFocusPropagation
 
 ItemStopsFocusHandling
 
 ItemToolTipChange
 
 ItemToolTipHasChanged
 
 ItemTransformChange
 
 ItemTransformHasChanged
 
 ItemTransformOriginPointChange
 
 ItemTransformOriginPointHasChanged
 
 ItemUsesExtendedStyleOption
 
 ItemVisibleChange
 
 ItemVisibleHasChanged
 
 ItemZValueChange
 
 ItemZValueHasChanged
 
 NoCache
 
 NonModal
 
 PanelModal
 
 SceneModal
 

Detailed Description

Base class for rectangular report items used within the designer GUI.

Definition at line 38 of file KReportDesignerItemRectBase.h.

Member Enumeration Documentation

◆ SceneRectFlag

enum class KReportDesignerItemRectBase::SceneRectFlag
strongprotected

Definition at line 52 of file KReportDesignerItemRectBase.h.

Constructor & Destructor Documentation

◆ KReportDesignerItemRectBase()

KReportDesignerItemRectBase::KReportDesignerItemRectBase ( KReportDesigner * r,
KReportItemBase * b )
explicit

Definition at line 49 of file KReportDesignerItemRectBase.cpp.

◆ ~KReportDesignerItemRectBase()

KReportDesignerItemRectBase::~KReportDesignerItemRectBase ( )
override

Definition at line 56 of file KReportDesignerItemRectBase.cpp.

Member Function Documentation

◆ dpiX()

int KReportDesignerItemRectBase::dpiX ( ) const
protected

Definition at line 405 of file KReportDesignerItemRectBase.cpp.

◆ dpiY()

int KReportDesignerItemRectBase::dpiY ( ) const
protected

Definition at line 410 of file KReportDesignerItemRectBase.cpp.

◆ drawHandles()

void KReportDesignerItemRectBase::drawHandles ( QPainter * painter)
protected

Definition at line 208 of file KReportDesignerItemRectBase.cpp.

◆ enterInlineEditingMode()

void KReportDesignerItemRectBase::enterInlineEditingMode ( )
virtual

Definition at line 380 of file KReportDesignerItemRectBase.cpp.

◆ exitInlineEditingMode()

void KReportDesignerItemRectBase::exitInlineEditingMode ( )
virtual

Definition at line 384 of file KReportDesignerItemRectBase.cpp.

◆ hoverMoveEvent()

void KReportDesignerItemRectBase::hoverMoveEvent ( QGraphicsSceneHoverEvent * event)
overrideprotectedvirtual

Reimplemented from QGraphicsItem.

Definition at line 170 of file KReportDesignerItemRectBase.cpp.

◆ itemChange()

QVariant KReportDesignerItemRectBase::itemChange ( GraphicsItemChange change,
const QVariant & value )
overrideprotectedvirtual

Reimplemented from QGraphicsItem.

Definition at line 278 of file KReportDesignerItemRectBase.cpp.

◆ mouseMoveEvent()

void KReportDesignerItemRectBase::mouseMoveEvent ( QGraphicsSceneMouseEvent * event)
overrideprotectedvirtual
Todo
use an enum for the directions

Reimplemented from QGraphicsItem.

Definition at line 115 of file KReportDesignerItemRectBase.cpp.

◆ mousePressEvent()

void KReportDesignerItemRectBase::mousePressEvent ( QGraphicsSceneMouseEvent * event)
overrideprotectedvirtual

Reimplemented from QGraphicsItem.

Definition at line 92 of file KReportDesignerItemRectBase.cpp.

◆ mouseReleaseEvent()

void KReportDesignerItemRectBase::mouseReleaseEvent ( QGraphicsSceneMouseEvent * event)
overrideprotectedvirtual

Reimplemented from QGraphicsItem.

Definition at line 106 of file KReportDesignerItemRectBase.cpp.

◆ move()

void KReportDesignerItemRectBase::move ( const QPointF & )
overrideprotectedvirtual
Todo

Implements KReportDesignerItemBase.

Definition at line 337 of file KReportDesignerItemRectBase.cpp.

◆ pointRect()

QRectF KReportDesignerItemRectBase::pointRect ( ) const

Definition at line 66 of file KReportDesignerItemRectBase.cpp.

◆ properRect()

QRectF KReportDesignerItemRectBase::properRect ( const KReportDesigner & d,
qreal minWidth,
qreal minHeight ) const
protected

Definition at line 358 of file KReportDesignerItemRectBase.cpp.

◆ propertyChanged()

void KReportDesignerItemRectBase::propertyChanged ( const KPropertySet & s,
const KProperty & p )
protected

Definition at line 322 of file KReportDesignerItemRectBase.cpp.

◆ sceneRect()

QRectF KReportDesignerItemRectBase::sceneRect ( )
protected

Definition at line 61 of file KReportDesignerItemRectBase.cpp.

◆ setSceneRect() [1/2]

void KReportDesignerItemRectBase::setSceneRect ( const QPointF & topLeft,
const QSizeF & size,
SceneRectFlag update = SceneRectFlag::UpdateProperty )
protected

Definition at line 71 of file KReportDesignerItemRectBase.cpp.

◆ setSceneRect() [2/2]

void KReportDesignerItemRectBase::setSceneRect ( const QRectF & rect,
SceneRectFlag update = SceneRectFlag::UpdateProperty )
protected

Definition at line 76 of file KReportDesignerItemRectBase.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.