mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 20:22:00 +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)
|
||||
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);
|
||||
|
||||
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 = page->new_optgroup(L("Organic supports"));
|
||||
optgroup->append_single_option_line("support_tree_angle", category_path + "tree_angle");
|
||||
optgroup->append_single_option_line("support_tree_angle_slow", category_path + "tree_angle_slow");
|
||||
optgroup->append_single_option_line("support_tree_branch_diameter", category_path + "tree_branch_diameter");
|
||||
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_double_wall", category_path + "tree_branch_diameter_double_wall");
|
||||
optgroup->append_single_option_line("support_tree_tip_diameter", category_path + "tree_tip_diameter");
|
||||
optgroup->append_single_option_line("support_tree_branch_distance", category_path + "tree_branch_distance");
|
||||
optgroup->append_single_option_line("support_tree_top_rate", category_path + "tree_top_rate");
|
||||
const std::string path = "organic-supports_480131#organic-supports-settings";
|
||||
optgroup->append_single_option_line("support_tree_angle", path);
|
||||
optgroup->append_single_option_line("support_tree_angle_slow", path);
|
||||
optgroup->append_single_option_line("support_tree_branch_diameter", path);
|
||||
optgroup->append_single_option_line("support_tree_branch_diameter_angle", path);
|
||||
optgroup->append_single_option_line("support_tree_branch_diameter_double_wall", path);
|
||||
optgroup->append_single_option_line("support_tree_tip_diameter", path);
|
||||
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");
|
||||
optgroup = page->new_optgroup(L("Speed for print moves"));
|
||||
|
@ -202,6 +202,8 @@ void ComboBox::DoClear()
|
||||
datas.clear();
|
||||
types.clear();
|
||||
drop.Invalidate(true);
|
||||
if (GetTextCtrl()->IsShown() || text_off)
|
||||
GetTextCtrl()->Clear();
|
||||
}
|
||||
|
||||
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);
|
||||
// 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")));
|
||||
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__
|
||||
m_ssid_combo->SetToolTip(_L("On some versions of MacOS, this only loads SSID of connected network."));
|
||||
#endif // __APPLE__
|
||||
@ -60,13 +60,15 @@ WifiConfigDialog::WifiConfigDialog(wxWindow* parent, std::string& file_path, Rem
|
||||
// TRN Password of WiFi network.
|
||||
wxStaticText* password_label = new wxStaticText(panel, wxID_ANY, GUI::format_wxstr("%1%:", _L("Password")));
|
||||
m_pass_textctrl = new ::TextInput(panel, "", "", "", wxDefaultPosition, wxDefaultSize);
|
||||
pass_sizer->Add(m_pass_textctrl, 1, wxALIGN_CENTER_VERTICAL, 10);
|
||||
#if __APPLE__
|
||||
pass_sizer->Add(m_pass_textctrl, 1, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
|
||||
m_pass_button_id = NewControlId();
|
||||
// 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")));
|
||||
pass_sizer->Add(pass_button, 0);
|
||||
pass_button->Bind(wxEVT_BUTTON, &WifiConfigDialog::on_retrieve_password, this);
|
||||
#else
|
||||
pass_sizer->Add(m_pass_textctrl, 1, wxALIGN_CENTER_VERTICAL, 10);
|
||||
#endif // __APPLE__
|
||||
// show password if current ssid was selected already
|
||||
fill_password();
|
||||
@ -74,7 +76,7 @@ WifiConfigDialog::WifiConfigDialog(wxWindow* parent, std::string& file_path, Rem
|
||||
auto* drive_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
// TRN description of Combo Box with path to USB 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);
|
||||
m_drive_button_id = NewControlId();
|
||||
// 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);
|
||||
m_drive_combo->Clear();
|
||||
m_drive_combo->GetTextCtrl()->Clear();
|
||||
std::vector<DriveData> ddata = m_removable_manager->get_drive_list();
|
||||
for (const auto& data : ddata) {
|
||||
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();
|
||||
const auto& map = m_wifi_scanner->get_map();
|
||||
m_ssid_combo->Clear();
|
||||
m_ssid_combo->GetTextCtrl()->Clear();
|
||||
for (const auto pair : map) {
|
||||
m_ssid_combo->Append(pair.first);
|
||||
// select ssid of current network (if connected)
|
||||
|
Loading…
x
Reference in New Issue
Block a user