📄 pagesettingscommunity.cpp
字号:
//
// PageSettingsCommunity.cpp
//
// Copyright (c) Shareaza Development Team, 2002-2004.
// This file is part of SHAREAZA (www.shareaza.com)
//
// Shareaza is free software; you can redistribute it
// and/or modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.
//
// Shareaza is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Shareaza; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#include "StdAfx.h"
#include "Shareaza.h"
#include "Settings.h"
#include "PageSettingsCommunity.h"
#include "DlgProfileManager.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CCommunitySettingsPage, CSettingsPage)
BEGIN_MESSAGE_MAP(CCommunitySettingsPage, CSettingsPage)
//{{AFX_MSG_MAP(CCommunitySettingsPage)
ON_BN_CLICKED(IDC_EDIT_PROFILE, OnEditProfile)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCommunitySettingsPage property page
CCommunitySettingsPage::CCommunitySettingsPage() : CSettingsPage(CCommunitySettingsPage::IDD)
{
//{{AFX_DATA_INIT(CCommunitySettingsPage)
m_bChatEnable = FALSE;
//}}AFX_DATA_INIT
}
CCommunitySettingsPage::~CCommunitySettingsPage()
{
}
void CCommunitySettingsPage::DoDataExchange(CDataExchange* pDX)
{
CSettingsPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCommunitySettingsPage)
DDX_Check(pDX, IDC_CHAT_ENABLE, m_bChatEnable);
//}}AFX_DATA_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CCommunitySettingsPage message handlers
BOOL CCommunitySettingsPage::OnInitDialog()
{
CSettingsPage::OnInitDialog();
m_bChatEnable = Settings.Community.ChatEnable;
UpdateData( FALSE );
return TRUE;
}
void CCommunitySettingsPage::OnEditProfile()
{
CProfileManagerDlg dlg;
dlg.DoModal();
}
void CCommunitySettingsPage::OnOK()
{
UpdateData();
Settings.Community.ChatEnable = m_bChatEnable;
CSettingsPage::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -