#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/BBLTopbar.hpp>
Public Member Functions | |
| BBLTopbar (wxWindow *pwin, wxFrame *parent) | |
| BBLTopbar (wxFrame *parent) | |
| void | Init (wxFrame *parent) |
| ~BBLTopbar () | |
| void | UpdateToolbarWidth (int width) |
| void | Rescale () |
| void | OnIconize (wxAuiToolBarEvent &event) |
| void | OnFullScreen (wxAuiToolBarEvent &event) |
| void | OnCloseFrame (wxAuiToolBarEvent &event) |
| void | OnFileToolItem (wxAuiToolBarEvent &evt) |
| void | OnDropdownToolItem (wxAuiToolBarEvent &evt) |
| void | OnCalibToolItem (wxAuiToolBarEvent &evt) |
| void | OnMouseLeftDClock (wxMouseEvent &mouse) |
| void | OnMouseLeftDown (wxMouseEvent &event) |
| void | OnMouseLeftUp (wxMouseEvent &event) |
| void | OnMouseMotion (wxMouseEvent &event) |
| void | OnMouseCaptureLost (wxMouseCaptureLostEvent &event) |
| void | OnMenuClose (wxMenuEvent &event) |
| void | OnOpenProject (wxAuiToolBarEvent &event) |
| void | OnSaveProject (wxAuiToolBarEvent &event) |
| void | OnUndo (wxAuiToolBarEvent &event) |
| void | OnRedo (wxAuiToolBarEvent &event) |
| void | OnModelStoreClicked (wxAuiToolBarEvent &event) |
| wxAuiToolBarItem * | FindToolByCurrentPosition () |
| void | SetFileMenu (wxMenu *file_menu) |
| void | AddDropDownSubMenu (wxMenu *sub_menu, const wxString &title) |
| void | AddDropDownMenuItem (wxMenuItem *menu_item) |
| wxMenu * | GetTopMenu () |
| wxMenu * | GetCalibMenu () |
| void | SetTitle (wxString title) |
| void | SetMaximizedSize () |
| void | SetWindowSize () |
| void | EnableUndoRedoItems () |
| void | DisableUndoRedoItems () |
| void | EnableUndoRedo (bool undo, bool redo) |
| void | SaveNormalRect () |
| void | ShowCalibrationButton (bool show=true) |
Private Attributes | |
| wxFrame * | m_frame |
| wxAuiToolBarItem * | m_file_menu_item |
| wxAuiToolBarItem * | m_dropdown_menu_item |
| wxRect | m_normalRect |
| wxPoint | m_delta |
| wxPoint | m_last_mouse_position {wxDefaultPosition} |
| wxMenu | m_top_menu |
| wxMenu * | m_file_menu |
| wxMenu | m_calib_menu |
| CenteredTitle * | m_title_ctrl { nullptr } |
| wxString | m_titleText |
| wxAuiToolBarItem * | m_undo_item |
| wxAuiToolBarItem * | m_redo_item |
| wxAuiToolBarItem * | m_calib_item |
| wxAuiToolBarItem * | maximize_btn |
| wxBitmap | maximize_bitmap |
| wxBitmap | window_bitmap |
| int | m_toolbar_h |
| bool | m_skip_popup_file_menu |
| bool | m_skip_popup_dropdown_menu |
| bool | m_skip_popup_calib_menu |
| BBLTopbar::BBLTopbar | ( | wxWindow * | pwin, |
| wxFrame * | parent ) |
References ID_TOOL_BAR, and Init().
| BBLTopbar::BBLTopbar | ( | wxFrame * | parent | ) |
References ID_TOOL_BAR, and Init().
| BBLTopbar::~BBLTopbar | ( | ) |
References m_dropdown_menu_item, m_file_menu, and m_file_menu_item.
| void BBLTopbar::AddDropDownMenuItem | ( | wxMenuItem * | menu_item | ) |
References m_top_menu.
| void BBLTopbar::AddDropDownSubMenu | ( | wxMenu * | sub_menu, |
| const wxString & | title ) |
References m_top_menu.
| void BBLTopbar::DisableUndoRedoItems | ( | ) |
References m_calib_item, m_redo_item, and m_undo_item.
| void BBLTopbar::EnableUndoRedo | ( | bool | undo, |
| bool | redo ) |
References m_redo_item, and m_undo_item.
| void BBLTopbar::EnableUndoRedoItems | ( | ) |
References m_calib_item, m_redo_item, and m_undo_item.
| wxAuiToolBarItem * BBLTopbar::FindToolByCurrentPosition | ( | ) |
References m_last_mouse_position.
Referenced by OnMenuClose().
| wxMenu * BBLTopbar::GetCalibMenu | ( | ) |
References m_calib_menu.
| wxMenu * BBLTopbar::GetTopMenu | ( | ) |
References m_top_menu.
| void BBLTopbar::Init | ( | wxFrame * | parent | ) |
References _L, Label::Body_12, create_scaled_bitmap(), ID_CALIB, ID_TOP_DROPDOWN_MENU, ID_TOP_FILE_MENU, m_calib_item, m_dropdown_menu_item, m_file_menu_item, m_frame, m_last_mouse_position, m_redo_item, m_skip_popup_calib_menu, m_skip_popup_dropdown_menu, m_skip_popup_file_menu, m_title_ctrl, m_toolbar_h, m_undo_item, maximize_bitmap, maximize_btn, OnCalibToolItem(), OnCloseFrame(), OnDropdownToolItem(), OnFileToolItem(), OnFullScreen(), OnIconize(), OnMenuClose(), OnMouseCaptureLost(), OnMouseLeftDClock(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMotion(), OnOpenProject(), OnRedo(), OnSaveProject(), OnUndo(), TOPBAR_ICON_SIZE, window_bitmap, and Slic3r::GUI::wxMouseEvent.
Referenced by BBLTopbar(), and BBLTopbar().
| void BBLTopbar::OnCalibToolItem | ( | wxAuiToolBarEvent & | evt | ) |
References ID_CALIB, m_calib_menu, and m_skip_popup_calib_menu.
Referenced by Init().
| void BBLTopbar::OnCloseFrame | ( | wxAuiToolBarEvent & | event | ) |
| void BBLTopbar::OnDropdownToolItem | ( | wxAuiToolBarEvent & | evt | ) |
References ID_TOP_DROPDOWN_MENU, m_skip_popup_dropdown_menu, and m_top_menu.
Referenced by Init().
| void BBLTopbar::OnFileToolItem | ( | wxAuiToolBarEvent & | evt | ) |
References ID_TOP_FILE_MENU, m_file_menu, and m_skip_popup_file_menu.
Referenced by Init().
| void BBLTopbar::OnFullScreen | ( | wxAuiToolBarEvent & | event | ) |
References m_frame, and m_normalRect.
Referenced by Init(), and OnMouseLeftDClock().
| void BBLTopbar::OnIconize | ( | wxAuiToolBarEvent & | event | ) |
| void BBLTopbar::OnMenuClose | ( | wxMenuEvent & | event | ) |
References FindToolByCurrentPosition(), m_dropdown_menu_item, m_file_menu_item, m_skip_popup_dropdown_menu, and m_skip_popup_file_menu.
Referenced by Init().
| void BBLTopbar::OnModelStoreClicked | ( | wxAuiToolBarEvent & | event | ) |
| void BBLTopbar::OnMouseCaptureLost | ( | wxMouseCaptureLostEvent & | event | ) |
| void BBLTopbar::OnMouseLeftDClock | ( | wxMouseEvent & | mouse | ) |
References m_frame, m_last_mouse_position, m_title_ctrl, OnFullScreen(), and Slic3r::GUI::wxMouseEvent.
Referenced by Init().
| void BBLTopbar::OnMouseLeftDown | ( | wxMouseEvent & | event | ) |
References m_delta, m_frame, m_last_mouse_position, m_title_ctrl, and Slic3r::GUI::wxMouseEvent.
Referenced by Init().
| void BBLTopbar::OnMouseLeftUp | ( | wxMouseEvent & | event | ) |
References m_last_mouse_position, and Slic3r::GUI::wxMouseEvent.
Referenced by Init().
| void BBLTopbar::OnMouseMotion | ( | wxMouseEvent & | event | ) |
References m_delta, m_frame, m_last_mouse_position, m_normalRect, and Slic3r::GUI::wxMouseEvent.
Referenced by Init().
| void BBLTopbar::OnOpenProject | ( | wxAuiToolBarEvent & | event | ) |
References m_frame, Slic3r::GUI::MainFrame::plater(), and Slic3r::GUI::plater().
Referenced by Init().
| void BBLTopbar::OnRedo | ( | wxAuiToolBarEvent & | event | ) |
References m_frame, Slic3r::GUI::MainFrame::plater(), and Slic3r::GUI::plater().
Referenced by Init().
| void BBLTopbar::OnSaveProject | ( | wxAuiToolBarEvent & | event | ) |
References m_frame, Slic3r::GUI::MainFrame::plater(), and Slic3r::GUI::plater().
Referenced by Init().
| void BBLTopbar::OnUndo | ( | wxAuiToolBarEvent & | event | ) |
References m_frame, Slic3r::GUI::MainFrame::plater(), and Slic3r::GUI::plater().
Referenced by Init().
| void BBLTopbar::Rescale | ( | ) |
References create_scaled_bitmap(), em_unit(), ID_CALIB, ID_TOP_DROPDOWN_MENU, ID_TOP_FILE_MENU, m_frame, m_title_ctrl, m_titleText, maximize_bitmap, TOPBAR_ICON_SIZE, and window_bitmap.
| void BBLTopbar::SaveNormalRect | ( | ) |
References m_frame, and m_normalRect.
| void BBLTopbar::SetFileMenu | ( | wxMenu * | file_menu | ) |
References m_file_menu.
| void BBLTopbar::SetMaximizedSize | ( | ) |
References maximize_bitmap, and maximize_btn.
| void BBLTopbar::SetTitle | ( | wxString | title | ) |
References m_title_ctrl, and m_titleText.
| void BBLTopbar::SetWindowSize | ( | ) |
References maximize_btn, and window_bitmap.
| void BBLTopbar::ShowCalibrationButton | ( | bool | show = true | ) |
References m_calib_item.
| void BBLTopbar::UpdateToolbarWidth | ( | int | width | ) |
References m_toolbar_h.
|
private |
Referenced by DisableUndoRedoItems(), EnableUndoRedoItems(), Init(), and ShowCalibrationButton().
|
private |
Referenced by GetCalibMenu(), and OnCalibToolItem().
|
private |
Referenced by OnMouseLeftDown(), and OnMouseMotion().
|
private |
Referenced by ~BBLTopbar(), Init(), and OnMenuClose().
|
private |
Referenced by ~BBLTopbar(), OnFileToolItem(), and SetFileMenu().
|
private |
Referenced by ~BBLTopbar(), Init(), and OnMenuClose().
|
private |
Referenced by Init(), OnCloseFrame(), OnFullScreen(), OnIconize(), OnMouseLeftDClock(), OnMouseLeftDown(), OnMouseMotion(), OnOpenProject(), OnRedo(), OnSaveProject(), OnUndo(), Rescale(), and SaveNormalRect().
|
private |
Referenced by FindToolByCurrentPosition(), Init(), OnMouseLeftDClock(), OnMouseLeftDown(), OnMouseLeftUp(), and OnMouseMotion().
|
private |
Referenced by OnFullScreen(), OnMouseMotion(), and SaveNormalRect().
|
private |
Referenced by DisableUndoRedoItems(), EnableUndoRedo(), EnableUndoRedoItems(), and Init().
|
private |
Referenced by Init(), and OnCalibToolItem().
|
private |
Referenced by Init(), OnDropdownToolItem(), and OnMenuClose().
|
private |
Referenced by Init(), OnFileToolItem(), and OnMenuClose().
|
private |
Referenced by Init(), OnMouseLeftDClock(), OnMouseLeftDown(), Rescale(), and SetTitle().
|
private |
Referenced by Rescale(), and SetTitle().
|
private |
Referenced by Init(), and UpdateToolbarWidth().
|
private |
Referenced by AddDropDownMenuItem(), AddDropDownSubMenu(), GetTopMenu(), and OnDropdownToolItem().
|
private |
Referenced by DisableUndoRedoItems(), EnableUndoRedo(), EnableUndoRedoItems(), and Init().
|
private |
Referenced by Init(), Rescale(), and SetMaximizedSize().
|
private |
Referenced by Init(), SetMaximizedSize(), and SetWindowSize().
|
private |
Referenced by Init(), Rescale(), and SetWindowSize().