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

#include <SectionWidget.h>

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

Public Slots

void updateTabs ()
 

Signals

void ribbonLocationChangedSignal (RibbonArea area)
 
void tabChangedSignal (uint04 idx)
 
void userChangedCurrentTabSignal (uint04 idx)
 
- Signals inherited from QCustomStackedWidgetBase
void animationFinished ()
 

Public Member Functions

 SectionWidget (ContainerWidgetBase *parent, RibbonArea ribbon_area)
 
virtual ~SectionWidget ()
 
 operator const QWidget * () const
 
 operator QWidget * ()
 
 operator const QObject * () const
 
 operator QObject * ()
 
UUID uid () const
 
ContainerWidgetBasecontainerWidget () const
 
QRect titleAreaGeometry () const
 
RibbonArea ribbonArea () const
 
void setRibbonArea (RibbonArea area)
 
const Buffer< SectionContent * > & contents () const
 
void addContent (SectionContent *c)
 
void addContent (SectionContent *data, bool animate)
 
void insertContent (uint04 index, SectionContent *data, bool animate)
 
void createCollapseAnimation ()
 
bool takeContent (uint04 index)
 
bool takeContent (SectionContent *data)
 
uint04 indexOfContent (SectionContent *c) const
 
uint04 contentCount () const
 
uint04 indexOfContentByUid (UUID uid) const
 
uint04 indexOfContentByTitlePos (const QPoint &pos, QWidget *exclude=nullptr) const
 
bool isLayoutVertical () const
 
void hideCurrentSection ()
 
bool isRibbonHorizontal () const
 
bool isRibbonLayoutHorizontal () const
 
void setTabLock (bool tab_lock)
 
void setTabVisible (bool visible)
 
uint04 activeIndex () const
 
uint04 currentIndex () const
 
bool event (QEvent *event) override
 
uint04 indexOf (SectionContent *c)
 
void moveContent (uint04 from, uint04 to) override
 
void swapIndices (uint04 from, uint04 to) override
 
void setAnimationProgress (double width)
 
int prefferedContentWidth () const
 
double animationProgress () const
 
QSize minimumSizeHint () const override
 
QSize normalMinimumSize () const
 
QSize sizeHint () const override
 
void finishAnimation ()
 
void setCurrentIndex (uint04 index, bool animate)
 
SectionWidgetTabsScrollAreatabScrollArea ()
 
bool showTabs () const
 
bool hasVisibleTab () const
 
void updateLayout (QBoxLayout *layout)
 
void setMinimizeAllowed (bool allowed)
 
bool minimizeAllowed ()
 
void resizeEvent (QResizeEvent *event) override
 
void setupAsBoxWidget (bool is_box_widget)
 
- Public Member Functions inherited from QCustomStackedWidgetBase
void setSpeed (int speed)
 
void setAnimation (enum QEasingCurve::Type animationtype)
 
void setVerticalMode (bool vertical=true)
 
void setWrap (bool wrap)
 
void setCustomPixmap (QPixmap *pixmap)
 

Protected Member Functions

uint04 convertToIndexVisibleIndex (uint04 index)
 
int tabSize () const
 
virtual void showEvent (QShowEvent *) override
 
- Protected Member Functions inherited from QCustomStackedWidgetBase
 QCustomStackedWidgetBase (QWidget *parent=nullptr)
 
virtual ~QCustomStackedWidgetBase ()
 
void resizeEvent (QResizeEvent *event) override
 
void showEvent (QShowEvent *event) override
 
void setAnimationPercent (double animation_percent)
 
double animationPercent () const
 
void paintEvent (QPaintEvent *) override
 
virtual uint04 addWidget (QWidget *w)
 
void insertWidget (uint04 index, QWidget *w)
 
void removeWidget (QWidget *widget)
 
void removeWidget (QWidget *widget, QWidget *slide_to_if_active)
 
bool eventFilter (QObject *object, QEvent *event) override
 
uint04 activeIndex () const
 
QWidget * activeWidget () const
 
QWidget * currentWidget () const
 
QSize sizeHint () const override
 
QSize minimumSizeHint () const override
 
QWidget * widget (uint04 index) const
 
uint04 indexOf (QWidget *widget) const
 
uint04 currentIndex () const
 
uint04 count () const
 
virtual void setCurrentIdx (uint04 current_index)
 
virtual void slideInNext ()
 
virtual void slideInPrev ()
 
virtual void slideInIdx (uint04 idx, PopupInfo origin_rect, int delay_time=0, enum t_direction direction=AUTOMATIC)
 
virtual void slideInIdx (uint04 idx, int delay_time=0, enum t_direction direction=AUTOMATIC)
 
virtual void slideInIdx (uint04 idx, enum t_direction direction)
 
virtual void slideInAnimation (PopupInfo origin_rect, enum t_direction direction=AUTOMATIC, bool cache_in_image=false)
 
virtual void slideInAnimation (enum t_direction direction=AUTOMATIC, bool cache_in_image=false)
 
virtual void slideInWgt (QWidget *widget, enum t_direction direction=AUTOMATIC, bool force_slide=false)
 

Properties

double animation_progress
 
- Properties inherited from QCustomStackedWidgetBase
double animation_percent
 

Additional Inherited Members

- Public Types inherited from QCustomStackedWidgetBase
enum  t_direction {
  LEFT2RIGHT , RIGHT2LEFT , TOP2BOTTOM , BOTTOM2TOP ,
  AUTOMATIC
}
 
