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

QtxDialog.Area Class Reference

Area containing dialog box buttons.

Inheritance diagram for QtxDialog.Area:
Inheritance graph

Public Member Functions

 Area (Qt::Orientation, QtxDialog *, QWidget *=0)
 Constructor.
virtual ~Area ()
 Destructor.
bool isBorderEnabled () const
 Check of the border is enabled.
void setBorderEnabled (const bool)
 Enable/disable border (separator between main frame and button frame)
void setBorderWidget (QLabel *)
 Set border widget (separator between main frame and button frame).
void insertButton (QAbstractButton *)
 Insert button to the area.
void removeButton (QAbstractButton *)
 Remove button from the area.
bool contains (QAbstractButton *) const
 Check if area owns the button specified.
int policy () const
 Get buttons layout policy.
void setPolicy (const int)
 Set buttons layout policy.
void layoutButtons ()
 Layout buttons in the area.
const QList< QAbstractButton * > & buttons () const
 Get all area buttons.

Private Member Functions

void updateBorder ()
 Update border visibility.

Private Attributes

QtxDialogmyDlg
 parent dialog box
QLabelmyLine
 border widget
bool myBorder
 "has border" flag
int myPolicy
 button layout type (QtxDialog.PlacePolicy)
QList< QAbstractButton * > myButtons
 buttons list
Qt::Orientation myOrientation
 buttons orientation (Qt.Orientation)

Constructor & Destructor Documentation

QtxDialog.Area::Area ( Qt::Orientation  o,
QtxDialog dlg,
QWidget parent = 0 
)
Parameters:
obuttons orientation
dlgdialog box owning this area
parentparent widget

References Horizontal, and QtxDialog.Area.myOrientation.

QtxDialog.Area::~Area ( ) [virtual]

Member Function Documentation

bool QtxDialog.Area::isBorderEnabled ( ) const
Returns:
true if border is enabled
See also:
setBorderEnabled(), setBorderWidget()
void QtxDialog.Area::setBorderEnabled ( const bool  on)
Parameters:
onnew state
void QtxDialog.Area::setBorderWidget ( QLabel line)
Parameters:
linenew separator widget
void QtxDialog.Area::insertButton ( QAbstractButton b)
Parameters:
bbutton to be added
See also:
removeButton()
void QtxDialog.Area::removeButton ( QAbstractButton b)
Parameters:
bbutton to be removed
See also:
insertButton()
bool QtxDialog.Area::contains ( QAbstractButton b) const
Parameters:
bbutton to be checked
Returns:
true if area contains button
int QtxDialog.Area::policy ( ) const
Returns:
policy of button layouting (Qtx.PlacePolicy)
See also:
setPolicy()
void QtxDialog.Area::setPolicy ( const int  p)
Parameters:
pnew policy
void QtxDialog.Area::layoutButtons ( )
const QList< QAbstractButton * > & QtxDialog.Area::buttons ( ) const
Returns:
const reference to the list of buttons
void QtxDialog.Area::updateBorder ( ) [private]

Field Documentation

bool QtxDialog.Area.myBorder [private]
int QtxDialog.Area.myPolicy [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