34#include <NDEVR/PopupInfo.h>
35#include <NDEVR/ApplicationOptions.h>
36#include <NDEVR/Buffer.h>
37#include <QEasingCurve>
39#include <QPropertyAnimation>
47 Q_PROPERTY(
double animation_percent READ animationPercent WRITE setAnimationPercent)
57 void setSpeed(
int speed);
58 void setAnimation(
enum QEasingCurve::Type animationtype);
59 void setVerticalMode(
bool vertical =
true);
60 void setWrap(
bool wrap);
61 void setCustomPixmap(QPixmap* pixmap);
66 void resizeEvent(QResizeEvent* event)
override;
67 void showEvent(QShowEvent* event)
override;
68 void setAnimationPercent(
double animation_percent);
70 void paintEvent(QPaintEvent*)
override;
73 virtual uint04 addWidget(QWidget* w);
74 void insertWidget(
uint04 index, QWidget *w);
75 void removeWidget(QWidget* widget);
76 void removeWidget(QWidget* widget, QWidget* slide_to_if_active);
77 bool eventFilter(QObject*
object, QEvent* event)
override;
78 uint04 activeIndex()
const;
79 QWidget* activeWidget()
const;
81 QWidget* currentWidget()
const;
82 QSize sizeHint()
const override;
83 QSize minimumSizeHint()
const override;
84 QWidget* widget(
uint04 index)
const;
86 uint04 indexOf(QWidget* widget)
const;
90 virtual void setCurrentIdx(
uint04 current_index);
91 virtual void slideInNext();
92 virtual void slideInPrev();
93 virtual void slideInIdx(
uint04 idx,
PopupInfo origin_rect,
int delay_time = 0,
enum t_direction direction = AUTOMATIC);
94 virtual void slideInIdx(
uint04 idx,
int delay_time = 0,
enum t_direction direction = AUTOMATIC);
95 virtual void slideInIdx(
uint04 idx,
enum t_direction direction);
96 virtual void slideInAnimation(
PopupInfo origin_rect,
enum t_direction direction = AUTOMATIC,
bool cache_in_image =
false);
97 virtual void slideInAnimation(
enum t_direction direction = AUTOMATIC,
bool cache_in_image =
false);
98 virtual void slideInWgt(QWidget* widget,
enum t_direction direction = AUTOMATIC,
bool force_slide =
false);
109 void childDestroyedSlot(QObject* widget);
111 void animationDoneSlot();
135 QPixmap* m_cached_resize_image_out;
136 QPixmap* m_cached_resize_image_in;
137 QPixmap* m_resize_image_in_blend;
138 QPixmap* m_custom_pixmap;
The default object to store data of any type that should persist through sessions of the application.
Definition Button.h:57
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
constexpr bool isNaN(const t_type &value)
Query if 'value' is valid or invalid.
Definition BaseFunctions.hpp:200