- Static Public Attributes inherited from QCustomStackedWidgetBase
static ApplicationOption< sint04default_stack_animation_speed
 
- Protected Slots inherited from QCustomStackedWidgetBase
void childDestroyedSlot (QObject *widget)
 
void animationDoneSlot ()
 
- Protected Attributes inherited from QCustomStackedWidgetBase
int m_speed
 
enum QEasingCurve::Type m_animationtype
 
uint04 m_now
 
uint04 m_next
 
uint04 m_last
 
int m_last_animation_time
 
QPoint m_offset
 
PopupInfo m_popup_info
 
double m_animation_percent
 
uint04 m_current_index
 
Buffer< QWidget * > m_child_widgets
 
QPointer< QPropertyAnimation > m_move_animation
 
bool m_is_animating
 
bool m_vertical
 
bool m_wrap = false
 

Constructor & Destructor Documentation

◆ SectionWidget()

SectionWidget ( ContainerWidgetBase * parent,
RibbonArea ribbon_area )
explicit

◆ ~SectionWidget()

~SectionWidget ( )
virtual

Member Function Documentation

◆ activeIndex()

uint04 activeIndex ( ) const

◆ addContent() [1/2]

void addContent ( SectionContent * c)

◆ addContent() [2/2]

void addContent ( SectionContent * data,
bool animate )

◆ animationProgress()

double animationProgress ( ) const
inline

◆ containerWidget()

ContainerWidgetBase * containerWidget ( ) const

◆ contentCount()

uint04 contentCount ( ) const

◆ contents()

const Buffer< SectionContent * > & contents ( ) const
inline

◆ convertToIndexVisibleIndex()

uint04 convertToIndexVisibleIndex ( uint04 index)
protected

◆ createCollapseAnimation()

void createCollapseAnimation ( )

◆ currentIndex()

uint04 currentIndex ( ) const

◆ event()

bool event ( QEvent * event)
override

◆ finishAnimation()

void finishAnimation ( )

◆ hasVisibleTab()

bool hasVisibleTab ( ) const

◆ hideCurrentSection()

void hideCurrentSection ( )

◆ indexOf()

uint04 indexOf ( SectionContent * c)

◆ indexOfContent()

uint04 indexOfContent ( SectionContent * c) const

◆ indexOfContentByTitlePos()

uint04 indexOfContentByTitlePos ( const QPoint & pos,
QWidget * exclude = nullptr ) const

◆ indexOfContentByUid()

uint04 indexOfContentByUid ( UUID uid) const

◆ insertContent()

void insertContent ( uint04 index,
SectionContent * data,
bool animate )

◆ isLayoutVertical()

bool isLayoutVertical ( ) const

◆ isRibbonHorizontal()

bool isRibbonHorizontal ( ) const

◆ isRibbonLayoutHorizontal()

bool isRibbonLayoutHorizontal ( ) const

◆ minimizeAllowed()

bool minimizeAllowed ( )

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ moveContent()

void moveContent ( uint04 from,
uint04 to )
overridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ normalMinimumSize()

QSize normalMinimumSize ( ) const

◆ operator const QObject *()

operator const QObject * ( ) const
inlineexplicit

◆ operator const QWidget *()

operator const QWidget * ( ) const
inlineexplicit

◆ operator QObject *()

operator QObject * ( )
inlineexplicit

◆ operator QWidget *()

operator QWidget * ( )
inlineexplicit

◆ prefferedContentWidth()

int prefferedContentWidth ( ) const

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
override

◆ ribbonArea()

RibbonArea ribbonArea ( ) const
inline

◆ ribbonLocationChangedSignal

void ribbonLocationChangedSignal ( RibbonArea area)
signal

◆ setAnimationProgress()

void setAnimationProgress ( double width)

◆ setCurrentIndex()

void setCurrentIndex ( uint04 index,
bool animate )

◆ setMinimizeAllowed()

void setMinimizeAllowed ( bool allowed)

◆ setRibbonArea()

void setRibbonArea ( RibbonArea area)

◆ setTabLock()

void setTabLock ( bool tab_lock)

◆ setTabVisible()

void setTabVisible ( bool visible)

◆ setupAsBoxWidget()

void setupAsBoxWidget ( bool is_box_widget)

◆ showEvent()

void showEvent ( QShowEvent * )
overrideprotectedvirtual

◆ showTabs()

bool showTabs ( ) const
inline

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ swapIndices()

void swapIndices ( uint04 from,
uint04 to )
overridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ tabChangedSignal

void tabChangedSignal ( uint04 idx)
signal

◆ tabScrollArea()

SectionWidgetTabsScrollArea * tabScrollArea ( )
inline

◆ tabSize()

int tabSize ( ) const
protected

◆ takeContent() [1/2]

bool takeContent ( SectionContent * data)

◆ takeContent() [2/2]

bool takeContent ( uint04 index)

◆ titleAreaGeometry()

QRect titleAreaGeometry ( ) const

◆ uid()

UUID uid ( ) const

◆ updateLayout()

void updateLayout ( QBoxLayout * layout)

◆ updateTabs

void updateTabs ( )
slot

◆ userChangedCurrentTabSignal

void userChangedCurrentTabSignal ( uint04 idx)
signal

Property Documentation

◆ animation_progress

double animation_progress
readwrite

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