<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

    <!-- bean that controls connect/disconnect operation in the menu. -->
	<bean id="connectAction" class="com.apldbio.sds.platform.actions.ConnectToInstrumentAction" 
		singleton="true" init-method="initThis">
		<property name="name"><value>Connect</value></property>
		<property name="instrumentManager">
			<ref bean="instrumentManager" />
		</property>
	</bean>
    
	<bean id="openFileAction"
		class="com.apldbio.sds.platform.actions.OpenDomainObjectAction"
		singleton="true">
		<property name="name">
			<value>Open...</value>
		</property>
		<property name="accelerator">
			<value>control O</value>
		</property>
		<property name="mnemonic">
			<value>O</value>
		</property>
	</bean>
    
    <bean id="copyToClipboardAction"
		class="com.apldbio.sds.platform.actions.CopyToClipboardAction"
		singleton="true">
		<property name="name">
			<value>Open...</value>
		</property>
		<property name="accelerator">
			<value>control K</value>
		</property>
		<property name="mnemonic">
			<value>C</value>
		</property>
	</bean>
    
	<bean id="NewExpUseTemplateAction"
		class="com.apldbio.sds.platform.experiment.template.NewExpUseTemplateAction"
		singleton="true">
		<property name="name">
			<value>From Template...</value>
		</property>
		<!--
		<property name="accelerator">
			<value>control O</value>
		</property>
		<property name="mnemonic">
			<value>O</value>
		</property>
		-->
	</bean>
	
	<bean id="ExportRDMLAction"
		class="com.apldbio.sds.aztec.jide.action.ExportRDMLAction"
		singleton="true">
		<property name="name">
			<value>Export DRML...</value>
		</property>
	</bean>

	<!-- help menu actions 
	-->
	<bean id="help-contents"
		class="com.apldbio.sds.aztec.jide.action.HelpContentsAction"
		singleton="true">
		<property name="name">
			<value>Contents and Index
			</value>
		</property>
		<property name="enabled">
			<value>true</value>
		</property>
	</bean>
	
	<bean id="help-about"
		class="com.apldbio.sds.aztec.jide.action.HelpAboutAction"
		singleton="true">
		<property name="name">
			<value>About QPCR...</value>
		</property>
		<property name="enabled">
			<value>true</value>
		</property>
	</bean>
	
	<!-- ////////////////////////////////// -->
	<!-- gui-commands: delegate collections -->
	<!-- ////////////////////////////////// -->
	
	<bean id="commandManager" class="org.pietschy.command.CommandManager"
		singleton="true">
	</bean>
	
	<bean id="defaultDelegateMediator"
		class="com.apldbio.sds.platform.swing.SDSDelegateMediator"
		singleton="true">
	</bean>
	
	<bean id="OpenInstrumentConsoleAction"
		class="com.apldbio.sds.platform.actions.OpenInstrumentConsoleAction"
		singleton="true">
		<property name="name">
			<value>Open Instrument Manager</value>
		</property>
	</bean>
   	
	<bean id="UploadExperimentAction" 
		class="com.apldbio.sds.platform.actions.UploadExperimentAction" >
		<property name="experimentManager">
				<ref bean="ExperimentManager" />
		</property>
	</bean>
	
	<bean id="DownloadExperimentAction"
		class="com.apldbio.sds.platform.actions.DownloadExperimentAction"
		singleton="true">
		<property name="experimentManager">
				<ref bean="ExperimentManager" />
		</property>
	</bean>
	
	<bean id="UpdateFirmwareAction"
		class="com.apldbio.sds.platform.actions.UpdateFirmwareAction"
		singleton="true">
		<property name="name">
			<value>Update Firmware</value>
		</property>
	</bean>
	
	<bean id="UpdateManager" 
		class="com.apldbio.sds.instrument.aztec.SpringUpdateManager" >
	</bean>
	
	<bean id="CalibrationAction"
		class="com.apldbio.sds.platform.actions.CalibrationAction"
		singleton="true" >
		<property name="name">
			<value>Open Instrument Maintenance Console</value>
		</property>
		<property name="calibFactoryManager">
			<ref bean="calibFactoryManager" />
		</property>
	</bean>
	
</beans>