OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::AuxiliaryPanel Class Reference

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

Inheritance diagram for Slic3r::GUI::AuxiliaryPanel:
Collaboration diagram for Slic3r::GUI::AuxiliaryPanel:

Public Member Functions

 AuxiliaryPanel (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 ~AuxiliaryPanel ()
void init_bitmap ()
void init_tabpanel ()
void Split (const std::string &src, const std::string &separator, std::vector< std::string > &dest)
void msw_rescale ()
void on_size (wxSizeEvent &event)
bool Show (bool show)
void init_auxiliary ()
void create_folder (wxString name=wxEmptyString)
std::string replaceSpace (std::string s, std::string ts, std::string ns)
void on_import_file (wxCommandEvent &event)
void Reload (wxString aux_path, std::map< std::string, std::vector< nlohmann::json > > paths)
void update_all_panel ()
void update_all_cover ()
bool built () const
bool build_step ()

Public Attributes

std::map< std::string, std::vector< boost::filesystem::path > > m_paths_list
wxString m_root_dir

Protected Member Functions

void add_build_step (std::function< void()> step)
void add_build_steps_of (StagedBuild &child)

Private Member Functions

wxWindow * create_side_tools ()
StagedBuild * unfinished_child () const

Private Attributes

Tabbook * m_tabpanel = {nullptr}
wxSizer * m_main_sizer = {nullptr}
AuFolderPanel * m_pictures_panel = {nullptr}
AuFolderPanel * m_bill_of_materials_panel = {nullptr}
AuFolderPanel * m_assembly_panel = {nullptr}
AuFolderPanel * m_others_panel = {nullptr}
DesignerPanel * m_designer_panel = {nullptr}
wxBitmap m_signal_strong_img
wxBitmap m_signal_middle_img
wxBitmap m_signal_weak_img
wxBitmap m_signal_no_img
wxBitmap m_printer_img
wxBitmap m_arrow_img
std::vector< std::function< void()> > m_steps
std::vector< StagedBuild * > m_children
size_t m_next_step { 0 }

Detailed Description

Constructor & Destructor Documentation

◆ AuxiliaryPanel()

Slic3r::GUI::AuxiliaryPanel::AuxiliaryPanel ( wxWindow * parent,
wxWindowID id = wxID_ANY,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize,
long style = wxTAB_TRAVERSAL )
777 : wxPanel(parent, id, pos, size, style)
778{
780 // init_auxiliary();
781
782 m_main_sizer = new wxBoxSizer(wxHORIZONTAL);
783 m_main_sizer->Add(m_tabpanel, 1, wxEXPAND | wxLEFT, 0);
784 SetSizerAndFit(m_main_sizer);
785 Bind(wxEVT_SIZE, &AuxiliaryPanel::on_size, this);
786 Bind(EVT_AUXILIARY_IMPORT, &AuxiliaryPanel::on_import_file, this);
787
788 // cover -event
789 Bind(EVT_AUXILIARY_UPDATE_COVER, [this](wxCommandEvent &e) { update_all_cover(); });
790
791 // delete event
792 Bind(EVT_AUXILIARY_UPDATE_DELETE, [this](wxCommandEvent &e) {
793 auto info_str = e.GetString();
794
795 wxArrayString parems;
796 wxStringTokenizer tokenizer(info_str, "|");
797 while (tokenizer.HasMoreTokens()) {
798 wxString token = tokenizer.GetNextToken();
799 parems.Add(token);
800 }
801
802
803 auto model = parems[0];
804 auto name = parems[1];
805
806 auto iter = m_paths_list.find(model.ToStdString());
807 if (iter != m_paths_list.end()) {
808 auto list = iter->second;
809 for (auto i = 0; i < list.size(); i++) {
810 if (list[i].wstring() == name) {
811 list.erase(std::begin(list) + i);
812 break;
813 }
814 }
815
816 m_paths_list[model.ToStdString()] = list;
819 }
820 });
821
822 // rename event
823 Bind(EVT_AUXILIARY_UPDATE_RENAME, [this](wxCommandEvent &e) {
824 auto info_str = e.GetString();
825
826 wxArrayString parems;
827 wxStringTokenizer tokenizer(info_str, "|");
828 while (tokenizer.HasMoreTokens()) {
829 wxString token = tokenizer.GetNextToken();
830 parems.Add(token);
831 }
832
833 auto model = parems[0];
834 auto old_name = parems[1];
835 auto new_name = parems[2];
836
837 auto iter = m_paths_list.find(model.ToStdString());
838 if (iter != m_paths_list.end()) {
839 auto list = iter->second;
840 for (auto i = 0; i < list.size(); i++) {
841 if (list[i].wstring() == old_name) {
842 list[i] = fs::path(new_name.ToStdWstring());
843 break;
844 }
845 }
846
847 m_paths_list[model.ToStdString()] = list;
848 }
849 });
850}
#define style
Definition WipeTowerDialog.cpp:101
void update_all_panel()
Definition Auxiliary.cpp:1085
wxSizer * m_main_sizer
Definition Auxiliary.hpp:210
Tabbook * m_tabpanel
Definition Auxiliary.hpp:209
void init_tabpanel()
Definition Auxiliary.cpp:886
void on_size(wxSizeEvent &event)
Definition Auxiliary.cpp:951
void on_import_file(wxCommandEvent &event)
Definition Auxiliary.cpp:967
void update_all_cover()
Definition Auxiliary.cpp:1104
std::map< std::string, std::vector< boost::filesystem::path > > m_paths_list
Definition Auxiliary.hpp:240

References init_tabpanel(), m_main_sizer, m_paths_list, m_tabpanel, on_import_file(), on_size(), style, update_all_cover(), and update_all_panel().

Here is the call graph for this function:

◆ ~AuxiliaryPanel()

Slic3r::GUI::AuxiliaryPanel::~AuxiliaryPanel ( )
874{}

Member Function Documentation

◆ add_build_step()

void Slic3r::GUI::StagedBuild::add_build_step ( std::function< void()> step)
inlineprotectedinherited
39{ m_steps.push_back(std::move(step)); }
std::vector< std::function< void()> > m_steps
Definition StagedBuild.hpp:57

References m_steps.

Referenced by Slic3r::GUI::StatusBasePanel::StatusBasePanel(), Slic3r::GUI::StatusPanel::StatusPanel(), add_build_steps_of(), Slic3r::GUI::CalibrationWizard::add_page_step(), Slic3r::GUI::StatusBasePanel::create_machine_control_page(), Slic3r::GUI::FlowRateWizard::create_pages(), Slic3r::GUI::PressureAdvanceWizard::create_pages(), Slic3r::GUI::AuxiliaryPanel::init_tabpanel(), and Slic3r::GUI::MonitorPanel::init_tabpanel().

Here is the caller graph for this function:

◆ add_build_steps_of()

void Slic3r::GUI::StagedBuild::add_build_steps_of ( StagedBuild & child)
inlineprotectedinherited
44 {
45 m_children.push_back(&child);
46 for (size_t i = child.m_next_step; i < child.m_steps.size(); ++i)
47 add_build_step([&child] { child.build_step(); });
48 }
std::vector< StagedBuild * > m_children
Definition StagedBuild.hpp:58
void add_build_step(std::function< void()> step)
Definition StagedBuild.hpp:39

References add_build_step(), build_step(), m_children, m_next_step, and m_steps.

Referenced by Slic3r::GUI::ProjectPanel::ProjectPanel(), Slic3r::GUI::CalibrationPanel::init_tabpanel(), and Slic3r::GUI::MonitorPanel::init_tabpanel().

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

◆ build_step()

bool Slic3r::GUI::StagedBuild::build_step ( )
inlineinherited
27 {
28 if (m_next_step < m_steps.size()) {
29 // Copied out, since a step may queue more steps and reallocate m_steps.
30 auto step = std::move(m_steps[m_next_step++]);
31 step();
32 } else if (StagedBuild* child = unfinished_child()) {
33 child->build_step();
34 }
35 return !built();
36 }
size_t m_next_step
Definition StagedBuild.hpp:59
StagedBuild * unfinished_child() const
Definition StagedBuild.hpp:51
bool built() const
Definition StagedBuild.hpp:18
void step(Coord &crd, const Dir d, const long n=1)
Definition MarchingSquares.hpp:213

References built(), m_next_step, m_steps, and unfinished_child().

Referenced by add_build_steps_of().

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

◆ built()

bool Slic3r::GUI::StagedBuild::built ( ) const
inlineinherited
19 {
20 return m_next_step == m_steps.size() &&
21 std::all_of(m_children.begin(), m_children.end(), [](const StagedBuild* child) { return child->built(); });
22 }

References m_children, m_next_step, and m_steps.

Referenced by Slic3r::GUI::StatusPanel::~StatusPanel(), build_step(), Slic3r::GUI::CalibrationPanel::show_status(), Slic3r::GUI::MonitorPanel::show_status(), Slic3r::GUI::CalibrationPanel::update_all(), and Slic3r::GUI::MonitorPanel::update_all().

Here is the caller graph for this function:

◆ create_folder()

void Slic3r::GUI::AuxiliaryPanel::create_folder ( wxString name = wxEmptyString)
1045{
1046 wxString folder_name = name;
1047
1048 // Create folder in file system
1049 fs::path bfs_path((m_root_dir + "/" + folder_name).ToStdWstring());
1050 if (fs::exists(bfs_path)) {
1051 try {
1052 bool is_done = fs::remove_all(bfs_path);
1053 } catch (...) {
1054 BOOST_LOG_TRIVIAL(error) << "Failed removing the auxiliary directory " << m_root_dir.c_str();
1055 }
1056 }
1057 fs::create_directory(bfs_path);
1058}
wxString m_root_dir
Definition Auxiliary.hpp:241

References m_root_dir.

◆ create_side_tools()

wxWindow * Slic3r::GUI::AuxiliaryPanel::create_side_tools ( )
private
933{
934 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
935 auto panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(0, FromDIP(50)));
936 panel->SetBackgroundColour(wxColour(135, 206, 250));
937 panel->SetSizer(sizer);
938 sizer->Layout();
939 panel->Fit();
940 return panel;
941}

◆ init_auxiliary()

void Slic3r::GUI::AuxiliaryPanel::init_auxiliary ( )
962{
963 Model &model = wxGetApp().plater()->model();
964 Reload(encode_path(model.get_auxiliary_file_temp_path().c_str()), {});
965}
void Reload(wxString aux_path, std::map< std::string, std::vector< nlohmann::json > > paths)
Definition Auxiliary.cpp:1067
std::string encode_path(const char *src)
Definition utils.cpp:1382

References Slic3r::encode_path(), Slic3r::Model::get_auxiliary_file_temp_path(), and Reload().

Here is the call graph for this function:

◆ init_bitmap()

void Slic3r::GUI::AuxiliaryPanel::init_bitmap ( )
877{
878 /*m_signal_strong_img = create_scaled_bitmap("monitor_signal_strong", nullptr, 24);
879 m_signal_middle_img = create_scaled_bitmap("monitor_signal_middle", nullptr, 24);
880 m_signal_weak_img = create_scaled_bitmap("monitor_signal_weak", nullptr, 24);
881 m_signal_no_img = create_scaled_bitmap("monitor_signal_no", nullptr, 24);
882 m_printer_img = create_scaled_bitmap("monitor_printer", nullptr, 26);
883 m_arrow_img = create_scaled_bitmap("monitor_arrow", nullptr, 14);*/
884}

