示例#1
0
void QcrRadioBox::doSetValue(int val)
{
    ASSERT(val>=0);
    ASSERT(val<size());
    if (val==doGetValue())
        return;
    for (int i=0; i<size(); ++i)
        buttons_[i]->setChecked(i==val);
}
bool RegExpFilterFieldsParameterMapper::getValueWithSlotname(const char *key, String const &strSlotname, Context & ctx, ValueType & value,
		ROAnything script) {
	StartTrace1(RegExpFilterFieldsParameterMapper.getValueWithSlotname, "key [" << NotNull(key) << "] slotname [" << strSlotname << "]");
	String strNewKey = key;
	if (Lookup(_CombineKeyName, 1L) != 0) {
		strNewKey.Append(getDelim()).Append(strSlotname);
	}
	Anything slotnameBuffer = strSlotname, combinedKeyBuffer = strNewKey;
	Context::PushPopEntry<Anything> aSlotnameEntry(ctx, "CurrentSlotname", slotnameBuffer, _CurrentSlotname);
	Context::PushPopEntry<Anything> aCombinedEntry(ctx, "CombinedKey", combinedKeyBuffer, _CombinedKeyName);
	return doGetValue(strNewKey, value, ctx, script);
}