new form
  name			u_cgain
  shade			white
  origin		1 3
  size			93 28
  help			This is the operation specification form
  data font		6x12
  label font		6x12
  application font	6x12
  border		1
  selection border	1
  help			Description form of the casual gain\n\
			concern during the zone usage.
end desk

new field
	name		c_day_type
	type		popup
	origin		2 1
	size		64 64 pixels
	label position	fit below
	label string	Day Type
	selection border	0
	border			8
	menu		weekday\
			saturday\
			sunday
	help		The day type of the currently\n\
			displayed operation specification.
	description	\
The casual gain specification is divided in\n\
three different day types which are\n\
representative in simulation.
end field

new field
	name		zone_name
	type		character
	origin		23 1
	size		20 1
	menu		~~~\
			kitchen\
			living\
			dining\
			bed1\
			bed2
	help		Please enter the name\n\
			of  the  zone you are\n\
			about to define.
	border		1
	label string	Zone Name
	selection border	1
	label position	left
end field

new field
	name		b_calc
	type		button
	origin		30 4
	size		12 1
	label string	Tool 
	label position	left
	menu		calculator
	help		Push this button to get a information\n\
			about the required values in the form\n\
			below.
end field

new field
	name		b_c_split_gain
	type		button
	origin		2 15
	size		13 1
	menu		breakdown
	help		Push this button to get a form\n\
			to edit casual gain independent\n\
			from the event profile database.
end field

new field
	name		b_c_profile_shift
	type		button
	origin		2 17
	size		13 1
	start		hidden
	menu		shift
	help		Mark one of the casual gains defined\n\
			by database to shift it down to a\n\
			splitted casual gain defintion.
end field


new form
	name			cd_gain_list
	shade			white
	origin			2 6
	size			88 10
	data font		6x12
	label font		6x12
	application font	6x12
  	border			1
  	selection border	2	
end desk

new field
	name			cd_gain_type_label
	type			label
	origin			5 0
	size			16 1
	current value		Gain type
	border			0
	selection border	0
	help			This menu offers you\n\
				casual gain types.
end field

new field
	name			cd_profile_label
	type			label
	origin			26 0
	size			15 1
	current value		Event profile
	border			0
	selection border	0
	help			Choose one of the event profiles\n\
				to describe the daily changes of\n\
				your casual gains.
end field

new field
	name			cd_sensible_label
	type			label
	origin			50 0
	size			19 1
	current value		Sensible&Latent
	border			0
	selection border	0
	help			Enter the sensible and\n\
				latent 100% value of the\n\
				casual gain.
end field

new field
	name			cd_radiant_label
	type			label
	origin			67 0
	size			18 1
	current value		Radiant/Convective
	border			0
	selection border	0
	help			Enter the radiant and convective\n\
				split of the casual gain.
end field

new field
	name			cd_gain_marker[1]
	type			button
	origin			.5 1.5
	size			1 1
	label position		left
	start			hidden
	menu			x
	vertical offset		2
	duplicate		@cd_gain_marker[1]*3
end field

new field
	name			cd_gain_type[1]
	type			popup
	origin			4 1.5
	size			11 1
	label position		left
	menu			people\
				lighting\
				equipment\
				processes
	vertical offset		2
	duplicate		@cd_gain_type[1]*3

	help			This menu offers you\n\
				casual gain types.
	description		Casual gain type.
end field

new field
	name			cd_profile[1]
	type			character
	origin			19 1.5
	size			29 1
	label position		left
	label colour		black
	menu			loading failed
	vertical offset		2
	duplicate		@cd_profile[1]*3
	help			Choose one of the event profiles\n\
				to describe the daily changes of\n\
				your casual gains.
	description		Event profile.
end field

new field
	name			cd_sensible[1]
	type			real
	origin			51 1.5
	size			7 1
	label position		fit above
	vertical offset		2
	duplicate		@cd_sensible[1]*3
	help			Enter the sensible 100%\n\
				value of the casual gain.
	description		Sensible value.
end field

new field
	name			cd_latent[1]
	type			real
	origin			59 1.5
	size			7 1
	label position		fit above
	vertical offset		2
	duplicate		@cd_latent[1]*3
	help			Enter the latent 100%\n\
				value of the casual gain.
	description		Latent value.
