34#include <NDEVR/PopupInfo.h>
35#include <NDEVR/Dictionary.h>
37#include <QPropertyAnimation>
38#include <QGraphicsOpacityEffect>
51 Q_PROPERTY(
double visible_size READ activeSize WRITE setActiveSize)
59 void setup(
int duration,
int start_delay,
bool ignore_max_min_size);
72 void onFinishedSlot();
74 void setupSourceWidget(QWidget* source_widget, QSize size);
75 void createFadeInAnimation(
int msec);
76 QRect getGeometry(
double percent);
82 QSize m_restore_max_widget_size;
83 QSize m_restore_min_widget_size;
84 QPointer<QPropertyAnimation> m_primary_animation =
nullptr;
85 QPointer<QGraphicsOpacityEffect> m_fade_primary_effect;
86 QPointer<ImageView> m_primary_image_view;
87 QPointer<QWidget> m_widget;
88 QPointer<QWidget> m_animation_widget;
94 Qt::WindowFlags m_original_flags;
96 static QWidget* s_top_level_widget;
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Resposible for animating widgets by having them grown as they become visible, or shrink as they becom...
Definition ResizeVisibleAnimation.h:49
bool eventFilter(QObject *object, QEvent *event) override
static ResizeVisibleAnimation * run(QWidget *widget, bool visible, bool vertical, int duration=-1, int delay=0)
ResizeVisibleAnimation(QWidget *widget, bool visible, PopupInfo start_location, PopupInfo end_location, int duration=300, int delay=0)
virtual ~ResizeVisibleAnimation()
static ResizeVisibleAnimation * run(QWidget *widget, bool visible, const PopupInfo &start_location, const PopupInfo &end_location, int duration=-1, int delay=0)
void setActiveSize(double size)
static void setTopLevelWidget(QWidget *top_widget)
double activeSize() const
Definition ResizeVisibleAnimation.h:61
void setup(int duration, int start_delay, bool ignore_max_min_size)
static ResizeVisibleAnimation * runRemove(QWidget *widget, bool vertical, int duration=-1, int delay=0)
void setDeleteWidgetOnEnd(bool delete_widget)
Definition ResizeVisibleAnimation.h:58
static ResizeVisibleAnimation * ActiveAnimation(QWidget *widget)
ResizeVisibleAnimation(QWidget *widget, bool visible, bool vertical, int duration=300, int delay=0)
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149