source: filezilla/trunk/fuentes/src/interface/settings/optionspage_debug.cpp @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 795 bytes
Line 
1#include <filezilla.h>
2#include "../Options.h"
3#include "settingsdialog.h"
4#include "optionspage.h"
5#include "optionspage_debug.h"
6
7bool COptionsPageDebug::LoadPage()
8{
9        bool failure = false;
10
11        SetCheckFromOption(XRCID("ID_DEBUGMENU"), OPTION_DEBUG_MENU, failure);
12        SetCheckFromOption(XRCID("ID_RAWLISTING"), OPTION_LOGGING_RAWLISTING, failure);
13        SetChoice(XRCID("ID_DEBUGLEVEL"), m_pOptions->GetOptionVal(OPTION_LOGGING_DEBUGLEVEL), failure);
14
15        return !failure;
16}
17
18bool COptionsPageDebug::SavePage()
19{
20        SetOptionFromCheck(XRCID("ID_DEBUGMENU"), OPTION_DEBUG_MENU);
21        SetOptionFromCheck(XRCID("ID_RAWLISTING"), OPTION_LOGGING_RAWLISTING);
22        m_pOptions->SetOption(OPTION_LOGGING_DEBUGLEVEL, GetChoice(XRCID("ID_DEBUGLEVEL")));
23
24        return true;
25}
26
27bool COptionsPageDebug::Validate()
28{
29        return true;
30}
Note: See TracBrowser for help on using the repository browser.