void CSelectionListPane::OnResult()
{
	CSelectionDisplay * pCurrentSelection = m_pProteinVistaRenderer->GetCurrentSelectionDisplay();

	SelectionOperation(m_pBooleanSelectionDisplay, pCurrentSelection, m_selectOperation );

	m_pBooleanSelectionDisplay = NULL;
	m_selectOperation = 0;
}
예제 #2
0
파일: listtest.c 프로젝트: Afaren/reference
static void ParseOperation(dataBlockT db, string lhs)
{
    string token;

    token = ConvertToLowerCase(ReadToken(db->scanner));
    if (StringEqual(token, "nthelement")) {
        SelectionOperation(db, lhs);
    } else if (StringEqual(token, "length")) {
        LengthOperation(db, lhs);
    } else if (StringEqual(token, "head")) {
        HeadOperation(db, lhs);
    } else if (StringEqual(token, "tail")) {
        TailOperation(db, lhs);
    } else if (StringEqual(token, "cons")) {
        ConsOperation(db, lhs);
    } else if (StringEqual(token, "concat")) {
        ConcatOperation(db, lhs);
    } else if (IsVariableName(token)) {
        if (lhs == NULL) Error("Null lhs in assignment");
        SetValue(db, lhs, GetValue(db, token));
    } else {
        Error("Illegal operation %s", token);
    }
}