34#include <NDEVR/PopupInfo.h>
35#include <NDEVR/Dictionary.h>
37#include <QPropertyAnimation>
38#include <QGraphicsOpacityEffect>
47 Q_PROPERTY(
double visible_size READ activeSize WRITE setActiveSize)
53 void setActiveSize(
double size);
55 void setup(
int duration,
int start_delay,
bool ignore_max_min_size);
61 static ResizeVisibleAnimation* run(QWidget* widget,
bool visible,
bool vertical,
int duration = -1,
int delay = 0);
63 bool eventFilter(QObject*
object, QEvent* event)
override;
64 static ResizeVisibleAnimation* runRemove(QWidget* widget,
bool vertical,
int duration = -1,
int delay = 0);
65 static void setTopLevelWidget(QWidget* top_widget);
68 void onFinishedSlot();
70 void setupSourceWidget(QWidget* source_widget, QSize size);
71 void createFadeInAnimation(
int msec);
72 QRect getGeometry(
double percent);
74 void startAnimation();
80 QPointer<QPropertyAnimation> m_primary_animation =
nullptr;
Definition Dictionary.h:48
Definition ResizeVisibleAnimation.h:45
bool m_delete_on_end
Definition ResizeVisibleAnimation.h:91
static Dictionary< QWidget *, ResizeVisibleAnimation * > s_active_resize_effects
Definition ResizeVisibleAnimation.h:94
QPointer< QGraphicsOpacityEffect > m_fade_primary_effect
Definition ResizeVisibleAnimation.h:81
int m_widget_size
Definition ResizeVisibleAnimation.h:77
QSize m_restore_max_widget_size
Definition ResizeVisibleAnimation.h:78
PopupInfo m_end_size
Definition ResizeVisibleAnimation.h:87
static QWidget * s_top_level_widget
Definition ResizeVisibleAnimation.h:95
QSize m_restore_min_widget_size
Definition ResizeVisibleAnimation.h:79
QPointer< QWidget > m_animation_widget
Definition ResizeVisibleAnimation.h:84
bool m_is_vertical
Definition ResizeVisibleAnimation.h:89
QPointer< QWidget > m_widget
Definition ResizeVisibleAnimation.h:83
Qt::WindowFlags m_original_flags
Definition ResizeVisibleAnimation.h:93
PopupInfo m_start_size
Definition ResizeVisibleAnimation.h:86
double activeSize() const
Definition ResizeVisibleAnimation.h:57
void setDeleteWidgetOnEnd(bool delete_widget)
Definition ResizeVisibleAnimation.h:54
fltp08 m_active_size
Definition ResizeVisibleAnimation.h:76
bool m_make_visible
Definition ResizeVisibleAnimation.h:90
QPointer< ImageView > m_primary_image_view
Definition ResizeVisibleAnimation.h:82
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181