OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::ParamsPanel::SettingsPagePrebuild Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/ParamsPanel.hpp>

Inheritance diagram for Slic3r::GUI::ParamsPanel::SettingsPagePrebuild:
Collaboration diagram for Slic3r::GUI::ParamsPanel::SettingsPagePrebuild:

Public Member Functions

 SettingsPagePrebuild (ParamsPanel &panel)
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

ParamsPanel & m_panel
std::string m_name { "settings_page" }

Detailed Description

Constructor & Destructor Documentation

◆ SettingsPagePrebuild()

Slic3r::GUI::ParamsPanel::SettingsPagePrebuild::SettingsPagePrebuild ( ParamsPanel & panel)
inlineexplicit
133: m_panel(panel) {}
ParamsPanel & m_panel
Definition ParamsPanel.hpp:140

References Slic3r::GUI::ParamsPanel::ParamsPanel(), and m_panel.

Here is the call graph for this function:

Member Function Documentation

◆ build_step()

bool Slic3r::GUI::ParamsPanel::SettingsPagePrebuild::build_step ( )
overridevirtual

Implements Slic3r::GUI::LazyBase.

594{
595 if (m_panel.m_current_tab == nullptr) {
596 m_panel.select_default_tab();
597 return !built();
598 }
599 Tab* tab = dynamic_cast<Tab*>(m_panel.m_current_tab);
600 return tab != nullptr && tab->page_build_step();
601}
bool built() const override
Definition ParamsPanel.cpp:587

References built(), m_panel, and Slic3r::GUI::Tab::page_build_step().

Here is the call graph for this function:

◆ built()

bool Slic3r::GUI::ParamsPanel::SettingsPagePrebuild::built ( ) const
overridevirtual

Implements Slic3r::GUI::LazyBase.

588{
589 Tab* tab = dynamic_cast<Tab*>(m_panel.m_current_tab);
590 return tab != nullptr && !tab->page_build_pending();
591}

References m_panel, and Slic3r::GUI::Tab::page_build_pending().

Referenced by build_step().

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

◆ 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::ParamsPanel::SettingsPagePrebuild::name ( ) const
inlineoverridevirtual

Implements Slic3r::GUI::LazyBase.

134{ return m_name; }
std::string m_name
Definition ParamsPanel.hpp:141

References m_name.

◆ pending()

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

◆ prebuild_order()

int Slic3r::GUI::ParamsPanel::SettingsPagePrebuild::prebuild_order ( ) const
inlineoverridevirtual

Implements Slic3r::GUI::LazyBase.

137{ return 0; }

Member Data Documentation

◆ m_name

std::string Slic3r::GUI::ParamsPanel::SettingsPagePrebuild::m_name { "settings_page" }
private
141{ "settings_page" };

Referenced by name().

◆ m_panel

ParamsPanel& Slic3r::GUI::ParamsPanel::SettingsPagePrebuild::m_panel
private

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