Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
MenuWithSeparators Class Reference

#include <src/slic3r/GUI/wxExtensions.hpp>

+ Inheritance diagram for MenuWithSeparators:
+ Collaboration diagram for MenuWithSeparators:

Public Member Functions

 MenuWithSeparators (const wxString &title, long style=0)
 
 MenuWithSeparators (long style=0)
 
 ~MenuWithSeparators ()
 
void DestroySeparators ()
 
void SetFirstSeparator ()
 
void SetSecondSeparator ()
 

Private Attributes

wxMenuItem * m_separator_frst { nullptr }
 
wxMenuItem * m_separator_scnd { nullptr }
 

Detailed Description

Constructor & Destructor Documentation

◆ MenuWithSeparators() [1/2]

MenuWithSeparators::MenuWithSeparators ( const wxString &  title,
long  style = 0 
)
inline
348 : wxMenu(title, style) {}
#define style
Definition WipeTowerDialog.cpp:68

◆ MenuWithSeparators() [2/2]

MenuWithSeparators::MenuWithSeparators ( long  style = 0)
inline
351 : wxMenu(style) {}

◆ ~MenuWithSeparators()

MenuWithSeparators::~MenuWithSeparators ( )
inline
353{}

Member Function Documentation

◆ DestroySeparators()

void MenuWithSeparators::DestroySeparators ( )
757{
758 if (m_separator_frst) {
759 Destroy(m_separator_frst);
760 m_separator_frst = nullptr;
761 }
762
763 if (m_separator_scnd) {
764 Destroy(m_separator_scnd);
765 m_separator_scnd = nullptr;
766 }
767}
wxMenuItem * m_separator_frst
Definition wxExtensions.hpp:360
wxMenuItem * m_separator_scnd
Definition wxExtensions.hpp:361

References m_separator_frst, and m_separator_scnd.

Referenced by Slic3r::GUI::MenuFactory::append_menu_item_settings().

+ Here is the caller graph for this function:

◆ SetFirstSeparator()

void MenuWithSeparators::SetFirstSeparator ( )
770{
771 m_separator_frst = this->AppendSeparator();
772}

References m_separator_frst.

Referenced by Slic3r::GUI::MenuFactory::append_menu_item_settings().

+ Here is the caller graph for this function:

◆ SetSecondSeparator()

void MenuWithSeparators::SetSecondSeparator ( )
775{
776 m_separator_scnd = this->AppendSeparator();
777}

References m_separator_scnd.

Referenced by Slic3r::GUI::MenuFactory::append_menu_item_settings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_separator_frst

wxMenuItem* MenuWithSeparators::m_separator_frst { nullptr }
private

◆ m_separator_scnd

wxMenuItem* MenuWithSeparators::m_separator_scnd { nullptr }
private

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