示例#1
0
文件: VarUnit.cpp 项目: alex-games/a1
void VarUnit::addVariable(TVar * var){
    QString n = varName(var).join(".");
    // pointers.insert(var->pointer);
    varList.insert(n);
    if ( var->hidden ){
        hidden.insert(shortVarName(var).join("."));
    }
}
示例#2
0
bool VarUnit::isSaved(TVar* var)
{
    QString n = shortVarName(var).join(".");
    return (savedVars.contains(n) || var->saved);
}
示例#3
0
void VarUnit::removeSavedVar(TVar* var)
{
    QString n = shortVarName(var).join(".");
    savedVars.remove(n);
    var->saved = false;
}
示例#4
0
void VarUnit::addSavedVar(TVar* var)
{
    QString n = shortVarName(var).join(".");
    var->saved = true;
    savedVars.insert(n);
}
示例#5
0
void VarUnit::removeHidden( TVar * var ){
    QString n = shortVarName(var).join(".");
    hidden.remove(n);
    hiddenByUser.remove(n);
    var->hidden = false;
}