labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

DatapickerPoint Class Reference

#include <DatapickerPoint.h>

Inheritance diagram for DatapickerPoint:
[legend]
Collaboration diagram for DatapickerPoint:
[legend]

Public Types

typedef DatapickerPointPrivate Private
 
- Public Types inherited from AbstractAspect
enum class  ChildIndexFlag { IncludeHidden = 0x01 , Recursive = 0x02 , Compress = 0x04 }
 Flags which control numbering scheme of children. More...
 

Public Slots

void retransform ()
 
- Public Slots inherited from AbstractAspect
bool setName (const QString &, bool autoUnique=true)
 AbstractAspect::setName sets the name of the abstract aspect. More...
 
void setComment (const QString &)
 
void remove ()
 Remove me from my parent's list of children. More...
 

Signals

void positionChanged (QPointF)
 
void plusDeltaXPosChanged (QPointF)
 
void minusDeltaXPosChanged (QPointF)
 
void plusDeltaYPosChanged (QPointF)
 
void minusDeltaYPosChanged (QPointF)
 
- Signals inherited from AbstractAspect
void aspectDescriptionAboutToChange (const AbstractAspect *)
 Emitted before the name, comment or caption spec is changed. More...
 
void aspectDescriptionChanged (const AbstractAspect *)
 Emitted after the name, comment or caption spec have changed. More...
 
void aspectAboutToBeAdded (const AbstractAspect *parent, const AbstractAspect *before, const AbstractAspect *child)
 Emitted before a new child is inserted. More...
 
void aspectAdded (const AbstractAspect *)
 Emitted after a new Aspect has been added to the tree. More...
 
void aspectAboutToBeRemoved (const AbstractAspect *)
 Emitted before an aspect is removed from its parent. More...
 
void aspectRemoved (const AbstractAspect *parent, const AbstractAspect *before, const AbstractAspect *child)
 Emitted from the parent after removing a child. More...
 
void aspectHiddenAboutToChange (const AbstractAspect *)
 Emitted before the hidden attribute is changed. More...
 
void aspectHiddenChanged (const AbstractAspect *)
 Emitted after the hidden attribute has changed. More...
 
void statusInfo (const QString &)
 Emitted whenever some aspect in the tree wants to give status information to the user. More...
 
void renameRequested ()
 
void selected (const AbstractAspect *)
 
void deselected (const AbstractAspect *)
 
void childAspectSelectedInView (const AbstractAspect *)
 
void childAspectDeselectedInView (const AbstractAspect *)
 

Public Member Functions

 DatapickerPoint (const QString &name)
 
 ~DatapickerPoint () override
 
QIcon icon () const override
 
QMenu * createContextMenu () override
 Return a new context menu. More...
 
QGraphicsItem * graphicsItem () const
 
void setParentGraphicsItem (QGraphicsItem *)
 
void setPrinting (bool)
 
void initErrorBar (DatapickerCurve::Errors)
 
void save (QXmlStreamWriter *) const override
 Save as XML. More...
 
bool load (XmlStreamReader *, bool preview) override
 Load from XML. More...
 
- Public Member Functions inherited from AbstractAspect
 AbstractAspect (const QString &name, AspectType type)
 
 ~AbstractAspect () override
 
QString name () const
 
QString comment () const
 
void setCreationTime (const QDateTime &)
 
QDateTime creationTime () const
 
virtual Projectproject ()
 Return the Project this Aspect belongs to, or 0 if it is currently not part of one. More...
 
virtual QString path () const
 Return the path that leads from the top-most Aspect (usually a Project) to me. More...
 
void setHidden (bool)
 Set "hidden" property, i.e. whether to exclude this aspect from being shown in the explorer. More...
 
bool hidden () const
 
void setIsLoading (bool)
 
bool isLoading () const
 
AspectType type () const
 
bool inherits (AspectType type) const
 
AbstractAspectparentAspect () const
 Return my parent Aspect or 0 if I currently don't have one. More...
 
AbstractAspectparent (AspectType type) const
 In the parent-child hierarchy, return the first parent of type. More...
 
void setParentAspect (AbstractAspect *)
 
Folderfolder ()
 Return the folder the Aspect is contained in or 0 if there is none. More...
 
bool isDescendantOf (AbstractAspect *other)
 Return whether the there is a path upwards to the given aspect. More...
 
void addChild (AbstractAspect *)
 Add the given Aspect to my list of children. More...
 
void addChildFast (AbstractAspect *)
 Add the given Aspect to my list of children without any checks and without putting this step onto the undo-stack. More...
 
virtual void finalizeAdd ()
 
QVector< AbstractAspect * > children (AspectType type, ChildIndexFlags flags={}) const
 
void insertChildBefore (AbstractAspect *child, AbstractAspect *before)
 Insert the given Aspect at a specific position in my list of children. More...
 
void insertChildBeforeFast (AbstractAspect *child, AbstractAspect *before)
 Insert the given Aspect at a specific position in my list of children.without any checks and without putting this step onto the undo-stack. More...
 
void reparent (AbstractAspect *newParent, int newIndex=-1)
 Move a child to another parent aspect and transfer ownership. More...
 
void removeChild (AbstractAspect *)
 Remove the given Aspect from my list of children. More...
 
void removeAllChildren ()
 Remove all child Aspects. More...
 
virtual QVector< AbstractAspect * > dependsOn () const
 
virtual bool isDraggable () const
 
virtual QVector< AspectTypedropableOn () const
 
virtual void processDropEvent (const QVector< quintptr > &)
 
template<class T >
T * ancestor () const
 Return the closest ancestor of class T (or NULL if none found). More...
 
template<class T >
QVector< T * > children (ChildIndexFlags flags={}) const
 
template<class T >
T * child (int index, ChildIndexFlags flags={}) const
 
template<class T >
T * child (const QString &name) const
 Get child by name and class. More...
 
template<class T >
int childCount (ChildIndexFlags flags={}) const
 Return the number of child Aspects inheriting from given class. More...
 
template<class T >
int indexOfChild (const AbstractAspect *child, ChildIndexFlags flags={}) const
 Return (0 based) index of child in the list of children inheriting from class T. More...
 
void setSelected (bool)
 
void setUndoAware (bool)
 
virtual QUndoStack * undoStack () const
 Return the undo stack of the Project, or 0 if this Aspect is not part of a Project. More...
 
void exec (QUndoCommand *)
 Execute the given command, pushing it on the undoStack() if available. More...
 
void exec (QUndoCommand *command, const char *preChangeSignal, const char *postChangeSignal, QGenericArgument val0=QGenericArgument(), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument())
 Execute command and arrange for signals to be sent before/after it is redone or undone. More...
 
void beginMacro (const QString &text)
 Begin an undo stack macro (series of commands) More...
 
void endMacro ()
 End the current undo stack macro. More...
 

Protected Member Functions

 DatapickerPoint (const QString &name, DatapickerPointPrivate *dd)
 
- Protected Member Functions inherited from AbstractAspect
void info (const QString &text)
 Implementations should call this whenever status information should be given to the user. More...
 
bool readBasicAttributes (XmlStreamReader *)
 Load name and creation time from XML. More...
 
void writeBasicAttributes (QXmlStreamWriter *) const
 Save name and creation time to XML. More...
 
void writeCommentElement (QXmlStreamWriter *) const
 Save the comment to XML. More...
 
bool readCommentElement (XmlStreamReader *)
 Load comment from an XML element. More...
 

Protected Attributes

DatapickerPointPrivate *const d_ptr
 
- Protected Attributes inherited from AbstractAspect
const AspectType m_type
 

Static Protected Attributes

static QPen selectedPen
 
static float selectedOpacity
 

Private Member Functions

void init ()
 

Private Attributes

QList< ErrorBarItem * > m_errorBarItemList
 

Additional Inherited Members

- Protected Slots inherited from AbstractAspect
virtual void childSelected (const AbstractAspect *)
 
