<plugin resizable="true">
	<grid rows="2" cols="2" transpose="true" spacing="4">
		<group ui:inject="GraphGroup" ipadding="0" expand="true" fill="true" text="labels.graphs.oscillator_waveform">
			<graph width.min="432" height.min="96" expand="true" fill="true">
				<origin hpos="-1.0" vpos="0.0" visible="false"/>

				<!-- Grid -->
				<ui:attributes color="graph_sec">
					<marker v="0.5"/>
					<marker v="1.0"/>
					<marker v="1.5"/>
					<marker v="-1.0" ox="1" oy="0"/>
					<marker v="1.0" ox="1" oy="0"/>
				</ui:attributes>

				<!-- Axes -->
				<axis min="0" max="2.0" color="graph_prim" angle="0.0" log="false"/>
				<axis min="-2.0" max="2.0" color="graph_prim" angle="0.5" log="false" visibility="false"/>

				<!-- Mesh -->
				<mesh id="ow" width="3"/>

				<!-- Text -->
				<ui:attributes y="-2" halign="1" valign="1" text="graph.values.x_T">
					<text x="0" text="graph.axis.period"/>
					<text x="0.5" text:value="0.5"/>
					<text x="1.0" text:value="1"/>
					<text x="1.5" text:value="1.5"/>
					<text x="2.0" text:value="2" halign="-1"/>
				</ui:attributes>
				<ui:attributes x="0" halign="1" valign="-1">
					<text y="-1" text="-1"/>
					<text y="0" text="0"/>
					<text y="1" text="1"/>
					<text y="2" text="graph.axis.amplitude"/>
				</ui:attributes>

			</graph>
		</group>


			<align halign="-1">
				<hbox hfill="true" bg.color="bg_schema" spacing="10" pad.h="4">
					<combo id="scf" pad.v="4"/>

					<button id="invss" text="labels.signal.invert" size="22" ui:inject="Button_green" visibility="(:scf ieq 2) or (:scf ieq 3)"/>

					<hbox visibility="(:scf ieq 4) or (:scf ieq 9)" expand="true">
						<label text="labels.oversampling" visibility=":scf ige 9"/>
						<combo id="scom" visibility=":scf ige 9" pad.h="6"/>
						<label text="labels.signal.duty_ratio"/>
						<knob id="rdtrt" size="12" ssize="2" scolor="green" pad.h="6"/>
						<value id="rdtrt" sline="true"/>
					</hbox>

					<hbox visibility="(:scf ieq 5) or (:scf ieq 10)" expand="true">
						<label text="labels.signal.width"/>
						<knob id="swdth" size="12" ssize="2" scolor="green" pad.h="6"/>
						<value id="swdth" sline="true"/>
					</hbox>

					<hbox visibility="(:scf ieq 6) or (:scf ieq 11)" expand="true">
						<label text="labels.signal.raise"/>
						<knob id="trsrt" size="12" ssize="2" scolor="green" pad.h="6"/>
						<value id="trsrt" sline="true" width="34" pad.r="6"/>
						<label text="labels.signal.fall" pad.l="6"/>
						<knob id="tflrt" size="12" ssize="2" scolor="green" pad.h="6"/>
						<value id="tflrt" width="34" sline="true"/>
					</hbox>

					<hbox visibility="(:scf ieq 7) or (:scf ieq 12)" expand="true">
						<label text="labels.signal.positive"/>
						<knob id="tpwrt" size="12" ssize="2" scolor="green" pad.h="6"/>
						<value id="tpwrt" sline="true" width="34" pad.r="6"/>
						<label text="labels.signal.negative" pad.l="6"/>
						<knob id="tnwrt" size="12" ssize="2" scolor="green" pad.h="6"/>
						<value id="tnwrt" sline="true" width="34"/>
					</hbox>

					<hbox visibility="(:scf ieq 8) or (:scf ieq 13)" expand="true">
						<button id="invps" text="labels.signal.invert" size="22" ui:inject="Button_green" pad.r="6"/>
						<label text="labels.signal.width" pad.l="6"/>
						<knob id="pwdth" size="12" ssize="2" scolor="green" pad.h="6" pad.v="4"/>
						<value id="pwdth" sline="true" width="34"/>
					</hbox>
				</hbox>

			</align>

		<cell rows="2">
			<group text="groups.general" ipadding="0" fill="true">
				<grid rows="10" cols="3" bg.color="bg_schema">
					<label text="labels.mode" pad.h="6" width.min="65" pad.t="4"/>
					<cell rows="2"><void fill="false"/></cell>
					<label text="labels.dc_reference" pad.h="6" pad.t="4"/>

					<combo id="scm" sline="true" pad.h="6" pad.v="4" hfill="true"/>
					<combo id="scr" pad.h="6" pad.v="4" hfill="true"/>

					<cell cols="3"><hsep bg.color="bg" pad.v="2" vreduce="true"/></cell>

					<label text="labels.frequency" pad.t="4"/>
					<cell rows="7"><vsep bg.color="bg" pad.h="2" hreduce="true"/></cell>
					<label text="labels.signal.amplitude" pad.t="4"/>
					<knob id="freq" size="20" pad.v="4"/>

					<knob id="gain" size="20" pad.v="4"/>
					<value id="freq" sline="true" pad.b="4"/>
					<value id="gain" sline="true" pad.b="4"/>

					<hsep bg.color="bg" pad.v="2" vreduce="true"/>
					<hsep bg.color="bg" pad.v="2" vreduce="true"/>

					<label text="labels.signal.phase" pad.t="4"/>
					<label text="labels.dc_offset" pad.t="4"/>
					<knob id="iniph" size="20" pad.v="4"/>
					<knob id="dcoff" size="20" pad.v="4"/>
					<value id="iniph" sline="true" pad.b="4"/>
					<value id="dcoff" sline="true" pad.b="4"/>
				</grid>
			</group>
		</cell>
	</grid>
</plugin>
