mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-29 05:42:33 +00:00
ENH:Optimization of File Transfer System Part2
jira: [STUDIO-11777] Change-Id: I12744db7d2e3b53425454d632533768c54524677 (cherry picked from commit 4358e9ce351c5784e392a75d1ffcf2f54e1916ec)
This commit is contained in:
28
src/slic3r/GUI/Widgets/AnimaController.hpp
Normal file
28
src/slic3r/GUI/Widgets/AnimaController.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#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 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_
|
||||
Reference in New Issue
Block a user