Sha256: f86acc5121bfb093a286fcd774303a1ba8149ce51398da933bd7bb2c811695ed

Contents?: true

Size: 1.86 KB

Versions: 14

Compression:

Stored size: 1.86 KB

Contents

/******************************************************************************/
#include "ControlList.h"

/******************************************************************************/
/******************************************************************************/
CControlListEntry::CControlListEntry (CControl *pcontrol)
{
	pControl = pcontrol;
	pNext = NULL;
}

/******************************************************************************/
CControlListEntry::~CControlListEntry ()
{
	delete pControl;
}

/******************************************************************************/
/******************************************************************************/
CControlList::CControlList ()
{
	pFirstEntry = NULL;
}

/******************************************************************************/
CControlList::~CControlList ()
{
	Clear ();
}

/******************************************************************************/
void CControlList::AddEntry (CControlListEntry *padd)
{
	// Add new entry to end of list, or start new list
	if (pFirstEntry)
	{
		CControlListEntry *pentry = pFirstEntry;

		while (pentry->pNext)
			pentry = pentry->pNext;

		pentry->pNext = padd;
	}
	else
		pFirstEntry = padd;

	padd->pNext = NULL;
}

/******************************************************************************/
void CControlList::Clear ()
{
	CControlListEntry *pentry = pFirstEntry, *pnext;

	// Free list
	while (pentry)
	{
		pnext = pentry->pNext;
		delete pentry;
		pentry = pnext;
	}

	pFirstEntry = NULL;
}

/******************************************************************************/
CControlListEntry *CControlList::Find (LPCWSTR id)
{
	CControlListEntry *pentry = pFirstEntry;

	// Return matching map entry for specified ID, or NULL if not found
	while (pentry)
	{
		if (!wcsicmp (pentry->pControl->GetID (), id))
			return pentry;

		pentry = pentry->pNext;
	}

	return NULL;
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rhodes-7.6.0 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-7.5.1 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-7.4.1 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-7.1.17 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-6.2.0 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-6.0.11 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-5.5.18 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-5.5.17 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-5.5.15 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-5.5.0.22 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-5.5.2 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-5.5.0.7 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-5.5.0.3 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp
rhodes-5.5.0 neon/Helium/HeliumForWindows/Implementation/Plugins/PB_Controls/PlugIn/ControlList.cpp