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

#include <QCustomStackedWidget.h>

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

Public Types

enum  t_direction {
  LEFT2RIGHT , RIGHT2LEFT , TOP2BOTTOM , BOTTOM2TOP ,
  AUTOMATIC
}
 

Signals

void animationFinished ()
 

Public Member Functions

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

Static Public Attributes

static ApplicationOption< sint04default_stack_animation_speed
 

Protected Slots

void childDestroyedSlot (QObject *widget)
 
void animationDoneSlot ()
 

Protected Member Functions

 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)
 
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)
 

Protected Attributes

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

double animation_percent
 

Member Enumeration Documentation

◆ t_direction

Enumerator
LEFT2RIGHT 
RIGHT2LEFT 
TOP2BOTTOM 
BOTTOM2TOP 
AUTOMATIC 

Constructor & Destructor Documentation

◆ QCustomStackedWidgetBase()

QCustomStackedWidgetBase ( QWidget * parent = nullptr)
explicitprotected

◆ ~QCustomStackedWidgetBase()

~QCustomStackedWidgetBase ( )
protectedvirtual

Member Function Documentation

◆ activeIndex()

uint04 activeIndex ( ) const
protected

◆ activeWidget()

QWidget * activeWidget ( ) const
protected

◆ addWidget()

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()

void moveContent ( uint04 from,
uint04 to )
protectedvirtual

Reimplemented in SectionWidget.

◆ paintEvent()

void paintEvent ( QPaintEvent * event)
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()

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]

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

Reimplemented in QCustomStackedWidget.

◆ slideInAnimation() [2/2]

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

Reimplemented in QCustomStackedWidget.

◆ slideInIdx() [1/3]

void slideInIdx ( uint04 idx,
enum t_direction direction )
protectedvirtual

Reimplemented in QCustomStackedWidget, and Ribbon.

◆ slideInIdx() [2/3]

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

Reimplemented in QCustomStackedWidget.

◆ slideInIdx() [3/3]

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

Reimplemented in QCustomStackedWidget.

◆ slideInNext()

void slideInNext ( )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ slideInPrev()

void slideInPrev ( )
protectedvirtual

Reimplemented in QCustomStackedWidget.

◆ slideInWgt()

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

Reimplemented in QCustomStackedWidget.

◆ swapIndices()

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< int > 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 files: