Version: 6.3.1
Public Member Functions | Protected Slots | Private Attributes

Plot2d_SetupViewDlg Class Reference

Dialog box to setup Plot2d view window.

#include <Plot2d_SetupViewDlg.h>

Inheritance diagram for Plot2d_SetupViewDlg:
Inheritance graph

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
QLineEditmyTitleEdit
QCheckBox * myTitleXCheck
QLineEditmyTitleXEdit
QCheckBox * myTitleYCheck
QCheckBox * myTitleY2Check
QLineEditmyTitleYEdit
QLineEditmyTitleY2Edit
QtxColorButtonmyBackgroundBtn
QCheckBox * myXGridCheck
QSpinBoxmyXGridSpin
QCheckBox * myYGridCheck
QCheckBox * myY2GridCheck
QSpinBoxmyYGridSpin
QSpinBoxmyY2GridSpin
QCheckBox * myXMinGridCheck
QSpinBoxmyXMinGridSpin
QCheckBox * myYMinGridCheck
QCheckBox * myY2MinGridCheck
QSpinBoxmyYMinGridSpin
QSpinBoxmyY2MinGridSpin
QComboBoxmyCurveCombo
QCheckBox * myLegendCheck
QComboBoxmyLegendCombo
QSpinBoxmyMarkerSpin
QComboBoxmyXModeCombo
QComboBoxmyYModeCombo
QComboBoxmyY2ModeCombo
QCheckBox * myDefCheck
QPushButton * myOkBtn
QPushButton * myCancelBtn
QPushButton * myHelpBtn
bool mySecondAxisY

Constructor & Destructor Documentation

Plot2d_SetupViewDlg::Plot2d_SetupViewDlg ( QWidget parent = 0,
bool  showDefCheck = false,
bool  secondAxisY = false 
)
Plot2d_SetupViewDlg::~Plot2d_SetupViewDlg ( )

Member Function Documentation

void Plot2d_SetupViewDlg::setMainTitle ( bool  enable,
const QString &  title = QString() 
)
Parameters:
enableif true main title is enabled
titlemain title
See also:
isMainTitleEnabled(), getMainTitle()

References myTitleCheck, myTitleEdit, and onMainTitleChecked().

bool Plot2d_SetupViewDlg::isMainTitleEnabled ( )
Returns:
true if main title is enabled
See also:
setMainTitle()

References myTitleCheck.

QString Plot2d_SetupViewDlg::getMainTitle ( )
Returns:
main title
See also:
setMainTitle()

References myTitleEdit.

void Plot2d_SetupViewDlg::setXTitle ( bool  enable,
const QString &  title = QString() 
)
Parameters:
enableif true horizontal axis title is enabled
titlehorizontal axis title
See also:
isXTitleEnabled(), getXTitle()

References myTitleXCheck, myTitleXEdit, and onXTitleChecked().

bool Plot2d_SetupViewDlg::isXTitleEnabled ( )
Returns:
true if horizontal axis title is enabled
See also:
setXTitle()

References myTitleXCheck.

QString Plot2d_SetupViewDlg::getXTitle ( )
Returns:
horizontal axis title
See also:
setXTitle()

References myTitleXEdit.

void Plot2d_SetupViewDlg::setYTitle ( bool  enable,
const QString &  title = QString() 
)
Parameters:
enableif true left vertical axis title is enabled
titleleft vertical axis title
See also:
setY2Title(), isYTitleEnabled(), getYTitle()

References myTitleYCheck, myTitleYEdit, and onYTitleChecked().

void Plot2d_SetupViewDlg::setY2Title ( bool  enable,
const QString &  title = QString() 
)
Parameters:
enableif true right vertical axis title is enabled
titleright vertical axis title
See also:
setYTitle(), isY2TitleEnabled(), getY2Title()

References myTitleY2Check, myTitleY2Edit, and onY2TitleChecked().

bool Plot2d_SetupViewDlg::isYTitleEnabled ( )
Returns:
true if right vertical axis title is enabled
See also:
setYTitle()

References myTitleYCheck.

bool Plot2d_SetupViewDlg::isY2TitleEnabled ( )
Returns:
true if right vertical axis title is enabled
See also:
setY2Title()

References myTitleY2Check.

QString Plot2d_SetupViewDlg::getYTitle ( )
Returns:
left vertical axis title
See also:
setYTitle()

References myTitleYEdit.

QString Plot2d_SetupViewDlg::getY2Title ( )
Returns:
right vertical axis title
See also:
setY2Title()

References myTitleY2Edit.

void Plot2d_SetupViewDlg::setCurveType ( const int  type)
Parameters:
typecurve type: 0 (points), 1 (lines) or 2 (splines)
See also:
getCurveType()

References myCurveCombo.

int Plot2d_SetupViewDlg::getCurveType ( )
Returns:
curve type: 0 (points), 1 (lines) or 2 (splines)
See also:
setCurveType()

References myCurveCombo.

