jira: [STUDIO-14068] [STUDIO-14330] Change-Id: I6281fbf56f3bf406ef28103998790a2a98c3f5c0 (cherry picked from commit 8ee02ec73076691c482ea6d089a49ea1c99ad10c)
30 lines
764 B
C++
30 lines
764 B
C++
#ifndef slic3r_GUI_AnimaController_hpp_
|
|
#define slic3r_GUI_AnimaController_hpp_
|
|
|
|
#include "../wxExtensions.hpp"
|
|
#include "Label.hpp"
|
|
|
|
|
|
class AnimaIcon : public wxPanel
|
|
{
|
|
public:
|
|
AnimaIcon(wxWindow *parent, wxWindowID id, std::vector<std::string> img_list, std::string img_enable, int ivt = 1000);
|
|
|
|
void Play();
|
|
void Stop();
|
|
void Enable();
|
|
bool IsPlaying() const { return IsRunning(); };
|
|
bool IsRunning() const;
|
|
|
|
private:
|
|
wxBitmap m_image_enable;
|
|
wxStaticBitmap * m_bitmap{nullptr};
|
|
std::vector<wxBitmap> m_images;
|
|
wxTimer * m_timer;
|
|
int m_current_frame = 0;
|
|
int m_ivt;
|
|
int m_size;
|
|
};
|
|
|
|
#endif // !slic3r_GUI_AnimaController_hpp_
|