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

#include <ResizeVisibleAnimation.h>

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

Public Member Functions

virtual ~ResizeVisibleAnimation ()
 
void setActiveSize (double size)
 
void setDeleteWidgetOnEnd (bool delete_widget)
 
void setup (int duration, int start_delay, bool ignore_max_min_size)
 
void reverse ()
 
double activeSize () const
 
bool eventFilter (QObject *object, QEvent *event) override
 

Static Public Member Functions

static ResizeVisibleAnimationrun (QWidget *widget, bool visible, bool vertical, int duration=-1, int delay=0)
 
static ResizeVisibleAnimationrun (QWidget *widget, bool visible, const PopupInfo &start_location, const PopupInfo &end_location, int duration=-1, int delay=0)
 
static ResizeVisibleAnimationrunRemove (QWidget *widget, bool vertical, int duration=-1, int delay=0)
 
static void setTopLevelWidget (QWidget *top_widget)
 
static ResizeVisibleAnimationActiveAnimation (QWidget *widget)
 

Protected Slots

void onFinishedSlot ()
 
void startAnimation ()
 

Protected Member Functions

 ResizeVisibleAnimation (QWidget *widget, bool visible, bool vertical, int duration=300, int delay=0)
 
 ResizeVisibleAnimation (QWidget *widget, bool visible, PopupInfo start_location, PopupInfo end_location, int duration=300, int delay=0)
 
void setupSourceWidget (QWidget *source_widget, QSize size)
 
void createFadeInAnimation (int msec)
 
QRect getGeometry (double percent)
 

Protected Attributes

fltp08 m_active_size
 
int m_widget_size
 
QSize m_restore_max_widget_size
 
QSize m_restore_min_widget_size
 
QPointer< QPropertyAnimation > m_primary_animation = nullptr
 
QPointer< QGraphicsOpacityEffect > m_fade_primary_effect
 
QPointer< ImageViewm_primary_image_view
 
QPointer< QWidget > m_widget
 
QPointer< QWidget > m_animation_widget
 
PopupInfo m_start_size
 
PopupInfo m_end_size
 
bool m_is_vertical
 
bool m_make_visible
 
bool m_delete_on_end
 
Qt::WindowFlags m_original_flags
 

Static Protected Attributes

static Dictionary< QWidget *, ResizeVisibleAnimation * > s_active_resize_effects
 
static QWidget * s_top_level_widget = nullptr
 

Properties

double visible_size
 

Constructor & Destructor Documentation

◆ ResizeVisibleAnimation() [1/2]

ResizeVisibleAnimation ( QWidget * widget,
bool visible,
bool vertical,
int duration = 300,
int delay = 0 )
protected

◆ ResizeVisibleAnimation() [2/2]

ResizeVisibleAnimation ( QWidget * widget,
bool visible,
PopupInfo start_location,
PopupInfo end_location,
int duration = 300,
int delay = 0 )
protected

◆ ~ResizeVisibleAnimation()

~ResizeVisibleAnimation ( )
virtual

Member Function Documentation

◆ ActiveAnimation()

ResizeVisibleAnimation * ActiveAnimation ( QWidget * widget)
static

◆ activeSize()

double activeSize ( ) const
inline

◆ createFadeInAnimation()

void createFadeInAnimation ( int msec)
protected

◆ eventFilter()

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

◆ getGeometry()

QRect getGeometry ( double percent)
protected

◆ onFinishedSlot

void onFinishedSlot ( )
protectedslot

◆ reverse()

void reverse ( )

◆ run() [1/2]

ResizeVisibleAnimation * run ( QWidget * widget,
bool visible,
bool vertical,
int duration = -1,
int delay = 0 )
static

◆ run() [2/2]

ResizeVisibleAnimation * run ( QWidget * widget,
bool visible,
const PopupInfo & start_location,
const PopupInfo & end_location,
int duration = -1,
int delay = 0 )
static

◆ runRemove()

ResizeVisibleAnimation * runRemove ( QWidget * widget,
bool vertical,
int duration = -1,
int delay = 0 )
static

◆ setActiveSize()

void setActiveSize ( double size)

◆ setDeleteWidgetOnEnd()

void setDeleteWidgetOnEnd ( bool delete_widget)
inline

◆ setTopLevelWidget()

void setTopLevelWidget ( QWidget * top_widget)
static

◆ setup()

void setup ( int duration,
int start_delay,
bool ignore_max_min_size )

◆ setupSourceWidget()

void setupSourceWidget ( QWidget * source_widget,
QSize size )
protected

◆ startAnimation

void startAnimation ( )
protectedslot

Member Data Documentation

◆ m_active_size

fltp08 m_active_size
protected

◆ m_animation_widget

QPointer<QWidget> m_animation_widget
protected

◆ m_delete_on_end

bool m_delete_on_end
protected

◆ m_end_size

PopupInfo m_end_size
protected

◆ m_fade_primary_effect

QPointer<QGraphicsOpacityEffect> m_fade_primary_effect
protected

◆ m_is_vertical

bool m_is_vertical
protected

◆ m_make_visible

bool m_make_visible
protected

◆ m_original_flags

Qt::WindowFlags m_original_flags
protected

◆ m_primary_animation

QPointer<QPropertyAnimation> m_primary_animation = nullptr
protected

◆ m_primary_image_view

QPointer<ImageView> m_primary_image_view
protected

◆ m_restore_max_widget_size

QSize m_restore_max_widget_size
protected

◆ m_restore_min_widget_size

QSize m_restore_min_widget_size
protected

◆ m_start_size

PopupInfo m_start_size
protected

◆ m_widget

QPointer<QWidget> m_widget
protected

◆ m_widget_size

int m_widget_size
protected

◆ s_active_resize_effects

Dictionary< QWidget *, ResizeVisibleAnimation * > s_active_resize_effects
staticprotected

◆ s_top_level_widget

QWidget * s_top_level_widget = nullptr
staticprotected

Property Documentation

◆ visible_size

double visible_size
readwrite

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