all repos — mgba @ 6a40e3e455821ec4c774ef7620c1d115a568c3c6

mGBA Game Boy Advance Emulator

src/platform/qt/GIFView.h (view raw)

 1#ifndef QGBA_GIF_VIEW
 2#define QGBA_GIF_VIEW
 3
 4#ifdef USE_MAGICK
 5
 6#include <QWidget>
 7
 8#include "ui_GIFView.h"
 9
10extern "C" {
11#include "platform/imagemagick/imagemagick-gif-encoder.h"
12}
13
14namespace QGBA {
15
16class GIFView : public QWidget {
17Q_OBJECT
18
19public:
20	GIFView(QWidget* parent = nullptr);
21	virtual ~GIFView();
22
23	GBAAVStream* getStream() { return &m_encoder.d; }
24
25public slots:
26	void startRecording();
27	void stopRecording();
28
29signals:
30	void recordingStarted(GBAAVStream*);
31	void recordingStopped();
32
33private slots:
34	void selectFile();
35	void setFilename(const QString&);
36
37private:
38	Ui::GIFView m_ui;
39
40	ImageMagickGIFEncoder m_encoder;
41
42	QString m_filename;
43};
44
45}
46
47#endif
48
49#endif