diff options
| author | Manuel Bentele | 2021-04-30 14:01:34 +0200 |
|---|---|---|
| committer | Manuel Bentele | 2021-04-30 14:01:34 +0200 |
| commit | 02697d206df1958c32aead9a44dda8e19e10f3da (patch) | |
| tree | d62ccff6cd099f05550402254cb0d7d5494bcbb1 /dozentenmodul/src/main/java/org | |
| parent | [client] Add QEMU virtualizer icon for frontend (diff) | |
| download | tutor-module-02697d206df1958c32aead9a44dda8e19e10f3da.tar.gz tutor-module-02697d206df1958c32aead9a44dda8e19e10f3da.tar.xz tutor-module-02697d206df1958c32aead9a44dda8e19e10f3da.zip | |
[client] Remove start command pane on QEMU VM upload page
Diffstat (limited to 'dozentenmodul/src/main/java/org')
2 files changed, 1 insertions, 23 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageMetaDataPageLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageMetaDataPageLayout.java index f607e3da..8ba73589 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageMetaDataPageLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageMetaDataPageLayout.java @@ -23,9 +23,6 @@ public abstract class ImageMetaDataPageLayout extends WizardPage { protected final QLabel lblOperatingSystem; protected final JComboBox<OperatingSystem> cboOperatingSystem; protected final JEditorPane txtDescription; - protected final JTextArea startCommand; - protected final QLabel sCommandCaption; - protected final JScrollPane startCommandPane; protected final JCheckBox chkLicenseRestricted; protected final JCheckBox chkIsTemplate; @@ -54,18 +51,6 @@ public abstract class ImageMetaDataPageLayout extends WizardPage { grid.add(cboOperatingSystem); grid.nextRow(); - sCommandCaption = new QLabel(I18n.PAGE_LAYOUT.getString("ImageMetaData.Label.startCommand.text")); - startCommand = new JTextArea(1, 50); - startCommand.setMinimumSize(Gui.getScaledDimension(0, 35)); - startCommand.setLineWrap(true); - startCommand.setWrapStyleWord(true); - startCommandPane = new JScrollPane(startCommand, JScrollPane.VERTICAL_SCROLLBAR_NEVER, - JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); - startCommandPane.setMinimumSize(startCommand.getMinimumSize()); - grid.add(sCommandCaption); - grid.add(startCommandPane).fill(true, false).expand(true, false); - grid.nextRow(); - // description QLabel descriptionCaption = new QLabel( I18n.PAGE_LAYOUT.getString("ImageMetaData.Label.description.text")); diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageMetaDataPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageMetaDataPage.java index 7314d5e3..e6fcc783 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageMetaDataPage.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageMetaDataPage.java @@ -14,7 +14,6 @@ import org.openslx.thrifthelper.Comparators; import org.openslx.util.QuickTimer; import org.openslx.util.QuickTimer.Task; import org.openslx.virtualization.configuration.VirtualizationConfigurationDocker; -import org.openslx.virtualization.configuration.VirtualizationConfigurationQemu; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; @@ -78,8 +77,7 @@ public class ImageMetaDataPage extends ImageMetaDataPageLayout { } else if (state.selectedOs == null) { cboOperatingSystem.setSelectedItem(null); } - sCommandCaption.setVisible(false); - startCommandPane.setVisible(false); + chkIsTemplate.setSelected(state.isTemplate); chkLicenseRestricted.setSelected(state.isRestricted); reactToUserInput(); @@ -115,11 +113,6 @@ public class ImageMetaDataPage extends ImageMetaDataPageLayout { return; } - if (state.virtualizationConfig instanceof VirtualizationConfigurationQemu) { - sCommandCaption.setVisible(true); - startCommandPane.setVisible(true); - } - if (state.virtualizationConfig instanceof VirtualizationConfigurationDocker) { // TODO we need Information about a OS in Container? Currently use "Other (32 Bit)" as default lblOperatingSystem.setVisible(false); |
