API Documentation
Loading...
Searching...
No Matches
QCustomTabWidget Class Reference

A tab widget provides a tab area and a "page area" that is used to display pages related to each tab. By default, the tab bar is shown above the page area, but different configurations are available. More...

#include <QCustomTabWidget.h>

Inheritance diagram for QCustomTabWidget:
[legend]
Collaboration diagram for QCustomTabWidget:
[legend]

Public Slots

void setCurrentIndexSlot (int index)
 
void setCurrentWidgetSlot (QWidget *widget)
 

Signals

void currentTabChangedSignal (int index)
 
void userChangedCurrentTabSignal (int inex)
 
- Signals inherited from QCustomStackedWidgetBase
void animationFinished ()
 

Public Member Functions

int addTab (QWidget *widget)
 
int addTab (QWidget *widget, const QIcon &icon, const QString &label)
 
int addTab (QWidget *widget, const QString &)
 
int addTab (QWidget *widget, const TranslatedString &)
 
uint04 addWidget (QWidget *child) override
 
void clear ()
 
SectionContentcontent (int index) const
 
int count () const
 
int currentIndex () const
 
QWidget * currentWidget () const
 
void hideBackground (bool hide_background)
 
int indexOf (QWidget *widget) const
 
int insertTab (int index, QWidget *widget)
 
int insertTab (int index, QWidget *widget, const QIcon &icon, const QString &label)
 
int insertTab (int index, QWidget *widget, const QString &)
 
int insertTab (int index, QWidget *widget, const TranslatedString &)
 
bool isTabEnabled (int index) const
 
 QCustomTabWidget (QWidget *parent=nullptr)
 
void removeTab (int index)
 
void removeTab (QWidget *widget)
 
void setCurrentIndex (uint04 index)
 
void setCurrentWidget (QWidget *widget)
 
void setTabBarAutoHide (bool enabled)
 
void setTabEnabled (int index, bool)
 
void setTabIcon (int index, const QIcon &icon)
 
void setTabLock (bool lock_tab)
 
void setTabPosition (QTabWidget::TabPosition position, bool horizontal=false)
 
void setTabText (int index, const QString &)
 
void setTabToolTip (int index, const QString &tip)
 
void setTabVisible (bool tab_visible)
 
void setTabWhatsThis (int index, const QString &text)
 
void setupAsBoxWidget (bool is_box_widget)
 
void setupAsMenu ()
 
QWidget * tabArea () const
 
QIcon tabIcon (int index) const
 
QString tabText (int index) const
 
QString tabToolTip (int index) const
 
QString tabWhatsThis (int index) const
 
QWidget * widget (int index) const
 
virtual ~QCustomTabWidget ()
 
- Public Member Functions inherited from ContainerWidgetBase
 ContainerWidgetBase (QWidget *parent=nullptr)
 
virtual ~ContainerWidgetBase ()
 
- Public Member Functions inherited from QCustomStackedWidgetBase
void setAnimation (enum QEasingCurve::Type animationtype)
 
void setCustomPixmap (QPixmap *pixmap)
 
void setSpeed (int speed)
 
void setVerticalMode (bool vertical=true)
 
void setWrap (bool wrap)
 

Protected Attributes

bool m_hide_background = false
 
RibbonArea m_main_ribbon_area
 
QPointer< SectionWidgetm_main_section
 
Dictionary< QWidget *, QCustomDockWidget * > m_managed_section_content
 
- Protected Attributes inherited from ContainerWidgetBase
bool m_animate_add = true
 
DropOverlaym_drop_overlay
 
Buffer< std::pair< QPointer< QWidget >, Buffer< QPointer< FloatingWidget > > > > m_fullscreen_stack
 
Buffer< std::pair< QPointer< QWidget >, Buffer< QPointer< FloatingWidget > > > > m_reset_fullscreen_stack
 
bool m_reset_is_on_home = false
 
Buffer< UUIDm_reset_visible_sections
 
Dictionary< UUID, SectionContent * > m_section_content
 
Dictionary< UUID, SectionWidget * > m_sections
 
Buffer< SharedSectionContentArea * > m_shared_content
 
SectionWidgetm_top_section_widget = nullptr
 
SharedSectionContentArea * m_top_splitter = nullptr
 
- Protected Attributes inherited from QCustomStackedWidgetBase
double m_animation_percent
 
enum QEasingCurve::Type m_animationtype
 
Buffer< QWidget * > m_child_widgets
 
uint04 m_current_index
 
bool m_is_animating
 
uint04 m_last
 
int m_last_animation_time
 
QPointer< QPropertyAnimation > m_move_animation
 
uint04 m_next
 
uint04 m_now
 
QPoint m_offset
 
PopupInfo m_popup_info
 
int m_speed
 
bool m_vertical
 
bool m_wrap = false
 

Additional Inherited Members

- Public Types inherited from QCustomStackedWidgetBase
enum  StackAnimationDirection {
  e_left_to_right , e_right_to_left , e_top_to_bottom , e_bottom_to_top ,
  e_automatic
}
 
- Static Public Attributes inherited from QCustomStackedWidgetBase
static ApplicationOption< sint04default_stack_animation_speed
 
- Protected Slots inherited from QCustomStackedWidgetBase
void animationDoneSlot ()
 
void childDestroyedSlot (QObject *widget)
 
- Protected Member Functions inherited from ContainerWidgetBase
virtual FloatingWidgetaddSectionContent (SectionContent *sc)
 
virtual SectionWidgetaddSectionContent (SectionContent *sc, SectionWidget *sw, DropArea area=e_drop_center)
 
void beginResetAll ()
 
void bringFloatingWidgetsForward ()
 
virtual void clearAllNonFloatingContent ()
 
virtual void clearAllSectionContent ()
 
Buffer< SectionContent * > contents () const
 
DropOverlaydropOverlay ()
 
void endResetAll ()
 
bool event (QEvent *event) override
 
bool hasSectionContent (SectionContent *sc)
 
bool hideSectionContent (SectionContent *sc, PopupInfo end=PopupInfo())
 
bool isSectionContentVisible (SectionContent *sc)
 
FloatingWidgetmakeFloating (SectionContent *sc, bool show, PopupInfo start=PopupInfo(), PopupInfo end=PopupInfo())
 
FloatingWidgetmakeFullScreen (SectionContent *sc, PopupInfo start=PopupInfo())
 
QSize minimumSizeHint () const override
 
QRect outerBottomDropRect () const
 
QRect outerLeftDropRect () const
 
QRect outerRightDropRect () const
 
QRect outerTopDropRect () const
 
bool popWindowStack ()
 
bool raiseSectionContent (SectionContent *sc)
 
void removeFromResetShow (UUID id)
 
bool removeSectionContent (SectionContent *sc)
 
void resizeEvent (QResizeEvent *event) override
 
virtual void setShouldAnimateAdd (bool animate)
 
void setTabLock (bool tab_lock)
 
bool showSectionContent (SectionContent *sc, PopupInfo start=PopupInfo(), PopupInfo end=PopupInfo())
 
QSize sizeHint () const override
 
void swapSectionContent (SectionContent *section_a, SectionContent *section_b)
 
- Protected Member Functions inherited from QCustomStackedWidgetBase
uint04 activeIndex () const
 
QWidget * activeWidget () const
 
double animationPercent () const
 
uint04 count () const
 
uint04 currentIndex () const
 
QWidget * currentWidget () const
 
bool eventFilter (QObject *object, QEvent *event) override
 
uint04 indexOf (QWidget *widget) const
 
void insertWidget (uint04 index, QWidget *w)
 
QSize minimumSizeHint () const override
 
virtual void moveContent (uint04 from, uint04 to)
 
void paintEvent (QPaintEvent *) override
 
 QCustomStackedWidgetBase (QWidget *parent=nullptr)
 
void removeWidget (QWidget *widget)
 
void removeWidget (QWidget *widget, QWidget *slide_to_if_active)
 
void resizeEvent (QResizeEvent *event) override
 
void setAnimationPercent (double animation_percent)
 
virtual void setCurrentIdx (uint04 current_index)
 
void showEvent (QShowEvent *event) override
 
QSize sizeHint () const override
 
virtual void slideInAnimation (enum StackAnimationDirection direction=e_automatic, bool cache_in_image=false)
 
virtual void slideInAnimation (PopupInfo origin_rect, enum StackAnimationDirection direction=e_automatic, bool cache_in_image=false)
 
virtual void slideInIdx (uint04 idx, enum StackAnimationDirection direction)
 
virtual void slideInIdx (uint04 idx, int delay_time=0, enum StackAnimationDirection direction=e_automatic)
 
virtual void slideInIdx (uint04 idx, PopupInfo origin_rect, int delay_time=0, enum StackAnimationDirection direction=e_automatic)
 
virtual void slideInNext ()
 
virtual void slideInPrev ()
 
virtual void slideInWgt (QWidget *widget, enum StackAnimationDirection direction=e_automatic, bool force_slide=false)
 
virtual void swapIndices (uint04 a, uint04 b)
 
QWidget * widget (uint04 index) const
 
virtual ~QCustomStackedWidgetBase ()
 
- Properties inherited from QCustomStackedWidgetBase
double animation_percent
 

Detailed Description

A tab widget provides a tab area and a "page area" that is used to display pages related to each tab. By default, the tab bar is shown above the page area, but different configurations are available.


Constructor & Destructor Documentation

◆ QCustomTabWidget()

QCustomTabWidget ( QWidget * parent = nullptr)
explicit

◆ ~QCustomTabWidget()

virtual ~QCustomTabWidget ( )
virtual

Member Function Documentation

◆ addTab() [1/4]

int addTab ( QWidget * widget)

◆ addTab() [2/4]

int addTab ( QWidget * widget,
const QIcon & icon,
const QString & label )

◆ addTab() [3/4]

int addTab ( QWidget * widget,
const QString &  )

◆ addTab() [4/4]

int addTab ( QWidget * widget,
const TranslatedString &  )

◆ addWidget()

uint04 addWidget ( QWidget * child)
overridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ clear()

void clear ( )

◆ content()

SectionContent * content ( int index) const

◆ count()

int count ( ) const

◆ currentIndex()

int currentIndex ( ) const

◆ currentTabChangedSignal

void currentTabChangedSignal ( int index)
signal

◆ currentWidget()

QWidget * currentWidget ( ) const

◆ hideBackground()

void hideBackground ( bool hide_background)

◆ indexOf()

int indexOf ( QWidget * widget) const

◆ insertTab() [1/4]

int insertTab ( int index,
QWidget * widget )

◆ insertTab() [2/4]

int insertTab ( int index,
QWidget * widget,
const QIcon & icon,
const QString & label )

◆ insertTab() [3/4]

int insertTab ( int index,
QWidget * widget,
const QString &  )

◆ insertTab() [4/4]

int insertTab ( int index,
QWidget * widget,
const TranslatedString &  )

◆ isTabEnabled()

bool isTabEnabled ( int index) const

◆ removeTab() [1/2]

void removeTab ( int index)

◆ removeTab() [2/2]

void removeTab ( QWidget * widget)

◆ setCurrentIndex()

void setCurrentIndex ( uint04 index)

◆ setCurrentIndexSlot

void setCurrentIndexSlot ( int index)
slot

◆ setCurrentWidget()

void setCurrentWidget ( QWidget * widget)

◆ setCurrentWidgetSlot

void setCurrentWidgetSlot ( QWidget * widget)
slot

◆ setTabBarAutoHide()

void setTabBarAutoHide ( bool enabled)

◆ setTabEnabled()

void setTabEnabled ( int index,
bool  )

◆ setTabIcon()

void setTabIcon ( int index,
const QIcon & icon )

◆ setTabLock()

void setTabLock ( bool lock_tab)

◆ setTabPosition()

void setTabPosition ( QTabWidget::TabPosition position,
bool horizontal = false )

◆ setTabText()

void setTabText ( int index,
const QString &  )

◆ setTabToolTip()

void setTabToolTip ( int index,
const QString & tip )

◆ setTabVisible()

void setTabVisible ( bool tab_visible)

◆ setTabWhatsThis()

void setTabWhatsThis ( int index,
const QString & text )

◆ setupAsBoxWidget()

void setupAsBoxWidget ( bool is_box_widget)

◆ setupAsMenu()

void setupAsMenu ( )

◆ tabArea()

QWidget * tabArea ( ) const

◆ tabIcon()

QIcon tabIcon ( int index) const

◆ tabText()

QString tabText ( int index) const

◆ tabToolTip()

QString tabToolTip ( int index) const

◆ tabWhatsThis()

QString tabWhatsThis ( int index) const

◆ userChangedCurrentTabSignal

void userChangedCurrentTabSignal ( int inex)
signal

◆ widget()

QWidget * widget ( int index) const

Member Data Documentation

◆ m_hide_background

bool m_hide_background = false
protected

◆ m_main_ribbon_area

RibbonArea m_main_ribbon_area
protected

◆ m_main_section

QPointer<SectionWidget> m_main_section
protected

◆ m_managed_section_content

Dictionary<QWidget*, QCustomDockWidget*> m_managed_section_content
protected

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