◆ init_tabpanel()

void Slic3r::GUI::AuxiliaryPanel::init_tabpanel ( )
887{
888 StateColor btn_bg_green(std::pair<wxColour, int>(wxColour(206, 206, 206), StateColor::Disabled),
889 std::pair<wxColour, int>(wxColour(0, 137, 123), StateColor::Pressed),
890 std::pair<wxColour, int>(wxColour(38, 166, 154), StateColor::Hovered),
891 std::pair<wxColour, int>(wxColour(0, 150, 136), StateColor::Normal));
892 auto back_btn = new Button(this, _L("Return"), "assemble_return", wxBORDER_NONE | wxBU_LEFT | wxBU_EXACTFIT);
893 back_btn->SetSize(wxSize(FromDIP(220), FromDIP(18)));
894 back_btn->SetBackgroundColor(btn_bg_green);
895 back_btn->SetTextColor(StateColor (std::pair<wxColour, int>(wxColour("#FDFFFD"), StateColor::Normal))); // ORCA fixes color change on text. icon stays white color but text changes to black without this
896 back_btn->SetCornerRadius(0);
897 back_btn->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](wxEvent& e) {
898 auto event = wxCommandEvent(EVT_AUXILIARY_DONE);
899 event.SetEventObject(m_parent);
900 wxPostEvent(m_parent, event);
901 });
902
903 wxBoxSizer *sizer_side_tools = new wxBoxSizer(wxVERTICAL);
904 sizer_side_tools->Add(back_btn, 1, wxEXPAND, 0);
905 m_tabpanel = new Tabbook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, sizer_side_tools, wxNB_LEFT | wxTAB_TRAVERSAL | wxNB_NOPAGETHEME);
906 m_tabpanel->SetBackgroundColour(wxColour("#FEFFFF"));
907 m_tabpanel->Bind(wxEVT_BOOKCTRL_PAGE_CHANGED, [](wxBookCtrlEvent &e) { /* Event handling */ });
908
909 add_build_step([this] {
911 m_tabpanel->AddPage(m_designer_panel, _L("Basic Info"), true);
912 });
913 add_build_step([this] {
915 m_tabpanel->AddPage(m_pictures_panel, _L("Pictures"), false);
916 });
917 add_build_step([this] {
919 m_tabpanel->AddPage(m_bill_of_materials_panel, _L("Bill of Materials"), false);
920 });
921 add_build_step([this] {
923 m_tabpanel->AddPage(m_assembly_panel, _L("Assembly Guide"), false);
924 });
925 add_build_step([this] {
927 m_tabpanel->AddPage(m_others_panel, _L("Others"), false);
928 Layout();
929 });
930}
@ BILL_OF_MATERIALS
Definition Auxiliary.hpp:76
@ OTHERS
Definition Auxiliary.hpp:78
@ MODEL_PICTURE
Definition Auxiliary.hpp:75
@ DESIGNER
Definition Auxiliary.hpp:80
@ ASSEMBLY_GUIDE
Definition Auxiliary.hpp:77
#define _L(s)
Definition OBJ.cpp:34
DesignerPanel * m_designer_panel
Definition Auxiliary.hpp:216
AuFolderPanel * m_bill_of_materials_panel
Definition Auxiliary.hpp:213
AuFolderPanel * m_pictures_panel
Definition Auxiliary.hpp:212
AuFolderPanel * m_others_panel
Definition Auxiliary.hpp:215
AuFolderPanel * m_assembly_panel
Definition Auxiliary.hpp:214
@ Hovered
Definition StateColor.hpp:20
@ Normal
Definition StateColor.hpp:16
@ Disabled
Definition StateColor.hpp:22
@ Pressed
Definition StateColor.hpp:21
static StateColor btn_bg_green(std::pair< wxColour, int >(wxColour(206, 206, 206), StateColor::Disabled), std::pair< wxColour, int >(wxColour(0, 137, 123), StateColor::Pressed), std::pair< wxColour, int >(wxColour(38, 166, 154), StateColor::Hovered), std::pair< wxColour, int >(wxColour(0, 150, 136), StateColor::Normal))

References _L, Slic3r::GUI::StagedBuild::add_build_step(), ASSEMBLY_GUIDE, BILL_OF_MATERIALS, Slic3r::GUI::btn_bg_green, DESIGNER, StateColor::Disabled, StateColor::Hovered, m_assembly_panel, m_bill_of_materials_panel, m_designer_panel, m_others_panel, m_pictures_panel, m_tabpanel, MODEL_PICTURE, StateColor::Normal, OTHERS, and StateColor::Pressed.

Referenced by AuxiliaryPanel().

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

◆ msw_rescale()

void Slic3r::GUI::AuxiliaryPanel::msw_rescale ( )
943 {
944 m_pictures_panel->msw_rescale();
945 m_bill_of_materials_panel->msw_rescale();
946 m_assembly_panel->msw_rescale();
947 m_others_panel->msw_rescale();
948 m_designer_panel->msw_rescale();
949}

References m_assembly_panel, m_bill_of_materials_panel, m_designer_panel, m_others_panel, and m_pictures_panel.

◆ on_import_file()

void Slic3r::GUI::AuxiliaryPanel::on_import_file ( wxCommandEvent & event)
968{
969 auto file_model = event.GetString();
970
971 wxString src_path;
972 wxString dst_path;
973
974 wxString wildcard = wxFileSelectorDefaultWildcardStr;
975
976 if (file_model == s_default_folders[MODEL_PICTURE]) {
977 //wildcard = wxT("JPEG files (*.jpeg)|*.jpeg|BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif|PNG files (*.png)|*.png|JPG files (*.jpg)|*.jpg");
978 wildcard = _L("Image files") + " (*.png;*.jpg;*.jpeg;*.bmp)|*.png;*.jpg;*.jpeg;*.bmp";
979 }
980
981 if (file_model == s_default_folders[OTHERS]) { wildcard = _L("TXT files") + " (*.txt)|*.txt"; }
982 if (file_model == s_default_folders[BILL_OF_MATERIALS]){ wildcard = _L("EXCEL files") + " (*.xls)|*.xls|" + _L("EXCEL files") + " (*.xlsx)|*.xlsx|" + _L("PDF files") + " (*.pdf)|*.pdf"; }
983 if (file_model == s_default_folders[ASSEMBLY_GUIDE]) { wildcard = _L("PDF files") + " (*.pdf)|*.pdf"; }
984
985 wxFileDialog dialog(this, _L("Choose files"), wxEmptyString, wxEmptyString, wildcard, wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_MULTIPLE);
986 if (dialog.ShowModal() == wxID_OK) {
987 wxArrayString file_paths;
988 dialog.GetPaths(file_paths);
989
990 for (wxString file_path : file_paths) {
991 // Copy imported file to project temp directory
992 fs::path src_bfs_path(file_path.ToStdWstring());
993 wxString dir_path = m_root_dir;
994 dir_path += "/" + file_model;
995
996
997
998 auto is_exist = false;
999 auto iter = m_paths_list.find(file_model.ToStdString());
1000 if (iter != m_paths_list.end()) {
1001 std::vector<fs::path> list = iter->second;
1002 for (auto i = 0; i < list.size(); i++) {
1003 if (src_bfs_path.filename() == list[i].filename()) {
1004 is_exist = true;
1005 break;
1006 }
1007 }
1008 }
1009
1010 if (!is_exist) {
1011 dir_path += "/";
1012 dir_path += src_bfs_path.filename().generic_wstring();
1013 } else {
1014 time_t t1 = time(0);
1015 char ch1[64];
1016 strftime(ch1, sizeof(ch1), "%T", localtime(&t1));
1017 std::string time_text = ch1;
1018
1019 wxString name = src_bfs_path.filename().generic_wstring();
1020 auto before_name = replaceSpace(name.ToStdString(), src_bfs_path.extension().string(), "");
1021 time_text = replaceSpace(time_text, ":", "_");
1022 dir_path += wxString("/") + before_name + "_" + time_text + src_bfs_path.extension().wstring();
1023 }
1024
1025
1026 boost::system::error_code ec;
1027 if (!fs::copy_file(src_bfs_path, fs::path(dir_path.ToStdWstring()), fs::copy_options::overwrite_existing, ec)) continue;
1029
1030 // add in file list
1031 iter = m_paths_list.find(file_model.ToStdString());
1032 auto file_fs_path = fs::path(dir_path.ToStdWstring());
1033 if (iter != m_paths_list.end()) {
1034 m_paths_list[file_model.ToStdString()].push_back(file_fs_path);
1035 } else {
1036 m_paths_list[file_model.ToStdString()] = std::vector<fs::path>{file_fs_path};
1037 }
1038 }
1041 }
1042}
static const std::array< wxString, 5 > s_default_folders
Definition Auxiliary.hpp:84
std::string replaceSpace(std::string s, std::string ts, std::string ns)
Definition Auxiliary.cpp:1060
void put_other_changes()
Definition bbs_3mf.cpp:9838

