00001 // 00002 // PageSettingsGeneral.h 00003 // 00004 // Copyright (c) Shareaza Development Team, 2002-2005. 00005 // This file is part of SHAREAZA (www.shareaza.com) 00006 // 00007 // Shareaza is free software; you can redistribute it 00008 // and/or modify it under the terms of the GNU General Public License 00009 // as published by the Free Software Foundation; either version 2 of 00010 // the License, or (at your option) any later version. 00011 // 00012 // Shareaza is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with Shareaza; if not, write to the Free Software 00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 // 00021 00022 #if !defined(AFX_PAGESETTINGSGENERAL_H__44C1976D_E6F2_4951_962E_C698D95070A1__INCLUDED_) 00023 #define AFX_PAGESETTINGSGENERAL_H__44C1976D_E6F2_4951_962E_C698D95070A1__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "WndSettingsPage.h" 00028 00029 00030 class CGeneralSettingsPage : public CSettingsPage 00031 { 00032 // Construction 00033 public: 00034 CGeneralSettingsPage(); 00035 virtual ~CGeneralSettingsPage(); 00036 00037 DECLARE_DYNCREATE(CGeneralSettingsPage) 00038 00039 // Dialog Data 00040 public: 00041 //{{AFX_DATA(CGeneralSettingsPage) 00042 enum { IDD = IDD_SETTINGS_GENERAL }; 00043 int m_bRatesInBytes; 00044 BOOL m_bExpandMatches; 00045 BOOL m_bAutoConnect; 00046 int m_nCloseMode; 00047 int m_bTrayMinimise; 00048 BOOL m_bSwitchToTransfers; 00049 BOOL m_bExpandDownloads; 00050 BOOL m_bSimpleBar; 00051 BOOL m_bStartup; 00052 BOOL m_bPromptURLs; 00053 BOOL m_bHideSearch; 00054 BOOL m_bAdultFilter; 00055 CSpinButtonCtrl m_wndTipSpin; 00056 CListCtrl m_wndTips; 00057 CSliderCtrl m_wndTipAlpha; 00058 CComboBox m_wndCloseMode; 00059 CComboBox m_wndTrayMinimise; 00060 DWORD m_nTipDelay; 00061 //}}AFX_DATA 00062 00063 protected: 00064 void Add(LPCTSTR pszName, BOOL bState); 00065 00066 // Overrides 00067 public: 00068 //{{AFX_VIRTUAL(CGeneralSettingsPage) 00069 public: 00070 virtual void OnOK(); 00071 protected: 00072 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00073 //}}AFX_VIRTUAL 00074 00075 // Implementation 00076 protected: 00077 //{{AFX_MSG(CGeneralSettingsPage) 00078 virtual BOOL OnInitDialog(); 00079 afx_msg void OnDropdownCloseMode(); 00080 afx_msg void OnDropdownTrayMinimise(); 00081 //}}AFX_MSG 00082 DECLARE_MESSAGE_MAP() 00083 00084 }; 00085 00086 //{{AFX_INSERT_LOCATION}} 00087 00088 #endif // !defined(AFX_PAGESETTINGSGENERAL_H__44C1976D_E6F2_4951_962E_C698D95070A1__INCLUDED_)