Version: 9.15.0
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

Area containing dialog box buttons.

Constructor & Destructor Documentation

◆ Area()

QtxDialog::Area::Area ( Qt::Orientation  o,
QtxDialog dlg,
QWidget parent = 0 
)

Constructor.

Parameters
obuttons orientation
dlgdialog box owning this area
parentparent widget

References Horizontal, and myOrientation.

◆ ~Area()

QtxDialog::Area::~Area ( )
virtual

Destructor.

Member Function Documentation

◆ buttons()

const QList< QAbstractButton * > & QtxDialog::Area::buttons ( ) const

Get all area buttons.

Returns
const reference to the list of buttons

◆ contains()

bool QtxDialog::Area::contains ( QAbstractButton b) const

Check if area owns the button specified.

Parameters
bbutton to be checked
Returns
true if area contains button

◆ insertButton()

void QtxDialog::Area::insertButton ( QAbstractButton b)

Insert button to the area.

Parameters
bbutton to be added
See also
removeButton()

◆ isBorderEnabled()

bool QtxDialog::Area::isBorderEnabled ( ) const

Check of the border is enabled.

Returns
true if border is enabled
See also
setBorderEnabled(), setBorderWidget()

◆ layoutButtons()

void QtxDialog::Area::layoutButtons ( )

◆ policy()

int QtxDialog::Area::policy ( ) const

Get buttons layout policy.

Returns
policy of button layouting (Qtx::PlacePolicy)
See also
setPolicy()

◆ removeButton()

void QtxDialog::Area::removeButton ( QAbstractButton b)

Remove button from the area.

Parameters
bbutton to be removed
See also
insertButton()

◆ setBorderEnabled()

void QtxDialog::Area::setBorderEnabled ( const bool  on)

Enable/disable border (separator between main frame and button frame)

Parameters
onnew state

◆ setBorderWidget()

void QtxDialog::Area::setBorderWidget ( QLabel line)

Set border widget (separator between main frame and button frame).

Parameters
linenew separator widget

◆ setPolicy()

void QtxDialog::Area::setPolicy ( const int  p)

Set buttons layout policy.

Parameters
pnew policy

◆ updateBorder()

void QtxDialog::Area::updateBorder ( )
private

Update border visibility.

Member Data Documentation

◆ myBorder

bool QtxDialog::Area::myBorder
private

"has border" flag

◆ myButtons

QList<QAbstractButton*> QtxDialog::Area::myButtons
private

buttons list

◆ myDlg

QtxDialog* QtxDialog::Area::myDlg
private

parent dialog box

◆ myLine

QLabel* QtxDialog::Area::myLine
private

border widget

◆ myOrientation

Qt::Orientation QtxDialog::Area::myOrientation
private

buttons orientation (Qt::Orientation)

◆ myPolicy

int QtxDialog::Area::myPolicy
private

button layout type (QtxDialog::PlacePolicy)


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