Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_AnalyticalCurveDlg Class Reference

#include <Plot2d_AnalyticalCurveDlg.h>

Inheritance diagram for Plot2d_AnalyticalCurveDlg:
Inheritance graph

Classes

class  UpdateLocker
 
class  Updater
 

Public Member Functions

 Plot2d_AnalyticalCurveDlg (Plot2d_CurveContainer *, QWidget *)
 
 ~Plot2d_AnalyticalCurveDlg ()
 
void accept ()
 Private slot. Called when "Ok" button is clicked. More...
 
void reject ()
 Private slot. Called when "Close" button is clicked. More...
 

Private Types

enum  { ItemExisting, ItemAdded, ItemRemoved }
 
typedef QMap< QString, QVariant > CurveProps
 
typedef QMap
< Plot2d_AnalyticalCurve
*, CurveProps
PropMap
 

Private Slots

void addCurve ()
 Private slot. Called when "Add curve" button is clicked. More...
 
void removeCurve ()
 Private slot. Called when "Remove curve" button is clicked. More...
 
void updateCurve ()
 Private slot. Called when any curve property is changed. More...
 
void updateState ()
 Private slot. Update widgets state. More...
 
void selectionChanged ()
 Private slot. Called when selection in the curve list is changed. More...
 
void help ()
 Show help page. More...
 
void apply ()
 Private slot. Called when "Apply" button is clicked. More...
 

Private Member Functions

void init ()
 
void initPropsFromCurve (Plot2d_AnalyticalCurve *)
 
QListWidgetItem * selected () const
 Get currently selected list widget item. More...
 
Plot2d_AnalyticalCurveselectedCurve () const
 Get currently selected curve. More...
 
QListWidgetItem * getItem (Plot2d_AnalyticalCurve *) const
 Get widget item by the curve. More...
 
bool processCurves ()
 
QwtPlotgetPlot ()
 
int propStatus (Plot2d_AnalyticalCurve *=0, const int def=ItemExisting)
 Get curve property: status. More...
 
QString propTitle (Plot2d_AnalyticalCurve *=0, const QString &def="")
 Get curve property: title. More...
 
bool propVisible (Plot2d_AnalyticalCurve *=0, bool def=true)
 Get curve property: visible flag. More...
 
QString propFormula (Plot2d_AnalyticalCurve *=0, const QString &def="")
 Get curve property: formula. More...
 
int propIntervals (Plot2d_AnalyticalCurve *=0, int def=100)
 Get curve property: nb intervals. More...
 
Plot2d::MarkerType propMarkerType (Plot2d_AnalyticalCurve *=0, Plot2d::MarkerType def=Plot2d::None)
 Get curve property: marker type. More...
 
Plot2d::LineType propLineType (Plot2d_AnalyticalCurve *=0, Plot2d::LineType def=Plot2d::NoPen)
 Get curve property: line type. More...
 
int propLineWidth (Plot2d_AnalyticalCurve *=0, int def=0)
 Get curve property: line width. More...
 
QColor propColor (Plot2d_AnalyticalCurve *=0, const QColor &def=QColor())
 Get curve property: color. More...
 
bool propAutoAssign (Plot2d_AnalyticalCurve *=0, bool def=true)
 Get curve property: auto-assign flag. More...
 

Private Attributes

Plot2d_CurveContainermyContainer
 
PropMap myProperties
 
UpdatermyUpdater
 
QListWidgetmyCurvesList
 
QGroupBoxmyCurveParams
 
QLineEditmyFormula
 
QtxIntSpinBoxmyNbIntervals
 
QGroupBoxmyCurveProps
 
QCheckBox * myAutoAssign
 
QWidgetmyPropsGrp
 
QComboBoxmyMarkerType
 
QComboBoxmyLineType
 
QtxIntSpinBoxmyLineWidth
 
QtxColorButtonmyColor
 
QPushButton * myAddButton
 
QPushButton * myRemoveButton
 

Member Typedef Documentation

typedef QMap<QString, QVariant> Plot2d_AnalyticalCurveDlg::CurveProps
private

Member Enumeration Documentation

anonymous enum
private
Enumerator
ItemExisting 
ItemAdded 
ItemRemoved 

Constructor & Destructor Documentation

Plot2d_AnalyticalCurveDlg::~Plot2d_AnalyticalCurveDlg ( )

Destructor

Member Function Documentation

void Plot2d_AnalyticalCurveDlg::accept ( )

References processCurves().

QListWidgetItem * Plot2d_AnalyticalCurveDlg::getItem ( Plot2d_AnalyticalCurve theCurve) const
private

References myCurvesList.

QwtPlot * Plot2d_AnalyticalCurveDlg::getPlot ( )
private
void Plot2d_AnalyticalCurveDlg::help ( )
privateslot
bool Plot2d_AnalyticalCurveDlg::propAutoAssign ( Plot2d_AnalyticalCurve curve = 0,
bool  def = true 
)
private

References myProperties, and PROP_AUTOASSIGN.

QColor Plot2d_AnalyticalCurveDlg::propColor ( Plot2d_AnalyticalCurve curve = 0,
const QColor &  def = QColor() 
)
private

References myProperties, and PROP_COLOR.

QString Plot2d_AnalyticalCurveDlg::propFormula ( Plot2d_AnalyticalCurve curve = 0,
const QString &  def = "" 
)
private

References myProperties, and PROP_FORMULA.

int Plot2d_AnalyticalCurveDlg::propIntervals ( Plot2d_AnalyticalCurve curve = 0,
int  def = 100 
)
private

References myProperties, and PROP_NBINTERVALS.

Plot2d::LineType Plot2d_AnalyticalCurveDlg::propLineType ( Plot2d_AnalyticalCurve curve = 0,
Plot2d::LineType  def = Plot2d::NoPen 
)
private

References myProperties, and PROP_LINETYPE.

int Plot2d_AnalyticalCurveDlg::propLineWidth ( Plot2d_AnalyticalCurve curve = 0,
int  def = 0 
)
private

References myProperties, and PROP_LINEWIDTH.

Plot2d::MarkerType Plot2d_AnalyticalCurveDlg::propMarkerType ( Plot2d_AnalyticalCurve curve = 0,
Plot2d::MarkerType  def = Plot2d::None 
)
private

References myProperties, and PROP_MARKERTYPE.

int Plot2d_AnalyticalCurveDlg::propStatus ( Plot2d_AnalyticalCurve curve = 0,
const int  def = ItemExisting 
)
private

References myProperties, and PROP_STATUS.

QString Plot2d_AnalyticalCurveDlg::propTitle ( Plot2d_AnalyticalCurve curve = 0,
const QString &  def = "" 
)
private

References myProperties, and PROP_TITLE.

bool Plot2d_AnalyticalCurveDlg::propVisible ( Plot2d_AnalyticalCurve curve = 0,
bool  def = true 
)
private

References myProperties, and PROP_VISIBLE.

void Plot2d_AnalyticalCurveDlg::reject ( )

References ItemAdded, myProperties, and propStatus().

void Plot2d_AnalyticalCurveDlg::removeCurve ( )
privateslot
QListWidgetItem * Plot2d_AnalyticalCurveDlg::selected ( ) const
private

References myCurvesList.

Plot2d_AnalyticalCurve * Plot2d_AnalyticalCurveDlg::selectedCurve ( ) const
private

References selected().

void Plot2d_AnalyticalCurveDlg::updateState ( )
privateslot

Member Data Documentation

QPushButton* Plot2d_AnalyticalCurveDlg::myAddButton
private
QCheckBox* Plot2d_AnalyticalCurveDlg::myAutoAssign
private
QtxColorButton* Plot2d_AnalyticalCurveDlg::myColor
private
Plot2d_CurveContainer* Plot2d_AnalyticalCurveDlg::myContainer
private
QGroupBox* Plot2d_AnalyticalCurveDlg::myCurveParams
private
QGroupBox* Plot2d_AnalyticalCurveDlg::myCurveProps
private
QListWidget* Plot2d_AnalyticalCurveDlg::myCurvesList
private
QLineEdit* Plot2d_AnalyticalCurveDlg::myFormula
private
QComboBox* Plot2d_AnalyticalCurveDlg::myLineType
private
QtxIntSpinBox* Plot2d_AnalyticalCurveDlg::myLineWidth
private
QComboBox* Plot2d_AnalyticalCurveDlg::myMarkerType
private
QtxIntSpinBox* Plot2d_AnalyticalCurveDlg::myNbIntervals
private
PropMap Plot2d_AnalyticalCurveDlg::myProperties
private
QWidget* Plot2d_AnalyticalCurveDlg::myPropsGrp
private
QPushButton* Plot2d_AnalyticalCurveDlg::myRemoveButton
private
Updater* Plot2d_AnalyticalCurveDlg::myUpdater
private

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