void Plot2d_SetupViewDlg::setLegend ( bool  enable,
int  pos 
)
Parameters:
iftrue legend is shown
poslegend position: 0 (left), 1 (right), 2 (top), 3 (bottom)
See also:
isLegendEnabled(), getLegendPos()

References myLegendCheck, myLegendCombo, and onLegendChecked().

bool Plot2d_SetupViewDlg::isLegendEnabled ( )
Returns:
true if legend is enabled
See also:
setLegend()

References myLegendCheck.

int Plot2d_SetupViewDlg::getLegendPos ( )
Returns:
legend position: 0 (left), 1 (right), 2 (top), 3 (bottom)
See also:
setLegend()

References myLegendCombo.

void Plot2d_SetupViewDlg::setMarkerSize ( const int  size)
Parameters:
sizemarker size
See also:
getMarkerSize()

References myMarkerSpin.

int Plot2d_SetupViewDlg::getMarkerSize ( )
Returns:
marker size
See also:
setMarkerSize()

References myMarkerSpin.

void Plot2d_SetupViewDlg::setBackgroundColor ( const QColor &  color)
Parameters:
colorbackground color
See also:
getBackgroundColor()

References myBackgroundBtn, and QtxColorButton.setColor().

QColor Plot2d_SetupViewDlg::getBackgroundColor ( )
Returns:
background color
See also:
setBackgroundColor()

References QtxColorButton.color(), and myBackgroundBtn.

void Plot2d_SetupViewDlg::setMajorGrid ( bool  enableX,
const int  divX,
bool  enableY,
const int  divY,
bool  enableY2,
const int  divY2 
)
Parameters:
enableXif true, horizontal major grid is enabled
divXmaximum number of ticks for horizontal major grid
enableYif true, left vertical major grid is enabled
divYmaximum number of ticks for left vertical major grid
enableY2if true, right vertical major grid is enabled
divY2maximum number of ticks for right vertical major grid
See also:
getMajorGrid()

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 
)
Parameters:
enableXtrue if horizontal major grid is enabled
divXmaximum number of ticks for horizontal major grid
enableYtrue if left vertical major grid is enabled
divYmaximum number of ticks for left vertical major grid
enableY2true if right vertical major grid is enabled
divY2maximum number of ticks for right vertical major grid
See also:
setMajorGrid()

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 
)
Parameters:
enableXif true, horizontal minor grid is enabled
divXmaximum number of ticks for horizontal minor grid
enableYif true, left vertical minor grid is enabled
divYmaximum number of ticks for left vertical minor grid
enableY2if true, right vertical minor grid is enabled
divY2maximum number of ticks for right vertical minor grid
See also:
getMinorGrid()

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 
)
Parameters:
enableXtrue if horizontal minor grid is enabled
divXmaximum number of ticks for horizontal minor grid
enableYtrue if left vertical minor grid is enabled
divYmaximum number of ticks for left vertical minor grid
enableY2true if right vertical minor grid is enabled
divY2maximum number of ticks for right vertical minor grid
See also:
setMinorGrid()

References mySecondAxisY, myXMinGridCheck, myXMinGridSpin, myY2MinGridCheck, myY2MinGridSpin, myYMinGridCheck, and myYMinGridSpin.

void Plot2d_SetupViewDlg::setScaleMode ( const int  xMode,
const int  yMode 
)
Parameters:
xModehorizontal axis scale mode: 0 (linear), 1 (logarithmic)
yModevertical axis scale mode: 0 (linear), 1 (logarithmic)
See also:
getXScaleMode(), getYScaleMode()

References myXModeCombo, and myYModeCombo.

int Plot2d_SetupViewDlg::getXScaleMode ( )
Returns:
horizontal axis scale mode: 0 (linear), 1 (logarithmic)
See also:
setScaleMode()

References myXModeCombo.

int Plot2d_SetupViewDlg::getYScaleMode ( )
Returns:
vertical axis scale mode: 0 (linear), 1 (logarithmic)
See also:
setScaleMode()

References myYModeCombo.

bool Plot2d_SetupViewDlg::isSetAsDefault ( )
Returns:
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().


Field Documentation

QCheckBox* Plot2d_SetupViewDlg.myTitleCheck [private]
QCheckBox* Plot2d_SetupViewDlg.myTitleXCheck [private]
QCheckBox* Plot2d_SetupViewDlg.myTitleYCheck [private]
QCheckBox* Plot2d_SetupViewDlg.myTitleY2Check [private]
QCheckBox* Plot2d_SetupViewDlg.myXGridCheck [private]
QCheckBox* Plot2d_SetupViewDlg.myYGridCheck [private]
QCheckBox* Plot2d_SetupViewDlg.myY2GridCheck [private]
QCheckBox* Plot2d_SetupViewDlg.myLegendCheck [private]
QCheckBox* Plot2d_SetupViewDlg.myDefCheck [private]
QPushButton* Plot2d_SetupViewDlg.myOkBtn [private]
QPushButton* Plot2d_SetupViewDlg.myCancelBtn [private]
QPushButton* Plot2d_SetupViewDlg.myHelpBtn [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS