Normand Briere
2019-09-02 21ac57b36a9e3b909853c7d64ac29b7ad72490a3
GroupEditor.java
....@@ -368,16 +368,6 @@
368368 refreshContents();
369369 }
370370
371
- public void Show3DView()
372
- {
373
- // bug
374
- //gridPanel.setDividerLocation(1.0);
375
- //bigPanel.setDividerLocation(0.0);
376
- bigThree.ClearUI();
377
- bigThree.add(centralPanel);
378
- bigThree.FlushUI();
379
- }
380
-
381371 //ObjEditor objEditor;
382372 public void closeUI2()
383373 {
....@@ -766,10 +756,10 @@
766756 shadowZItem = menu.add(new MenuItem("Shadow Blue"));
767757 shadowZItem.addActionListener(this);
768758
769
- if (Globals.ADVANCED)
770
- {
771759 attributeItem = menu.add(new MenuItem("Attribute"));
772760 attributeItem.addActionListener(this);
761
+ if (Globals.ADVANCED)
762
+ {
773763 menu.add("-");
774764 linkerItem = menu.add(new MenuItem("Linker"));
775765 linkerItem.addActionListener(this);
....@@ -1081,13 +1071,17 @@
10811071 // }
10821072 // });
10831073
1074
+ oe.toolbarPanel.add(fullScreenButton = GetButton("icons/fullscreen.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1075
+ fullScreenButton.setToolTipText("Full-screen window");
1076
+ fullScreenButton.addActionListener(this);
1077
+
10841078 oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10851079 collapseButton.setToolTipText("Collapse toolbar");
10861080 collapseButton.addActionListener(this);
10871081
1088
- oe.toolbarPanel.add(maximize3DButton = GetButton("icons/square.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1089
- maximize3DButton.setToolTipText("Maximize 3D view");
1090
- maximize3DButton.addActionListener(this);
1082
+// oe.toolbarPanel.add(maximize3DButton = GetButton("icons/square.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1083
+// maximize3DButton.setToolTipText("Maximize 3D view");
1084
+// maximize3DButton.addActionListener(this);
10911085
10921086 oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10931087 twoButton.setToolTipText("Show 3D view only");
....@@ -1107,10 +1101,6 @@
11071101 // sevenButton.setToolTipText("3-column layout");
11081102 // sevenButton.addActionListener(this);
11091103 //
1110
-
1111
- oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1112
- fullButton.setToolTipText("Full-screen window");
1113
- fullButton.addActionListener(this);
11141104
11151105 oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11161106 screenfitButton.setToolTipText("Screen fit");
....@@ -2722,11 +2712,11 @@
27222712 if (!group.selection.isEmpty())
27232713 {
27242714 Composite csg = new GroupLeaf();
2715
+ group(csg);
27252716 csg.count = 5;
27262717 Composite child = new cGroup("Branch");
27272718 csg.addChild(child);
27282719 child.addChild(csg);
2729
- group(csg);
27302720 }
27312721 } else
27322722 if (source == doubleItem)
....@@ -2734,6 +2724,7 @@
27342724 if (!group.selection.isEmpty())
27352725 {
27362726 Composite csg = new GroupLeaf("Fork");
2727
+ group(csg);
27372728 csg.count = 5;
27382729 Composite child = new cGroup("Branch A");
27392730 csg.addChild(child);
....@@ -2741,7 +2732,6 @@
27412732 child = new cGroup("Branch B");
27422733 csg.addChild(child);
27432734 child.addChild(csg);
2744
- group(csg);
27452735 }
27462736 } else
27472737 if (source == tripleItem)
....@@ -2807,7 +2797,7 @@
28072797 {
28082798 Maximize();
28092799 } else
2810
- if (source == fullButton)
2800
+ if (source == fullScreenButton)
28112801 {
28122802 ToggleFullScreen();
28132803 } else
....@@ -2816,13 +2806,13 @@
28162806 this.expandedLayout = radio.layout;
28172807 CollapseToolbar();
28182808 } else
2819
- if (source == maximize3DButton)
2820
- {
2821
- this.expandedLayout = radio.layout;
2822
- radio.layout = twoButton;
2823
- Show3DView();
2824
- CollapseToolbar();
2825
- } else
2809
+// if (source == maximize3DButton)
2810
+// {
2811
+// this.expandedLayout = radio.layout;
2812
+// radio.layout = twoButton;
2813
+// CollapseToolbar();
2814
+// Show3DView();
2815
+// } else
28262816 if (source == previousVersionButton)
28272817 {
28282818 // Go to previous version
....@@ -4169,9 +4159,10 @@
41694159 // and check if any of these nodes are reachable below the root.
41704160 Grafreed.grafreed.universe.TagObjects(copy, true);
41714161
4172
- if (copy instanceof Composite && copy.versionlist == null && !copy.HasTags())
4162
+ if (copy instanceof Composite && !copy.HasTags())
41734163 {
4174
- copy.versionlist = new Object3D[100];
4164
+ if (copy.versionlist == null)
4165
+ copy.versionlist = new Object3D[100];
41754166
41764167 //Save(true);
41774168 }
....@@ -5374,7 +5365,7 @@
53745365 if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
53755366 // a camera
53765367 {
5377
- if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crash the camera because of invalid lightspace
5368
+ if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crashes the camera because of invalid lightspace
53785369 {
53795370 CameraPane.camerachangeframe = 0; // don't refuse it
53805371 Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
....@@ -5426,7 +5417,7 @@
54265417
54275418 void refreshContents(boolean cp)
54285419 {
5429
- if (Globals.ADVANCED)
5420
+ if (Globals.SHOWINFO)
54305421 //if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
54315422 if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
54325423 {