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

View File

@@ -39,7 +39,6 @@
#include "Plater.hpp"
#include "WebViewDialog.hpp"
#include "../Utils/Process.hpp"
#include "format.hpp"
// BBS
#include "PartPlate.hpp"
#include "Preferences.hpp"
@@ -49,9 +48,6 @@
#include "../Utils/NetworkAgentFactory.hpp"
#include "../Utils/PrintHost.hpp"
#include <fstream>
#include <string_view>
#include "GUI_App.hpp"
#include "UnsavedChangesDialog.hpp"
#include "PublishSettingsDialog.hpp"
@@ -2822,7 +2818,7 @@ void MainFrame::init_menubar_as_editor()
[this](){return m_plater != nullptr && can_save_as(); }, this);
#endif
// BBS: publish settings
// BBS: publish
fileMenu->AppendSeparator();
auto publish_handler = [this](wxCommandEvent&) {
if (!m_plater) return;
@@ -2832,11 +2828,11 @@ void MainFrame::init_menubar_as_editor()
};
#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,
[this](){return can_export_model(); }, this);
#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,
[this](){return can_export_model(); }, this);
#endif

View File

@@ -16240,7 +16240,7 @@ int Plater::export_published_3mf(const std::vector<std::string>& published_keys,
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."),
_L("Publish Settings"), wxOK | wxICON_WARNING).ShowModal();
_L("Publish"), wxOK | wxICON_WARNING).ShowModal();
return wxID_CANCEL;
}
return wxID_YES;

View File

@@ -98,7 +98,7 @@ struct MaterialIdentity
// Menu ids for show_menu(). Dedicated range above the standard ids so the popup cannot
// collide with application-level bindings (e.g. MainFrame's recent-files wxID_FILE1.. range).
enum {
kPublishSelectAll = wxID_HIGHEST + 1,
kPublishSelectAll = wxID_HIGHEST + 1,
kPublishDeselectAll,
kPublishSelectVisible,
kPublishDeselectVisible,
@@ -154,7 +154,7 @@ wxString material_title(size_t slot, const PresetBundle* bundle, const DynamicPr
PublishSettingsDialog::PublishSettingsDialog(wxWindow* parent)
: DPIDialog(parent ? parent : static_cast<wxWindow*>(wxGetApp().mainframe),
wxID_ANY,
_L("Publish Settings"),
_L("Publish"),
wxDefaultPosition,
wxDefaultSize,
wxCAPTION | wxCLOSE_BOX | wxRESIZE_BORDER)
@@ -233,8 +233,7 @@ PublishSettingsDialog::PublishSettingsDialog(wxWindow* parent)
EndModal(wxID_OK);
return;
}
MessageDialog(this, _L("No settings selected. Please select at least one setting to publish."), _L("Publish Settings"),
wxOK | wxICON_WARNING)
MessageDialog(this, _L("No settings selected. Please select at least one setting to publish."), _L("Publish"), wxOK | wxICON_WARNING)
.ShowModal();
});
dlg_btns->GetCANCEL()->Bind(wxEVT_BUTTON, [this](wxCommandEvent&) { EndModal(wxID_CANCEL); });
@@ -322,7 +321,7 @@ void PublishSettingsDialog::build_option_model()
cat.filament_slot = slot;
if (!icon_name.empty()) {
cat.icon_bmp = ScalableBitmap(m_scroll, icon_name, 18);
cat.icon = new wxStaticBitmap(m_scroll, wxID_ANY, cat.icon_bmp.bmp());
cat.icon = new wxStaticBitmap(m_scroll, wxID_ANY, cat.icon_bmp.bmp());
}
if (section == Section::Material) {
// Material header: [master (title)][slim tri-state select-all].
@@ -668,7 +667,7 @@ size_t PublishSettingsDialog::section_group_for(Section kind)
if (!section.icon_name.empty()) {
section.icon_bmp = ScalableBitmap(m_scroll, section.icon_name, 18);
section.icon = new wxStaticBitmap(m_scroll, wxID_ANY, section.icon_bmp.bmp());
section.icon = new wxStaticBitmap(m_scroll, wxID_ANY, section.icon_bmp.bmp());
}
section.chevron = create_chevron(m_scroll, wxEVT_LEFT_DOWN, [this, new_index] { toggle_section(new_index); });