CFx SDK Documentation  2023 SP0
Public Types | Public Member Functions | List of all members
CFxUIDialogButtonBox Class Reference

#include <FxUIDialogButtonBox.h>

Inheritance diagram for CFxUIDialogButtonBox:
CFxUIBaseView CFxUIObject

Public Types

enum  StandardButton {
  NoButton = 0x00000000 , Ok = 0x00000400 , Save = 0x00000800 , SaveAll = 0x00001000 ,
  Open = 0x00002000 , Yes = 0x00004000 , YesToAll = 0x00008000 , No = 0x00010000 ,
  NoToAll = 0x00020000 , Abort = 0x00040000 , Retry = 0x00080000 , Ignore = 0x00100000 ,
  Close = 0x00200000 , Cancel = 0x00400000 , Discard = 0x00800000 , Help = 0x01000000 ,
  Apply = 0x02000000 , Reset = 0x04000000 , RestoreDefaults = 0x08000000 , FirstButton = Ok ,
  LastButton = RestoreDefaults
}
 
typedef QFlags< StandardButtonStandardButtons
 
- Public Types inherited from CFxUIBaseView
enum  TextAlignment {
  AlignLeft = 0x0001 , AlignRight = 0x0002 , AlignHCenter = 0x0004 , AlignJustify = 0x0008 ,
  AlignTop = 0x0020 , AlignBottom = 0x0040 , AlignVCenter = 0x0080 , AlignBaseline = 0x0100 ,
  AlignCenter = AlignVCenter | AlignHCenter
}
 
enum  FocusPolicyType {
  eNoFocus = 0 , eTabFocus = 0x1 , eClickFocus = 0x2 , eStrongFocus = eTabFocus | eClickFocus | 0x8 ,
  eWheelFocus = eStrongFocus | 0x4 , eKeyboardOnSetfocus = 0x10
}
 
enum  UIWidthSizePolicy {
  eXS = 0 , eS , eM , eL ,
  eXL
}
 

Public Member Functions

 CFxUIDialogButtonBox (CFxUIDialog *parent)
 
 ~CFxUIDialogButtonBox ()
 
void setStandardButtons (StandardButtons buttons)
 
CFxUIPushButtonbutton (StandardButton which) const
 
CFxUISignal< void(void)> & accepted ()
 
CFxUISignal< void(CFxUIPushButton *button)> & clicked ()
 
CFxUISignal< void(void)> & helpRequest ()
 
CFxUISignal< void(void)> & rejected ()
 
- Public Member Functions inherited from CFxUIBaseView
 CFxUIBaseView ()
 
virtual ~CFxUIBaseView ()
 
void setDisabled (bool on)
 
void setEnabled (bool on)
 
bool isEnabled () const
 
CFxUIPalette::ColorRole backgroundRole ()
 
void setPalette (const CFxUIPalette &)
 
const CFxUIPalettepalette () const
 
bool isVisible ()
 
void setVisible (bool bVisible)
 
bool hasFocus () const
 
void setFocus ()
 
void setFocus (int iReason)
 
void setFocusPolicy (int iPolicy)
 
int width ()
 
void setWidth (int w)
 
int height ()
 
void setHeight (int h)
 
void update ()
 
void setBusyState (bool bBusy=false)
 
void resize (int w, int h)
 
void setCornerRadius (float radius)
 
void setBorderWidth (float width)
 
void setBorderWidth (float left, float top, float right, float bottom)
 
void setBorderColor (int r, int g, int b)
 
virtual void showEvent (CFxUIShowEvent *event)
 
virtual void hideEvent (CFxUIHideEvent *event)
 
virtual void paintEvent (CFxUIPaintEvent *event)
 
virtual void resizeEvent (CFxUIResizeEvent *event)
 
virtual void focusInEvent (CFxUIFocusEvent *focusInEvent)
 
virtual void focusOutEvent (CFxUIFocusEvent *focusOutEvent)
 
void setEventAccepted (bool bAccepted=false)
 
void addView (CFxUIBaseView *pChild, float fWeight=0.0)
 
void insertView (CFxUIBaseView *pChild, int index=0, float fWeight=0.0)
 
int indexOf (CFxUIBaseView *pChild)
 
void removeView (CFxUIBaseView *pChild)
 
void setPreferableSize (int w, int h)
 
void setMinimumWidth (int iWidth)
 
void setMinimumHeight (int iHeight)
 
void setMinimumSize (const CFxUISize &size)
 
void setMaximumWidth (int iWidth)
 
void setMaximumHeight (int iHeight)
 
void setMaximumSize (const CFxUISize &size)
 
int minimumWidth ()
 
int minimumHeight ()
 
int maximumWidth ()
 
int maximumHeight ()
 
void setToolTip (const CFxUIString &sToolTip)
 
const CFxUIString toolTip ()
 
CFxUISignal< void(void)> & aboutToPassEventToParent ()
 
CFxUISignal< void(void)> & aboutToShow ()
 
CFxUISignal< void(void)> & hoverEnter ()
 
CFxUISignal< void(void)> & hoverLeave ()
 
- Public Member Functions inherited from CFxUIObject
 CFxUIObject ()
 
virtual ~CFxUIObject ()
 
FxNativeHandle getHandle () const
 
void setHandle (FxNativeHandle handle)
 
void setParent (CFxUIObject *parent)
 
CFxUIObjectparent ()
 
const CFxUIObjectparent () const
 
void setObjectName (const CFxUIString &objectName)
 
CFxUIString objectName () const
 
bool setProperty (const char *name, const CFxUIVariant &value)
 
CFxUIVariant property (const char *name)
 
CFxUIList< CFxUIObject * > children () const
 
template<typename T >
CFxUIList< T > findChildren (const CFxUIString &name=CFxUIString())
 
void blockSignals (bool block)
 
bool signalsBlocked () const
 

Additional Inherited Members

- Static Public Member Functions inherited from CFxUIBaseView
static void setTabOrder (CFxUIObject *first, CFxUIObject *second)
 
- Protected Member Functions inherited from CFxUIObject
CFxUIObjectsender ()
 
- Protected Attributes inherited from CFxUIObject
CFxUIObjectImpl * m_pImpl
 
CFxUIObjectData * m_pData
 

Detailed Description

Class CFxUIDialogButtonBox is a widget that contains buttons in a layout.

Definition at line 26 of file FxUIDialogButtonBox.h.

Member Typedef Documentation

◆ StandardButtons

Definition at line 56 of file FxUIDialogButtonBox.h.

Member Enumeration Documentation

◆ StandardButton

This enum type defines button types which can be used in this widget.

Enumerator
NoButton 

An invalid button defined.

Ok 

An "Ok" button defined.Clicking the button causes the dialog to be accepted.

Save 

A "Save" button defined.Clicking the button causes the dialog to be accepted.

SaveAll 

A "SaveAll" button defined.Clicking the button causes the dialog to be accepted.

Open 

An "Open" button defined.Clicking the button causes the dialog to be accepted.

Yes 

A "Yes" button defined.

YesToAll 

A "YesToAll" button defined.

No 

A "No" button defined.

NoToAll 

A "NoToAll" button defined.

Abort 

An "Abort" button defined.Clicking the button causes the dialog to be rejected.

Retry 

A "Retry" button defined.Clicking the button causes the dialog to be accepted.

Ignore 

An "Ignore" button defined.Clicking the button causes the dialog to be accepted.

Close 

A "Close" button defined.Clicking the button causes the dialog to be rejected.

Cancel 

A "Cancel" button defined.Clicking the button causes the dialog to be rejected.

Discard 

A "Discard" button defined.

Help 

A "Help" button defined.

Apply 

An "Apply" button defined.

Reset 

A "Reset" button defined.

RestoreDefaults 

A "RestoreDefaults" button defined.

FirstButton 

An "Ok" button defined.

LastButton 

A "RestoreDefaults" button defined.

Definition at line 32 of file FxUIDialogButtonBox.h.

Constructor & Destructor Documentation

◆ CFxUIDialogButtonBox()

CFxUIDialogButtonBox::CFxUIDialogButtonBox ( CFxUIDialog parent)
explicit

Constructor

◆ ~CFxUIDialogButtonBox()

CFxUIDialogButtonBox::~CFxUIDialogButtonBox ( )

Destructor

Member Function Documentation

◆ accepted()

CFxUISignal<void(void)>& CFxUIDialogButtonBox::accepted ( )

This signal is emitted when a button with accept() inside the button box is clicked.

◆ button()

CFxUIPushButton* CFxUIDialogButtonBox::button ( StandardButton  which) const

Returns the CFxUIPushButton corresponding to the standard button.

Parameters
whichInput.
Returns
The CFxUIPushButton if "which" exist otherwise returns 0;

◆ clicked()

CFxUISignal<void(CFxUIPushButton *button)>& CFxUIDialogButtonBox::clicked ( )

This signal is emitted when a button inside the button box is clicked.

◆ helpRequest()

CFxUISignal<void(void)>& CFxUIDialogButtonBox::helpRequest ( )

This signal is emitted when a button with help() inside the button box is clicked.

◆ rejected()

CFxUISignal<void(void)>& CFxUIDialogButtonBox::rejected ( )

This signal is emitted when a button with reject() inside the button box is clicked.

◆ setStandardButtons()

void CFxUIDialogButtonBox::setStandardButtons ( StandardButtons  buttons)

Sets collection of standard buttons in the button box.

Parameters
buttonsInput.

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