Esempio n. 1
0
FWL_ERR CFWL_GridImp::Update() {
  if (IsLocked()) {
    return FWL_ERR_Indefinite;
  }
  ProcessColumns(m_pProperties->m_rtWidget.width);
  ProcessRows(m_pProperties->m_rtWidget.height);
  SetAllWidgetsRect();
  return FWL_ERR_Succeeded;
}
Esempio n. 2
0
int 
CGenethonDoc::GetGenbankFile( CString PathName, int Append )
{

	CPtrList CommentList;
	CPtrList SequenceList;

	gMaxStrSize = 0L;

	if ( !ReadGenbankFile ( &CommentList, &SequenceList, PathName ) ) {
		while ( !SequenceList.IsEmpty() ) {
			delete (SeqNameStruct *)SequenceList.RemoveHead();
		}
		return 0;
	}

	return ProcessRows( CommentList, SequenceList, Append );
}
Esempio n. 3
0
int 
CGenethonDoc::GetTextFile( CString PathName, int Append, 
	const CString& SeqName, double SeqWeight, DWORD TextStart, const CString& Descr, int IUPAC )
{

	CPtrList CommentList;
	CPtrList SequenceList;

	gMaxStrSize = 0L;

	if ( !ReadTextFile ( &CommentList, &SequenceList, PathName, SeqName, SeqWeight, TextStart, Descr, IUPAC ) ) {
		while ( !SequenceList.IsEmpty() ) {
			delete (SeqNameStruct *)SequenceList.RemoveHead();
		}
		return 0;
	}

	return ProcessRows( CommentList, SequenceList, Append );
}
Esempio n. 4
0
int
CGenethonDoc::GetPhylipFile( CString PathName, int Append )
{

	CPtrList CommentList;
	CPtrList SequenceList;

	if ( !ReadPhylipIFile( &CommentList, &SequenceList, PathName ) ) {
		while ( !CommentList.IsEmpty() ) {
			delete (CString *)CommentList.RemoveHead();
		}
		while ( !SequenceList.IsEmpty() ) {
			delete (SeqNameStruct *)SequenceList.RemoveHead();
		}
		return 0;
	}

	SeqNameStruct *tSNS = (SeqNameStruct *)SequenceList.GetHead();
	gMaxStrSize = tSNS->Len;

	return ProcessRows( CommentList, SequenceList, Append );

}