#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Auxiliary.hpp>
Public Member Functions | |
| AuFile (wxWindow *parent, boost::filesystem::path file_path, wxString file_name, AuxiliaryFolderType type, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
| void | enter_rename_mode () |
| void | exit_rename_mode () |
| void | OnPaint (wxPaintEvent &evt) |
| void | PaintBackground (wxDC &dc) |
| void | OnEraseBackground (wxEraseEvent &evt) |
| void | PaintForeground (wxDC &dc) |
| void | on_mouse_enter (wxMouseEvent &evt) |
| void | on_mouse_leave (wxMouseEvent &evt) |
| void | on_input_enter (wxCommandEvent &evt) |
| void | on_dclick (wxMouseEvent &evt) |
| void | on_mouse_left_up (wxMouseEvent &evt) |
| void | on_set_cover () |
| void | on_set_delete () |
| void | on_set_rename () |
| void | on_set_open () |
| void | set_cover (bool cover) |
| void | msw_rescale () |
| ~AuFile () | |
Public Attributes | |
| AuxiliaryFolderType | m_type |
| bool | m_hover {false} |
| bool | m_cover {false} |
| wxStaticText * | m_text_name {nullptr} |
| ::TextInput * | m_input_name {nullptr} |
| boost::filesystem::path | m_file_path |
| wxString | m_add_file |
| wxString | m_file_name |
| wxString | cover_text_left |
| wxString | cover_text_right |
| wxString | cover_text_cover |
| ScalableBitmap | m_file_bitmap |
| ScalableBitmap | m_file_cover |
| ScalableBitmap | m_file_edit_mask |
| ScalableBitmap | m_file_delete |
| wxStaticBitmap * | m_file_exit_rename |
| ScalableBitmap | m_bitmap_excel |
| ScalableBitmap | m_bitmap_pdf |
| ScalableBitmap | m_bitmap_txt |
| Slic3r::GUI::AuFile::AuFile | ( | wxWindow * | parent, |
| boost::filesystem::path | file_path, | ||
| wxString | file_name, | ||
| AuxiliaryFolderType | type, | ||
| wxWindowID | id = wxID_ANY, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = wxTAB_TRAVERSAL ) |
References _L, ASSEMBLY_GUIDE, AUFILE_GREY300, AUFILE_PANEL_SIZE, AUFILE_PICTURES_PANEL_SIZE, AUFILE_PICTURES_SIZE, AUFILE_TEXT_HEIGHT, BILL_OF_MATERIALS, Label::Body_13, Label::Body_14, cover_text_cover, cover_text_left, cover_text_right, create_scaled_bitmap(), StateColor::darkModeColorFor(), Slic3r::encode_path(), exit_rename_mode(), m_add_file, m_bitmap_excel, m_bitmap_pdf, m_bitmap_txt, m_file_bitmap, m_file_cover, m_file_delete, m_file_edit_mask, m_file_exit_rename, m_file_name, m_file_path, m_input_name, m_text_name, m_type, MODEL_PICTURE, on_dclick(), on_input_enter(), on_mouse_enter(), on_mouse_leave(), on_mouse_left_up(), OnEraseBackground(), OnPaint(), OTHERS, style, and wxStaticText.
| Slic3r::GUI::AuFile::~AuFile | ( | ) |
| void Slic3r::GUI::AuFile::enter_rename_mode | ( | ) |
References m_file_exit_rename, m_file_name, m_input_name, and m_text_name.
Referenced by on_set_rename().
| void Slic3r::GUI::AuFile::exit_rename_mode | ( | ) |
References m_file_exit_rename, m_input_name, and m_text_name.
Referenced by AuFile(), on_input_enter(), and on_mouse_left_up().
| void Slic3r::GUI::AuFile::msw_rescale | ( | ) |
References ASSEMBLY_GUIDE, BILL_OF_MATERIALS, Slic3r::encode_path(), m_bitmap_excel, m_bitmap_pdf, m_bitmap_txt, m_file_bitmap, m_file_cover, m_file_delete, m_file_edit_mask, m_file_path, m_type, MODEL_PICTURE, and OTHERS.
Referenced by Slic3r::GUI::AuFolderPanel::msw_rescale().
| void Slic3r::GUI::AuFile::on_dclick | ( | wxMouseEvent & | evt | ) |
References AddFileButton, Slic3r::GUI::desktop_open_project_attachment(), m_file_path, m_type, and Slic3r::GUI::wxMouseEvent.
Referenced by AuFile().
| void Slic3r::GUI::AuFile::on_input_enter | ( | wxCommandEvent & | evt | ) |
References _L, _u8L, exit_rename_mode(), Slic3r::GUI::from_u8(), Slic3r::PresetCollection::get_suffix_modified(), m_file_name, m_file_path, m_input_name, m_text_name, m_type, NoValid, s_default_folders, and Valid.
Referenced by AuFile().
| void Slic3r::GUI::AuFile::on_mouse_enter | ( | wxMouseEvent & | evt | ) |
References m_hover, and Slic3r::GUI::wxMouseEvent.
Referenced by AuFile().
| void Slic3r::GUI::AuFile::on_mouse_leave | ( | wxMouseEvent & | evt | ) |
References m_hover, and Slic3r::GUI::wxMouseEvent.
Referenced by AuFile().
| void Slic3r::GUI::AuFile::on_mouse_left_up | ( | wxMouseEvent & | evt | ) |
References AddFileButton, AUFILE_PICTURES_SIZE, AUFILE_SIZE, exit_rename_mode(), m_file_delete, m_file_edit_mask, m_type, MODEL_PICTURE, on_set_cover(), on_set_delete(), on_set_rename(), and Slic3r::GUI::wxMouseEvent.
Referenced by AuFile().
| void Slic3r::GUI::AuFile::on_set_cover | ( | ) |
References _3MF_COVER_SIZE, Slic3r::encode_path(), Slic3r::GUI::ensure_model_info(), Slic3r::GUI::generate_image(), Slic3r::GUI::into_path(), m_file_name, m_file_path, m_type, PRINTER_THUMBNAIL_MIDDLE_SIZE, PRINTER_THUMBNAIL_SMALL_SIZE, and s_default_folders.
Referenced by on_mouse_left_up().
| void Slic3r::GUI::AuFile::on_set_delete | ( | ) |
References Slic3r::encode_path(), m_cover, m_file_name, m_file_path, m_type, Slic3r::GUI::plater(), and s_default_folders.
Referenced by on_mouse_left_up().
| void Slic3r::GUI::AuFile::on_set_open | ( | ) |
| void Slic3r::GUI::AuFile::on_set_rename | ( | ) |
References enter_rename_mode().
Referenced by on_mouse_left_up().
| void Slic3r::GUI::AuFile::OnEraseBackground | ( | wxEraseEvent & | evt | ) |
| void Slic3r::GUI::AuFile::OnPaint | ( | wxPaintEvent & | evt | ) |
References PaintBackground(), and PaintForeground().
Referenced by AuFile().
| void Slic3r::GUI::AuFile::PaintBackground | ( | wxDC & | dc | ) |
References AddFileButton, AUFILE_GREY200, AUFILE_GREY300, AUFILE_GREY500, AUFILE_PICTURES_SIZE, AUFILE_ROUNDING, AUFILE_SIZE, Label::Body_16, StateColor::darkModeColorFor(), m_add_file, m_file_bitmap, m_type, and MODEL_PICTURE.
Referenced by OnPaint().
| void Slic3r::GUI::AuFile::PaintForeground | ( | wxDC & | dc | ) |
References AddFileButton, ASSEMBLY_GUIDE, AUFILE_BRAND, AUFILE_PICTURES_SIZE, AUFILE_ROUNDING, AUFILE_SIZE, BILL_OF_MATERIALS, Label::Body_12, cover_text_cover, cover_text_left, cover_text_right, m_add_file, m_cover, m_file_cover, m_file_delete, m_file_edit_mask, m_hover, m_type, MODEL_PICTURE, and OTHERS.
Referenced by OnPaint().
| void Slic3r::GUI::AuFile::set_cover | ( | bool | cover | ) |
References m_cover.
Referenced by Slic3r::GUI::AuFolderPanel::update_cover().
| wxString Slic3r::GUI::AuFile::cover_text_cover |
Referenced by AuFile(), and PaintForeground().
| wxString Slic3r::GUI::AuFile::cover_text_left |
Referenced by AuFile(), and PaintForeground().
| wxString Slic3r::GUI::AuFile::cover_text_right |
Referenced by AuFile(), and PaintForeground().
| wxString Slic3r::GUI::AuFile::m_add_file |
Referenced by AuFile(), PaintBackground(), and PaintForeground().
| ScalableBitmap Slic3r::GUI::AuFile::m_bitmap_excel |
Referenced by AuFile(), and msw_rescale().
| ScalableBitmap Slic3r::GUI::AuFile::m_bitmap_pdf |
Referenced by AuFile(), and msw_rescale().
| ScalableBitmap Slic3r::GUI::AuFile::m_bitmap_txt |
Referenced by AuFile(), and msw_rescale().
| bool Slic3r::GUI::AuFile::m_cover {false} |
Referenced by on_set_delete(), PaintForeground(), and set_cover().
| ScalableBitmap Slic3r::GUI::AuFile::m_file_bitmap |
Referenced by AuFile(), msw_rescale(), and PaintBackground().
| ScalableBitmap Slic3r::GUI::AuFile::m_file_cover |
Referenced by AuFile(), msw_rescale(), and PaintForeground().
| ScalableBitmap Slic3r::GUI::AuFile::m_file_delete |
Referenced by AuFile(), msw_rescale(), on_mouse_left_up(), and PaintForeground().
| ScalableBitmap Slic3r::GUI::AuFile::m_file_edit_mask |
Referenced by AuFile(), msw_rescale(), on_mouse_left_up(), and PaintForeground().
| wxStaticBitmap* Slic3r::GUI::AuFile::m_file_exit_rename |
Referenced by AuFile(), enter_rename_mode(), and exit_rename_mode().
| wxString Slic3r::GUI::AuFile::m_file_name |
Referenced by AuFile(), enter_rename_mode(), on_input_enter(), on_set_cover(), on_set_delete(), and Slic3r::GUI::AuFolderPanel::update_cover().
| boost::filesystem::path Slic3r::GUI::AuFile::m_file_path |
Referenced by AuFile(), msw_rescale(), on_dclick(), on_input_enter(), on_set_cover(), and on_set_delete().
| bool Slic3r::GUI::AuFile::m_hover {false} |
Referenced by on_mouse_enter(), on_mouse_leave(), and PaintForeground().
| ::TextInput* Slic3r::GUI::AuFile::m_input_name {nullptr} |
Referenced by AuFile(), enter_rename_mode(), exit_rename_mode(), and on_input_enter().
| wxStaticText* Slic3r::GUI::AuFile::m_text_name {nullptr} |
Referenced by AuFile(), enter_rename_mode(), exit_rename_mode(), and on_input_enter().
| AuxiliaryFolderType Slic3r::GUI::AuFile::m_type |
Referenced by AuFile(), msw_rescale(), on_dclick(), on_input_enter(), on_mouse_left_up(), on_set_cover(), on_set_delete(), PaintBackground(), and PaintForeground().