Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::GUI::Busy Class Reference
+ Collaboration diagram for Slic3r::GUI::Busy:

Public Member Functions

 Busy (const wxString &message, wxWindow *parent=nullptr)
 
 ~Busy ()
 
void update (const wxString &message)
 
void reset ()
 

Private Attributes

wxWindow * m_parent { nullptr }
 
std::unique_ptr< wxBusyCursor > m_cursor
 
std::unique_ptr< wxBusyInfo > m_dlg
 

Detailed Description

Constructor & Destructor Documentation

◆ Busy()

Slic3r::GUI::Busy::Busy ( const wxString &  message,
wxWindow *  parent = nullptr 
)
inline
3501 {
3502 m_parent = parent;
3503 m_cursor = std::make_unique<wxBusyCursor>();
3504 m_dlg = std::make_unique<wxBusyInfo>(message, m_parent);
3505 }
std::unique_ptr< wxBusyInfo > m_dlg
Definition Plater.cpp:3498
wxWindow * m_parent
Definition Plater.cpp:3496
std::unique_ptr< wxBusyCursor > m_cursor
Definition Plater.cpp:3497

◆ ~Busy()

Slic3r::GUI::Busy::~Busy ( )
inline
3507{ reset(); }
void reset()
Definition Plater.cpp:3515

Member Function Documentation

◆ reset()

void Slic3r::GUI::Busy::reset ( )
inline
3515 {
3516 m_cursor.reset();
3517 m_dlg.reset();
3518 }

Referenced by Slic3r::GUI::Plater::priv::reload_from_disk(), and Slic3r::GUI::Plater::priv::replace_volume_with_stl().

+ Here is the caller graph for this function:

◆ update()

void Slic3r::GUI::Busy::update ( const wxString &  message)
inline
3509 {
3510 // this is ugly but necessary because the call to wxBusyInfo::UpdateLabel() is not working [WX 3.1.4]
3511 m_dlg = std::make_unique<wxBusyInfo>(message, m_parent);
3512// m_dlg->UpdateLabel(message);
3513 }

Referenced by Slic3r::GUI::Plater::priv::reload_from_disk().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_cursor

std::unique_ptr<wxBusyCursor> Slic3r::GUI::Busy::m_cursor
private

◆ m_dlg

std::unique_ptr<wxBusyInfo> Slic3r::GUI::Busy::m_dlg
private

◆ m_parent

wxWindow* Slic3r::GUI::Busy::m_parent { nullptr }
private

The documentation for this class was generated from the following file: