Dialog box to setup Plot2d view window.
#include <Plot2d_SetupViewDlg.h>

Public Member Functions | |
| Plot2d_SetupViewDlg (QWidget *=0, bool=false, bool=false) | |
| Constructor. | |
| ~Plot2d_SetupViewDlg () | |
| Destructor. | |
| void | setMainTitle (bool, const QString &=QString()) |
| Set main title attributes. | |
| bool | isMainTitleEnabled () |
| Check if main title is enabled. | |
| QString | getMainTitle () |
| Get main title. | |
| void | setXTitle (bool, const QString &=QString()) |
| Set horizontal axis title attributes. | |
| bool | isXTitleEnabled () |
| Check if main title is enabled. | |
| QString | getXTitle () |
| Get horizontal axis title. | |
| void | setYTitle (bool, const QString &=QString()) |
| Set left vertical axis title attributes. | |
| void | setY2Title (bool, const QString &=QString()) |
| Set right vertical axis title attributes. | |
| bool | isYTitleEnabled () |
| Check if left vertical axis title is enabled. | |
| bool | isY2TitleEnabled () |
| Check if right vertical axis title is enabled. | |
| QString | getYTitle () |
| Get left vertical axis title. | |
| QString | getY2Title () |
| Get right vertical axis title. | |
| void | setCurveType (const int) |
| Set curve type. | |
| int | getCurveType () |
| Get curve type. | |
| void | setLegend (bool, int) |
| Set legend attribute. | |
| bool | isLegendEnabled () |
| Check if legend is enabled. | |
| int | getLegendPos () |
| Get legend position. | |
| void | setMarkerSize (const int) |
| Set marker size. | |
| int | getMarkerSize () |
| Get marker size. | |
| void | setBackgroundColor (const QColor &) |
| Set background color. | |
| QColor | getBackgroundColor () |
| Get background color. | |
| void | setMajorGrid (bool, const int, bool, const int, bool, const int) |
| Set major grid parameters. | |
| void | getMajorGrid (bool &, int &, bool &, int &, bool &, int &) |
| Get major grid parameters. | |
| void | setMinorGrid (bool, const int, bool, const int, bool, const int) |
| Set minor grid parameters. | |
| void | getMinorGrid (bool &, int &, bool &, int &, bool &, int &) |
| Get minor grid parameters. | |
| void | setScaleMode (const int, const int) |
| Set scale mode for horizontal and vertical axes. | |
| int | getXScaleMode () |
| Get scale mode for horizontal axis. | |
| int | getYScaleMode () |
| Get scale mode for vertical axis. | |
| bool | isSetAsDefault () |
| Get "Set settings as default" check box value. | |
Protected Slots | |
| void | onMainTitleChecked () |
| Called when user clicks "Show main title" check box. | |
| void | onXTitleChecked () |
| Called when user clicks "Show horizontal axis title" check box. | |
| void | onYTitleChecked () |
| Called when user clicks "Show vertical left axis title" check box. | |
| void | onY2TitleChecked () |
| Called when user clicks "Show vertical right axis title" check box. | |
| void | onLegendChecked () |
| Called when user clicks "Show Legend" check box. | |
| void | onXGridMajorChecked () |
| Called when user clicks "Enable horizontal major grid" check box. | |
| void | onYGridMajorChecked () |
| Called when user clicks "Enable left vertical major grid" check box. | |
| void | onY2GridMajorChecked () |
| Called when user clicks "Enable right vertical major grid" check box. | |
| void | onXGridMinorChecked () |
| Called when user clicks "Enable horizontal minor grid" check box. | |
| void | onYGridMinorChecked () |
| Called when user clicks "Enable left vertical minor grid" check box. | |
| void | onY2GridMinorChecked () |
| Called when user clicks "Enable right vertical minor grid" check box. | |
| void | onHelp () |
Private Attributes | |
| QCheckBox * | myTitleCheck |
| QLineEdit * | myTitleEdit |
| QCheckBox * | myTitleXCheck |
| QLineEdit * | myTitleXEdit |
| QCheckBox * | myTitleYCheck |
| QCheckBox * | myTitleY2Check |
| QLineEdit * | myTitleYEdit |
| QLineEdit * | myTitleY2Edit |
| QtxColorButton * | myBackgroundBtn |
| QCheckBox * | myXGridCheck |
| QSpinBox * | myXGridSpin |
| QCheckBox * | myYGridCheck |
| QCheckBox * | myY2GridCheck |
| QSpinBox * | myYGridSpin |
| QSpinBox * | myY2GridSpin |
| QCheckBox * | myXMinGridCheck |
| QSpinBox * | myXMinGridSpin |
| QCheckBox * | myYMinGridCheck |
| QCheckBox * | myY2MinGridCheck |
| QSpinBox * | myYMinGridSpin |
| QSpinBox * | myY2MinGridSpin |
| QComboBox * | myCurveCombo |
| QCheckBox * | myLegendCheck |
| QComboBox * | myLegendCombo |
| QSpinBox * | myMarkerSpin |
| QComboBox * | myXModeCombo |
| QComboBox * | myYModeCombo |
| QComboBox * | myY2ModeCombo |
| QCheckBox * | myDefCheck |
| QPushButton * | myOkBtn |
| QPushButton * | myCancelBtn |
| QPushButton * | myHelpBtn |
| bool | mySecondAxisY |
| Plot2d_SetupViewDlg::Plot2d_SetupViewDlg | ( | QWidget * | parent = 0, |
| bool | showDefCheck = false, |
||
| bool | secondAxisY = false |
||
| ) |
| parent | parent widget |
| showDefCheck | if true, show "Set settings as default" check box |
| secondAxisY | if true, show widgets for the second (right) vertical axis |
References MARGIN_SIZE, MIN_COMBO_WIDTH, MIN_EDIT_WIDTH, MIN_SPIN_WIDTH, myBackgroundBtn, myCancelBtn, myCurveCombo, myDefCheck, myHelpBtn, myLegendCheck, myLegendCombo, myMarkerSpin, myOkBtn, mySecondAxisY, myTitleCheck, myTitleEdit, myTitleXCheck, myTitleXEdit, myTitleY2Check, myTitleY2Edit, myTitleYCheck, myTitleYEdit, myXGridCheck, myXGridSpin, myXMinGridCheck, myXMinGridSpin, myXModeCombo, myY2GridCheck, myY2GridSpin, myY2MinGridCheck, myY2MinGridSpin, myY2ModeCombo, myYGridCheck, myYGridSpin, myYMinGridCheck, myYMinGridSpin, myYModeCombo, onHelp(), onLegendChecked(), onMainTitleChecked(), onXGridMajorChecked(), onXGridMinorChecked(), onXTitleChecked(), onY2GridMajorChecked(), onY2GridMinorChecked(), onY2TitleChecked(), onYGridMajorChecked(), onYGridMinorChecked(), onYTitleChecked(), setBackgroundColor(), and SPACING_SIZE.
| Plot2d_SetupViewDlg::~Plot2d_SetupViewDlg | ( | ) |
| void Plot2d_SetupViewDlg::setMainTitle | ( | bool | enable, |
| const QString & | title = QString() |
||
| ) |
| enable | if true main title is enabled |
| title | main title |
References myTitleCheck, myTitleEdit, and onMainTitleChecked().
| bool Plot2d_SetupViewDlg::isMainTitleEnabled | ( | ) |
| QString Plot2d_SetupViewDlg::getMainTitle | ( | ) |
| void Plot2d_SetupViewDlg::setXTitle | ( | bool | enable, |
| const QString & | title = QString() |
||
| ) |
| enable | if true horizontal axis title is enabled |
| title | horizontal axis title |
References myTitleXCheck, myTitleXEdit, and onXTitleChecked().
| bool Plot2d_SetupViewDlg::isXTitleEnabled | ( | ) |
| QString Plot2d_SetupViewDlg::getXTitle | ( | ) |
| void Plot2d_SetupViewDlg::setYTitle | ( | bool | enable, |
| const QString & | title = QString() |
||
| ) |
| enable | if true left vertical axis title is enabled |
| title | left vertical axis title |
References myTitleYCheck, myTitleYEdit, and onYTitleChecked().
| void Plot2d_SetupViewDlg::setY2Title | ( | bool | enable, |
| const QString & | title = QString() |
||
| ) |
| enable | if true right vertical axis title is enabled |
| title | right vertical axis title |
References myTitleY2Check, myTitleY2Edit, and onY2TitleChecked().
| bool Plot2d_SetupViewDlg::isYTitleEnabled | ( | ) |
| bool Plot2d_SetupViewDlg::isY2TitleEnabled | ( | ) |
true if right vertical axis title is enabled References myTitleY2Check.
| QString Plot2d_SetupViewDlg::getYTitle | ( | ) |
| QString Plot2d_SetupViewDlg::getY2Title | ( | ) |
| void Plot2d_SetupViewDlg::setCurveType | ( | const int | type | ) |
| type | curve type: 0 (points), 1 (lines) or 2 (splines) |
References myCurveCombo.
| int Plot2d_SetupViewDlg::getCurveType | ( | ) |
References myCurveCombo.
| void Plot2d_SetupViewDlg::setLegend | ( | bool | enable, |
| int | pos | ||
| ) |
| if | true legend is shown |
| pos | legend position: 0 (left), 1 (right), 2 (top), 3 (bottom) |
References myLegendCheck, myLegendCombo, and onLegendChecked().
| bool Plot2d_SetupViewDlg::isLegendEnabled | ( | ) |
| int Plot2d_SetupViewDlg::getLegendPos | ( | ) |
References myLegendCombo.
| void Plot2d_SetupViewDlg::setMarkerSize | ( | const int | size | ) |
| int Plot2d_SetupViewDlg::getMarkerSize | ( | ) |
| void Plot2d_SetupViewDlg::setBackgroundColor | ( | const QColor & | color | ) |
| color | background color |
References myBackgroundBtn, and QtxColorButton.setColor().
| QColor Plot2d_SetupViewDlg::getBackgroundColor | ( | ) |
References QtxColorButton.color(), and myBackgroundBtn.
| void Plot2d_SetupViewDlg::setMajorGrid | ( | bool | enableX, |
| const int | divX, | ||
| bool | enableY, | ||
| const int | divY, | ||
| bool | enableY2, | ||
| const int | divY2 | ||
| ) |
| enableX | if true, horizontal major grid is enabled |
| divX | maximum number of ticks for horizontal major grid |
| enableY | if true, left vertical major grid is enabled |
| divY | maximum number of ticks for left vertical major grid |
| enableY2 | if true, right vertical major grid is enabled |
| divY2 | maximum number of ticks for right vertical major grid |
References mySecondAxisY, myXGridCheck, myXGridSpin, myY2GridCheck, myY2GridSpin, myYGridCheck, myYGridSpin, onXGridMajorChecked(), onY2GridMajorChecked(), and onYGridMajorChecked().
| void Plot2d_SetupViewDlg::getMajorGrid | ( | bool & | enableX, |
| int & | divX, | ||
| bool & | enableY, | ||
| int & | divY, | ||
| bool & | enableY2, | ||
| int & | divY2 | ||
| ) |
| enableX | true if horizontal major grid is enabled |
| divX | maximum number of ticks for horizontal major grid |
| enableY | true if left vertical major grid is enabled |
| divY | maximum number of ticks for left vertical major grid |
| enableY2 | true if right vertical major grid is enabled |
| divY2 | maximum number of ticks for right vertical major grid |
References mySecondAxisY, myXGridCheck, myXGridSpin, myY2GridCheck, myY2GridSpin, myYGridCheck, and myYGridSpin.
| void Plot2d_SetupViewDlg::setMinorGrid | ( | bool | enableX, |
| const int | divX, | ||
| bool | enableY, | ||
| const int | divY, | ||
| bool | enableY2, | ||
| const int | divY2 | ||
| ) |
| enableX | if true, horizontal minor grid is enabled |
| divX | maximum number of ticks for horizontal minor grid |
| enableY | if true, left vertical minor grid is enabled |
| divY | maximum number of ticks for left vertical minor grid |
| enableY2 | if true, right vertical minor grid is enabled |
| divY2 | maximum number of ticks for right vertical minor grid |
References mySecondAxisY, myXMinGridCheck, myXMinGridSpin, myY2MinGridCheck, myY2MinGridSpin, myYMinGridCheck, myYMinGridSpin, onXGridMinorChecked(), onY2GridMinorChecked(), and onYGridMinorChecked().
| void Plot2d_SetupViewDlg::getMinorGrid | ( | bool & | enableX, |
| int & | divX, | ||
| bool & | enableY, | ||
| int & | divY, | ||
| bool & | enableY2, | ||
| int & | divY2 | ||
| ) |
| enableX | true if horizontal minor grid is enabled |
| divX | maximum number of ticks for horizontal minor grid |
| enableY | true if left vertical minor grid is enabled |
| divY | maximum number of ticks for left vertical minor grid |
| enableY2 | true if right vertical minor grid is enabled |
| divY2 | maximum number of ticks for right vertical minor grid |
References mySecondAxisY, myXMinGridCheck, myXMinGridSpin, myY2MinGridCheck, myY2MinGridSpin, myYMinGridCheck, and myYMinGridSpin.
| void Plot2d_SetupViewDlg::setScaleMode | ( | const int | xMode, |
| const int | yMode | ||
| ) |
| xMode | horizontal axis scale mode: 0 (linear), 1 (logarithmic) |
| yMode | vertical axis scale mode: 0 (linear), 1 (logarithmic) |
References myXModeCombo, and myYModeCombo.
| int Plot2d_SetupViewDlg::getXScaleMode | ( | ) |
References myXModeCombo.
| int Plot2d_SetupViewDlg::getYScaleMode | ( | ) |
References myYModeCombo.
| bool Plot2d_SetupViewDlg::isSetAsDefault | ( | ) |
true if "Set settings as default" check box is on References myDefCheck.
| void Plot2d_SetupViewDlg::onMainTitleChecked | ( | ) | [protected, slot] |
References myTitleCheck, and myTitleEdit.
| void Plot2d_SetupViewDlg::onXTitleChecked | ( | ) | [protected, slot] |
References myTitleXCheck, and myTitleXEdit.
| void Plot2d_SetupViewDlg::onYTitleChecked | ( | ) | [protected, slot] |
References myTitleYCheck, and myTitleYEdit.
| void Plot2d_SetupViewDlg::onY2TitleChecked | ( | ) | [protected, slot] |
References myTitleY2Check, and myTitleY2Edit.
| void Plot2d_SetupViewDlg::onLegendChecked | ( | ) | [protected, slot] |
References myLegendCheck, and myLegendCombo.
| void Plot2d_SetupViewDlg::onXGridMajorChecked | ( | ) | [protected, slot] |
References myXGridCheck, and myXMinGridCheck.
| void Plot2d_SetupViewDlg::onYGridMajorChecked | ( | ) | [protected, slot] |
References myYGridCheck, and myYMinGridCheck.
| void Plot2d_SetupViewDlg::onY2GridMajorChecked | ( | ) | [protected, slot] |
References myY2GridCheck, and myY2MinGridCheck.
| void Plot2d_SetupViewDlg::onXGridMinorChecked | ( | ) | [protected, slot] |
| void Plot2d_SetupViewDlg::onYGridMinorChecked | ( | ) | [protected, slot] |
| void Plot2d_SetupViewDlg::onY2GridMinorChecked | ( | ) | [protected, slot] |
| void Plot2d_SetupViewDlg::onHelp | ( | ) | [protected, slot] |
Slot, called when user clicks "Help" button
References SUIT_Session.activeApplication(), SUIT_Application.onHelpContextModule(), and SUIT_Session.session().
QCheckBox* Plot2d_SetupViewDlg.myTitleCheck [private] |
QLineEdit* Plot2d_SetupViewDlg.myTitleEdit [private] |
QCheckBox* Plot2d_SetupViewDlg.myTitleXCheck [private] |
QLineEdit* Plot2d_SetupViewDlg.myTitleXEdit [private] |
QCheckBox* Plot2d_SetupViewDlg.myTitleYCheck [private] |
QCheckBox* Plot2d_SetupViewDlg.myTitleY2Check [private] |
QLineEdit* Plot2d_SetupViewDlg.myTitleYEdit [private] |
QLineEdit* Plot2d_SetupViewDlg.myTitleY2Edit [private] |
QCheckBox* Plot2d_SetupViewDlg.myXGridCheck [private] |
QSpinBox* Plot2d_SetupViewDlg.myXGridSpin [private] |
QCheckBox* Plot2d_SetupViewDlg.myYGridCheck [private] |
QCheckBox* Plot2d_SetupViewDlg.myY2GridCheck [private] |
QSpinBox* Plot2d_SetupViewDlg.myYGridSpin [private] |
QSpinBox* Plot2d_SetupViewDlg.myY2GridSpin [private] |
QCheckBox* Plot2d_SetupViewDlg.myXMinGridCheck [private] |
QSpinBox* Plot2d_SetupViewDlg.myXMinGridSpin [private] |
QCheckBox* Plot2d_SetupViewDlg.myYMinGridCheck [private] |
QCheckBox* Plot2d_SetupViewDlg.myY2MinGridCheck [private] |
QSpinBox* Plot2d_SetupViewDlg.myYMinGridSpin [private] |
QSpinBox* Plot2d_SetupViewDlg.myY2MinGridSpin [private] |
QComboBox* Plot2d_SetupViewDlg.myCurveCombo [private] |
QCheckBox* Plot2d_SetupViewDlg.myLegendCheck [private] |
QComboBox* Plot2d_SetupViewDlg.myLegendCombo [private] |
QSpinBox* Plot2d_SetupViewDlg.myMarkerSpin [private] |
QComboBox* Plot2d_SetupViewDlg.myXModeCombo [private] |
QComboBox* Plot2d_SetupViewDlg.myYModeCombo [private] |
QComboBox* Plot2d_SetupViewDlg.myY2ModeCombo [private] |
QCheckBox* Plot2d_SetupViewDlg.myDefCheck [private] |
QPushButton* Plot2d_SetupViewDlg.myOkBtn [private] |
QPushButton* Plot2d_SetupViewDlg.myCancelBtn [private] |
QPushButton* Plot2d_SetupViewDlg.myHelpBtn [private] |
bool Plot2d_SetupViewDlg.mySecondAxisY [private] |