~ubuntu-branches/debian/sid/filezilla/sid

« back to all changes in this revision

Viewing changes to src/interface/optionspage_connection_passive.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Cécile (Le_Vert)
  • Date: 2008-07-05 21:00:24 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080705210024-mvzp21zlyheschi6
Tags: 3.0.11.1-1
* wxWidgets 2.8 just entered unstable ! Upload to unstable.
* New upstream release.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "FileZilla.h"
 
2
#include "Options.h"
 
3
#include "settingsdialog.h"
 
4
#include "optionspage.h"
 
5
#include "optionspage_connection_passive.h"
 
6
 
 
7
bool COptionsPageConnectionPassive::LoadPage()
 
8
{
 
9
        bool failure = false;
 
10
 
 
11
        SetRCheck(XRCID("ID_PASSIVE_FALLBACK1"), m_pOptions->GetOptionVal(OPTION_PASVREPLYFALLBACKMODE) == 0, failure);
 
12
        SetRCheck(XRCID("ID_PASSIVE_FALLBACK2"), m_pOptions->GetOptionVal(OPTION_PASVREPLYFALLBACKMODE) != 0, failure);
 
13
 
 
14
        return !failure;
 
15
}
 
16
 
 
17
bool COptionsPageConnectionPassive::SavePage()
 
18
{
 
19
        m_pOptions->SetOption(OPTION_PASVREPLYFALLBACKMODE, XRCCTRL(*this, "ID_PASSIVE_FALLBACK1", wxRadioButton)->GetValue() ? 0 : 1);
 
20
 
 
21
        return true;
 
22
}
 
23
 
 
24
bool COptionsPageConnectionPassive::Validate()
 
25
{
 
26
        return true;
 
27
}