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

CSettingsSheet Class Reference

#include <WndSettingsSheet.h>

Inheritance diagram for CSettingsSheet:

CSkinDialog CProfileManagerDlg CSettingsManagerDlg List of all members.

Public Member Functions

 CSettingsSheet (CWnd *pParent=NULL, UINT nCaptionID=0)
virtual ~CSettingsSheet ()
void AddPage (CSettingsPage *pPage, LPCTSTR pszCaption=NULL)
void AddGroup (CSettingsPage *pPage, LPCTSTR pszCaption=NULL)
CSettingsPageGetPage (int nPage) const
CSettingsPageGetPage (CRuntimeClass *pClass) const
CSettingsPageGetPage (LPCTSTR pszClass) const
int GetPageIndex (CSettingsPage *pPage) const
int GetPageCount () const
CSettingsPageGetActivePage () const
BOOL SetActivePage (CSettingsPage *pPage)
BOOL SetActivePage (int nPage)
BOOL IsModified () const
void SetModified (BOOL bChanged=TRUE)
int DoModal ()

Protected Member Functions

void BuildTree ()
void Layout ()
BOOL CreatePage (CSettingsPage *pPage)
virtual void DoPaint (CDC &dc)
virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
virtual BOOL OnCommand (WPARAM wParam, LPARAM lParam)
afx_msg void OnPaint ()
virtual void OnOK ()
virtual void OnCancel ()
afx_msg void OnApply ()
afx_msg void OnTreeExpanding (NM_TREEVIEW *pNotify, LRESULT *pResult)
afx_msg void OnSelectPage (NM_TREEVIEW *pNotify, LRESULT *pResult)

Protected Attributes

CObArray m_pPages
CSettingsPagem_pPage
CSettingsPagem_pFirst
CSize m_szPages
CTreeCtrl m_wndTree
CButton m_wndOK
CButton m_wndCancel
CButton m_wndApply
BOOL m_bModified
DLGTEMPLATE * m_pTemplate
CString m_sCaption
int m_nLeftMargin
int m_nTopMargin
int m_nListWidth
int m_nListMargin
int m_nButtonHeight

Constructor & Destructor Documentation

CSettingsSheet::CSettingsSheet CWnd *  pParent = NULL,
UINT  nCaptionID = 0
 

Definition at line 53 of file WndSettingsSheet.cpp.

References NULL.

CSettingsSheet::~CSettingsSheet  )  [virtual]
 

Definition at line 68 of file WndSettingsSheet.cpp.


Member Function Documentation

void CSettingsSheet::AddGroup CSettingsPage pPage,
LPCTSTR  pszCaption = NULL
 

Definition at line 87 of file WndSettingsSheet.cpp.

References m_pPages.

Referenced by CSettingsManagerDlg::AddGroup(), and CProfileManagerDlg::AddGroup().

void CSettingsSheet::AddPage CSettingsPage pPage,
LPCTSTR  pszCaption = NULL
 

Definition at line 80 of file WndSettingsSheet.cpp.

References CSettingsPage::m_bGroup, m_pPages, and CSettingsPage::m_sCaption.

Referenced by CSettingsManagerDlg::AddPage(), and CProfileManagerDlg::AddPage().

void CSettingsSheet::BuildTree  )  [protected]
 

Definition at line 267 of file WndSettingsSheet.cpp.

References GetPage(), GetPageCount(), CSettingsPage::m_bGroup, m_pPage, CSettingsPage::m_sCaption, m_wndTree, and NULL.

Referenced by OnInitDialog().

BOOL CSettingsSheet::CreatePage CSettingsPage pPage  )  [protected]
 

Definition at line 342 of file WndSettingsSheet.cpp.

References m_nLeftMargin, m_nListMargin, m_nListWidth, m_nTopMargin, and m_szPages.

Referenced by SetActivePage().

void CSettingsSheet::DoDataExchange CDataExchange *  pDX  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Reimplemented in CSettingsManagerDlg.

Definition at line 72 of file WndSettingsSheet.cpp.

References CSkinDialog::DoDataExchange().

int CSettingsSheet::DoModal  ) 
 

Definition at line 205 of file WndSettingsSheet.cpp.

References m_bModified, CShareazaApp::m_bRTL, m_pFirst, m_pPage, m_pTemplate, NULL, and theApp.

Referenced by CSettingsManagerDlg::DoModal(), and CProfileManagerDlg::DoModal().

void CSettingsSheet::DoPaint CDC &  dc  )  [protected, virtual]
 

Reimplemented in CProfileManagerDlg, and CSettingsManagerDlg.

Definition at line 375 of file WndSettingsSheet.cpp.

References m_nButtonHeight, m_nLeftMargin, m_nListMargin, m_nListWidth, m_nTopMargin, and m_szPages.

Referenced by CSettingsManagerDlg::DoPaint(), CProfileManagerDlg::DoPaint(), and OnPaint().

CSettingsPage * CSettingsSheet::GetActivePage  )  const
 

Definition at line 133 of file WndSettingsSheet.cpp.

References m_pPage.

CSettingsPage * CSettingsSheet::GetPage LPCTSTR  pszClass  )  const
 

Definition at line 109 of file WndSettingsSheet.cpp.

References GetPage(), GetPageCount(), and NULL.

CSettingsPage * CSettingsSheet::GetPage CRuntimeClass *  pClass  )  const
 

Definition at line 99 of file WndSettingsSheet.cpp.

References GetPage(), GetPageCount(), and NULL.

CSettingsPage * CSettingsSheet::GetPage int  nPage  )  const
 

Definition at line 94 of file WndSettingsSheet.cpp.

References m_pPages.

Referenced by BuildTree(), CSettingsManagerDlg::DoModal(), CProfileManagerDlg::DoModal(), GetPage(), GetPageIndex(), Layout(), OnApply(), OnCancel(), OnInitDialog(), OnOK(), and SetActivePage().

int CSettingsSheet::GetPageCount  )  const
 

Definition at line 128 of file WndSettingsSheet.cpp.

References m_pPages.

Referenced by BuildTree(), GetPage(), GetPageIndex(), Layout(), OnApply(), OnCancel(), and OnOK().

int CSettingsSheet::GetPageIndex CSettingsPage pPage  )  const
 

Definition at line 119 of file WndSettingsSheet.cpp.

References GetPage(), and GetPageCount().

BOOL CSettingsSheet::IsModified  )  const
 

Definition at line 191 of file WndSettingsSheet.cpp.

References m_bModified.

void CSettingsSheet::Layout  )  [protected]
 

Definition at line 288 of file WndSettingsSheet.cpp.

References GetPage(), GetPageCount(), CSettingsPage::GetTemplateName(), CShareazaApp::m_gdiFont, m_nButtonHeight, m_nLeftMargin, m_nListMargin, m_nListWidth, m_nTopMargin, m_szPages, m_wndApply, m_wndCancel, m_wndOK, m_wndTree, NULL, and theApp.

Referenced by OnInitDialog().

void CSettingsSheet::OnApply  )  [protected]
 

Reimplemented in CProfileManagerDlg, and CSettingsManagerDlg.

Definition at line 420 of file WndSettingsSheet.cpp.

References GetPage(), GetPageCount(), m_pPage, CSettingsPage::OnApply(), CSettingsPage::OnKillActive(), and SetModified().

Referenced by CSettingsManagerDlg::OnApply(), and CProfileManagerDlg::OnApply().

void CSettingsSheet::OnCancel  )  [protected, virtual]
 

Definition at line 409 of file WndSettingsSheet.cpp.

References GetPage(), GetPageCount(), and CSettingsPage::OnCancel().

Referenced by OnCommand().

BOOL CSettingsSheet::OnCommand WPARAM  wParam,
LPARAM  lParam
[protected, virtual]
 

Definition at line 433 of file WndSettingsSheet.cpp.

References OnCancel(), and OnOK().

BOOL CSettingsSheet::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Reimplemented in CProfileManagerDlg, and CSettingsManagerDlg.

Definition at line 239 of file WndSettingsSheet.cpp.

References BuildTree(), GetPage(), IDC_SETTINGS_TREE, Layout(), CShareazaApp::m_gdiFont, m_pFirst, m_sCaption, m_wndApply, m_wndCancel, m_wndOK, m_wndTree, NULL, CSkinDialog::OnInitDialog(), SetActivePage(), and theApp.

Referenced by CSettingsManagerDlg::OnInitDialog(), and CProfileManagerDlg::OnInitDialog().

void CSettingsSheet::OnOK  )  [protected, virtual]
 

Reimplemented in CProfileManagerDlg, and CSettingsManagerDlg.

Definition at line 396 of file WndSettingsSheet.cpp.

References GetPage(), GetPageCount(), m_pPage, CSettingsPage::OnKillActive(), and CSettingsPage::OnOK().

Referenced by OnCommand(), CSettingsManagerDlg::OnOK(), and CProfileManagerDlg::OnOK().

void CSettingsSheet::OnPaint  )  [protected]
 

Definition at line 369 of file WndSettingsSheet.cpp.

References DoPaint().

void CSettingsSheet::OnSelectPage NM_TREEVIEW *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 358 of file WndSettingsSheet.cpp.

References m_pPage, m_wndTree, NULL, and SetActivePage().

void CSettingsSheet::OnTreeExpanding NM_TREEVIEW *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 353 of file WndSettingsSheet.cpp.

BOOL CSettingsSheet::SetActivePage int  nPage  ) 
 

Definition at line 186 of file WndSettingsSheet.cpp.

References GetPage(), and SetActivePage().

BOOL CSettingsSheet::SetActivePage CSettingsPage pPage  ) 
 

Definition at line 138 of file WndSettingsSheet.cpp.

References CreatePage(), m_pFirst, m_pPage, m_wndTree, NULL, CSettingsPage::OnKillActive(), and CSettingsPage::OnSetActive().

Referenced by CSettingsManagerDlg::DoModal(), CProfileManagerDlg::DoModal(), OnInitDialog(), OnSelectPage(), and SetActivePage().

void CSettingsSheet::SetModified BOOL  bChanged = TRUE  ) 
 

Definition at line 196 of file WndSettingsSheet.cpp.

References m_bModified.

Referenced by OnApply().


Member Data Documentation

BOOL CSettingsSheet::m_bModified [protected]
 

Definition at line 50 of file WndSettingsSheet.h.

Referenced by DoModal(), IsModified(), and SetModified().

int CSettingsSheet::m_nButtonHeight [protected]
 

Definition at line 58 of file WndSettingsSheet.h.

Referenced by DoPaint(), and Layout().

int CSettingsSheet::m_nLeftMargin [protected]
 

Definition at line 54 of file WndSettingsSheet.h.

Referenced by CreatePage(), DoPaint(), and Layout().

int CSettingsSheet::m_nListMargin [protected]
 

Definition at line 57 of file WndSettingsSheet.h.

Referenced by CreatePage(), DoPaint(), and Layout().

int CSettingsSheet::m_nListWidth [protected]
 

Definition at line 56 of file WndSettingsSheet.h.

Referenced by CreatePage(), DoPaint(), and Layout().

int CSettingsSheet::m_nTopMargin [protected]
 

Definition at line 55 of file WndSettingsSheet.h.

Referenced by CreatePage(), DoPaint(), and Layout().

CSettingsPage* CSettingsSheet::m_pFirst [protected]
 

Definition at line 43 of file WndSettingsSheet.h.

Referenced by DoModal(), CSettingsManagerDlg::DoModal(), OnInitDialog(), and SetActivePage().

CSettingsPage* CSettingsSheet::m_pPage [protected]
 

Definition at line 42 of file WndSettingsSheet.h.

Referenced by BuildTree(), DoModal(), GetActivePage(), OnApply(), OnOK(), OnSelectPage(), and SetActivePage().

CObArray CSettingsSheet::m_pPages [protected]
 

Definition at line 41 of file WndSettingsSheet.h.

Referenced by AddGroup(), AddPage(), GetPage(), and GetPageCount().

DLGTEMPLATE* CSettingsSheet::m_pTemplate [protected]
 

Definition at line 52 of file WndSettingsSheet.h.

Referenced by DoModal().

CString CSettingsSheet::m_sCaption [protected]
 

Definition at line 53 of file WndSettingsSheet.h.

Referenced by OnInitDialog().

CSize CSettingsSheet::m_szPages [protected]
 

Definition at line 44 of file WndSettingsSheet.h.

Referenced by CreatePage(), DoPaint(), and Layout().

CButton CSettingsSheet::m_wndApply [protected]
 

Definition at line 49 of file WndSettingsSheet.h.

Referenced by Layout(), and OnInitDialog().

CButton CSettingsSheet::m_wndCancel [protected]
 

Definition at line 48 of file WndSettingsSheet.h.

Referenced by Layout(), and OnInitDialog().

CButton CSettingsSheet::m_wndOK [protected]
 

Definition at line 47 of file WndSettingsSheet.h.

Referenced by Layout(), and OnInitDialog().

CTreeCtrl CSettingsSheet::m_wndTree [protected]
 

Definition at line 46 of file WndSettingsSheet.h.

Referenced by BuildTree(), Layout(), OnInitDialog(), OnSelectPage(), and SetActivePage().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:12 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2