#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/plugin/host/PluginPages.hpp>
Classes | |
| struct | Page |
Public Member Functions | |
| PluginPages ()=default | |
| ~PluginPages () | |
| PluginPages (const PluginPages &)=delete | |
| PluginPages & | operator= (const PluginPages &)=delete |
| void | initialize (Notebook *parent) |
| void | shutdown () |
| void | on_cap_register (const PluginCapabilityId &id) |
| void | on_cap_deregister (const PluginCapabilityId &id) |
| void | on_plugin_register (const std::string &plugin_key) |
| void | on_plugin_deregister (const std::string &plugin_key) |
| void | set_visible_page_count (int count) |
| void | relayout () |
| void | select_page (const PluginCapabilityId &id) |
Private Member Functions | |
| std::shared_ptr< PagesPluginCapability > | get_pages_cap (const PluginCapabilityId &id, bool is_enabled) const |
| bool | create_page (const PluginCapabilityId &id) |
| void | remove_page (const PluginCapabilityId &id) |
| void | show_overflow_menu () |
Static Private Member Functions | |
| static wxString | page_tab_id (const PluginCapabilityId &id) |
Private Attributes | |
| std::map< PluginCapabilityId, Page > | m_pages |
| std::vector< PluginCapabilityId > | m_order |
| Notebook * | m_parent {nullptr} |
| int | m_visible_page_count {0} |
| std::optional< PluginCapabilityId > | m_swapped_in_id |
| wxWindow * | m_overflow_button {nullptr} |
| struct Slic3r::PluginPages::Page |
| Class Members | ||
|---|---|---|
| wxBitmap | icon | |
| LazyPage< PluginPage > * | page {nullptr} | |
|
default |
| Slic3r::PluginPages::~PluginPages | ( | ) |
|
delete |
|
private |
References create_scaled_bitmap(), get_pages_cap(), Slic3r::GUI::into_u8(), m_order, m_pages, m_parent, and page_tab_id().
Referenced by initialize(), and on_cap_register().
|
private |
References Slic3r::PluginManager::get_plugin_capability(), Slic3r::PluginManager::instance(), and Slic3r::Pages.
Referenced by create_page().
| void Slic3r::PluginPages::initialize | ( | Notebook * | parent | ) |
References create_page(), Slic3r::PluginManager::instance(), m_parent, m_visible_page_count, Slic3r::Pages, relayout(), and shutdown().
| void Slic3r::PluginPages::on_cap_deregister | ( | const PluginCapabilityId & | id | ) |
References remove_page().
| void Slic3r::PluginPages::on_cap_register | ( | const PluginCapabilityId & | id | ) |
References create_page(), m_parent, and relayout().
Referenced by on_plugin_register().
| void Slic3r::PluginPages::on_plugin_deregister | ( | const std::string & | plugin_key | ) |
References m_order, and remove_page().
| void Slic3r::PluginPages::on_plugin_register | ( | const std::string & | plugin_key | ) |
References Slic3r::PluginManager::instance(), on_cap_register(), and Slic3r::Pages.
|
delete |
|
staticprivate |
Referenced by create_page(), relayout(), select_page(), and show_overflow_menu().
| void Slic3r::PluginPages::relayout | ( | ) |
References em_unit(), Slic3r::PluginPages::Page::icon, L, m_order, m_overflow_button, m_pages, m_parent, m_swapped_in_id, m_visible_page_count, Slic3r::PluginPages::Page::page, page_tab_id(), and show_overflow_menu().
Referenced by initialize(), on_cap_register(), remove_page(), select_page(), set_visible_page_count(), and show_overflow_menu().
|
private |
References Slic3r::GUI::Lazy< T >::get(), m_order, m_pages, m_parent, and relayout().
Referenced by on_cap_deregister(), on_plugin_deregister(), and shutdown().
| void Slic3r::PluginPages::select_page | ( | const PluginCapabilityId & | id | ) |
References m_pages, m_parent, m_swapped_in_id, page_tab_id(), and relayout().
Referenced by Slic3r::GUI::anonymous_namespace{ActionRegistry.cpp}::PluginPageAction::run().
| void Slic3r::PluginPages::set_visible_page_count | ( | int | count | ) |
References count, m_visible_page_count, PLUGIN_PAGES_VISIBLE_COUNT_MAX, PLUGIN_PAGES_VISIBLE_COUNT_MIN, and relayout().
|
private |
References m_order, m_overflow_button, m_parent, m_swapped_in_id, m_visible_page_count, page_tab_id(), and relayout().
Referenced by relayout().
| void Slic3r::PluginPages::shutdown | ( | ) |
References m_order, m_parent, and remove_page().
Referenced by ~PluginPages(), and initialize().
|
private |
Referenced by create_page(), on_plugin_deregister(), relayout(), remove_page(), show_overflow_menu(), and shutdown().
|
private |
Referenced by relayout(), and show_overflow_menu().
|
private |
Referenced by create_page(), relayout(), remove_page(), and select_page().
Referenced by create_page(), initialize(), on_cap_register(), relayout(), remove_page(), select_page(), show_overflow_menu(), and shutdown().
|
private |
Referenced by relayout(), select_page(), and show_overflow_menu().
|
private |
Referenced by initialize(), relayout(), set_visible_page_count(), and show_overflow_menu().