mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-27 22:51:58 +08:00
Different arrange dialog when seq printing is active
This commit is contained in:
parent
8a0e093862
commit
e244eca3c2
@ -7,6 +7,11 @@
|
|||||||
#include "slic3r/GUI/format.hpp"
|
#include "slic3r/GUI/format.hpp"
|
||||||
#include "slic3r/GUI/GUI.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 {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
struct Settings {
|
struct Settings {
|
||||||
@ -44,6 +49,7 @@ void ArrangeSettingsDialogImgui::render(float pos_x, float pos_y, bool current_b
|
|||||||
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize |
|
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize |
|
||||||
ImGuiWindowFlags_NoCollapse);
|
ImGuiWindowFlags_NoCollapse);
|
||||||
|
|
||||||
|
if (! wxGetApp().preset_bundle->prints.get_edited_preset().config.opt_bool("complete_objects")) {
|
||||||
Settings settings;
|
Settings settings;
|
||||||
read_settings(settings, m_db.get());
|
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)
|
if (m_on_reset_btn)
|
||||||
m_on_reset_btn();
|
m_on_reset_btn();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::SameLine();
|
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) {
|
if (!current_bed && ImGuiPureWrap::button(_u8L("Arrange")) && m_on_arrange_btn) {
|
||||||
m_on_arrange_btn();
|
m_on_arrange_btn();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user