Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtxDialog::Area Class Reference

Area containing dialog box buttons. More...

Inheritance diagram for QtxDialog::Area:
Inheritance graph

Public Member Functions

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

Private Member Functions

void updateBorder ()
 Update border visibility. More...
 

Private Attributes

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

Detailed Description

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 myOrientation.

QtxDialog::Area::~Area ( )
virtual

Member Function Documentation

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

Member Data Documentation

bool QtxDialog::Area::myBorder
private
QList<QAbstractButton*> QtxDialog::Area::myButtons
private
QtxDialog* QtxDialog::Area::myDlg
private
QLabel* QtxDialog::Area::myLine
private
Qt::Orientation QtxDialog::Area::myOrientation
private
int QtxDialog::Area::myPolicy
private

The documentation for this class was generated from the following file: