mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 08:58:43 +03:00
thumbnail and calib
This commit is contained in:
@@ -831,12 +831,13 @@ void GUI_App::post_init()
|
||||
// preset_updater->sync downloads profile updates on background so it must begin after config wizard finished.
|
||||
bool cw_showed = this->config_wizard_startup();
|
||||
this->preset_updater->sync(preset_bundle, this);
|
||||
if (! cw_showed) {
|
||||
// The CallAfter is needed as well, without it, GL extensions did not show.
|
||||
// Also, we only want to show this when the wizard does not, so the new user
|
||||
// sees something else than "we want something" on the first start.
|
||||
show_send_system_info_dialog_if_needed();
|
||||
}
|
||||
//B52
|
||||
//if (! cw_showed) {
|
||||
// // The CallAfter is needed as well, without it, GL extensions did not show.
|
||||
// // Also, we only want to show this when the wizard does not, so the new user
|
||||
// // sees something else than "we want something" on the first start.
|
||||
// show_send_system_info_dialog_if_needed();
|
||||
//}
|
||||
// app version check is asynchronous and triggers blocking dialog window, better call it last
|
||||
this->app_version_check(false);
|
||||
});
|
||||
|
||||
@@ -313,6 +313,23 @@ GLGizmoEmboss::GLGizmoEmboss(GLCanvas3D &parent)
|
||||
// paste HEX unicode into notepad move cursor after unicode press [alt] + [x]
|
||||
}
|
||||
|
||||
//B34
|
||||
void GLGizmoEmboss::create_volume(ModelVolumeType volume_type, const Vec2d &mouse_pos, std::string str)
|
||||
{
|
||||
|
||||
if (!init_create(volume_type))
|
||||
return ;
|
||||
|
||||
// NOTE: change style manager - be carefull with order changes
|
||||
m_style_manager.get_font_prop().size_in_mm = 7;
|
||||
|
||||
DataBasePtr base = create_emboss_data_base(str, m_style_manager, m_text_lines, m_parent.get_selection(), volume_type, m_job_cancel);
|
||||
CreateVolumeParams input = create_input(m_parent, m_style_manager.get_style(), m_raycast_manager, volume_type);
|
||||
|
||||
start_create_volume_without_position(input, std::move(base));
|
||||
|
||||
|
||||
}
|
||||
|
||||
bool GLGizmoEmboss::create_volume(ModelVolumeType volume_type, const Vec2d& mouse_pos)
|
||||
{
|
||||
|
||||
@@ -5582,6 +5582,7 @@ void Plater::calib_pa_line(const double StartPA, double EndPA, double PAStep)
|
||||
const double e_per_mm = line_flow.mm3_per_mm() / filament_area * print_flow_ratio;
|
||||
|
||||
// Position aided model
|
||||
wxGetApp().plater()->get_camera().select_view("top");
|
||||
sidebar().obj_manipul()->on_change("position", 0, plate_center.x() - 50);
|
||||
sidebar().obj_manipul()->set_uniform_scaling(false);
|
||||
sidebar().obj_manipul()->on_change("size", 1, count * step_spacing + pa_line_width);
|
||||
@@ -5693,6 +5694,7 @@ void Plater::calib_pa_pattern(const double StartPA, double EndPA, double PAStep)
|
||||
double retract_speed = double(printer_config->opt_float("retract_speed", 0)) * 60;
|
||||
|
||||
// Position aided model
|
||||
wxGetApp().plater()->get_camera().select_view("top");
|
||||
sidebar().obj_manipul()->on_change("position", 0, plate_center.x() - 31);
|
||||
sidebar().obj_manipul()->set_uniform_scaling(false);
|
||||
sidebar().obj_manipul()->on_change("size", 1, pa_wall_width + line_spacing);
|
||||
@@ -5706,6 +5708,7 @@ void Plater::calib_pa_pattern(const double StartPA, double EndPA, double PAStep)
|
||||
num_str += "\n" + double_to_str(StartPA + (1 + i * 2) * PAStep);
|
||||
}
|
||||
|
||||
num_str += "\n\n";
|
||||
if (count % 2 == 0)
|
||||
add_num_text(num_str, Vec2d(plate_center.x() - 31, plate_center.y() + pa_wall_length / 4));
|
||||
else
|
||||
@@ -5872,7 +5875,7 @@ void Plater::add_num_text(std::string num, Vec2d posotion)
|
||||
if (volume_type == ModelVolumeType::INVALID)
|
||||
volume_type = ModelVolumeType::MODEL_PART;
|
||||
|
||||
// emboss->create_volume(volume_type, posotion, num);
|
||||
emboss->create_volume(volume_type, posotion, num);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -325,7 +325,9 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &updates, bool force_
|
||||
|
||||
if (! update.changelog_url.empty() && update.version.prerelease() == nullptr) {
|
||||
auto *line = new wxBoxSizer(wxHORIZONTAL);
|
||||
auto changelog_url = (boost::format(update.changelog_url) % lang_code).str();
|
||||
// auto changelog_url = (boost::format(update.changelog_url) % lang_code).str();
|
||||
//B51
|
||||
auto changelog_url = "";
|
||||
line->AddSpacer(3*VERT_SPACING);
|
||||
line->Add(new wxHyperlinkCtrl(this, wxID_ANY, _(L("Open changelog page")), changelog_url));
|
||||
versions->Add(line);
|
||||
|
||||
Reference in New Issue
Block a user