mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-17 17:33:14 +00:00
jira:[none] Change-Id: I64aa43ddf3088bde9296385f36db3e2782d0c280 (cherry picked from commit db2d72cc42f564e37c1de13340555dd2ae745045)
31 lines
782 B
C++
31 lines
782 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);
|
|
~AnimaIcon();
|
|
|
|
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_
|