Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed May 8, 2023
1 parent a8dd2a1 commit c1893ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.awt.geom.Point2D;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -455,7 +456,7 @@ public void actionPerformed(boolean selected) {

private ComboItemListener<RenderingType> newRenderingTypeOption() {

return new ComboItemListener<>(ActionVol.RENDERING_TYPE, RenderingType.values()) {
return new ComboItemListener<>(ActionVol.RENDERING_TYPE, Arrays.stream(RenderingType.values()).limit(RenderingType.values().length - 1L).toArray(RenderingType[]::new)) {

@Override
public void itemStateChanged(Object object) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.weasis.dicom.viewer3d.Messages;

public enum CameraView implements View {
INITIAL(Messages.getString("default"), getQuaternion(-75, 0, 25)),
INITIAL(Messages.getString("default"), getQuaternion(-75, 0, 15)),
FRONT(Biped.A.getFullName(), getQuaternion(-90, 0, 0)),
BACK(Biped.P.getFullName(), getQuaternion(-90, 0, 180)),
TOP(Biped.H.getFullName(), getQuaternion(0, 0, 180)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ light.color=Light color
bck.color=Background color
default.orientation=Default orientation
dynamic.quality=Dynamic quality
max.texture.size=Max 3d texture size
max.texture.size=Max 3D texture size
default.layout=Default layout
opengl.support=OpenGL Support
enable=Enable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ private void initGUI() {

add(GuiUtils.boxYLastElement(LAST_FILLER_HEIGHT));
getProperties().setProperty(PreferenceDialog.KEY_SHOW_RESTORE, Boolean.TRUE.toString());
getProperties().setProperty(PreferenceDialog.KEY_HELP, "dicom-3d-viewer"); // NON-NLS
}

private void setDefaultLayout() {
Expand Down

0 comments on commit c1893ed

Please sign in to comment.