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

#include <QCustomStackedWidget.h>

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

Public Member Functions

 QCustomStackedWidget (QWidget *parent=nullptr)
 
virtual uint04 addWidget (QWidget *w) override
 
virtual void slideInNext () override
 
virtual void slideInPrev () override
 
void setCurrentIndex (uint04 idx)
 
void slideInIdx (uint04 idx, PopupInfo origin_rect, int delay_time=0, enum t_direction direction=AUTOMATIC) override
 
void slideInIdx (uint04 idx, int delay_time=0, enum t_direction direction=AUTOMATIC) override
 
void slideInIdx (uint04 idx, enum t_direction direction) override
 
void slideInAnimation (PopupInfo origin_rect, enum t_direction direction=AUTOMATIC, bool cache_in_image=false) override
 
void slideInAnimation (enum t_direction direction=AUTOMATIC, bool cache_in_image=false) override
 
void slideInWgt (QWidget *widget, enum t_direction direction=AUTOMATIC, bool force_slide=false) override
 
void removeWidget (QWidget *widget)
 
uint04 activeIndex () const
 
QWidget * activeWidget () const
 
uint04 count () const
 
bool hasWidget (QWidget *widget) const
 
uint04 currentIndex () const
 
uint04 indexOf (QWidget *widget) const
 
QWidget * currentWidget () const
 
- 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)
 

Additional Inherited Members

- Public Types inherited from QCustomStackedWidgetBase
enum  t_direction {
  LEFT2RIGHT , RIGHT2LEFT , TOP2BOTTOM , BOTTOM2TOP ,
  AUTOMATIC
}
 
- Signals inherited from QCustomStackedWidgetBase
void animationFinished ()
 
- Static Public Attributes inherited from QCustomStackedWidgetBase
static ApplicationOption< sint04default_stack_animation_speed
 
- Protected Slots inherited from QCustomStackedWidgetBase
void childDestroyedSlot (QObject *widget)
 
void animationDoneSlot ()
 
- 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 void swapIndices (uint04 a, uint04 b)
 
virtual void moveContent (uint04 from, uint04 to)
 
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)
 
- 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
 
- Properties inherited from QCustomStackedWidgetBase
double animation_percent
 

Constructor & Destructor Documentation

◆ QCustomStackedWidget()

QCustomStackedWidget ( QWidget * parent = nullptr)
inlineexplicit

Member Function Documentation

◆ activeIndex()

uint04 activeIndex ( ) const
inline

◆ activeWidget()

QWidget * activeWidget ( ) const
inline

◆ addWidget()

virtual uint04 addWidget ( QWidget * w)
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ count()

uint04 count ( ) const
inline

◆ currentIndex()

uint04 currentIndex ( ) const
inline

◆ currentWidget()

QWidget * currentWidget ( ) const
inline

◆ hasWidget()

bool hasWidget ( QWidget * widget) const
inline

◆ indexOf()

uint04 indexOf ( QWidget * widget) const
inline

◆ removeWidget()

void removeWidget ( QWidget * widget)
inline

◆ setCurrentIndex()

void setCurrentIndex ( uint04 idx)
inline

◆ slideInAnimation() [1/2]

void slideInAnimation ( enum t_direction direction = AUTOMATIC,
bool cache_in_image = false )
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ slideInAnimation() [2/2]

void slideInAnimation ( PopupInfo origin_rect,
enum t_direction direction = AUTOMATIC,
bool cache_in_image = false )
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ slideInIdx() [1/3]

void slideInIdx ( uint04 idx,
enum t_direction direction )
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ slideInIdx() [2/3]

void slideInIdx ( uint04 idx,
int delay_time = 0,
enum t_direction direction = AUTOMATIC )
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ slideInIdx() [3/3]

void slideInIdx ( uint04 idx,
PopupInfo origin_rect,
int delay_time = 0,
enum t_direction direction = AUTOMATIC )
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ slideInNext()

virtual void slideInNext ( )
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ slideInPrev()

virtual void slideInPrev ( )
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.

◆ slideInWgt()

void slideInWgt ( QWidget * widget,
enum t_direction direction = AUTOMATIC,
bool force_slide = false )
inlineoverridevirtual

Reimplemented from QCustomStackedWidgetBase.


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