OpenCurves  0.9
CurveProperties Class Reference

UI for editing PlotSource and PlotInstance properties. More...

#include <curveproperties.h>

Inheritance diagram for CurveProperties:

Public Slots

void setActiveCurve (PlotInstance *curve)
 Sets the active curve being edited. More...
 
void curveChanged (const PlotInstance *curve)
 Bound to Curves::curveDataChanged(). More...
 
void sourceChanged (const PlotSource *source)
 Bound to Curves::sourceDataChanged(). More...
 

Signals

void activeCurveChanged (PlotInstance *curve)
 Emitted when the active curve changed. More...
 

Public Member Functions

 CurveProperties (Curves *curves, QWidget *parent=nullptr)
 Constructor. More...
 
 ~CurveProperties ()
 Destructor.
 
PlotInstancecurve ()
 Access the curve being viewed and edited. More...
 
const PlotInstancecurve () const
 Access the curve being viewed and edited. More...
 

Detailed Description

UI for editing PlotSource and PlotInstance properties.

Constructor & Destructor Documentation

CurveProperties::CurveProperties ( Curves curves,
QWidget *  parent = nullptr 
)

Constructor.

Parameters
curvesThe curves model.
parentOwning widget.

Member Function Documentation

void CurveProperties::activeCurveChanged ( PlotInstance curve)
signal

Emitted when the active curve changed.

Parameters
curveThe new curve being edited.
PlotInstance* CurveProperties::curve ( )
inline

Access the curve being viewed and edited.

Returns
The current curve.
const PlotInstance* CurveProperties::curve ( ) const
inline

Access the curve being viewed and edited.

Returns
The current curve.
void CurveProperties::curveChanged ( const PlotInstance curve)
slot

Bound to Curves::curveDataChanged().

Updates the UI.

Parameters
curveThe changed curve.
void CurveProperties::setActiveCurve ( PlotInstance curve)
slot

Sets the active curve being edited.

May be null.

Parameters
curveThe curve to edit.
void CurveProperties::sourceChanged ( const PlotSource source)
slot

Bound to Curves::sourceDataChanged().

Updates the UI.

Parameters
sourceThe changed curve source.

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