Пример #1
0
// base class
bool Constraint::equals(ref<Constraint> c)
{
    if (getCType() != c->getCType()) {
        return false;
    } else {
        return equalsInternal(c);
    }
}
Пример #2
0
int PrecedenceConstraintDialog::run()
{
    int response = mDialog->run();
    mDialog->hide();
    std::string tmp = mActTlMin->get_text();
    mPrecedenceConstraint.actTlMin(tmp);
    tmp = mActTlMax->get_text();
    mPrecedenceConstraint.actTlMax(tmp);
    mPrecedenceConstraint.cType(getCType());
    return response;
}