/
makani
/
strongdc
Обзор
Документация
Войти
/
makani
/
strongdc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
windows/AdvancedPage.cpp
92 строки
4 KB
BigMuscle
fixed random crashes in Release build
11 июл 2009, 01:24
11 июл 2009, 01:24
5a85a53
Код
Авторство
О чём код?
/* * Copyright (C) 2001-2006 Jacek Sieka, arnetheduck on gmail point com * * This program 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. * * This program 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 this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "stdafx.h" #include "../client/DCPlusPlus.h" #include "../client/SettingsManager.h" #include "../client/FavoriteManager.h" #include "Resource.h" #include "AdvancedPage.h" #include "CommandDlg.h" #include "WinUtil.h" PropPage::TextItem AdvancedPage::texts[] = { { IDC_STRONGDC_WINAMP, ResourceManager::SETSTRONGDC_WINAMP }, { 0, ResourceManager::SETTINGS_AUTO_AWAY } }; PropPage::Item AdvancedPage::items[] = { { IDC_WINAMP, SettingsManager::WINAMP_FORMAT, PropPage::T_STR }, { 0, 0, PropPage::T_END } }; AdvancedPage::ListItem AdvancedPage::listItems[] = { { SettingsManager::AUTO_AWAY, ResourceManager::SETTINGS_AUTO_AWAY }, { SettingsManager::AUTO_FOLLOW, ResourceManager::SETTINGS_AUTO_FOLLOW }, { SettingsManager::CLEAR_SEARCH, ResourceManager::SETTINGS_CLEAR_SEARCH }, { SettingsManager::MINIMIZE_ON_STARTUP, ResourceManager::SETTINGS_MINIMIZE_ON_STARTUP }, { SettingsManager::REMOVE_FORBIDDEN, ResourceManager::SETSTRONGDC_REMOVE_FORBIDDEN }, { SettingsManager::URL_HANDLER, ResourceManager::SETTINGS_URL_HANDLER }, { SettingsManager::MAGNET_REGISTER, ResourceManager::SETSTRONGDC_MAGNET_URI_HANDLER }, { SettingsManager::KEEP_LISTS, ResourceManager::SETTINGS_KEEP_LISTS }, { SettingsManager::AUTO_KICK, ResourceManager::SETTINGS_AUTO_KICK }, { SettingsManager::AUTO_KICK_NO_FAVS, ResourceManager::SETTINGS_AUTO_KICK_NO_FAVS }, { SettingsManager::NO_AWAYMSG_TO_BOTS, ResourceManager::SETTINGS_NO_AWAYMSG_TO_BOTS }, { SettingsManager::ADLS_BREAK_ON_FIRST, ResourceManager::SETTINGS_ADLS_BREAK_ON_FIRST }, { SettingsManager::COMPRESS_TRANSFERS, ResourceManager::SETTINGS_COMPRESS_TRANSFERS }, { SettingsManager::HUB_USER_COMMANDS, ResourceManager::SETTINGS_HUB_USER_COMMANDS }, { SettingsManager::SEARCH_PASSIVE, ResourceManager::SETSTRONGDC_PASSIVE_SEARCH }, { SettingsManager::SEND_UNKNOWN_COMMANDS, ResourceManager::SETTINGS_SEND_UNKNOWN_COMMANDS }, { SettingsManager::ADD_FINISHED_INSTANTLY, ResourceManager::ADD_FINISHED_INSTANTLY }, { SettingsManager::USE_CTRL_FOR_LINE_HISTORY, ResourceManager::SETTINGS_USE_CTRL_FOR_LINE_HISTORY }, { SettingsManager::DEBUG_COMMANDS, ResourceManager::SETTINGS_DEBUG_COMMANDS }, { SettingsManager::WEBSERVER, ResourceManager::SETTINGS_WEBSERVER }, { SettingsManager::DONT_ANNOUNCE_NEW_VERSIONS, ResourceManager::SETTINGS_DISPLAY_DC_UPDATE }, { SettingsManager::FILTER_ENTER, ResourceManager::SETTINGS_FILTER_ENTER }, { SettingsManager::SHOW_SHELL_MENU, ResourceManager::SETTINGS_SHOW_SHELL_MENU }, { SettingsManager::MAGNET_ASK, ResourceManager::MAGNET_ASK }, { SettingsManager::CORAL, ResourceManager::CORAL }, { SettingsManager::FAST_HASH, ResourceManager::FAST_HASH }, { SettingsManager::USE_DHT, ResourceManager::USE_DHT }, { 0, ResourceManager::SETTINGS_AUTO_AWAY } }; LRESULT AdvancedPage::onInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) { PropPage::translate((HWND)(*this), texts); PropPage::read((HWND)*this, items, listItems, GetDlgItem(IDC_ADVANCED_BOOLEANS)); // Do specialized reading here return TRUE; } void AdvancedPage::write() { PropPage::write((HWND)*this, items, listItems, GetDlgItem(IDC_ADVANCED_BOOLEANS)); } LRESULT AdvancedPage::onClickedWinampHelp(WORD /* wNotifyCode */, WORD /*wID*/, HWND /* hWndCtl */, BOOL& /* bHandled */) { MessageBox(CTSTRING(WINAMP_HELP), CTSTRING(WINAMP_HELP_DESC), MB_OK | MB_ICONINFORMATION); return S_OK; } /** * @file * $Id$ */