#include <Plot2d_AnalyticalCurveDlg.h>
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_AnalyticalCurve * | selectedCurve () const |
Get currently selected curve. More... | |
QListWidgetItem * | getItem (Plot2d_AnalyticalCurve *) const |
Get widget item by the curve. More... | |
bool | processCurves () |
QwtPlot * | getPlot () |
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_CurveContainer * | myContainer |
PropMap | myProperties |
Updater * | myUpdater |
QListWidget * | myCurvesList |
QGroupBox * | myCurveParams |
QLineEdit * | myFormula |
QtxIntSpinBox * | myNbIntervals |
QGroupBox * | myCurveProps |
QCheckBox * | myAutoAssign |
QWidget * | myPropsGrp |
QComboBox * | myMarkerType |
QComboBox * | myLineType |
QtxIntSpinBox * | myLineWidth |
QtxColorButton * | myColor |
QPushButton * | myAddButton |
QPushButton * | myRemoveButton |
|
private |
|
private |
Plot2d_AnalyticalCurveDlg::Plot2d_AnalyticalCurveDlg | ( | Plot2d_CurveContainer * | container, |
QWidget * | parent | ||
) |
Constructor
References accept(), addCurve(), apply(), Plot2d::Circle, Plot2d::Cross, Plot2d::Dash, Plot2d::DashDot, Plot2d::DashDotDot, Plot2d::Diamond, Plot2d::Dot, Plot2d::DTriangle, help(), init(), Plot2d::lineIcon(), Plot2d::LTriangle, Plot2d::markerIcon(), MAX_LINE_WIDTH, MAX_NB_INTERVALS, MIN_LINE_WIDTH, MIN_NB_INTERVALS, myAddButton, myAutoAssign, myColor, myCurveParams, myCurveProps, myCurvesList, myFormula, myLineType, myLineWidth, myMarkerType, myNbIntervals, myPropsGrp, myRemoveButton, myUpdater, Plot2d::None, Plot2d::NoPen, Plot2d::Rectangle, reject(), removeCurve(), Plot2d::RTriangle, selectionChanged(), Plot2d::Solid, STEP, updateCurve(), Plot2d::UTriangle, and Plot2d::XCross.
Plot2d_AnalyticalCurveDlg::~Plot2d_AnalyticalCurveDlg | ( | ) |
Destructor
void Plot2d_AnalyticalCurveDlg::accept | ( | ) |
References processCurves().
|
privateslot |
|
privateslot |
|
private |
References myCurvesList.
|
private |
References Plot2d_ViewFrame::getPlot(), and myContainer.
|
privateslot |
|
private |
|
private |
/brief Store curve properties in the local map.
References Plot2d_AnalyticalCurve::getColor(), Plot2d_AnalyticalCurve::getExpression(), Plot2d_AnalyticalCurve::getLine(), Plot2d_AnalyticalCurve::getLineWidth(), Plot2d_AnalyticalCurve::getMarker(), Plot2d_AnalyticalCurve::getName(), Plot2d_AnalyticalCurve::getNbIntervals(), Plot2d_AnalyticalCurve::isActive(), Plot2d_AnalyticalCurve::isAutoAssign(), ItemExisting, myProperties, PROP_AUTOASSIGN, PROP_COLOR, PROP_FORMULA, PROP_LINETYPE, PROP_LINEWIDTH, PROP_MARKERTYPE, PROP_NBINTERVALS, PROP_STATUS, PROP_TITLE, and PROP_VISIBLE.
|
private |
/brief Store local copy on the curves properties into curves.
References Plot2d_CurveContainer::addAnalyticalCurve(), Plot2d_AnalyticalCurve::autoFill(), Plot2d_AnalyticalCurve::checkCurve(), SUIT_MessageBox::critical(), getItem(), getPlot(), Plot2d_AnalyticalCurve::isAutoAssign(), ItemAdded, ItemExisting, ItemRemoved, myContainer, myCurvesList, myProperties, PROP_STATUS, propAutoAssign(), propColor(), propFormula(), propIntervals(), propLineType(), propLineWidth(), propMarkerType(), propStatus(), propTitle(), propVisible(), Plot2d_CurveContainer::removeAnalyticalCurve(), Plot2d_AnalyticalCurve::setActive(), Plot2d_AnalyticalCurve::setAutoAssign(), Plot2d_AnalyticalCurve::setColor(), Plot2d_AnalyticalCurve::setExpression(), Plot2d_AnalyticalCurve::setLine(), Plot2d_AnalyticalCurve::setLineWidth(), Plot2d_AnalyticalCurve::setMarker(), Plot2d_AnalyticalCurve::setName(), and Plot2d_AnalyticalCurve::setNbIntervals().
|
private |
References myProperties, and PROP_AUTOASSIGN.
|
private |
References myProperties, and PROP_COLOR.
|
private |
References myProperties, and PROP_FORMULA.
|
private |
References myProperties, and PROP_NBINTERVALS.
|
private |
References myProperties, and PROP_LINETYPE.
|
private |
References myProperties, and PROP_LINEWIDTH.
|
private |
References myProperties, and PROP_MARKERTYPE.
|
private |
References myProperties, and PROP_STATUS.
|
private |
References myProperties, and PROP_TITLE.
|
private |
References myProperties, and PROP_VISIBLE.
void Plot2d_AnalyticalCurveDlg::reject | ( | ) |
References ItemAdded, myProperties, and propStatus().
|
privateslot |
References ItemAdded, ItemRemoved, myCurvesList, myProperties, PROP_STATUS, and propStatus().
|
private |
References myCurvesList.
|
private |
References selected().
|
privateslot |
|
privateslot |
References QtxColorButton::color(), myAutoAssign, myColor, myFormula, myLineType, myLineWidth, myMarkerType, myNbIntervals, myProperties, myUpdater, PROP_AUTOASSIGN, PROP_COLOR, PROP_FORMULA, PROP_LINETYPE, PROP_LINEWIDTH, PROP_MARKERTYPE, PROP_NBINTERVALS, PROP_TITLE, PROP_VISIBLE, selected(), selectedCurve(), and updateState().
|
privateslot |
References myAutoAssign, myCurveParams, myCurveProps, myPropsGrp, myRemoveButton, and selectedCurve().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |