#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Search.hpp>
◆ anonymous enum
| Enumerator |
|---|
| colIcon | |
| colMarkedText | |
| colMax | |
@ colMarkedText
Definition Search.hpp:209
@ colMax
Definition Search.hpp:209
@ colIcon
Definition Search.hpp:209
◆ SearchListModel()
| Slic3r::Search::SearchListModel::SearchListModel |
( |
wxWindow * | parent | ) |
|
657 : wxDataViewVirtualListModel(0)
658{
659 int icon_id = 0;
660 for (
const std::string icon : {
"cog",
"printer",
"printer",
"spool",
"blank_16"})
m_icon[icon_id++] = ScalableBitmap(parent, icon);
661}
ScalableBitmap m_icon[5]
Definition Search.hpp:206
References m_icon.
◆ Clear()
| void Slic3r::Search::SearchListModel::Clear |
( |
| ) |
|
664{
666 Reset(0);
667}
std::vector< std::pair< wxString, int > > m_values
Definition Search.hpp:205
References m_values.
◆ GetAttrByRow()
| bool Slic3r::Search::SearchListModel::GetAttrByRow |
( |
unsigned int | row, |
|
|
unsigned int | col, |
|
|
wxDataViewItemAttr & | attr ) const |
|
inlineoverride |
◆ GetColumnCount()
| unsigned int Slic3r::Search::SearchListModel::GetColumnCount |
( |
| ) |
const |
|
inlineoverride |
◆ GetColumnType()
| wxString Slic3r::Search::SearchListModel::GetColumnType |
( |
unsigned int | col | ) |
const |
|
override |
686{
687 if (col ==
colIcon)
return "wxBitmap";
688 return "string";
689}
References colIcon.
◆ GetValueByRow()
| void Slic3r::Search::SearchListModel::GetValueByRow |
( |
wxVariant & | variant, |
|
|
unsigned int | row, |
|
|
unsigned int | col ) const |
|
override |
◆ msw_rescale()
| void Slic3r::Search::SearchListModel::msw_rescale |
( |
| ) |
|
681{
682 for (ScalableBitmap &bmp :
m_icon) bmp.msw_rescale();
683}
References m_icon.
◆ Prepend()
| void Slic3r::Search::SearchListModel::Prepend |
( |
const std::string & | text | ) |
|
670{
671 const char icon_c = label.at(0);
673 wxString str =
from_u8(label).Remove(0, 1);
674
675 m_values.emplace_back(str, icon_idx);
676
677 RowPrepended();
678}
static const std::map< const char, int > icon_idxs
Definition Search.cpp:438
wxString from_u8(const std::string &str)
Definition GUI.cpp:544
References Slic3r::from_u8(), Slic3r::Search::icon_idxs, and m_values.
◆ SetValueByRow()
| bool Slic3r::Search::SearchListModel::SetValueByRow |
( |
const wxVariant & | variant, |
|
|
unsigned int | row, |
|
|
unsigned int | col ) |
|
inlineoverride |
◆ m_icon
◆ m_values
| std::vector<std::pair<wxString, int> > Slic3r::Search::SearchListModel::m_values |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Search.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Search.cpp