References _L, ASSEMBLY_GUIDE, BILL_OF_MATERIALS, m_paths_list, m_root_dir, MODEL_PICTURE, OTHERS, Slic3r::put_other_changes(), replaceSpace(), s_default_folders, update_all_cover(), and update_all_panel().

Referenced by AuxiliaryPanel().

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

◆ on_size()

void Slic3r::GUI::AuxiliaryPanel::on_size ( wxSizeEvent & event)
952{
953 if (!wxGetApp().mainframe) return;
954 Layout();
955 Refresh();
956}

Referenced by AuxiliaryPanel().

Here is the caller graph for this function:

◆ Reload()

void Slic3r::GUI::AuxiliaryPanel::Reload ( wxString aux_path,
std::map< std::string, std::vector< nlohmann::json > > paths )
1068{
1069 m_root_dir = aux_path;
1070 m_paths_list.clear();
1071
1072 for (const auto & path : paths) {
1073 m_paths_list[path.first] = std::vector<fs::path>{};
1074 for (const auto & j : path.second) {
1075 m_paths_list[path.first].push_back(j["_filepath"]);
1076 }
1077 }
1078
1081 m_designer_panel->update_info();
1082 m_tabpanel->SetSelection(0);
1083}

References m_designer_panel, m_paths_list, m_root_dir, m_tabpanel, update_all_cover(), and update_all_panel().

