Different arrange dialog when seq printing is active

This commit is contained in:
Lukas Matena 2025-01-27 14:33:10 +01:00
parent 8a0e093862
commit e244eca3c2

View File

@ -7,6 +7,11 @@
#include "slic3r/GUI/format.hpp"
#include "slic3r/GUI/GUI.hpp"
// These two should not be here. 2.9.1 is getting near and we need a quick
// way of detecting if complete_objects is used.
#include "slic3r/GUI/GUI_App.hpp"
#include "libslic3r/PresetBundle.hpp"
namespace Slic3r { namespace GUI {
struct Settings {
@ -44,6 +49,7 @@ void ArrangeSettingsDialogImgui::render(float pos_x, float pos_y, bool current_b
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize |
ImGuiWindowFlags_NoCollapse);
if (! wxGetApp().preset_bundle->prints.get_edited_preset().config.opt_bool("complete_objects")) {
Settings settings;
read_settings(settings, m_db.get());
@ -128,8 +134,15 @@ void ArrangeSettingsDialogImgui::render(float pos_x, float pos_y, bool current_b
if (m_on_reset_btn)
m_on_reset_btn();
}
ImGui::SameLine();
} else {
ImGui::PushTextWrapPos(350.f);
ImGuiPureWrap::text(_u8L("Sequential printing is active. Arrange algorithm will use geometry of the printer "
"to optimize objects placement and avoid collisions with the gantry."));
ImGui::PopTextWrapPos();
ImGui::Separator();
}
if (!current_bed && ImGuiPureWrap::button(_u8L("Arrange")) && m_on_arrange_btn) {
m_on_arrange_btn();