Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL asksavepassworddialog.cpp   Interaktion und
PortierbarkeitC

 

#include "filezilla.h"
#include "asksavepassworddialog.h"
#include "Options.h"
#include "filezillaapp.h"

BEGIN_EVENT_TABLE(CAskSavePasswordDialog, wxDialogEx)
EVT_RADIOBUTTON(XRCID("ID_REMEMBER_YES"), CAskSavePasswordDialog::OnRadioButtonChanged)
EVT_RADIOBUTTON(XRCID("ID_REMEMBER_NO"), CAskSavePasswordDialog::OnRadioButtonChanged)
END_EVENT_TABLE()

CAskSavePasswordDialog::CAskSavePasswordDialog(wxWindow*)
{
 Load(0, _T("ID_ASK_SAVE_PASSWORD"));
 wxButton* ok = XRCCTRL(*this, "wxID_OK", wxButton);
 if (ok)
  ok->Enable(false);

 wxGetApp().GetWrapEngine()->WrapRecursive(this, 2, "");
}


bool CAskSavePasswordDialog::Run(wxWindow* parent)
{
 bool ret = true;

 if (COptions::Get()->GetOptionVal(OPTION_DEFAULT_KIOSKMODE) == 0 && COptions::Get()->GetOptionVal(OPTION_PROMPTPASSWORDSAVE) != 0)
 {
  CAskSavePasswordDialog dlg(parent);

  ret = dlg.ShowModal() == wxID_OK;
  if (ret)
  {
   wxRadioButton* btn = XRCCTRL(dlg, "ID_REMEMBER_NO", wxRadioButton);
   if (btn && btn->GetValue())
    COptions::Get()->SetOption(OPTION_DEFAULT_KIOSKMODE, 1);
   COptions::Get()->SetOption(OPTION_PROMPTPASSWORDSAVE, 0);
  }
 }
 else
  COptions::Get()->SetOption(OPTION_PROMPTPASSWORDSAVE, 0);

 return ret;
}

void CAskSavePasswordDialog::OnRadioButtonChanged(wxCommandEvent&)
{
 wxRadioButton* yes = XRCCTRL(*this, "ID_REMEMBER_NO", wxRadioButton);
 wxRadioButton* no = XRCCTRL(*this, "ID_REMEMBER_YES", wxRadioButton);
 wxButton* ok = XRCCTRL(*this, "wxID_OK", wxButton);
 if (yes && no && ok)
  ok->Enable(yes->GetValue() || no->GetValue());
}

Messung
CHZG
839810093

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.1Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24) ¤

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,068
#Domains=861,800