|
|
|
@@ -116,12 +116,17 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
|
|
|
|
#endif // _WIN32
|
|
|
|
#endif // _WIN32
|
|
|
|
|
|
|
|
|
|
|
|
// initialize status bar
|
|
|
|
// initialize status bar
|
|
|
|
m_statusbar = std::make_shared<ProgressStatusBar>(this);
|
|
|
|
m_statusbar = std::make_shared<ProgressStatusBar>(this);
|
|
|
|
m_statusbar->set_font(GUI::wxGetApp().normal_font());
|
|
|
|
m_statusbar->set_font(GUI::wxGetApp().normal_font());
|
|
|
|
m_statusbar->embed(this);
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
m_statusbar->set_status_text(_(L("Version")) + " " +
|
|
|
|
#if ENABLE_GCODE_VIEWER
|
|
|
|
SLIC3R_VERSION +
|
|
|
|
if (wxGetApp().is_editor())
|
|
|
|
_(L(" - Remember to check for updates at https://github.com/prusa3d/PrusaSlicer/releases")));
|
|
|
|
#endif // ENABLE_GCODE_VIEWER
|
|
|
|
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
|
|
|
|
m_statusbar->embed(this);
|
|
|
|
|
|
|
|
m_statusbar->set_status_text(_L("Version") + " " +
|
|
|
|
|
|
|
|
SLIC3R_VERSION +
|
|
|
|
|
|
|
|
_L(" - Remember to check for updates at https://github.com/prusa3d/PrusaSlicer/releases"));
|
|
|
|
|
|
|
|
|
|
|
|
// initialize tabpanel and menubar
|
|
|
|
// initialize tabpanel and menubar
|
|
|
|
init_tabpanel();
|
|
|
|
init_tabpanel();
|
|
|
|
@@ -526,8 +531,7 @@ void MainFrame::shutdown()
|
|
|
|
void MainFrame::update_title()
|
|
|
|
void MainFrame::update_title()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
wxString title = wxEmptyString;
|
|
|
|
wxString title = wxEmptyString;
|
|
|
|
if (m_plater != nullptr)
|
|
|
|
if (m_plater != nullptr) {
|
|
|
|
{
|
|
|
|
|
|
|
|
// m_plater->get_project_filename() produces file name including path, but excluding extension.
|
|
|
|
// m_plater->get_project_filename() produces file name including path, but excluding extension.
|
|
|
|
// Don't try to remove the extension, it would remove part of the file name after the last dot!
|
|
|
|
// Don't try to remove the extension, it would remove part of the file name after the last dot!
|
|
|
|
wxString project = from_path(into_path(m_plater->get_project_filename()).filename());
|
|
|
|
wxString project = from_path(into_path(m_plater->get_project_filename()).filename());
|
|
|
|
@@ -535,7 +539,15 @@ void MainFrame::update_title()
|
|
|
|
title += (project + " - ");
|
|
|
|
title += (project + " - ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
|
|
|
|
#if ENABLE_GCODE_VIEWER
|
|
|
|
|
|
|
|
std::string build_id = wxGetApp().is_editor() ? SLIC3R_BUILD_ID : GCODEVIEWER_BUILD_ID;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
std::string build_id = SLIC3R_BUILD_ID;
|
|
|
|
std::string build_id = SLIC3R_BUILD_ID;
|
|
|
|
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
|
|
|
|
#endif // ENABLE_GCODE_VIEWER
|
|
|
|
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
size_t idx_plus = build_id.find('+');
|
|
|
|
size_t idx_plus = build_id.find('+');
|
|
|
|
if (idx_plus != build_id.npos) {
|
|
|
|
if (idx_plus != build_id.npos) {
|
|
|
|
// Parse what is behind the '+'. If there is a number, then it is a build number after the label, and full build ID is shown.
|
|
|
|
// Parse what is behind the '+'. If there is a number, then it is a build number after the label, and full build ID is shown.
|
|
|
|
@@ -550,7 +562,17 @@ void MainFrame::update_title()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
title += (wxString(build_id) + " " + _(L("based on Slic3r")));
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
|
|
|
|
#if ENABLE_GCODE_VIEWER
|
|
|
|
|
|
|
|
title += wxString(build_id);
|
|
|
|
|
|
|
|
if (wxGetApp().is_editor())
|
|
|
|
|
|
|
|
title += (" " + _L("based on Slic3r"));
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
|
|
|
|
title += (wxString(build_id) + " " + _L("based on Slic3r"));
|
|
|
|
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
|
|
|
|
#endif // ENABLE_GCODE_VIEWER
|
|
|
|
|
|
|
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
|
|
|
|
|
|
|
|
SetTitle(title);
|
|
|
|
SetTitle(title);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|