mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 02:29:04 +08:00
Changed title for BulkExportDialog
This commit is contained in:
parent
4bb316eb25
commit
7153ac4ee7
@ -200,15 +200,16 @@ void BulkExportDialog::Item::update_valid_bmp()
|
||||
m_valid_bmp->SetBitmap(*get_bmp_bundle(get_bmp_name(m_status)));
|
||||
}
|
||||
|
||||
BulkExportDialog::BulkExportDialog(const std::vector<std::pair<int, std::optional<fs::path>>> &paths):
|
||||
BulkExportDialog::BulkExportDialog(const std::vector<std::pair<int, std::optional<fs::path>>> &paths, const wxString& title):
|
||||
DPIDialog(
|
||||
nullptr,
|
||||
wxID_ANY,
|
||||
_L("Export beds"),
|
||||
title,
|
||||
wxDefaultPosition,
|
||||
wxSize(45 * wxGetApp().em_unit(), 5 * wxGetApp().em_unit()),
|
||||
wxDEFAULT_DIALOG_STYLE | wxICON_WARNING
|
||||
)
|
||||
, m_title(title)
|
||||
{
|
||||
this->SetFont(wxGetApp().normal_font());
|
||||
|
||||
@ -254,7 +255,7 @@ void BulkExportDialog::accept()
|
||||
if (has_warnings()) {
|
||||
MessageDialog dialog(nullptr,
|
||||
_L("Some of the selected files already exist. Do you want to replace them?"),
|
||||
_L("Export beds"), wxYES_NO | wxICON_QUESTION);
|
||||
m_title, wxYES_NO | wxICON_QUESTION);
|
||||
if (dialog.ShowModal() == wxID_NO)
|
||||
return;
|
||||
}
|
||||
|
@ -79,10 +79,10 @@ private:
|
||||
// This must be a unique ptr, because Item does not have copy nor move constructors.
|
||||
std::vector<std::unique_ptr<Item>> m_items;
|
||||
wxFlexGridSizer*m_sizer{nullptr};
|
||||
|
||||
wxString m_title;
|
||||
public:
|
||||
|
||||
BulkExportDialog(const std::vector<std::pair<int, std::optional<boost::filesystem::path>>> &paths);
|
||||
BulkExportDialog(const std::vector<std::pair<int, std::optional<boost::filesystem::path>>> &paths, const wxString& title);
|
||||
std::vector<std::pair<int, std::optional<boost::filesystem::path>>> get_paths() const;
|
||||
bool has_warnings() const;
|
||||
|
||||
|
@ -5948,7 +5948,7 @@ void Plater::export_all_gcodes(bool prefer_removable) {
|
||||
paths.emplace_back(print_index, output_file);
|
||||
}
|
||||
|
||||
BulkExportDialog dialog{paths};
|
||||
BulkExportDialog dialog{paths, _L("Export beds")};
|
||||
if (dialog.ShowModal() != wxID_OK) {
|
||||
return;
|
||||
}
|
||||
@ -6596,7 +6596,7 @@ void Plater::connect_gcode_all() {
|
||||
paths.emplace_back(print_index, filename_fixed);
|
||||
}
|
||||
|
||||
BulkExportDialog dialog{paths};
|
||||
BulkExportDialog dialog{paths, _L("Send all to Connect")};
|
||||
if (dialog.ShowModal() != wxID_OK) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user