"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/interface/settings/optionspage_passwords.cpp" between
FileZilla_3.48.0_src.tar.bz2 and FileZilla_3.48.1_src.tar.bz2

About: FileZilla is a fast and feature-rich cross-platform FTP, FTPS and SFTP client with an intuitive graphical user interface.

optionspage_passwords.cpp  (FileZilla_3.48.0_src.tar.bz2):optionspage_passwords.cpp  (FileZilla_3.48.1_src.tar.bz2)
skipping to change at line 168 skipping to change at line 168
if (!pw.empty() && pw.size() < 8) { if (!pw.empty() && pw.size() < 8) {
return DisplayError(_T("ID_MASTERPASSWORD"), _("The maste r password needs to be at least 8 characters long.")); return DisplayError(_T("ID_MASTERPASSWORD"), _("The maste r password needs to be at least 8 characters long."));
} }
} }
return true; return true;
} }
bool COptionsPagePasswords::CreateControls(wxWindow* parent) bool COptionsPagePasswords::CreateControls(wxWindow* parent)
{ {
auto const& layout = m_pOwner->layout(); auto const& lay = m_pOwner->layout();
Create(parent); Create(parent);
auto boxSizer = new wxStaticBoxSizer(wxVERTICAL, this, _("Passwords")); auto main = lay.createFlex(1);
auto box = boxSizer->GetStaticBox(); main->AddGrowableCol(0);
auto sizer = layout.createFlex(1); SetSizer(main);
sizer->AddGrowableCol(0);
boxSizer->Add(sizer, 0, wxGROW|wxALL, layout.border);
sizer->Add(new wxRadioButton(box, XRCID("ID_PASSWORDS_SAVE"), _("Sav&e pa
sswords"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP));
sizer->Add(new wxRadioButton(box, XRCID("ID_PASSWORDS_NOSAVE"), _("D&o no
t save passwords")));
sizer->Add(new wxRadioButton(box, XRCID("ID_PASSWORDS_USEMASTERPASSWORD")
, _("Sa&ve passwords protected by a master password")));
auto changeSizer = layout.createFlex(2); auto [box, inner] = lay.createStatBox(main, _("Passwords"), 1);
inner->Add(new wxRadioButton(box, XRCID("ID_PASSWORDS_SAVE"), _("Sav&e pa
sswords"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP));
inner->Add(new wxRadioButton(box, XRCID("ID_PASSWORDS_NOSAVE"), _("D&o no
t save passwords")));
inner->Add(new wxRadioButton(box, XRCID("ID_PASSWORDS_USEMASTERPASSWORD")
, _("Sa&ve passwords protected by a master password")));
auto changeSizer = lay.createFlex(2);
changeSizer->AddGrowableCol(1); changeSizer->AddGrowableCol(1);
changeSizer->Add(new wxStaticText(box, -1, _("Master password:")), layout .valign); changeSizer->Add(new wxStaticText(box, -1, _("Master password:")), lay.va lign);
auto pw = new wxTextCtrlEx(box, XRCID("ID_MASTERPASSWORD"), wxString(), w xDefaultPosition, wxDefaultSize, wxTE_PASSWORD); auto pw = new wxTextCtrlEx(box, XRCID("ID_MASTERPASSWORD"), wxString(), w xDefaultPosition, wxDefaultSize, wxTE_PASSWORD);
changeSizer->Add(pw, layout.valigng); changeSizer->Add(pw, lay.valigng);
changeSizer->Add(new wxStaticText(box, -1, _("Repeat password:")), layout changeSizer->Add(new wxStaticText(box, -1, _("Repeat password:")), lay.va
.valign); lign);
changeSizer->Add(new wxTextCtrlEx(box, XRCID("ID_MASTERPASSWORD_REPEAT"), changeSizer->Add(new wxTextCtrlEx(box, XRCID("ID_MASTERPASSWORD_REPEAT"),
wxString(), wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD), layout.valigng); wxString(), wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD), lay.valigng);
sizer->Add(changeSizer, 0, wxGROW | wxLEFT, layout.dlgUnits(10)); inner->Add(changeSizer, 0, wxGROW | wxLEFT, lay.indent);
sizer->Add(new wxStaticText(box, -1, _("A lost master password cannot be inner->Add(new wxStaticText(box, -1, _("A lost master password cannot be
recovered! Please thoroughly memorize your password.")), 0, wxLEFT, layout.dlgUn recovered! Please thoroughly memorize your password.")), 0, wxLEFT, lay.indent);
its(10));
auto outer = new wxBoxSizer(wxVERTICAL);
outer->Add(boxSizer, layout.grow);
SetSizer(outer);
return true; return true;
} }
 End of changes. 5 change blocks. 
29 lines changed or deleted 24 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)