Replaced UTF8 characters in string literals with \uxxxx.
Replaced std::make_unique with Slic3r::make_unique to support old C++11 compilers.
This commit is contained in:
parent
8add843ee8
commit
28c929f14d
2 changed files with 6 additions and 6 deletions
|
@ -86,7 +86,7 @@ public:
|
||||||
template<class T>
|
template<class T>
|
||||||
static t_field Create(wxWindow* parent, const ConfigOptionDef& opt, const t_config_option_key& id) // interface for creating shared objects
|
static t_field Create(wxWindow* parent, const ConfigOptionDef& opt, const t_config_option_key& id) // interface for creating shared objects
|
||||||
{
|
{
|
||||||
auto p = std::make_unique<T>(parent, opt, id);
|
auto p = Slic3r::make_unique<T>(parent, opt, id);
|
||||||
p->PostInitialize();
|
p->PostInitialize();
|
||||||
return std::move(p); //!p;
|
return std::move(p); //!p;
|
||||||
}
|
}
|
||||||
|
|
|
@ -770,7 +770,7 @@ void TabFilament::build()
|
||||||
optgroup->append_single_option_line("filament_density");
|
optgroup->append_single_option_line("filament_density");
|
||||||
optgroup->append_single_option_line("filament_cost");
|
optgroup->append_single_option_line("filament_cost");
|
||||||
|
|
||||||
optgroup = page->new_optgroup("Temperature (°C)");
|
optgroup = page->new_optgroup("Temperature (\u00B0C)"); // degree sign
|
||||||
Line line = { "Extruder", "" };
|
Line line = { "Extruder", "" };
|
||||||
line.append_option(optgroup->get_option("first_layer_temperature"));
|
line.append_option(optgroup->get_option("first_layer_temperature"));
|
||||||
line.append_option(optgroup->get_option("temperature"));
|
line.append_option(optgroup->get_option("temperature"));
|
||||||
|
@ -913,7 +913,7 @@ void TabPrinter::build()
|
||||||
|
|
||||||
Line line = { "Bed shape", "" };
|
Line line = { "Bed shape", "" };
|
||||||
line.widget = [](wxWindow* parent){
|
line.widget = [](wxWindow* parent){
|
||||||
auto btn = new wxButton(parent, wxID_ANY, "Set…", wxDefaultPosition, wxDefaultSize,
|
auto btn = new wxButton(parent, wxID_ANY, "Set\u2026", wxDefaultPosition, wxDefaultSize,
|
||||||
wxBU_LEFT | wxBU_EXACTFIT);
|
wxBU_LEFT | wxBU_EXACTFIT);
|
||||||
// btn->SetFont(Slic3r::GUI::small_font);
|
// btn->SetFont(Slic3r::GUI::small_font);
|
||||||
btn->SetBitmap(wxBitmap(wxString::FromUTF8(Slic3r::var("printer_empty.png").c_str()), wxBITMAP_TYPE_PNG));
|
btn->SetBitmap(wxBitmap(wxString::FromUTF8(Slic3r::var("printer_empty.png").c_str()), wxBITMAP_TYPE_PNG));
|
||||||
|
@ -1006,7 +1006,7 @@ void TabPrinter::build()
|
||||||
optgroup = page->new_optgroup("OctoPrint upload");
|
optgroup = page->new_optgroup("OctoPrint upload");
|
||||||
// # append two buttons to the Host line
|
// # append two buttons to the Host line
|
||||||
auto octoprint_host_browse = [] (wxWindow* parent) {
|
auto octoprint_host_browse = [] (wxWindow* parent) {
|
||||||
auto btn = new wxButton(parent, wxID_ANY, "Browse…", wxDefaultPosition, wxDefaultSize, wxBU_LEFT);
|
auto btn = new wxButton(parent, wxID_ANY, "Browse\u2026", wxDefaultPosition, wxDefaultSize, wxBU_LEFT);
|
||||||
// btn->SetFont($Slic3r::GUI::small_font);
|
// btn->SetFont($Slic3r::GUI::small_font);
|
||||||
btn->SetBitmap(wxBitmap(wxString::FromUTF8(Slic3r::var("zoom.png").c_str()), wxBITMAP_TYPE_PNG));
|
btn->SetBitmap(wxBitmap(wxString::FromUTF8(Slic3r::var("zoom.png").c_str()), wxBITMAP_TYPE_PNG));
|
||||||
auto sizer = new wxBoxSizer(wxHORIZONTAL);
|
auto sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
@ -1476,7 +1476,7 @@ void Tab::OnTreeSelChange(wxTreeEvent& event)
|
||||||
|
|
||||||
void Tab::OnKeyDown(wxKeyEvent& event)
|
void Tab::OnKeyDown(wxKeyEvent& event)
|
||||||
{
|
{
|
||||||
event.GetKeyCode() == WXK_TAB ?
|
(event.GetKeyCode() == WXK_TAB) ?
|
||||||
m_treectrl->Navigate(event.ShiftDown() ? wxNavigationKeyEvent::IsBackward : wxNavigationKeyEvent::IsForward) :
|
m_treectrl->Navigate(event.ShiftDown() ? wxNavigationKeyEvent::IsBackward : wxNavigationKeyEvent::IsForward) :
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
@ -1601,7 +1601,7 @@ void Tab::update_ui_from_settings()
|
||||||
wxSizer* Tab::compatible_printers_widget(wxWindow* parent, wxCheckBox** checkbox, wxButton** btn)
|
wxSizer* Tab::compatible_printers_widget(wxWindow* parent, wxCheckBox** checkbox, wxButton** btn)
|
||||||
{
|
{
|
||||||
*checkbox = new wxCheckBox(parent, wxID_ANY, "All");
|
*checkbox = new wxCheckBox(parent, wxID_ANY, "All");
|
||||||
*btn = new wxButton(parent, wxID_ANY, "Set…", wxDefaultPosition, wxDefaultSize, wxBU_LEFT | wxBU_EXACTFIT);
|
*btn = new wxButton(parent, wxID_ANY, "Set\u2026", wxDefaultPosition, wxDefaultSize, wxBU_LEFT | wxBU_EXACTFIT);
|
||||||
|
|
||||||
(*btn)->SetBitmap(wxBitmap(wxString::FromUTF8(Slic3r::var("printer_empty.png").c_str()), wxBITMAP_TYPE_PNG));
|
(*btn)->SetBitmap(wxBitmap(wxString::FromUTF8(Slic3r::var("printer_empty.png").c_str()), wxBITMAP_TYPE_PNG));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue