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

VisuGUI_BarPrefDlg Class Reference

#include <VisuGUI_Prs3dDlg.h>

Inheritance diagram for VisuGUI_BarPrefDlg:
Inheritance graph

Signals

void updatePreview ()

Public Member Functions

 VisuGUI_BarPrefDlg (QWidget *parent)
 ~VisuGUI_BarPrefDlg ()
void setRatios (int titleRatioSize, int labelRatioWidth, int barRatioWidth, int barRatioHeight)
void getRatios (int &titleRatioSize, int &labelRatioWidth, int &barRatioWidth, int &barRatioHeight)
void setUnitsVisible (bool isVisible)
bool isUnitsVisible ()
void setLabelsPrecision (const int p)
int getLabelsPrecision () const
void setOrientation (const int ori)
int getOrientation () const

Protected Slots

void accept ()
void reject ()
void onHelp ()

Protected Attributes

SalomeApp_IntSpinBox * myTitleSizeSpin
SalomeApp_IntSpinBox * myLabelSizeSpin
SalomeApp_IntSpinBox * myBarWidthSpin
SalomeApp_IntSpinBox * myBarHeightSpin
QCheckBox * myUnitsChk
SalomeApp_IntSpinBox * myPrecisionSpin
int myTitleSize
int myLabelSize
int myBarWidth
int myBarHeight
bool myUnits
int myPrecision
int myOrientation

Private Member Functions

void keyPressEvent (QKeyEvent *e)

Constructor & Destructor Documentation

VisuGUI_BarPrefDlg::VisuGUI_BarPrefDlg ( QWidget parent)
VisuGUI_BarPrefDlg.~VisuGUI_BarPrefDlg ( )

Member Function Documentation

void VisuGUI_BarPrefDlg::setRatios ( int  titleRatioSize,
int  labelRatioWidth,
int  barRatioWidth,
int  barRatioHeight 
)
void VisuGUI_BarPrefDlg::getRatios ( int &  titleRatioSize,
int &  labelRatioWidth,
int &  barRatioWidth,
int &  barRatioHeight 
)
void VisuGUI_BarPrefDlg::setUnitsVisible ( bool  isVisible)

References myUnits, and myUnitsChk.

bool VisuGUI_BarPrefDlg::isUnitsVisible ( )

References myUnitsChk.

void VisuGUI_BarPrefDlg::setLabelsPrecision ( const int  p)

References myPrecisionSpin.

int VisuGUI_BarPrefDlg::getLabelsPrecision ( ) const

References myPrecisionSpin.

void VisuGUI_BarPrefDlg::setOrientation ( const int  ori)

References myOrientation.

int VisuGUI_BarPrefDlg::getOrientation ( ) const

References myOrientation.

void VisuGUI_BarPrefDlg::keyPressEvent ( QKeyEvent *  e) [private]

Provides help on F1 button click

References onHelp().

void VisuGUI_BarPrefDlg.updatePreview ( ) [signal]
void VisuGUI_BarPrefDlg::accept ( ) [protected, slot]
void VisuGUI_BarPrefDlg::reject ( ) [protected, slot]

Called when <Cancel> button is clicked, restore begin values

References myBarHeight, myBarHeightSpin, myBarWidth, myBarWidthSpin, myLabelSize, myLabelSizeSpin, myPrecision, myPrecisionSpin, myTitleSize, myTitleSizeSpin, myUnits, and myUnitsChk.

void VisuGUI_BarPrefDlg::onHelp ( ) [protected, slot]

Field Documentation

SalomeApp_IntSpinBox* VisuGUI_BarPrefDlg.myTitleSizeSpin [protected]
SalomeApp_IntSpinBox* VisuGUI_BarPrefDlg.myLabelSizeSpin [protected]
SalomeApp_IntSpinBox* VisuGUI_BarPrefDlg.myBarWidthSpin [protected]
SalomeApp_IntSpinBox* VisuGUI_BarPrefDlg.myBarHeightSpin [protected]
QCheckBox* VisuGUI_BarPrefDlg.myUnitsChk [protected]
SalomeApp_IntSpinBox* VisuGUI_BarPrefDlg.myPrecisionSpin [protected]
bool VisuGUI_BarPrefDlg.myUnits [protected]
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