예제 #1
0
uvar32_64 CMarkStyle::GetPos () {
	for (CHash<CMarkStyle*,CMarkStyle>* p = theApp.MarkStyles.m_pHashHead; p; p = p->GetNext ())
		if (p->m_hData == this)
			if (theApp.MarkStyles.m_nActive == p->GetPos ())
				return (p->GetPos ());
	return (uvar32_64(-1));
}
예제 #2
0
uvar32_64 CVariable::GetPos () {
	m_pTesla->Variables.m_pHashHead = m_pTesla->Variables.m_pHashHead->GetHead ();
	for (CHash<CVariable*,CVariable>* p = m_pTesla->Variables.m_pHashHead; p; p = p->GetNext ())
		if (p->m_hData == this)
			return (p->GetPos ());
	return (-1);
}
예제 #3
0
svar32_64 CImage::GetPos () {
	m_pDoc->Images.m_pHashHead = m_pDoc->Images.m_pHashHead->GetHead ();
	for (CHash<CImage*,CImage>* p = m_pDoc->Images.m_pHashHead; p; p = p->GetNext ())
		if (p->m_hData == this)
			return (p->GetPos ());
	return (-1);
}
예제 #4
0
uvar32_64 CDiasAPIDensScales::Insert (uvar32_64 pos, CDensScale& scale) {
	if ((pos = NameLookup (scale.m_strName)) != uvar32_64(-1))
		return ((uvar32_64)-1);
	CHash<CDensScale*,CDensScale>* p = new CHash<CDensScale*,CDensScale>(&scale);
	m_pHashHead->GetAt(pos)->InsertAfter (p);
	m_pHashHead = m_pHashHead->GetHead ();
	return ((uvar32_64)(p->GetPos ()));
}
예제 #5
0
uvar32_64 CDiasAPIDensScales::Add (CDensScale& scale) {
	int pos;
	if ((pos = NameLookup (scale.m_strName)) != uvar32_64(-1))
		return ((uvar32_64)-1);
	CHash<CDensScale*,CDensScale>* p = new CHash<CDensScale*,CDensScale>(&scale);
	if (!m_pHashHead)
		m_pHashHead = p;
	else
		m_pHashHead->GetTail()->InsertAfter (p);
	return ((uvar32_64)(p->GetPos()));
	
}
예제 #6
0
void CMarkStyle::Activate () {
	for (CHash<CMarkStyle*,CMarkStyle>* p = theApp.MarkStyles.m_pHashHead; p; p = p->GetNext ())
		if (p->m_hData == this)
			theApp.MarkStyles.m_nActive = p->GetPos ();
	theApp.Update (UPDHA_MARKSTYLE);
}
예제 #7
0
파일: Scales.cpp 프로젝트: macx0r/dias-inet
void CGeomScale::Activate () {
	for (CHash<CGeomScale*,CGeomScale>* p = theApp.GeomScales.m_pHashHead; p; p = p->GetNext ())
		if (p->m_hData == this)
			theApp.GeomScales.m_nActive = p->GetPos ();
	theApp.Update (UPDHA_GEOMSCALE);
}
예제 #8
0
파일: Scales.cpp 프로젝트: macx0r/dias-inet
void CDensScale::Activate () {
	for (CHash<CDensScale*,CDensScale>* p = theApp.DensScales.m_pHashHead; p; p = p->GetNext ())
		if (p->m_hData == this)
			theApp.DensScales.m_nActive = p->GetPos ();
	theApp.Update (UPDHA_DENSSCALE);
}