Dialog box for modifying 2d curve settings.
#include <Plot2d_SetupCurveDlg.h>

Public Member Functions | |
| Plot2d_SetupCurveDlg (QWidget *=0) | |
| Constructor. | |
| ~Plot2d_SetupCurveDlg () | |
| Destructor. | |
| void | setLine (Plot2d::LineType, const int) |
| Set curve line type and width. | |
| Plot2d::LineType | getLine () const |
| Get curve line type. | |
| int | getLineWidth () const |
| Get curve line width. | |
| void | setMarker (Plot2d::MarkerType) |
| Set curve marker type. | |
| Plot2d::MarkerType | getMarker () const |
| Get curve marker type. | |
| void | setColor (const QColor &) |
| Set curve color. | |
| QColor | getColor () const |
| Get curve color. | |
Private Slots | |
| void | updatePreview () |
Private Member Functions | |
| QPixmap | lineIcon (Plot2d::LineType) const |
| Create icon pixmap according to the line type. | |
| QPixmap | markerIcon (Plot2d::MarkerType) const |
| Create icon pixmap according to the marker type. | |
Private Attributes | |
| QPushButton * | myOkBtn |
| QPushButton * | myCancelBtn |
| QComboBox * | myLineCombo |
| QSpinBox * | myLineSpin |
| QComboBox * | myMarkerCombo |
| QtxColorButton * | myColorBtn |
| QLabel * | myPreview |
| Plot2d_SetupCurveDlg::Plot2d_SetupCurveDlg | ( | QWidget * | parent = 0 | ) |
| parent | parent widget |
References SUIT_Tools.centerWidget(), Plot2d.Circle, Plot2d.Cross, Plot2d.Dash, Plot2d.DashDot, Plot2d.DashDotDot, Plot2d.Diamond, Plot2d.Dot, Plot2d.DTriangle, lineIcon(), Plot2d.LTriangle, MARGIN_SIZE, markerIcon(), MAX_LINE_WIDTH, MIN_COMBO_WIDTH, MIN_SPIN_WIDTH, myCancelBtn, myColorBtn, myLineCombo, myLineSpin, myMarkerCombo, myOkBtn, myPreview, Plot2d.None, Plot2d.NoPen, Plot2d.Rectangle, Plot2d.RTriangle, setColor(), setLine(), setMarker(), Plot2d.Solid, SPACING_SIZE, updatePreview(), Plot2d.UTriangle, and Plot2d.XCross.
| Plot2d_SetupCurveDlg::~Plot2d_SetupCurveDlg | ( | ) |
| void Plot2d_SetupCurveDlg::setLine | ( | Plot2d::LineType | type, |
| const int | width | ||
| ) |
| type | curve line type |
| width | curve line width |
References myLineCombo, myLineSpin, and updatePreview().
| Plot2d::LineType Plot2d_SetupCurveDlg::getLine | ( | ) | const |
| int Plot2d_SetupCurveDlg::getLineWidth | ( | ) | const |
| void Plot2d_SetupCurveDlg::setMarker | ( | Plot2d::MarkerType | type | ) |
| type | curve marker type |
References myMarkerCombo, and updatePreview().
| Plot2d::MarkerType Plot2d_SetupCurveDlg::getMarker | ( | ) | const |
| void Plot2d_SetupCurveDlg::setColor | ( | const QColor & | color | ) |
| color | curve color |
References myColorBtn, QtxColorButton.setColor(), and updatePreview().
| QColor Plot2d_SetupCurveDlg::getColor | ( | ) | const |
| QPixmap Plot2d_SetupCurveDlg::lineIcon | ( | Plot2d::LineType | type | ) | const [private] |
| QPixmap Plot2d_SetupCurveDlg::markerIcon | ( | Plot2d::MarkerType | type | ) | const [private] |
| void Plot2d_SetupCurveDlg::updatePreview | ( | ) | [private, slot] |
References Plot2d.drawLine(), Plot2d.drawMarker(), getColor(), getLine(), getLineWidth(), getMarker(), MSIZE, and myPreview.
QPushButton* Plot2d_SetupCurveDlg.myOkBtn [private] |
QPushButton* Plot2d_SetupCurveDlg.myCancelBtn [private] |
QComboBox* Plot2d_SetupCurveDlg.myLineCombo [private] |
QSpinBox* Plot2d_SetupCurveDlg.myLineSpin [private] |
QComboBox* Plot2d_SetupCurveDlg.myMarkerCombo [private] |
QtxColorButton* Plot2d_SetupCurveDlg.myColorBtn [private] |
QLabel* Plot2d_SetupCurveDlg.myPreview [private] |