31 lines
570 B
C++
31 lines
570 B
C++
#include "stdafx.h"
|
|
#include "Settings Page.h"
|
|
|
|
CConfigSettingSection::CConfigSettingSection( LPCSTR PageTitle ) :
|
|
m_PageTitle(PageTitle)
|
|
{
|
|
}
|
|
|
|
CConfigSettingSection::~CConfigSettingSection ()
|
|
{
|
|
for (size_t i = 0; i < m_Pages.size(); i++)
|
|
{
|
|
delete m_Pages[i];
|
|
}
|
|
m_Pages.clear();
|
|
}
|
|
|
|
void CConfigSettingSection::AddPage(CSettingsPage * Page )
|
|
{
|
|
m_Pages.push_back(Page);
|
|
}
|
|
|
|
CSettingsPage * CConfigSettingSection::GetPage ( int PageNo )
|
|
{
|
|
if (PageNo < 0 || PageNo >= (int)m_Pages.size())
|
|
{
|
|
return NULL;
|
|
}
|
|
return m_Pages[PageNo];
|
|
}
|