bool wxsBoolProperty::PropStreamWrite(cb_unused wxsPropertyContainer* Object,
                                      wxsPropertyStream* Stream)
{
    return Stream->PutBool(GetDataName(),VALUE,Default);
}
bool wxsStringProperty::PropStreamWrite(wxsPropertyContainer* Object,wxsPropertyStream* Stream)
{
    return Stream->PutString(GetDataName(),VALUE,Default);
}
Exemple #3
0
char *BlakodStackInfo()
{
	static char buf[5000];
	class_node *c;
	int i;

	buf[0] = '\0';
	for (i=message_depth-1;i>=0;i--)
	{
		char s[1000];
		if (stack[i].class_id == INVALID_CLASS)
		{
			sprintf(s,"Server");
		}
		else
		{
			c = GetClassByID(stack[i].class_id);
			if (c == NULL)
				sprintf(s,"Invalid class %i",stack[i].class_id);
			else
			{
				char *bp;
				char *class_name;
				char buf2[200];
				char parms[800];
				int j;

				/* for current frame, stack[] has pointer at beginning of function;
					use current pointer instead */
				bp = stack[i].bkod_ptr;
				if (i == message_depth-1)
					bp = bkod;

				class_name = "(unknown)";
				if (c->class_name)
					class_name = c->class_name;
				/* use %.*s with a fixed string of pluses to get exactly one plus per
					propagate depth */
				sprintf(s,"%.*s%s::%s",stack[i].propagate_depth,"++++++++++++++++++++++",class_name,GetNameByID(stack[i].message_id));
				strcat(s,"(");
				parms[0] = '\0';
				for (j=0;j<stack[i].num_parms;j++)
				{
					val_type val;
					val.int_val = stack[i].parms[j].value;
					sprintf(buf2,"#%s=%s %s",GetNameByID(stack[i].parms[j].name_id),
							  GetTagName(val),GetDataName(val));
					if (j > 0)
						strcat(parms,",");
					strcat(parms,buf2);
				}
				strcat(s,parms);
				strcat(s,")");
				sprintf(buf2," %s (%i)",c->fname,GetSourceLine(c,bp));
				strcat(s,buf2);
			}
		}
		if (i < message_depth-1)
			strcat(buf,"\n");
		strcat(buf,s);
		if (strlen(buf) > sizeof(buf) - 1000)
		{
			strcat(buf,"\n...and more");
			break;
		}
	}
	return buf;
}
/*! \brief Read from a property stream.
 *
 * \param Object wxsPropertyContainer*
 * \param Stream wxsPropertyStream*
 * \return bool
 *
 */
bool wxsEditEnumProperty::PropStreamRead(cb_unused wxsPropertyContainer *Object,
                                         wxsPropertyStream *Stream)
{
    return Stream->GetString(GetDataName(), VALUE, Default);
}
bool wxsEnumProperty::PropStreamRead(wxsPropertyContainer* Object,wxsPropertyStream* Stream)
{
    return Stream->GetLong(GetDataName(),VALUE,Default);
}
bool wxsSizerFlagsProperty::PropStreamWrite(wxsPropertyContainer* Object,wxsPropertyStream* Stream)
{
    return Stream->PutLong(GetDataName(),FLAGS,AlignTop|AlignLeft);
}