virtual void childDeselected (const AbstractAspect *)
 

Detailed Description

Definition at line 62 of file DatapickerPoint.h.

Member Typedef Documentation

◆ Private

Constructor & Destructor Documentation

◆ DatapickerPoint() [1/2]

DatapickerPoint::DatapickerPoint ( const QString &  name)
explicit

Definition at line 128 of file DatapickerPoint.cpp.

References init().

◆ ~DatapickerPoint()

DatapickerPoint::~DatapickerPoint ( )
overridedefault

◆ DatapickerPoint() [2/2]

DatapickerPoint::DatapickerPoint ( const QString &  name,
DatapickerPointPrivate dd 
)
protected

Definition at line 134 of file DatapickerPoint.cpp.

References init().

Member Function Documentation

◆ createContextMenu()

QMenu * DatapickerPoint::createContextMenu ( )
overridevirtual

Return a new context menu.

The caller takes ownership of the menu.

Reimplemented from AbstractAspect.

Definition at line 194 of file DatapickerPoint.cpp.

References AbstractAspect::createContextMenu().

Referenced by DatapickerPointPrivate::contextMenuEvent().

◆ graphicsItem()

QGraphicsItem * DatapickerPoint::graphicsItem ( ) const

Definition at line 199 of file DatapickerPoint.cpp.

References d_ptr.

Referenced by Datapicker::handleAspectAdded().

◆ icon()

QIcon DatapickerPoint::icon ( ) const
overridevirtual

Returns an icon to be used in the project explorer.

Reimplemented from AbstractAspect.

Definition at line 190 of file DatapickerPoint.cpp.

◆ init()

void DatapickerPoint::init ( )
private

◆ initErrorBar()

◆ load()

bool DatapickerPoint::load ( XmlStreamReader reader,
bool  preview 
)
overridevirtual

◆ minusDeltaXPosChanged

void DatapickerPoint::minusDeltaXPosChanged ( QPointF  )
signal

Referenced by initErrorBar().

◆ minusDeltaYPosChanged

void DatapickerPoint::minusDeltaYPosChanged ( QPointF  )
signal

Referenced by initErrorBar().

◆ plusDeltaXPosChanged

void DatapickerPoint::plusDeltaXPosChanged ( QPointF  )
signal

Referenced by initErrorBar().

◆ plusDeltaYPosChanged

void DatapickerPoint::plusDeltaYPosChanged ( QPointF  )
signal

Referenced by initErrorBar().

◆ positionChanged

void DatapickerPoint::positionChanged ( QPointF  )
signal

◆ retransform

void DatapickerPoint::retransform ( )
slot

◆ save()

void DatapickerPoint::save ( QXmlStreamWriter *  writer) const
overridevirtual

◆ setParentGraphicsItem()

void DatapickerPoint::setParentGraphicsItem ( QGraphicsItem *  item)

Definition at line 203 of file DatapickerPoint.cpp.

References AbstractAspect::d.

◆ setPrinting()

void DatapickerPoint::setPrinting ( bool  on)

Definition at line 302 of file DatapickerPoint.cpp.

References AbstractAspect::d.

Referenced by DatapickerImage::setPrinting().

Member Data Documentation

◆ d_ptr

DatapickerPointPrivate* const DatapickerPoint::d_ptr
protected

Definition at line 91 of file DatapickerPoint.h.

Referenced by graphicsItem().

◆ m_errorBarItemList

QList<ErrorBarItem*> DatapickerPoint::m_errorBarItemList
private

Definition at line 100 of file DatapickerPoint.h.

Referenced by initErrorBar(), and DatapickerPointPrivate::retransformErrorBar().

◆ selectedOpacity

float DatapickerPoint::selectedOpacity
staticprotected

Definition at line 94 of file DatapickerPoint.h.

◆ selectedPen

QPen DatapickerPoint::selectedPen
staticprotected

Definition at line 93 of file DatapickerPoint.h.


The documentation for this class was generated from the following files: