OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
MenuWithSeparators Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/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
304 : wxMenu(title, style) {}
#define style
Definition WipeTowerDialog.cpp:101

References style.

◆ MenuWithSeparators() [2/2]

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

References style.

◆ ~MenuWithSeparators()

MenuWithSeparators::~MenuWithSeparators ( )
inline
309{}

Member Function Documentation

◆ DestroySeparators()

void MenuWithSeparators::DestroySeparators ( )
915{
916 if (m_separator_frst) {
917 Destroy(m_separator_frst);
918 m_separator_frst = nullptr;
919 }
920
921 if (m_separator_scnd) {
922 Destroy(m_separator_scnd);
923 m_separator_scnd = nullptr;
924 }
925}
wxMenuItem * m_separator_frst
Definition wxExtensions.hpp:316
wxMenuItem * m_separator_scnd
Definition wxExtensions.hpp:317

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 ( )
928{
929 m_separator_frst = this->AppendSeparator();
930}

References m_separator_frst.

◆ SetSecondSeparator()

void MenuWithSeparators::SetSecondSeparator ( )
933{
934 m_separator_scnd = this->AppendSeparator();
935}

References m_separator_scnd.

Member Data Documentation

◆ m_separator_frst

wxMenuItem* MenuWithSeparators::m_separator_frst { nullptr }
private
316{ nullptr }; // use like separator before settings item

Referenced by DestroySeparators(), and SetFirstSeparator().

◆ m_separator_scnd

wxMenuItem* MenuWithSeparators::m_separator_scnd { nullptr }
private
317{ nullptr }; // use like separator between settings items

Referenced by DestroySeparators(), and SetSecondSeparator().


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