CFx SDK Documentation
2022 SP0
|
#include <FxUITabWidget.h>
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 { 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 | |
CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
CFxUIObjectImpl * | m_pImpl |
CFxUIObjectData * | m_pData |
Class CFxUITabWidget provides a stack of widgets where only one widget is visible at a time.
Definition at line 25 of file FxUITabWidget.h.
CFxUITabWidget::CFxUITabWidget | ( | ) |
Constructor
|
virtual |
Destructor
void CFxUITabWidget::addTab | ( | CFxUIBaseView * | view, |
const QString & | name | ||
) |
Adds the given widget to the stacked widget and label.
view | Pointer to the widget to be added. |
name | Input. |
CFxUISignal<void(int)>& CFxUITabWidget::currentChanged | ( | ) |
Signal is emitted when the user selects a page.
int CFxUITabWidget::currentIndex | ( | ) | const |
Returns index position of the current tab page.
The current index is -1 if there is no current widget.
int CFxUITabWidget::indexOf | ( | CFxUIBaseView * | view | ) | const |
Returns the index of provided widget if its the child of stacked widget
view | Pointer to the child widget of which index is returned. |
void CFxUITabWidget::setCurrentIndex | ( | int | index | ) |
Sets current index position of the tab page.
[in] | index | Input. |
void CFxUITabWidget::setCurrentWidget | ( | CFxUIBaseView * | widget | ) |
Sets widget the current widget. The widget used must be a page in this tab widget.
widget | Pointer to the widget which need to be set as current. |
void CFxUITabWidget::setTabText | ( | int | index, |
const CFxUIString & | text | ||
) |
Sets the text for the widget at position index's tab.
index | Input |
text | Input |
CFxUISignal<void(int)>& CFxUITabWidget::tabBarClicked | ( | ) |
Signal is emitted when button is clicked on tab bar.
CFxUISignal<void(int)>& CFxUITabWidget::tabBarDoubleClicked | ( | ) |
Signal is emitted when button is double-clicked on tab bar.
CFxUISignal<void(int)>& CFxUITabWidget::tabCloseRequested | ( | ) |
Signal is emitted when the close button on a tab is clicked.