<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE widgetcontainer SYSTEM "http://www.sigames.com/dtds/widgetcontainer.dtd">

<screen title="News">
	<layout kind="arve" algn="top,extend"/>
	<layout kind="stks" algn="horizontal" laye="true" inse="0"/>

	<widget kind="gbox">
		<!-- one main panel, and a small filter panel on the left (which can be hidden) -->
		<layout kind="arhz" algn="right,extend"/>
		<layout kind="stks" algn="vertical" laye="true" inse="0"/>
	
		<widget kind="gbox" id="main">
			<layout kind="arve" algn="top,extend" offs="0"/>
			<layout kind="stks" algn="horizontal" inse="0" laye="true"/>
	
			<!-- index panel -->
			<widget kind="tbox" height="300" title="Inbox" id="indp">
				<layout kind="arve" algn="bottom,extend" offs="0"/>
				<layout kind="stks" algn="horizontal" inse="0" laye="true"/>
			  	
				<widget kind="gbox" id="indb">
					<layout kind="stks" algn="horizontal" inse="0" laye="true"/>
					<layout kind="arve" algn="top,extend" offs="0"/>

					<widget kind="gbox">
						<layout kind="arhz" algn="left" offs="0"/>
						<layout kind="stks" algn="top" laye="true" inse="0"/>
						<layout kind="fitc" algn="vertical"/>
						<record id="defp">
							<flags id="spec" value="text, small"/>
						</record>
						
						<widget kind="labl" asiz="horizontal" id="itcn"/>
					</widget>

					<widget kind="tabl" id="indx">
						<string id="layo" value="8, 24, -1"/>
						<flags id="mode" value="select_rows, select_multiple, cant_deselect,fill_rows,stripe_rows"/>
						<record id="defp">
							<flags id="spec" value="text"/>
						</record>
						<list id="clpr">
							<record indx="0">
								<colour name="selection"/>
							</record>
						</list>
						<list id="cdpr">
							<record indx="0">
								<integer id="left" value="4"/>
							</record>
							<record indx="1">
								<flags id="clal" value="centre"/>
							</record>
						</list>
					</widget>
					
				</widget>
	
			</widget>

			<widget kind="gbox" height="22" id="btnb">
				<layout kind="arhz" algn="right, extend"/>
				<layout kind="stks" algn="vertical" inse="0" laye="true"/>

		
				<widget kind="gbox" id="btnl">
					<layout kind="arhz" algn="left"/>
					<layout kind="stks" algn="vertical" inse="0" laye="true"/>
		
					<widget kind="abtn" id="nexu" text="Next Unread" asiz="horizontal" clke="nexu"/>
					<widget kind="abtn" id="nexr" text="Next Response" asiz="horizontal" clke="nexr"/>
					<widget kind="abtn" id="sela" text="Select All" asiz="horizontal" clke="sela"/>
					<widget kind="abtn" id="mard" text="Mark As Read" asiz="horizontal" clke="mard"/>
			
					<!-- temporarily disabled since they're not implemented
					<widget kind="abtn" id="dele" text="Delete" asiz="horizontal" clke="dele"/>
					<widget kind="abtn" id="save" text="Save" asiz="horizontal" clke="save"/>
					-->
				</widget>
		
				<widget kind="abtn" id="filt" asiz="all" clke="filt" text="Filter" width="120"/>
			</widget>
			
			<!-- message panel -->
			<widget kind="tbox" id="nwhd" title="Message">
				<layout kind="arve" algn="top,extend"/>
				<layout kind="stks" algn="horizontal" inse="0" laye="true"/>
				
				<!-- whether to hide the headline - not a good idea in this case since it is the titled box itself -->
				<false id="hdwe" comment=""/>
				
				<!-- this box contains the date & status items -->
				<widget kind="gbox" id="nbx2">
					<layout kind="stks" algn="top" inse="0" laye="true"/>
					<layout kind="fitc" algn="vertical"/>
					<layout kind="arhz" algn="right,extend"/>
					
					<!-- title is now used to show headline
					<widget kind="text" asiz="vertical" id="nwhd" spec="title" text="This is a headline">
					</widget>
					-->
					
					<widget kind="gbox" id="stap">
						<layout kind="arve" offs="0" gap="0"/>
						<layout kind="fitc" algn="horizontal" offs="0"/>
						<layout kind="fitc" algn="vertical,fill" offs="0" gap="0"/>
						<layout kind="stks" algn="left" laye="true" inse="0"/>
						
						<widget kind="labl" asiz="horizontal" id="date" spec="text" text="Date: Wednesday 15th May, 13:45"/>
						<widget kind="labl" asiz="horizontal" id="stat" spec="text" text="Status: unread"/>
					</widget>
				</widget>
				
				<!-- spacer -->
				<widget kind="gbox" height="6"/>
	
				<!-- news area -->
				<widget kind="gbox">
					<layout kind="arve" algn="bottom,extend"/>
					<layout kind="stks" algn="horizontal" inse="0" laye="true"/>
					
					<!-- box containing the actual news; the text item goes inside a scrolling box -->
					<widget kind="sbox" id="tbox">
						<widget kind="text" id="text" asiz="vertical" spec="text, large" text="This is a news item"/>
					</widget>
					
					<!-- box for any response items to go into -->
					<widget kind="gbox" id="resp">
						<layout kind="fitc" algn="vertical" offs="0"/>
						<layout kind="arhz" algn="right" offs="0"/>
						<layout kind="stks" algn="top" inse="0" laye="true"/>
					</widget>
				</widget>
			</widget>
		</widget>
	
		<!-- filter editing panel -->
		<widget kind="filp" id="filp" width="300">
			<true id="hidn"/>
		</widget>
	</widget>
</screen>