Referenced by init_auxiliary().

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

◆ replaceSpace()

std::string Slic3r::GUI::AuxiliaryPanel::replaceSpace ( std::string s,
std::string ts,
std::string ns )
1061{
1062 int index = -1;
1063 while ((index = s.find(ts.c_str())) >= 0) { s = s.replace(index, ts.length(), ns.c_str()); }
1064 return s;
1065}

Referenced by on_import_file().

Here is the caller graph for this function:

◆ Show()

bool Slic3r::GUI::AuxiliaryPanel::Show ( bool show)
958{ return wxPanel::Show(show); }

◆ Split()

void Slic3r::GUI::AuxiliaryPanel::Split ( const std::string & src,
const std::string & separator,
std::vector< std::string > & dest )
853{
854 std::string str = src;
855 std::string substring;
856 std::string::size_type start = 0, index;
857 dest.clear();
858 index = str.find_first_of(separator, start);
859 do {
860 if (index != std::string::npos) {
861 substring = str.substr(start, index - start);
862 dest.push_back(substring);
863 start = index + separator.size();
864 index = str.find(separator, start);
865 if (start == std::string::npos) break;
866 }
867 } while (index != std::string::npos);
868
869 // the last part
870 substring = str.substr(start);
871 dest.push_back(substring);
872}

◆ unfinished_child()

StagedBuild * Slic3r::GUI::StagedBuild::unfinished_child ( ) const
inlineprivateinherited
52 {
53 auto it = std::find_if(m_children.begin(), m_children.end(), [](const StagedBuild* child) { return !child->built(); });
54 return it == m_children.end() ? nullptr : *it;
55 }

References m_children.

Referenced by build_step().

Here is the caller graph for this function:

◆ update_all_cover()

void Slic3r::GUI::AuxiliaryPanel::update_all_cover ( )
1105{
1106 std::map<std::string, std::vector<fs::path>>::iterator mit;
1107 for (mit = m_paths_list.begin(); mit != m_paths_list.end(); mit++) {
1108 if (mit->first == "Model Pictures") { m_pictures_panel->update_cover(); }
1109 }
1110}

References m_paths_list, and m_pictures_panel.

Referenced by AuxiliaryPanel(), on_import_file(), and Reload().

Here is the caller graph for this function:

◆ update_all_panel()

void Slic3r::GUI::AuxiliaryPanel::update_all_panel ( )
1086{
1087 std::map<std::string, std::vector<fs::path>>::iterator mit;
1088
1089 Freeze();
1090 m_pictures_panel->clear();
1092 m_assembly_panel->clear();
1093 m_others_panel->clear();
1094
1095 for (mit = m_paths_list.begin(); mit != m_paths_list.end(); mit++) {
1096 if (mit->first == "Model Pictures") { m_pictures_panel->update(mit->second); }
1097 if (mit->first == "Bill of Materials") { m_bill_of_materials_panel->update(mit->second); }
1098 if (mit->first == "Assembly Guide") { m_assembly_panel->update(mit->second); }
1099 if (mit->first == "Others") { m_others_panel->update(mit->second); }
1100 }
1101 Thaw();
1102}

References m_assembly_panel, m_bill_of_materials_panel, m_others_panel, m_paths_list, and m_pictures_panel.

Referenced by AuxiliaryPanel(), on_import_file(), and Reload().

Here is the caller graph for this function:

Member Data Documentation

◆ m_arrow_img

wxBitmap Slic3r::GUI::AuxiliaryPanel::m_arrow_img
private

◆ m_assembly_panel

AuFolderPanel* Slic3r::GUI::AuxiliaryPanel::m_assembly_panel = {nullptr}
private
214{nullptr};

Referenced by init_tabpanel(), msw_rescale(), and update_all_panel().

◆ m_bill_of_materials_panel

AuFolderPanel* Slic3r::GUI::AuxiliaryPanel::m_bill_of_materials_panel = {nullptr}
private
213{nullptr};

Referenced by init_tabpanel(), msw_rescale(), and update_all_panel().

◆ m_children

std::vector<StagedBuild*> Slic3r::GUI::StagedBuild::m_children
privateinherited

◆ m_designer_panel

DesignerPanel* Slic3r::GUI::AuxiliaryPanel::m_designer_panel = {nullptr}
private
216{nullptr};

Referenced by init_tabpanel(), msw_rescale(), and Reload().

◆ m_main_sizer

wxSizer* Slic3r::GUI::AuxiliaryPanel::m_main_sizer = {nullptr}
private
210{nullptr};

Referenced by AuxiliaryPanel().

◆ m_next_step

size_t Slic3r::GUI::StagedBuild::m_next_step { 0 }
privateinherited
59{ 0 };

Referenced by add_build_steps_of(), build_step(), and built().

◆ m_others_panel

AuFolderPanel* Slic3r::GUI::AuxiliaryPanel::m_others_panel = {nullptr}
private
215{nullptr};

Referenced by init_tabpanel(), msw_rescale(), and update_all_panel().

◆ m_paths_list

std::map<std::string, std::vector<boost::filesystem::path> > Slic3r::GUI::AuxiliaryPanel::m_paths_list

◆ m_pictures_panel

AuFolderPanel* Slic3r::GUI::AuxiliaryPanel::m_pictures_panel = {nullptr}
private

◆ m_printer_img

wxBitmap Slic3r::GUI::AuxiliaryPanel::m_printer_img
private

◆ m_root_dir

wxString Slic3r::GUI::AuxiliaryPanel::m_root_dir

◆ m_signal_middle_img

wxBitmap Slic3r::GUI::AuxiliaryPanel::m_signal_middle_img
private

◆ m_signal_no_img

wxBitmap Slic3r::GUI::AuxiliaryPanel::m_signal_no_img
private

◆ m_signal_strong_img

wxBitmap Slic3r::GUI::AuxiliaryPanel::m_signal_strong_img
private

◆ m_signal_weak_img

wxBitmap Slic3r::GUI::AuxiliaryPanel::m_signal_weak_img
private

◆ m_steps

std::vector<std::function<void()> > Slic3r::GUI::StagedBuild::m_steps
privateinherited

◆ m_tabpanel

Tabbook* Slic3r::GUI::AuxiliaryPanel::m_tabpanel = {nullptr}
private
209{nullptr};

Referenced by AuxiliaryPanel(), init_tabpanel(), and Reload().


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