<!--
// ----
// ---- file   : EditCustomSynthInstrumentDialog.xfm
// ---- author : Bastian Spiegel <bs@tkscript.de>
// ---- legal  : (c) 2011 by Bastian Spiegel. 
// ----          Distributed under terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL). See 
// ----          http://www.gnu.org/licenses/licenses.html#LGPL or COPYING for further information.
// ----
// ---- info   : This is part of the "syntracker" midi sequencer.
// ----
// ---- created: 06Apr2011
// ----          
// ---- changed: 
// ----
// ----
// ----
-->
<xfm>

  <Panel dir=top size="100%;100%">

    <!-- General settings -->
    <TitledPanel dir=top caption="General" align=expandx>
      
      <SizeGroupX id=sgx_gen/>

      <!-- name, edit ctlmap, edit generator -->
      <Panel dir=bottom >
        <Panel dir=left>
          <RepeatButton id="rb_nextinstr" dir=LEFT icon="arr_r" iconPlacement=CENTER caption="" padTop=2/>
          <RepeatButton id="rb_previnstr" dir=LEFT icon="arr_l" iconPlacement=CENTER caption="" padTop=2/>
          <TextField id=tf_name dir=LEFT cols=23 maxCols=255 text="???" padTop=2
                     toolTipCaption="Instrument name"
		     />
          <Label dir=LEFT caption="Name:" sizeGroup=sgx_gen textPlacement=RIGHT/>

          <Panel>
            <!-- Edit User ctl param map -->
            <Button dir=RIGHT id=bt_edit_ctl align=BOTTOM;RIGHT caption="CtlMap" 
                    toolTipCaption="Edit user controller parameter mapping"
                    />

            <!-- Edit generator -->
            <Button dir=RIGHT id=bt_edit_gen align=BOTTOM;RIGHT caption="Generator" 
                    toolTipCaption="Edit/reassign generator"
                    />
          </Panel>
        </Panel>
      </Panel>

      <!-- enable macro, edit macro -->
      <Panel dir=BOTTOM>

        <!-- sample pitchbend range -->
        <FloatParam id=fp_pitchbend dir=LEFT  value=0 min=-24 max=24 rangeEditable=1
                    toolTipCaption="Pitchbend range (# notes)"
		    />
        <Label dir=LEFT  caption="Pitchbend:"
               sizeGroup=sgx_gen
               textPlacement=RIGHT
	       padLeft=20
               />

	<!-- reset usrctl -->
	<CheckBox dir=LEFT id=cb_resetusrctl padLeft=20 checked=1 caption="Reset usrctl"
		  toolTipCaption="If checked, invalidate user controllers when instrument is selected"
		  />

        <!-- automation -->
        <CheckBox dir=LEFT id=cb_enablemacro checked=0 caption="Enable"
                  toolTipCaption="Enable macro automation"
		  />
        <Button dir=LEFT id=bt_editmacro caption="Edit.."
                toolTipCaption="Edit macro automation"
		/>
        <Label dir=LEFT caption="Macro automation:"
               sizeGroup=sgx_gen
               textPlacement=RIGHT
               />

      </Panel>


    </TitledPanel> <!-- end General -->

    <Panel taborder=0 dir=bottom sizeX="100%">
      <Button id=bt_close dir=CENTER caption="Close instrument dialog" innerPadding="6;2;6;5" padTop=4 padRight=10 />
    </Panel>

  </Panel>
    
</xfm>
