mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 18:22:02 +08:00
Merge branch 'master' into fs_svg_SPE-1517
This commit is contained in:
commit
9382e6543f
@ -87,6 +87,11 @@ PreferencesDialog::PreferencesDialog(wxWindow* parent) :
|
|||||||
|
|
||||||
if (is_scrollbar_shown)
|
if (is_scrollbar_shown)
|
||||||
sz.x += 2*em_unit();
|
sz.x += 2*em_unit();
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
// To correct Layout of wxScrolledWindow we need at least small change of size
|
||||||
|
else
|
||||||
|
sz.x += 1;
|
||||||
|
#endif
|
||||||
SetSize(sz);
|
SetSize(sz);
|
||||||
|
|
||||||
m_highlighter.set_timer_owner(this, 0);
|
m_highlighter.set_timer_owner(this, 0);
|
||||||
|
@ -1573,14 +1573,15 @@ void TabPrint::build()
|
|||||||
optgroup->append_single_option_line("support_material_synchronize_layers", category_path + "synchronize-with-object-layers");
|
optgroup->append_single_option_line("support_material_synchronize_layers", category_path + "synchronize-with-object-layers");
|
||||||
|
|
||||||
optgroup = page->new_optgroup(L("Organic supports"));
|
optgroup = page->new_optgroup(L("Organic supports"));
|
||||||
optgroup->append_single_option_line("support_tree_angle", category_path + "tree_angle");
|
const std::string path = "organic-supports_480131#organic-supports-settings";
|
||||||
optgroup->append_single_option_line("support_tree_angle_slow", category_path + "tree_angle_slow");
|
optgroup->append_single_option_line("support_tree_angle", path);
|
||||||
optgroup->append_single_option_line("support_tree_branch_diameter", category_path + "tree_branch_diameter");
|
optgroup->append_single_option_line("support_tree_angle_slow", path);
|
||||||
optgroup->append_single_option_line("support_tree_branch_diameter_angle", category_path + "tree_branch_diameter_angle");
|
optgroup->append_single_option_line("support_tree_branch_diameter", path);
|
||||||
optgroup->append_single_option_line("support_tree_branch_diameter_double_wall", category_path + "tree_branch_diameter_double_wall");
|
optgroup->append_single_option_line("support_tree_branch_diameter_angle", path);
|
||||||
optgroup->append_single_option_line("support_tree_tip_diameter", category_path + "tree_tip_diameter");
|
optgroup->append_single_option_line("support_tree_branch_diameter_double_wall", path);
|
||||||
optgroup->append_single_option_line("support_tree_branch_distance", category_path + "tree_branch_distance");
|
optgroup->append_single_option_line("support_tree_tip_diameter", path);
|
||||||
optgroup->append_single_option_line("support_tree_top_rate", category_path + "tree_top_rate");
|
optgroup->append_single_option_line("support_tree_branch_distance", path);
|
||||||
|
optgroup->append_single_option_line("support_tree_top_rate", path);
|
||||||
|
|
||||||
page = add_options_page(L("Speed"), "time");
|
page = add_options_page(L("Speed"), "time");
|
||||||
optgroup = page->new_optgroup(L("Speed for print moves"));
|
optgroup = page->new_optgroup(L("Speed for print moves"));
|
||||||
|
@ -202,6 +202,8 @@ void ComboBox::DoClear()
|
|||||||
datas.clear();
|
datas.clear();
|
||||||
types.clear();
|
types.clear();
|
||||||
drop.Invalidate(true);
|
drop.Invalidate(true);
|
||||||
|
if (GetTextCtrl()->IsShown() || text_off)
|
||||||
|
GetTextCtrl()->Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComboBox::DoDeleteOneItem(unsigned int pos)
|
void ComboBox::DoDeleteOneItem(unsigned int pos)
|
||||||
|
@ -45,7 +45,7 @@ WifiConfigDialog::WifiConfigDialog(wxWindow* parent, std::string& file_path, Rem
|
|||||||
auto* ssid_sizer = new wxBoxSizer(wxHORIZONTAL);
|
auto* ssid_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
// TRN SSID of WiFi network. It is a standard abbreviation which should probably not change in most languages.
|
// TRN SSID of WiFi network. It is a standard abbreviation which should probably not change in most languages.
|
||||||
wxStaticText* ssid_label = new wxStaticText(panel, wxID_ANY, GUI::format_wxstr("%1%:", _L("SSID")));
|
wxStaticText* ssid_label = new wxStaticText(panel, wxID_ANY, GUI::format_wxstr("%1%:", _L("SSID")));
|
||||||
m_ssid_combo = new ::ComboBox(panel, wxID_ANY);
|
m_ssid_combo = new ::ComboBox(panel, wxID_ANY, wxString(""), wxDefaultPosition, wxDefaultSize, 0, nullptr, DD_NO_CHECK_ICON);
|
||||||
#if __APPLE__
|
#if __APPLE__
|
||||||
m_ssid_combo->SetToolTip(_L("On some versions of MacOS, this only loads SSID of connected network."));
|
m_ssid_combo->SetToolTip(_L("On some versions of MacOS, this only loads SSID of connected network."));
|
||||||
#endif // __APPLE__
|
#endif // __APPLE__
|
||||||
@ -60,13 +60,15 @@ WifiConfigDialog::WifiConfigDialog(wxWindow* parent, std::string& file_path, Rem
|
|||||||
// TRN Password of WiFi network.
|
// TRN Password of WiFi network.
|
||||||
wxStaticText* password_label = new wxStaticText(panel, wxID_ANY, GUI::format_wxstr("%1%:", _L("Password")));
|
wxStaticText* password_label = new wxStaticText(panel, wxID_ANY, GUI::format_wxstr("%1%:", _L("Password")));
|
||||||
m_pass_textctrl = new ::TextInput(panel, "", "", "", wxDefaultPosition, wxDefaultSize);
|
m_pass_textctrl = new ::TextInput(panel, "", "", "", wxDefaultPosition, wxDefaultSize);
|
||||||
pass_sizer->Add(m_pass_textctrl, 1, wxALIGN_CENTER_VERTICAL, 10);
|
|
||||||
#if __APPLE__
|
#if __APPLE__
|
||||||
|
pass_sizer->Add(m_pass_textctrl, 1, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
|
||||||
m_pass_button_id = NewControlId();
|
m_pass_button_id = NewControlId();
|
||||||
// TRN Text of button to retrieve password from keychain in Wifi Config dialog. Only on Mac.
|
// TRN Text of button to retrieve password from keychain in Wifi Config dialog. Only on Mac.
|
||||||
wxButton* pass_button = new wxButton(panel, m_pass_button_id, _(L("Retrieve")));
|
wxButton* pass_button = new wxButton(panel, m_pass_button_id, _(L("Retrieve")));
|
||||||
pass_sizer->Add(pass_button, 0);
|
pass_sizer->Add(pass_button, 0);
|
||||||
pass_button->Bind(wxEVT_BUTTON, &WifiConfigDialog::on_retrieve_password, this);
|
pass_button->Bind(wxEVT_BUTTON, &WifiConfigDialog::on_retrieve_password, this);
|
||||||
|
#else
|
||||||
|
pass_sizer->Add(m_pass_textctrl, 1, wxALIGN_CENTER_VERTICAL, 10);
|
||||||
#endif // __APPLE__
|
#endif // __APPLE__
|
||||||
// show password if current ssid was selected already
|
// show password if current ssid was selected already
|
||||||
fill_password();
|
fill_password();
|
||||||
@ -74,7 +76,7 @@ WifiConfigDialog::WifiConfigDialog(wxWindow* parent, std::string& file_path, Rem
|
|||||||
auto* drive_sizer = new wxBoxSizer(wxHORIZONTAL);
|
auto* drive_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
// TRN description of Combo Box with path to USB drive.
|
// TRN description of Combo Box with path to USB drive.
|
||||||
wxStaticText* drive_label = new wxStaticText(panel, wxID_ANY, GUI::format_wxstr("%1%:", _L("Drive")));
|
wxStaticText* drive_label = new wxStaticText(panel, wxID_ANY, GUI::format_wxstr("%1%:", _L("Drive")));
|
||||||
m_drive_combo = new ::ComboBox(panel, wxID_ANY);
|
m_drive_combo = new ::ComboBox(panel, wxID_ANY, wxString(""), wxDefaultPosition, wxDefaultSize, 0, nullptr, DD_NO_CHECK_ICON);
|
||||||
rescan_drives(preffered_drive);
|
rescan_drives(preffered_drive);
|
||||||
m_drive_button_id = NewControlId();
|
m_drive_button_id = NewControlId();
|
||||||
// TRN Text of button to rescan connect usb drives in Wifi Config dialog.
|
// TRN Text of button to rescan connect usb drives in Wifi Config dialog.
|
||||||
@ -166,7 +168,6 @@ void WifiConfigDialog::rescan_drives(const wxString& preffered_drive)
|
|||||||
{
|
{
|
||||||
assert(m_drive_combo && m_removable_manager);
|
assert(m_drive_combo && m_removable_manager);
|
||||||
m_drive_combo->Clear();
|
m_drive_combo->Clear();
|
||||||
m_drive_combo->GetTextCtrl()->Clear();
|
|
||||||
std::vector<DriveData> ddata = m_removable_manager->get_drive_list();
|
std::vector<DriveData> ddata = m_removable_manager->get_drive_list();
|
||||||
for (const auto& data : ddata) {
|
for (const auto& data : ddata) {
|
||||||
wxString item = boost::nowide::widen(data.path);
|
wxString item = boost::nowide::widen(data.path);
|
||||||
@ -191,7 +192,6 @@ void WifiConfigDialog::rescan_networks(bool select)
|
|||||||
std::string current = m_wifi_scanner->get_current_ssid();
|
std::string current = m_wifi_scanner->get_current_ssid();
|
||||||
const auto& map = m_wifi_scanner->get_map();
|
const auto& map = m_wifi_scanner->get_map();
|
||||||
m_ssid_combo->Clear();
|
m_ssid_combo->Clear();
|
||||||
m_ssid_combo->GetTextCtrl()->Clear();
|
|
||||||
for (const auto pair : map) {
|
for (const auto pair : map) {
|
||||||
m_ssid_combo->Append(pair.first);
|
m_ssid_combo->Append(pair.first);
|
||||||
// select ssid of current network (if connected)
|
// select ssid of current network (if connected)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user