mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-16 03:16:05 +08:00
reorder calibration menu items
This commit is contained in:
parent
cbbfc57f0f
commit
5ebb0daff0
@ -2458,8 +2458,19 @@ void MainFrame::init_menubar_as_editor()
|
|||||||
m_topbar->AddDropDownSubMenu(helpMenu, _L("Help"));
|
m_topbar->AddDropDownSubMenu(helpMenu, _L("Help"));
|
||||||
|
|
||||||
// SoftFever calibrations
|
// SoftFever calibrations
|
||||||
auto pa_menu = new wxMenu();
|
|
||||||
|
// Flowrate
|
||||||
|
auto flowrate_menu = new wxMenu();
|
||||||
|
append_menu_item(flowrate_menu, wxID_ANY, _L("Pass 1"), _L("Flow rate test - Pass 1"),
|
||||||
|
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_flowrate(1); }, "", nullptr,
|
||||||
|
[this]() {return m_plater->is_view3D_shown();; }, this);
|
||||||
|
append_menu_item(flowrate_menu, wxID_ANY, _L("Pass 2"), _L("Flow rate test - Pass 2"),
|
||||||
|
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_flowrate(2); }, "", nullptr,
|
||||||
|
[this]() {return m_plater->is_view3D_shown();; }, this);
|
||||||
|
m_topbar->GetCalibMenu()->AppendSubMenu(flowrate_menu, _L("Flow rate"));
|
||||||
|
|
||||||
// PA
|
// PA
|
||||||
|
auto pa_menu = new wxMenu();
|
||||||
append_menu_item(pa_menu, wxID_ANY, _L("Line method - DDE"), _L(""),
|
append_menu_item(pa_menu, wxID_ANY, _L("Line method - DDE"), _L(""),
|
||||||
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_pa(true, false); }, "", nullptr,
|
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_pa(true, false); }, "", nullptr,
|
||||||
[this]() {return m_plater->is_view3D_shown();; }, this);
|
[this]() {return m_plater->is_view3D_shown();; }, this);
|
||||||
@ -2474,16 +2485,6 @@ void MainFrame::init_menubar_as_editor()
|
|||||||
[this]() {return m_plater->is_view3D_shown();; }, this);
|
[this]() {return m_plater->is_view3D_shown();; }, this);
|
||||||
m_topbar->GetCalibMenu()->AppendSubMenu(pa_menu, _L("Presure/Linear Advance"));
|
m_topbar->GetCalibMenu()->AppendSubMenu(pa_menu, _L("Presure/Linear Advance"));
|
||||||
|
|
||||||
// Flowrate
|
|
||||||
auto flowrate_menu = new wxMenu();
|
|
||||||
append_menu_item(flowrate_menu, wxID_ANY, _L("Pass 1"), _L("Flow rate test - Pass 1"),
|
|
||||||
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_flowrate(1); }, "", nullptr,
|
|
||||||
[this]() {return m_plater->is_view3D_shown();; }, this);
|
|
||||||
append_menu_item(flowrate_menu, wxID_ANY, _L("Pass 2"), _L("Flow rate test - Pass 2"),
|
|
||||||
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_flowrate(2); }, "", nullptr,
|
|
||||||
[this]() {return m_plater->is_view3D_shown();; }, this);
|
|
||||||
m_topbar->GetCalibMenu()->AppendSubMenu(flowrate_menu, _L("Flow rate"));
|
|
||||||
|
|
||||||
// help
|
// help
|
||||||
append_menu_item(m_topbar->GetCalibMenu(), wxID_ANY, _L("Tutorial"), _L("Calibration help"),
|
append_menu_item(m_topbar->GetCalibMenu(), wxID_ANY, _L("Tutorial"), _L("Calibration help"),
|
||||||
[this](wxCommandEvent&) { wxLaunchDefaultBrowser("https://github.com/SoftFever/BambuStudio-SoftFever/wiki/Calibration", wxBROWSER_NEW_WINDOW); }, "", nullptr,
|
[this](wxCommandEvent&) { wxLaunchDefaultBrowser("https://github.com/SoftFever/BambuStudio-SoftFever/wiki/Calibration", wxBROWSER_NEW_WINDOW); }, "", nullptr,
|
||||||
@ -2503,8 +2504,18 @@ void MainFrame::init_menubar_as_editor()
|
|||||||
// SoftFever calibrations
|
// SoftFever calibrations
|
||||||
auto calib_menu = new wxMenu();
|
auto calib_menu = new wxMenu();
|
||||||
|
|
||||||
auto pa_menu = new wxMenu();
|
// Flowrate
|
||||||
|
auto flowrate_menu = new wxMenu();
|
||||||
|
append_menu_item(flowrate_menu, wxID_ANY, _L("Pass 1"), _L("Flow rate test - Pass 1"),
|
||||||
|
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_flowrate(1); }, "", nullptr,
|
||||||
|
[this]() {return m_plater->is_view3D_shown();; }, this);
|
||||||
|
append_menu_item(flowrate_menu, wxID_ANY, _L("Pass 2"), _L("Flow rate test - Pass 2"),
|
||||||
|
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_flowrate(2); }, "", nullptr,
|
||||||
|
[this]() {return m_plater->is_view3D_shown();; }, this);
|
||||||
|
calib_menu->AppendSubMenu(flowrate_menu, _L("Flow rate"));
|
||||||
|
|
||||||
// PA
|
// PA
|
||||||
|
auto pa_menu = new wxMenu();
|
||||||
append_menu_item(pa_menu, wxID_ANY, _L("Line method - DDE"), _L(""),
|
append_menu_item(pa_menu, wxID_ANY, _L("Line method - DDE"), _L(""),
|
||||||
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_pa(true, false); }, "", nullptr,
|
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_pa(true, false); }, "", nullptr,
|
||||||
[this]() {return m_plater->is_view3D_shown();; }, this);
|
[this]() {return m_plater->is_view3D_shown();; }, this);
|
||||||
@ -2519,16 +2530,6 @@ void MainFrame::init_menubar_as_editor()
|
|||||||
[this]() {return m_plater->is_view3D_shown();; }, this);
|
[this]() {return m_plater->is_view3D_shown();; }, this);
|
||||||
calib_menu->AppendSubMenu(pa_menu, _L("Presure/Linear Advance"));
|
calib_menu->AppendSubMenu(pa_menu, _L("Presure/Linear Advance"));
|
||||||
|
|
||||||
// Flowrate
|
|
||||||
auto flowrate_menu = new wxMenu();
|
|
||||||
append_menu_item(flowrate_menu, wxID_ANY, _L("Pass 1"), _L("Flow rate test - Pass 1"),
|
|
||||||
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_flowrate(1); }, "", nullptr,
|
|
||||||
[this]() {return m_plater->is_view3D_shown();; }, this);
|
|
||||||
append_menu_item(flowrate_menu, wxID_ANY, _L("Pass 2"), _L("Flow rate test - Pass 2"),
|
|
||||||
[this](wxCommandEvent&) { if (m_plater) m_plater->calib_flowrate(2); }, "", nullptr,
|
|
||||||
[this]() {return m_plater->is_view3D_shown();; }, this);
|
|
||||||
calib_menu->AppendSubMenu(flowrate_menu, _L("Flow rate"));
|
|
||||||
|
|
||||||
// help
|
// help
|
||||||
append_menu_item(calib_menu, wxID_ANY, _L("Tutorial"), _L("Calibration help"),
|
append_menu_item(calib_menu, wxID_ANY, _L("Tutorial"), _L("Calibration help"),
|
||||||
[this](wxCommandEvent&) { wxLaunchDefaultBrowser("https://github.com/SoftFever/BambuStudio-SoftFever/wiki/Calibration", wxBROWSER_NEW_WINDOW); }, "", nullptr,
|
[this](wxCommandEvent&) { wxLaunchDefaultBrowser("https://github.com/SoftFever/BambuStudio-SoftFever/wiki/Calibration", wxBROWSER_NEW_WINDOW); }, "", nullptr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user