#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DragDropPanel.hpp>
Public Member Functions | |
| DragDropPanel (wxWindow *parent, const wxString &label, bool is_auto, bool has_title=true, bool is_sub=false) | |
| void | AddColorBlock (const wxColour &color, const std::string &type, int filament_id, bool update_ui=true) |
| void | RemoveColorBlock (ColorPanel *panel, bool update_ui=true) |
| void | DoDragDrop (ColorPanel *panel, const wxColour &color, const std::string &type, int filament_id) |
| void | UpdateLabel (const wxString &label) |
| std::vector< int > | GetAllFilaments () const |
| void | set_is_draging (bool is_draging) |
| bool | is_draging () const |
| std::vector< ColorPanel * > | get_filament_blocks () const |
Private Member Functions | |
| void | NotifyDragDropCompleted () |
Private Attributes | |
| wxBoxSizer * | m_sizer |
| wxGridSizer * | m_grid_item_sizer |
| Label * | m_title_label = nullptr |
| bool | m_is_auto |
| std::vector< ColorPanel * > | m_filament_blocks |
| bool | m_is_draging = false |
| Slic3r::GUI::DragDropPanel::DragDropPanel | ( | wxWindow * | parent, |
| const wxString & | label, | ||
| bool | is_auto, | ||
| bool | has_title = true, | ||
| bool | is_sub = false ) |
References Label::Body_12, StateColor::darkModeColorFor(), Label::Head_13, Slic3r::is_auto(), m_grid_item_sizer, m_is_auto, m_sizer, and m_title_label.
| void Slic3r::GUI::DragDropPanel::AddColorBlock | ( | const wxColour & | color, |
| const std::string & | type, | ||
| int | filament_id, | ||
| bool | update_ui = true ) |
References m_filament_blocks, m_grid_item_sizer, NotifyDragDropCompleted(), and update_ui().
| void Slic3r::GUI::DragDropPanel::DoDragDrop | ( | ColorPanel * | panel, |
| const wxColour & | color, | ||
| const std::string & | type, | ||
| int | filament_id ) |
References m_is_auto, and RemoveColorBlock().
|
inline |
References m_filament_blocks.
| std::vector< int > Slic3r::GUI::DragDropPanel::GetAllFilaments | ( | ) | const |
References Slic3r::GUI::ColorPanel::GetFilamentId(), and m_grid_item_sizer.
|
inline |
References m_is_draging.
Referenced by set_is_draging().
|
private |
Referenced by AddColorBlock(), and RemoveColorBlock().
| void Slic3r::GUI::DragDropPanel::RemoveColorBlock | ( | ColorPanel * | panel, |
| bool | update_ui = true ) |
References m_filament_blocks, m_grid_item_sizer, NotifyDragDropCompleted(), and update_ui().
Referenced by DoDragDrop().
|
inline |
| void Slic3r::GUI::DragDropPanel::UpdateLabel | ( | const wxString & | label | ) |
References m_title_label.
|
private |
Referenced by AddColorBlock(), get_filament_blocks(), and RemoveColorBlock().
|
private |
Referenced by DragDropPanel(), AddColorBlock(), GetAllFilaments(), and RemoveColorBlock().
|
private |
Referenced by DragDropPanel(), and DoDragDrop().
|
private |
Referenced by is_draging(), and set_is_draging().
|
private |
Referenced by DragDropPanel().
Referenced by DragDropPanel(), and UpdateLabel().