end field

new field
	name			cd_radiant[1]
	type			real
	origin			71 1.5
	size			4 1
	label position		fit above
	vertical offset		2
	duplicate		@cd_radiant[1]*3
	help			Enter the radiant\n\
				split of the casual gain.
	description		Radiant split.
end field

new field
	name			cd_convective[1]
	type			real
	origin			76 1.5
	size			4 1
	vertical offset		2
	label position		fit above
	duplicate		@cd_convective[1]*3
	help			Enter the convective\n\
				split of the casual gain.
	description		Convective split.
end field

parent form	@u_cgain
new form
	name			c_gain_list
	shade			white
	origin			19 14
	size			71 7
	start			hidden
	data font		6x12
	label font		6x12
	application font	6x12
  	border			1
  	selection border	2	
end desk

new field
	name			c_gain_type_label
	type			label
	origin			5 0
	size			16 1
	current value		Gain type
	border			0
	selection border	0
	help			This menu offers you\n\
				casual gain types.
end field

new field
	name			c_start_time_label
	type			label
	origin			19 0
	size			5 1
	current value		Start
	border			0
	selection border	0
	help			Enter the start time\n\
				of casual gain  period.
end field

new field
	name			c_end_time_label
	type			label
	origin			25 0
	size			3 1
	current value		End
	border			0
	selection border	0
	help			Enter the end time\n\
				of casual gain period.
end field

new field
	name			c_sensible_label
	type			label
	origin			33 0
	size			19 1
	current value		Sensible&Latent
	border			0
	selection border	0
	help			Enter the sensible and\n\
				latent 100% value of the\n\
				casual gain.
end field

new field
	name			c_radiant_label
	type			label
	origin			50 0
	size			18 1
	current value		Radiant/Convective
	border			0
	selection border	0
	help			Enter the radiant and convective\n\
				split of the casual gain.
end field

new field
	name			c_gain_marker[1]
	type			button
	origin			.5 1.5
	size			1 1
	label position		left
	menu			x
	start			hidden
	vertical offset		2
	duplicate		@c_gain_marker[1]*2
end field

new field
	name			c_gain_type[1]
	type			popup
	origin			4 1.5
	size			11 1
	label position		left
	menu			people\
				lighting\
				equipment\
				processes
	vertical offset		2
	duplicate		@c_gain_type[1]*2
	help			This menu offers you\n\
				casual gain types.
	description		Casual gain type.
end field

new field
	name			c_start[1]
	type			real
	origin			19 1.5
	size			5 1
	label position		fit above
	vertical offset		2
	duplicate		@c_start[1]*2
	help			Enter the start time\n\
				of casual gain  period.
	description		start time.
end field

new field
	name			c_end[1]
	type			real
	origin			25 1.5
	size			5 1
	label position		fit above
	vertical offset		2
	duplicate		@c_end[1]*2
	help			Enter the end time\n\
				of casual gain  period.
	description		End time.
end field

new field
	name			c_sensible[1]
	type			real
	origin			34 1.5
	size			7 1
	label position		fit above
	vertical offset		2
	duplicate		@c_sensible[1]*2
	help			Enter the sensible 100%\n\
				value of the casual gain.
	description		Sensible value.
end field

new field
	name			c_latent[1]
	type			real
	origin			42 1.5
	size			7 1
	label position		fit above
	vertical offset		2
	duplicate		@c_latent[1]*2
	help			Enter the latent 100%\n\
				value of the casual gain.
	description		Latent value.
end field

new field
	name			c_radiant[1]
	type			real
	origin			54 1.5
	size			4 1
	label position		fit above
	vertical offset		2
	duplicate		@c_radiant[1]*2
	help			Enter the radiant\n\
				split of the casual gain.
	description		Radiant split.
end field

new field
	name			c_convective[1]
	type			real
	origin			59 1.5
	size			4 1
	vertical offset		2
	label position		fit above
	duplicate		@c_convective[1]*2
	help			Enter the convective\n\
				split of the casual gain.
	description		Convective split.
end field
