diff --git a/src/main/java/org/micromanager/lightsheetmanager/gui/LightSheetManagerFrame.java b/src/main/java/org/micromanager/lightsheetmanager/gui/LightSheetManagerFrame.java index bc38f04..a188b8a 100644 --- a/src/main/java/org/micromanager/lightsheetmanager/gui/LightSheetManagerFrame.java +++ b/src/main/java/org/micromanager/lightsheetmanager/gui/LightSheetManagerFrame.java @@ -111,7 +111,7 @@ private void createUserInterface() { // main control area final int width = 900; - final int height = 700; + final int height = 600; tabPanel_ = new TabPanel(model_, this, width, height); // add ui elements to the panel diff --git a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/AcquisitionTab.java b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/AcquisitionTab.java index 5275980..ea6c563 100644 --- a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/AcquisitionTab.java +++ b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/AcquisitionTab.java @@ -1,5 +1,6 @@ package org.micromanager.lightsheetmanager.gui.tabs; +import java.awt.Dimension; import java.lang.reflect.InvocationTargetException; import java.util.concurrent.Future; import javax.swing.SwingUtilities; @@ -84,7 +85,7 @@ private void createUserInterface() { model_.acquisitions().settings(); Panel.setMigLayoutDefault( - "", + "insets 10 10 10 10", "[]5[]", "[]5[]" ); @@ -119,6 +120,11 @@ private void createUserInterface() { // acquisition buttons pnlButtons_ = new Panel(); + pnlButtons_.setMigLayout( + "", + "[]24[]", + "" + ); ToggleButton.setDefaultSize(120, 30); btnRunAcquisition_ = new ToggleButton( @@ -144,6 +150,8 @@ private void createUserInterface() { cbxUseChannels_ = new CheckBox( "Channels", acqSettings.isUsingChannels()); pnlChannelTable_ = new ChannelTablePanel(model_, cbxUseChannels_); + pnlChannelTable_.setMaximumSize(new Dimension(300, 400)); + // disable elements based on acqSettings if (!acqSettings.isUsingChannels()) { pnlChannelTable_.setItemsEnabled(false); @@ -199,7 +207,7 @@ private void createUserInterface() { add(pnlLeft, ""); add(pnlCenter, ""); add(pnlRight_, "wrap"); - add(pnlButtons_, "span 3"); + add(pnlButtons_, "span 3, gaptop 100"); } private void acqFinishedCallback() { diff --git a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/acquisition/MultiPositionPanel.java b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/acquisition/MultiPositionPanel.java index 1363992..e56c32c 100644 --- a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/acquisition/MultiPositionPanel.java +++ b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/acquisition/MultiPositionPanel.java @@ -40,6 +40,8 @@ private void createUserInterface() { btnEditPositionList_ = new Button("Edit Position List", 120, 24); btnOpenXYZGrid_ = new Button("XYZ Grid", 80, 24); + btnOpenXYZGrid_.setEnabled(false); + add(btnEditPositionList_, ""); add(btnOpenXYZGrid_, "wrap"); add(lblPostMoveDelay_, ""); diff --git a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/setup/CameraPanel.java b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/setup/CameraPanel.java index 28a8f2b..99be902 100644 --- a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/setup/CameraPanel.java +++ b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/setup/CameraPanel.java @@ -92,11 +92,12 @@ private void createEventHandlers() { }); break; case SCAPE: + btnInvertedPath_.setText("Preview"); btnInvertedPath_.registerListener(e -> { // TODO: make this work, needs Device Adapter pull request and name for camera... closeLiveModeWindow(); final String cameraName = model_.devices() - .getDevice("InvertedCamera").getDeviceName(); + .getDevice("PreviewCamera").getDeviceName(); try { model_.studio().core().setCameraDevice(cameraName); } catch (Exception ex) { diff --git a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/setup/SetupPanel.java b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/setup/SetupPanel.java index cced613..1a3ab5b 100644 --- a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/setup/SetupPanel.java +++ b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/setup/SetupPanel.java @@ -47,11 +47,12 @@ public SetupPanel(final LightSheetManagerModel model, final int pathNum) { excitationPanel_ = new ExcitationPanel(model_); cameraPanel_ = new CameraPanel(model_); - leftPanel_.add(joystickPanel_, "growx, wrap"); + // TODO: add joystick panel back in + //leftPanel_.add(joystickPanel_, "growx, wrap"); leftPanel_.add(excitationPanel_, "growx, wrap"); if (model_.devices().getDeviceAdapter().getMicroscopeGeometry() == GeometryType.SCAPE) { singleAxisPanel_ = new SingleAxisPanel(model_); - leftPanel_.add(singleAxisPanel_, "growx, wrap"); + //leftPanel_.add(singleAxisPanel_, "growx, wrap"); } leftPanel_.add(cameraPanel_, "growx, wrap");