Public Member Functions | |
| CtrlLine (wxCoord height, OG_CustomCtrl *ctrl, const Line &og_line, bool draw_just_act_buttons=false, bool draw_mode_bitmap=true) | |
| ~CtrlLine () | |
| int | get_max_win_width () |
| void | correct_items_positions () |
| void | msw_rescale () |
| void | update_visibility (ConfigOptionMode mode) |
| void | render_separator (wxDC &dc, wxCoord v_pos) |
| void | render (wxDC &dc, wxCoord h_pos, wxCoord v_pos) |
| wxCoord | draw_text (wxDC &dc, wxPoint pos, const wxString &text, const wxColour *color, int width, bool is_url=false, bool is_main=false) |
| wxPoint | draw_blinking_bmp (wxDC &dc, wxPoint pos, bool is_blinking) |
| wxPoint | draw_act_bmps (wxDC &dc, wxPoint pos, const wxBitmap &bmp_undo_to_sys, const wxBitmap &bmp_undo, bool is_blinking, size_t rect_id=0, bool is_main=false) |
| wxCoord | draw_edit_bmp (wxDC &dc, wxPoint pos, const wxBitmap &bmp_edit) |
| bool | launch_browser () const |
| bool | is_separator () const |
Public Attributes | |
| wxCoord | width { wxDefaultCoord } |
| wxCoord | height { wxDefaultCoord } |
| OG_CustomCtrl * | ctrl { nullptr } |
| const Line & | og_line |
| bool | draw_just_act_buttons { false } |
| bool | draw_mode_bitmap { true } |
| bool | is_visible { true } |
| bool | is_focused { false } |
| std::vector< wxRect > | rects_undo_icon |
| std::vector< wxRect > | rects_undo_to_sys_icon |
| std::vector< wxRect > | rects_edit_icon |
| wxRect | rect_label |
| Slic3r::GUI::OG_CustomCtrl::CtrlLine::CtrlLine | ( | wxCoord | height, |
| OG_CustomCtrl * | ctrl, | ||
| const Line & | og_line, | ||
| bool | draw_just_act_buttons = false, | ||
| bool | draw_mode_bitmap = true ) |
References Slic3r::GUI::OG_CustomCtrl::OG_CustomCtrl(), ctrl, draw_just_act_buttons, draw_mode_bitmap, height, og_line, rects_undo_icon, and rects_undo_to_sys_icon.
| void Slic3r::GUI::OG_CustomCtrl::CtrlLine::correct_items_positions | ( | ) |
References ctrl, draw_just_act_buttons, Slic3r::GUI::Field::getSizer(), Slic3r::GUI::Field::getWindow(), is_visible, and og_line.
Referenced by msw_rescale(), and update_visibility().
| wxPoint Slic3r::GUI::OG_CustomCtrl::CtrlLine::draw_act_bmps | ( | wxDC & | dc, |
| wxPoint | pos, | ||
| const wxBitmap & | bmp_undo_to_sys, | ||
| const wxBitmap & | bmp_undo, | ||
| bool | is_blinking, | ||
| size_t | rect_id = 0, | ||
| bool | is_main = false ) |
References ctrl, draw_blinking_bmp(), Slic3r::GUI::get_bitmap_size(), height, og_line, rects_undo_icon, and rects_undo_to_sys_icon.
Referenced by render().
| wxPoint Slic3r::GUI::OG_CustomCtrl::CtrlLine::draw_blinking_bmp | ( | wxDC & | dc, |
| wxPoint | pos, | ||
| bool | is_blinking ) |
References create_scaled_bitmap(), ctrl, Slic3r::GUI::get_bitmap_size(), and height.
Referenced by draw_act_bmps(), and render().
| wxCoord Slic3r::GUI::OG_CustomCtrl::CtrlLine::draw_edit_bmp | ( | wxDC & | dc, |
| wxPoint | pos, | ||
| const wxBitmap & | bmp_edit ) |
References ctrl, and rects_edit_icon.
Referenced by render().
| wxCoord Slic3r::GUI::OG_CustomCtrl::CtrlLine::draw_text | ( | wxDC & | dc, |
| wxPoint | pos, | ||
| const wxString & | text, | ||
| const wxColour * | color, | ||
| int | width, | ||
| bool | is_url = false, | ||
| bool | is_main = false ) |
References ctrl, StateColor::darkModeColorFor(), height, is_focused, og_line, rect_label, Label::split_lines(), and width.
Referenced by render().
| int Slic3r::GUI::OG_CustomCtrl::CtrlLine::get_max_win_width | ( | ) |
References ctrl, draw_just_act_buttons, Slic3r::GUI::Field::getWindow(), and og_line.
|
inline |
| bool Slic3r::GUI::OG_CustomCtrl::CtrlLine::launch_browser | ( | ) | const |
References is_focused, Slic3r::GUI::OptionsGroup::launch_browser(), and og_line.
| void Slic3r::GUI::OG_CustomCtrl::CtrlLine::msw_rescale | ( | ) |
References correct_items_positions(), create_scaled_bitmap(), ctrl, draw_just_act_buttons, Slic3r::GUI::get_bitmap_size(), height, and og_line.
| void Slic3r::GUI::OG_CustomCtrl::CtrlLine::render | ( | wxDC & | dc, |
| wxCoord | h_pos, | ||
| wxCoord | v_pos ) |
To correct translation by context have to use wxGETTEXT_IN_CONTEXT macro from wxWidget 3.1.1
istead of (opt != option_set.back())
References _, _L_CONTEXT, Slic3r::GUI::UndoValueUIManager::blink(), ScalableBitmap::bmp(), Slic3r::GUI::Field::combine_side_text(), ctrl, StateColor::darkModeColorFor(), draw_act_bmps(), draw_blinking_bmp(), draw_edit_bmp(), draw_just_act_buttons, draw_text(), Slic3r::GUI::UndoValueUIManager::edit_bitmap(), Slic3r::GUI::get_bitmap_size(), Slic3r::GUI::Field::getSizer(), Slic3r::GUI::Field::getWindow(), Slic3r::GUI::UndoValueUIManager::has_edit_ui(), height, is_separator(), L_CONTEXT, Slic3r::ConfigOptionDef::label, Slic3r::GUI::UndoValueUIManager::label_color(), Slic3r::offset(), og_line, render_separator(), Slic3r::ConfigOptionDef::sidetext, Slic3r::GUI::UndoValueUIManager::undo_bitmap(), and Slic3r::GUI::UndoValueUIManager::undo_to_sys_bitmap().
| void Slic3r::GUI::OG_CustomCtrl::CtrlLine::render_separator | ( | wxDC & | dc, |
| wxCoord | v_pos ) |
| void Slic3r::GUI::OG_CustomCtrl::CtrlLine::update_visibility | ( | ConfigOptionMode | mode | ) |
References correct_items_positions(), ctrl, draw_just_act_buttons, Slic3r::GUI::Field::getSizer(), Slic3r::GUI::Field::getWindow(), is_visible, and og_line.
| OG_CustomCtrl* Slic3r::GUI::OG_CustomCtrl::CtrlLine::ctrl { nullptr } |
Referenced by CtrlLine(), ~CtrlLine(), correct_items_positions(), draw_act_bmps(), draw_blinking_bmp(), draw_edit_bmp(), draw_text(), get_max_win_width(), msw_rescale(), render(), render_separator(), and update_visibility().
| bool Slic3r::GUI::OG_CustomCtrl::CtrlLine::draw_just_act_buttons { false } |
Referenced by CtrlLine(), correct_items_positions(), get_max_win_width(), msw_rescale(), render(), and update_visibility().
| bool Slic3r::GUI::OG_CustomCtrl::CtrlLine::draw_mode_bitmap { true } |
Referenced by CtrlLine().
| wxCoord Slic3r::GUI::OG_CustomCtrl::CtrlLine::height { wxDefaultCoord } |
Referenced by CtrlLine(), draw_act_bmps(), draw_blinking_bmp(), draw_text(), msw_rescale(), and render().
| bool Slic3r::GUI::OG_CustomCtrl::CtrlLine::is_focused { false } |
Referenced by draw_text(), and launch_browser().
| bool Slic3r::GUI::OG_CustomCtrl::CtrlLine::is_visible { true } |
Referenced by correct_items_positions(), and update_visibility().
| const Line& Slic3r::GUI::OG_CustomCtrl::CtrlLine::og_line |
| wxRect Slic3r::GUI::OG_CustomCtrl::CtrlLine::rect_label |
Referenced by draw_text(), and Slic3r::GUI::OG_CustomCtrl::OnMotion().
| std::vector<wxRect> Slic3r::GUI::OG_CustomCtrl::CtrlLine::rects_edit_icon |
Referenced by draw_edit_bmp().
| std::vector<wxRect> Slic3r::GUI::OG_CustomCtrl::CtrlLine::rects_undo_icon |
Referenced by CtrlLine(), and draw_act_bmps().
| std::vector<wxRect> Slic3r::GUI::OG_CustomCtrl::CtrlLine::rects_undo_to_sys_icon |
Referenced by CtrlLine(), and draw_act_bmps().
| wxCoord Slic3r::GUI::OG_CustomCtrl::CtrlLine::width { wxDefaultCoord } |
Referenced by draw_text().