Version: 6.3.1
Public Slots | Signals | Public Member Functions | Data Fields | Protected Member Functions

VisuGUI_ItemContainer Class Reference

#include <VisuGUI_SetupPlot2dDlg.h>

Inheritance diagram for VisuGUI_ItemContainer:
Inheritance graph

Public Slots

void onAutoChanged ()
void onHVToggled (bool)

Signals

void autoClicked ()
void horToggled (bool)
void verToggled (bool)
void ver2Toggled (bool)

Public Member Functions

 VisuGUI_ItemContainer (QObject *parent=0)
void createWidgets (QWidget *parentWidget, const QStringList &)
void enableWidgets (bool enable)
void setHorizontalOn (bool on)
bool isHorizontalOn () const
void setVerticalOn (bool on)
bool isVerticalOn () const
void setVertical2On (bool on)
bool isVertical2On () const
bool isAutoAssign () const
void setAutoAssign (bool on)
void setLine (const int line, const int width)
int getLine () const
int getLineWidth () const
void setMarker (const int marker)
int getMarker () const
void setColor (const QColor &color)
QColor getColor () const
int assigned () const

Data Fields

bool myEnabled
QToolButton * myHBtn
QToolButton * myVBtn
QToolButton * myV2Btn
QLabel * myTitleLab
QLabel * myUnitLab
QCheckBox * myAutoCheck
QComboBox * myLineCombo
SalomeApp_IntSpinBox * myLineSpin
QComboBox * myMarkerCombo
QComboBox * myAssigned
QtxColorButton * myColorBtn

Protected Member Functions

void updateState ()

Constructor & Destructor Documentation

VisuGUI_ItemContainer::VisuGUI_ItemContainer ( QObject parent = 0)

Constructor


Member Function Documentation

void VisuGUI_ItemContainer::createWidgets ( QWidget parentWidget,
const QStringList &  lst 
)
void VisuGUI_ItemContainer::enableWidgets ( bool  enable)

Enables attributes widgets

References myEnabled, and updateState().

void VisuGUI_ItemContainer::setHorizontalOn ( bool  on)

Sets horizontal button's state on

References myHBtn.

bool VisuGUI_ItemContainer::isHorizontalOn ( ) const

Gets horizontal button's state

References myHBtn.

void VisuGUI_ItemContainer::setVerticalOn ( bool  on)

Sets first vertical button's state on

References myVBtn.

bool VisuGUI_ItemContainer::isVerticalOn ( ) const

Gets first vertical button's state

References myVBtn.

void VisuGUI_ItemContainer::setVertical2On ( bool  on)

Sets second vertical button's state on

References myV2Btn.

bool VisuGUI_ItemContainer::isVertical2On ( ) const

Gets second vertical button's state

References myV2Btn.

bool VisuGUI_ItemContainer::isAutoAssign ( ) const

Gets item AutoAssign flag state

References myAutoCheck.

void VisuGUI_ItemContainer::setAutoAssign ( bool  on)

Sets item AutoAssign flag state

References myAutoCheck, and updateState().

void VisuGUI_ItemContainer::setLine ( const int  line,
const int  width 
)

Sets item line type and width

References myLineCombo.

int VisuGUI_ItemContainer::getLine ( ) const

Gets item line type

References myLineCombo.

int VisuGUI_ItemContainer::getLineWidth ( ) const

Gets item line width

References myLineSpin.

void VisuGUI_ItemContainer::setMarker ( const int  marker)

Sets item marker type

References myMarkerCombo.

int VisuGUI_ItemContainer::getMarker ( ) const

Gets item marker type

References myMarkerCombo.

void VisuGUI_ItemContainer::setColor ( const QColor &  color)

Sets item color

References myColorBtn.

QColor VisuGUI_ItemContainer::getColor ( ) const

Gets item color

References myColorBtn.

int VisuGUI_ItemContainer::assigned ( ) const
Returns:
index of assigned row (0, if there is no assigned row)

References isVertical2On(), isVerticalOn(), and myAssigned.

void VisuGUI_ItemContainer::updateState ( ) [protected]

Enables/disables widgets

References myAutoCheck, myColorBtn, myEnabled, myLineCombo, myLineSpin, and myMarkerCombo.

void VisuGUI_ItemContainer.autoClicked ( ) [signal]
void VisuGUI_ItemContainer.horToggled ( bool  ) [signal]
void VisuGUI_ItemContainer.verToggled ( bool  ) [signal]
void VisuGUI_ItemContainer.ver2Toggled ( bool  ) [signal]
void VisuGUI_ItemContainer::onAutoChanged ( ) [slot]

Slot, called when user clickes <Auto assign>=""> check box

References autoClicked(), and updateState().

void VisuGUI_ItemContainer::onHVToggled ( bool  on) [slot]

<Color> button slot, invokes color selection dialog box

<H> and <V> buttons slot

References horToggled(), myHBtn, myV2Btn, myVBtn, ver2Toggled(), and verToggled().


Field Documentation

SalomeApp_IntSpinBox* VisuGUI_ItemContainer.myLineSpin
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