Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

PageSettingsTraffic.h

Go to the documentation of this file.
00001 //
00002 // PageSettingsTraffic.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_PAGESETTINGSTRAFFIC_H__20363ACA_EC88_4DEB_A9C1_D8B4CE8A365E__INCLUDED_)
00023 #define AFX_PAGESETTINGSTRAFFIC_H__20363ACA_EC88_4DEB_A9C1_D8B4CE8A365E__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "WndSettingsPage.h"
00028 
00029 class CSettingEdit;
00030 
00031 
00032 class CAdvancedSettingsPage : public CSettingsPage
00033 {
00034 // Construction
00035 public:
00036         CAdvancedSettingsPage();
00037         virtual ~CAdvancedSettingsPage();
00038 
00039         DECLARE_DYNCREATE(CAdvancedSettingsPage)
00040 
00041 // Operations
00042 public:
00043         void    AddSetting(LPVOID pValue, DWORD nScale = 1, DWORD nMin = 0, DWORD nMax = 0, LPCTSTR pszSuffix = NULL);
00044         void    UpdateItem(int nItem);
00045 
00046         class EditItem
00047         {
00048         // Construction
00049         public:
00050                 EditItem(CSettings::Item* pItem, DWORD nScale = 1, DWORD nMin = 0, DWORD nMax = 0, LPCTSTR pszSuffix = NULL);
00051                 virtual ~EditItem();
00052 
00053         // Attributes
00054         public:
00055                 CSettings::Item* m_pItem;
00056         public:
00057                 CString         m_sName;
00058                 DWORD           m_nScale;
00059                 DWORD           m_nMin;
00060                 DWORD           m_nMax;
00061                 CString         m_sSuffix;
00062                 DWORD           m_nValue;
00063 
00064         // Operations
00065         public:
00066                 void            Commit();
00067 
00068         };
00069 
00070 // Dialog Data
00071 public:
00072         //{{AFX_DATA(CAdvancedSettingsPage)
00073         enum { IDD = IDD_SETTINGS_ADVANCED };
00074         CSpinButtonCtrl m_wndValueSpin;
00075         CEdit   m_wndValue;
00076         CListCtrl       m_wndList;
00077         //}}AFX_DATA
00078 
00079 // Overrides
00080 public:
00081         //{{AFX_VIRTUAL(CAdvancedSettingsPage)
00082         public:
00083         virtual void OnOK();
00084         protected:
00085         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00086         //}}AFX_VIRTUAL
00087 
00088 // Implementation
00089 protected:
00090         //{{AFX_MSG(CAdvancedSettingsPage)
00091         virtual BOOL OnInitDialog();
00092         afx_msg void OnDestroy();
00093         afx_msg void OnItemChangedProperties(NMHDR* pNMHDR, LRESULT* pResult);
00094         afx_msg void OnChangeValue();
00095         afx_msg void OnColumnClickProperties(NMHDR* pNMHDR, LRESULT* pResult);
00096         //}}AFX_MSG
00097         DECLARE_MESSAGE_MAP()
00098 
00099 };
00100 
00101 //{{AFX_INSERT_LOCATION}}
00102 
00103 #endif // !defined(AFX_PAGESETTINGSTRAFFIC_H__20363ACA_EC88_4DEB_A9C1_D8B4CE8A365E__INCLUDED_)

Generated on Thu Dec 15 10:39:46 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2