Renamed to Publish instead of Publish Settings

This commit is contained in:
Lam Wei Lun
2026-08-14 14:00:20 +08:00
parent d124e1ccbc
commit 99db5cca38
3 changed files with 9 additions and 14 deletions
+3 -7
View File
@@ -39,7 +39,6 @@
#include "Plater.hpp" #include "Plater.hpp"
#include "WebViewDialog.hpp" #include "WebViewDialog.hpp"
#include "../Utils/Process.hpp" #include "../Utils/Process.hpp"
#include "format.hpp"
// BBS // BBS
#include "PartPlate.hpp" #include "PartPlate.hpp"
#include "Preferences.hpp" #include "Preferences.hpp"
@@ -49,9 +48,6 @@
#include "../Utils/NetworkAgentFactory.hpp" #include "../Utils/NetworkAgentFactory.hpp"
#include "../Utils/PrintHost.hpp" #include "../Utils/PrintHost.hpp"
#include <fstream>
#include <string_view>
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "UnsavedChangesDialog.hpp" #include "UnsavedChangesDialog.hpp"
#include "PublishSettingsDialog.hpp" #include "PublishSettingsDialog.hpp"
@@ -2822,7 +2818,7 @@ void MainFrame::init_menubar_as_editor()
[this](){return m_plater != nullptr && can_save_as(); }, this); [this](){return m_plater != nullptr && can_save_as(); }, this);
#endif #endif
// BBS: publish settings // BBS: publish
fileMenu->AppendSeparator(); fileMenu->AppendSeparator();
auto publish_handler = [this](wxCommandEvent&) { auto publish_handler = [this](wxCommandEvent&) {
if (!m_plater) return; if (!m_plater) return;
@@ -2832,11 +2828,11 @@ void MainFrame::init_menubar_as_editor()
}; };
#ifndef __APPLE__ #ifndef __APPLE__
append_menu_item(fileMenu, wxID_ANY, _L("Publish Settings") + dots, _L("Export a 3MF file with the selected settings embedded"), append_menu_item(fileMenu, wxID_ANY, _L("Publish") + dots, _L("Export a 3MF file with the selected settings embedded"),
publish_handler, "menu_publish", nullptr, publish_handler, "menu_publish", nullptr,
[this](){return can_export_model(); }, this); [this](){return can_export_model(); }, this);
#else #else
append_menu_item(fileMenu, wxID_ANY, _L("Publish Settings") + dots, _L("Export a 3MF file with the selected settings embedded"), append_menu_item(fileMenu, wxID_ANY, _L("Publish") + dots, _L("Export a 3MF file with the selected settings embedded"),
publish_handler, "", nullptr, publish_handler, "", nullptr,
[this](){return can_export_model(); }, this); [this](){return can_export_model(); }, this);
#endif #endif
+1 -1
View File
@@ -16240,7 +16240,7 @@ int Plater::export_published_3mf(const std::vector<std::string>& published_keys,
if (ret < 0) { if (ret < 0) {
MessageDialog(this, _L("Failed to export the published 3MF file.\nPlease check whether the folder exists online or if other programs have the file open."), MessageDialog(this, _L("Failed to export the published 3MF file.\nPlease check whether the folder exists online or if other programs have the file open."),
_L("Publish Settings"), wxOK | wxICON_WARNING).ShowModal(); _L("Publish"), wxOK | wxICON_WARNING).ShowModal();
return wxID_CANCEL; return wxID_CANCEL;
} }
return wxID_YES; return wxID_YES;
+2 -3
View File
@@ -154,7 +154,7 @@ wxString material_title(size_t slot, const PresetBundle* bundle, const DynamicPr
PublishSettingsDialog::PublishSettingsDialog(wxWindow* parent) PublishSettingsDialog::PublishSettingsDialog(wxWindow* parent)
: DPIDialog(parent ? parent : static_cast<wxWindow*>(wxGetApp().mainframe), : DPIDialog(parent ? parent : static_cast<wxWindow*>(wxGetApp().mainframe),
wxID_ANY, wxID_ANY,
_L("Publish Settings"), _L("Publish"),
wxDefaultPosition, wxDefaultPosition,
wxDefaultSize, wxDefaultSize,
wxCAPTION | wxCLOSE_BOX | wxRESIZE_BORDER) wxCAPTION | wxCLOSE_BOX | wxRESIZE_BORDER)
@@ -233,8 +233,7 @@ PublishSettingsDialog::PublishSettingsDialog(wxWindow* parent)
EndModal(wxID_OK); EndModal(wxID_OK);
return; return;
} }
MessageDialog(this, _L("No settings selected. Please select at least one setting to publish."), _L("Publish Settings"), MessageDialog(this, _L("No settings selected. Please select at least one setting to publish."), _L("Publish"), wxOK | wxICON_WARNING)
wxOK | wxICON_WARNING)
.ShowModal(); .ShowModal();
}); });
dlg_btns->GetCANCEL()->Bind(wxEVT_BUTTON, [this](wxCommandEvent&) { EndModal(wxID_CANCEL); }); dlg_btns->GetCANCEL()->Bind(wxEVT_BUTTON, [this](wxCommandEvent&) { EndModal(wxID_CANCEL); });