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

A base class for a series of widgets where all widgets occupy the same same and only one widget is shown at a time. More...

#include <QCustomStackedWidget.h>

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

Public Types

enum  StackAnimationDirection {
  e_left_to_right , e_right_to_left , e_top_to_bottom , e_bottom_to_top ,
  e_automatic
}
 

Signals

void animationFinished ()
 

Public Member Functions

void setAnimation (enum QEasingCurve::Type animationtype)
 
void setCustomPixmap (QPixmap *pixmap)
 
void setSpeed (int speed)
 
void setVerticalMode (bool vertical=true)
 
void setWrap (bool wrap)
 

Static Public Attributes

static ApplicationOption< sint04default_stack_animation_speed
 

Protected Slots

void animationDoneSlot ()
 
void childDestroyedSlot (QObject *widget)
 

Protected Member Functions

uint04 activeIndex () const
 
QWidget * activeWidget () const
 
virtual uint04 addWidget (QWidget *w)
 
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 ()
 

Protected Attributes

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
 

Properties

double animation_percent
 

Detailed Description

A base class for a series of widgets where all widgets occupy the same same and only one widget is shown at a time.


Member Enumeration Documentation

◆ StackAnimationDirection

Enumerator
e_left_to_right 
e_right_to_left 
e_top_to_bottom 
e_bottom_to_top 
e_automatic 

Constructor & Destructor Documentation

◆ QCustomStackedWidgetBase()

QCustomStackedWidgetBase ( QWidget * parent = nullptr)
explicitprotected

◆ ~QCustomStackedWidgetBase()

virtual ~QCustomStackedWidgetBase ( )
protectedvirtual

Member Function Documentation

◆ activeIndex()

uint04 activeIndex ( ) const
protected

◆ activeWidget()

QWidget * activeWidget ( ) const
protected

◆ addWidget()

virtual uint04 addWidget ( QWidget * w)
protectedvirtual

◆ animationDoneSlot

void animationDoneSlot ( )
protectedslot

◆ animationFinished

void animationFinished ( )
signal

◆ animationPercent()

double animationPercent ( ) const
inlineprotected

◆ childDestroyedSlot

void childDestroyedSlot ( QObject * widget)
protectedslot

◆ count()

uint04 count ( ) const
protected

◆ currentIndex()

uint04 currentIndex ( ) const
inlineprotected

◆ currentWidget()

QWidget * currentWidget ( ) const
protected

◆ eventFilter()

bool eventFilter ( QObject * object,
QEvent * event )
overrideprotected

◆ indexOf()

uint04 indexOf ( QWidget * widget) const
protected

◆ insertWidget()

void insertWidget ( uint04 index,
QWidget * w )
protected

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
overrideprotected

◆ moveContent()

virtual void moveContent ( uint04 from,
uint04 to )
protectedvirtual

Reimplemented in SectionWidget.

◆ paintEvent()

void paintEvent ( QPaintEvent * )
overrideprotected

◆ removeWidget() [1/2]

void removeWidget ( QWidget * widget)
protected

◆ removeWidget() [2/2]

void removeWidget ( QWidget * widget,
QWidget * slide_to_if_active )
protected

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
overrideprotected

◆ setAnimation()

void setAnimation ( enum QEasingCurve::Type animationtype)

◆ setAnimationPercent()

void setAnimationPercent ( double animation_percent)
protected

◆ setCurrentIdx()

virtual void setCurrentIdx ( uint04 current_index)
protectedvirtual

◆ setCustomPixmap()

void setCustomPixmap ( QPixmap * pixmap)

◆ setSpeed()

void setSpeed ( int speed)

◆ setVerticalMode()

void setVerticalMode ( bool vertical = true)

◆ setWrap()

void setWrap ( bool wrap)

◆ showEvent()

void showEvent ( QShowEvent * event)
overrideprotected

◆ sizeHint()

QSize sizeHint ( ) const
overrideprotected

◆ slideInAnimation() [1/2]

virtual void slideInAnimation ( enum StackAnimationDirection direction = e_automatic,
bool cache_in_image = false )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ slideInAnimation() [2/2]

virtual void slideInAnimation ( PopupInfo origin_rect,
enum StackAnimationDirection direction = e_automatic,
bool cache_in_image = false )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ slideInIdx() [1/3]

virtual void slideInIdx ( uint04 idx,
enum StackAnimationDirection direction )
protectedvirtual

Reimplemented in QCustomStackedWidget, and Ribbon.

◆ slideInIdx() [2/3]

virtual void slideInIdx ( uint04 idx,
int delay_time = 0,
enum StackAnimationDirection direction = e_automatic )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ slideInIdx() [3/3]

virtual void slideInIdx ( uint04 idx,
PopupInfo origin_rect,
int delay_time = 0,
enum StackAnimationDirection direction = e_automatic )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ slideInNext()

virtual void slideInNext ( )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ slideInPrev()

virtual void slideInPrev ( )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ slideInWgt()

virtual void slideInWgt ( QWidget * widget,
enum StackAnimationDirection direction = e_automatic,
bool force_slide = false )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ swapIndices()

virtual void swapIndices ( uint04 a,
uint04 b )
protectedvirtual

Reimplemented in SectionWidget.

◆ widget()

QWidget * widget ( uint04 index) const
protected

Member Data Documentation

◆ default_stack_animation_speed

ApplicationOption<sint04> default_stack_animation_speed
static

◆ m_animation_percent

double m_animation_percent
protected

◆ m_animationtype

enum QEasingCurve::Type m_animationtype
protected

◆ m_child_widgets

Buffer<QWidget*> m_child_widgets
protected

◆ m_current_index

uint04 m_current_index
protected

◆ m_is_animating

bool m_is_animating
protected

◆ m_last

uint04 m_last
protected

◆ m_last_animation_time

int m_last_animation_time
protected

◆ m_move_animation

QPointer<QPropertyAnimation> m_move_animation
protected

◆ m_next

uint04 m_next
protected

◆ m_now

uint04 m_now
protected

◆ m_offset

QPoint m_offset
protected

◆ m_popup_info

PopupInfo m_popup_info
protected

◆ m_speed

int m_speed
protected

◆ m_vertical

bool m_vertical
protected

◆ m_wrap

bool m_wrap = false
protected

Property Documentation

◆ animation_percent

double animation_percent
readwrite

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