OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::DynamicList Class Referenceabstract

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

Inheritance diagram for Slic3r::GUI::DynamicList:
Collaboration diagram for Slic3r::GUI::DynamicList:

Public Member Functions

virtual ~DynamicList ()
virtual void apply_on (Choice *choice)=0
virtual wxString get_value (int index)=0
virtual int index_of (wxString value)=0

Protected Member Functions

void update ()

Protected Attributes

std::vector< Choice * > m_choices

Private Member Functions

void add_choice (Choice *choice)
void remove_choice (Choice *choice)

Friends

class Choice

Detailed Description

Constructor & Destructor Documentation

◆ ~DynamicList()

virtual Slic3r::GUI::DynamicList::~DynamicList ( )
inlinevirtual
429{}

Member Function Documentation

◆ add_choice()

void Slic3r::GUI::DynamicList::add_choice ( Choice * choice)
private
1542{
1543 auto iter = std::find(m_choices.begin(), m_choices.end(), choice);
1544 if (iter != m_choices.end()) return;
1545 apply_on(choice);
1546 m_choices.push_back(choice);
1547}
virtual void apply_on(Choice *choice)=0
std::vector< Choice * > m_choices
Definition Field.hpp:437

References apply_on(), Choice, and m_choices.

Here is the call graph for this function:

◆ apply_on()

virtual void Slic3r::GUI::DynamicList::apply_on ( Choice * choice)
pure virtual

Implemented in Slic3r::GUI::DynamicFilamentList.

References Choice.

Referenced by add_choice(), and update().

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

◆ get_value()

virtual wxString Slic3r::GUI::DynamicList::get_value ( int index)
pure virtual

◆ index_of()

virtual int Slic3r::GUI::DynamicList::index_of ( wxString value)
pure virtual

◆ remove_choice()

void Slic3r::GUI::DynamicList::remove_choice ( Choice * choice)
private
1550{
1551 auto iter = std::find(m_choices.begin(), m_choices.end(), choice);
1552 if (iter != m_choices.end()) m_choices.erase(iter);
1553}

References Choice, and m_choices.

Here is the call graph for this function:

◆ update()

void Slic3r::GUI::DynamicList::update ( )
protected
1537{
1538 for (auto c : m_choices) apply_on(c);
1539}

References apply_on(), and m_choices.

Referenced by Slic3r::GUI::DynamicFilamentList::update().

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

◆ Choice

friend class Choice
friend

Member Data Documentation

◆ m_choices

std::vector<Choice*> Slic3r::GUI::DynamicList::m_choices
protected

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