CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CFxUITabWidget Class Reference

#include <FxUITabWidget.h>

Inheritance diagram for CFxUITabWidget:
CFxUIBaseView CFxUIObject

Public Member Functions

 CFxUITabWidget ()
 
virtual ~CFxUITabWidget ()
 
void addTab (CFxUIBaseView *view, const QString &name)
 
int indexOf (CFxUIBaseView *view) const
 
void setTabText (int index, const CFxUIString &text)
 
void setTabEnabled (int index, bool enabled)
 
int currentIndex () const
 
void setCurrentIndex (int index)
 
void setCurrentWidget (CFxUIBaseView *widget)
 
CFxUISignal< void(int)> & currentChanged ()
 
CFxUISignal< void(int)> & tabCloseRequested ()
 
CFxUISignal< void(int)> & tabBarClicked ()
 
CFxUISignal< void(int)> & tabBarDoubleClicked ()
 
- 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 ()
 
CFxUISignal< void(bool)> & visibilityChanged ()
 
- 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

- 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 {
  eExpanding = -1 , eXS = 0 , eS , eM ,
  eL , eXL
}
 
- 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 CFxUITabWidget provides a stack of widgets where only one widget is visible at a time.

Definition at line 25 of file FxUITabWidget.h.

Constructor & Destructor Documentation

◆ CFxUITabWidget()

CFxUITabWidget::CFxUITabWidget ( )

Constructor

◆ ~CFxUITabWidget()

virtual CFxUITabWidget::~CFxUITabWidget ( )
virtual

Destructor

Member Function Documentation

◆ addTab()

void CFxUITabWidget::addTab ( CFxUIBaseView view,
const QString &  name 
)

Adds the given widget to the stacked widget and label.

Parameters
viewPointer to the widget to be added.
nameInput.

◆ currentChanged()

CFxUISignal< void(int)> & CFxUITabWidget::currentChanged ( )

Signal is emitted when the user selects a page.

◆ currentIndex()

int CFxUITabWidget::currentIndex ( ) const

Returns index position of the current tab page.

The current index is -1 if there is no current widget.

Returns
int value.

◆ indexOf()

int CFxUITabWidget::indexOf ( CFxUIBaseView view) const

Returns the index of provided widget if its the child of stacked widget

Parameters
viewPointer to the child widget of which index is returned.
Returns
int , return -1, if widget is not child of stacked widget.

◆ setCurrentIndex()

void CFxUITabWidget::setCurrentIndex ( int  index)

Sets current index position of the tab page.

Parameters
[in]indexInput.

◆ setCurrentWidget()

void CFxUITabWidget::setCurrentWidget ( CFxUIBaseView widget)

Sets widget the current widget. The widget used must be a page in this tab widget.

Parameters
widgetPointer to the widget which need to be set as current.

◆ setTabEnabled()

void CFxUITabWidget::setTabEnabled ( int  index,
bool  enabled 
)

Enables the widget at position index's tab.

Parameters
indexInput
enabledInput

◆ setTabText()

void CFxUITabWidget::setTabText ( int  index,
const CFxUIString text 
)

Sets the text for the widget at position index's tab.

Parameters
indexInput
textInput

◆ tabBarClicked()

CFxUISignal< void(int)> & CFxUITabWidget::tabBarClicked ( )

Signal is emitted when button is clicked on tab bar.

◆ tabBarDoubleClicked()

CFxUISignal< void(int)> & CFxUITabWidget::tabBarDoubleClicked ( )

Signal is emitted when button is double-clicked on tab bar.

◆ tabCloseRequested()

CFxUISignal< void(int)> & CFxUITabWidget::tabCloseRequested ( )

Signal is emitted when the close button on a tab is clicked.


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