OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::MainFrame::PrepareLayoutPrebuild Class Reference
Inheritance diagram for Slic3r::GUI::MainFrame::PrepareLayoutPrebuild:
Collaboration diagram for Slic3r::GUI::MainFrame::PrepareLayoutPrebuild:

Public Member Functions

 PrepareLayoutPrebuild (MainFrame &frame)
const std::string & name () const override
bool built () const override
bool build_step () override
int prebuild_order () const override
virtual bool pending () const

Static Protected Member Functions

static void log_null_factory (const std::string &name)

Private Attributes

MainFrame & m_frame
std::string m_name { "prepare_layout" }
wxSize m_laid_out_size

Detailed Description

Constructor & Destructor Documentation

◆ PrepareLayoutPrebuild()

Slic3r::GUI::MainFrame::PrepareLayoutPrebuild::PrepareLayoutPrebuild ( MainFrame & frame)
inlineexplicit
176: m_frame(frame) {}
MainFrame & m_frame
Definition MainFrame.hpp:183

References Slic3r::GUI::MainFrame::MainFrame(), and m_frame.

Here is the call graph for this function:

Member Function Documentation

◆ build_step()

bool Slic3r::GUI::MainFrame::PrepareLayoutPrebuild::build_step ( )
overridevirtual

Implements Slic3r::GUI::LazyBase.

4252{
4253 // Sized as the book sizes the page it selects, so the selection finds nothing to lay out.
4254 const wxWindow* page = m_frame.m_tabpanel->GetCurrentPage();
4255 m_laid_out_size = page->GetSize();
4256 m_frame.m_plater->SetSize(page->GetRect());
4257 return false;
4258}
wxSize m_laid_out_size
Definition MainFrame.hpp:185

References m_frame, and m_laid_out_size.

◆ built()

bool Slic3r::GUI::MainFrame::PrepareLayoutPrebuild::built ( ) const
overridevirtual

Implements Slic3r::GUI::LazyBase.

4245{
4246 // The book lays out the page it shows.
4247 const wxWindow* page = m_frame.m_tabpanel != nullptr ? m_frame.m_tabpanel->GetCurrentPage() : nullptr;
4248 return page == nullptr || page == m_frame.m_plater || page->GetSize() == m_laid_out_size;
4249}

References m_frame, and m_laid_out_size.

◆ log_null_factory()

void Slic3r::GUI::LazyBase::log_null_factory ( const std::string & name)
staticprotectedinherited
26{
27 BOOST_LOG_TRIVIAL(error) << "Lazy::build_step: the factory for " << name << " returned null";
28}
virtual const std::string & name() const =0

References name().

Referenced by Slic3r::GUI::Lazy< T >::build_step().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

const std::string & Slic3r::GUI::MainFrame::PrepareLayoutPrebuild::name ( ) const
inlineoverridevirtual

Implements Slic3r::GUI::LazyBase.

177{ return m_name; }
std::string m_name
Definition MainFrame.hpp:184

References m_name.

◆ pending()

virtual bool Slic3r::GUI::LazyBase::pending ( ) const
inlinevirtualinherited

◆ prebuild_order()

int Slic3r::GUI::MainFrame::PrepareLayoutPrebuild::prebuild_order ( ) const
inlineoverridevirtual

Implements Slic3r::GUI::LazyBase.

180{ return 0; }

Member Data Documentation

◆ m_frame

MainFrame& Slic3r::GUI::MainFrame::PrepareLayoutPrebuild::m_frame
private

◆ m_laid_out_size

wxSize Slic3r::GUI::MainFrame::PrepareLayoutPrebuild::m_laid_out_size
private

Referenced by build_step(), and built().

◆ m_name

std::string Slic3r::GUI::MainFrame::PrepareLayoutPrebuild::m_name { "prepare_layout" }
private
184{ "prepare_layout" };

Referenced by name().


The documentation for this class was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/MainFrame.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/MainFrame.cpp