diff --git a/plugins/Microscope.form b/plugins/Microscope.form
index f951867..ca68049 100644
--- a/plugins/Microscope.form
+++ b/plugins/Microscope.form
@@ -32,6 +32,10 @@
+
+
+
+
@@ -51,7 +55,9 @@
-
+
+
+
@@ -129,5 +135,14 @@
+
+
+
+
+
+
+
+
+
diff --git a/plugins/Microscope.java b/plugins/Microscope.java
index d57c6cf..67bb5a5 100644
--- a/plugins/Microscope.java
+++ b/plugins/Microscope.java
@@ -52,6 +52,7 @@ public class Microscope extends Panel {
buttonDefineBeam = new javax.swing.JButton();
motorPanel2 = new ch.psi.pshell.swing.MotorPanel();
processVariablePanel2 = new ch.psi.pshell.swing.ProcessVariablePanel();
+ checkHighDef = new javax.swing.JCheckBox();
renderer.setAutoscrolls(true);
renderer.setDeviceName("mic-high");
@@ -89,6 +90,14 @@ public class Microscope extends Panel {
processVariablePanel2.setShowSlider(false);
processVariablePanel2.setShowTitle(true);
+ checkHighDef.setSelected(true);
+ checkHighDef.setText("High definition");
+ checkHighDef.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ checkHighDefActionPerformed(evt);
+ }
+ });
+
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
@@ -105,7 +114,10 @@ public class Microscope extends Panel {
.addComponent(motorPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(motorPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(processVariablePanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(processVariablePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE))))
+ .addComponent(processVariablePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addGroup(layout.createSequentialGroup()
+ .addGap(18, 18, 18)
+ .addComponent(checkHighDef)))
.addContainerGap())
);
@@ -124,7 +136,9 @@ public class Microscope extends Panel {
.addComponent(processVariablePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(processVariablePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 109, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 68, Short.MAX_VALUE)
+ .addComponent(checkHighDef)
+ .addGap(18, 18, 18)
.addComponent(buttonDefineBeam)
.addGap(26, 26, 26))
);
@@ -173,8 +187,13 @@ public class Microscope extends Panel {
}//GEN-LAST:event_buttonDefineBeamActionPerformed
+ private void checkHighDefActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkHighDefActionPerformed
+ renderer.setDeviceName(checkHighDef.isSelected() ? "mic-high" : "mic-low");
+ }//GEN-LAST:event_checkHighDefActionPerformed
+
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton buttonDefineBeam;
+ private javax.swing.JCheckBox checkHighDef;
private ch.psi.pshell.swing.MotorPanel motorPanel1;
private ch.psi.pshell.swing.MotorPanel motorPanel2;
private ch.psi.pshell.swing.ProcessVariablePanel processVariablePanel1;