Example #1
0
void
edit_typeset_rep::init_style (string name) {
  if ((name == "none") || (name == "") || (name == "style")) the_style= TUPLE;
  else if (arity (the_style) == 0) the_style= tree (TUPLE, name);
  else the_style= tree (TUPLE, name) * the_style (1, N(the_style));
  require_save ();
  notify_change (THE_ENVIRONMENT);
}
Example #2
0
void roof::DefineParameters(ParameterListT& list) const
{
	/* inherited */
	ParameterInterfaceT::DefineParameters(list);

	ParameterT the_style(ParameterT::Enumeration, "style");
	the_style.AddEnumeration("shingle", shingle);
	the_style.AddEnumeration("slate", slate);
	list.AddParameter(the_style);
}
Example #3
0
void house::DefineParameters(ParameterListT& list) const
{
    /* inherited */
    ParameterInterfaceT::DefineParameters(list);

    ParameterT the_style(ParameterT::Enumeration, "style");
    the_style.AddEnumeration("colonial", colonial);
    the_style.AddEnumeration("ranch", ranch);
    the_style.AddEnumeration("split_level", split_level);
    list.AddParameter(the_style);

    list.AddParameter(zipcode_, "zipcode");
}