aboutsummaryrefslogtreecommitdiff
path: root/include/aomovie.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/aomovie.h')
-rw-r--r--include/aomovie.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/aomovie.h b/include/aomovie.h
new file mode 100644
index 00000000..1f278bf8
--- /dev/null
+++ b/include/aomovie.h
@@ -0,0 +1,34 @@
+#ifndef AOMOVIE_H
+#define AOMOVIE_H
+
+#include <QLabel>
+#include <QMovie>
+
+class Courtroom;
+class AOApplication;
+
+class AOMovie : public QLabel
+{
+ Q_OBJECT
+
+public:
+ AOMovie(QWidget *p_parent, AOApplication *p_ao_app);
+
+ void set_play_once(bool p_play_once);
+ void play(QString p_gif, QString p_char = "", QString p_custom_theme = "");
+ void combo_resize(int w, int h);
+ void stop();
+
+private:
+ QMovie *m_movie;
+ AOApplication *ao_app;
+ bool play_once = true;
+
+signals:
+ void done();
+
+private slots:
+ void frame_change(int n_frame);
+};
+
+#endif // AOMOVIE_H