<dialog id="dialog"
	title="Neues Codefragment erstellen"
	buttons="accept, cancel" >
	<script>
			function autoFillCode()
			{
				var doc = fl.getDocumentDOM();
				if(doc != null)
				{
					fl.xmlui.set("Code", fl.actionsPanel.getSelectedText(true));
				}
				else
				{
					alert("Wählen Sie Code in einer FLA-Datei aus.");
				}
			}
	 </script>

	<grid>
		<columns>
			<column />
			<column />
		</columns>
		<rows>
			<row>
				<label value="Titel: "
					align="right" control="title_ipt"/>
				<textbox id="Title" required="true"
					width="500"
					requiredname="Titel"/>
			</row>
			<row>
				<label value="Beschreibung: "
					align="right" control="tooltip_ipt"/>
				<textbox id="Tooltip" required="true"
					width="500"
					requiredname="Beschreibung"/>
			</row>
			<row>
				<label value="" />
				<hbox>
					<label value="Im Aktionsbedienfeld ausgewählten Code verwenden?"/>
					<button id="autoFill_btn"
						label="Automatisch füllen"
						oncommand="autoFillCode();"/>
				</hbox>
			</row>
			<row>
				<label value=" Code: "
					align="right" control="code_ipt"/>
				<textbox id="Code" multiline="true" required="true"
					width="500"
					rows="6"
					requiredname="Code"/>
			</row>
			<row>
				<label value="" align="right" control="requiresSymbol_ch" />
				<checkbox id="requiresSymbol_ch" wordwrap="true"
					label="Beim Anwenden von Codefragmenten instance_name_here automatisch ersetzen."
					checked="false"/>
			</row>
		</rows>
	</grid>
</dialog>
