Normand Briere
2019-04-29 bed42c663d286d76a32f155049f9efabc2fdb73f
ObjEditor.java
....@@ -19,6 +19,8 @@
1919 import //weka.core.
2020 matrix.Matrix;
2121
22
+import grafeme.ui.*;
23
+
2224 class ObjEditor /*extends JFrame*/ implements iCallBack, ObjectUI,
2325 ActionListener, ChangeListener,
2426 InputMethodListener,
....@@ -124,7 +126,7 @@
124126 void keyPressed(int key, int modifiers)
125127 {
126128 System.out.println("KEY PRESSED");
127
- CameraPane.theRenderer.keyPressed(key, modifiers);
129
+ Globals.theRenderer.keyPressed(key, modifiers);
128130 }
129131 */
130132
....@@ -1217,12 +1219,12 @@
12171219 //frontView.object = copy;
12181220 //sideView.object = copy;
12191221
1220
- XYZPanel = new JPanel();
1221
- XYZPanel.setLayout(new GridLayout(3, 1, 5, 5));
1222
+ XYZPanel = new cGridBag().setVertical(true);
1223
+ //XYZPanel.setLayout(new GridLayout(3, 1, 5, 5));
12221224
1223
- XYZPanel.add(/*BorderLayout.SOUTH,*/sideView); // Scroll);
1224
- XYZPanel.add(/*BorderLayout.CENTER,*/frontView); // Scroll);
1225
- XYZPanel.add(/*BorderLayout.NORTH,*/topView); // Scroll);
1225
+ XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll);
1226
+ XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll);
1227
+ XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll);
12261228
12271229 /*
12281230 gridPanel = new JPanel(); //new BorderLayout());
....@@ -1292,6 +1294,9 @@
12921294 optionsPanel = new JPanel(new GridBagLayout());
12931295
12941296 optionsPanel.setName("Options");
1297
+
1298
+ AddOptions(optionsPanel, aConstraints);
1299
+
12951300 scenePanel.add(optionsPanel);
12961301
12971302
....@@ -1327,6 +1332,7 @@
13271332 //bigPanel.setSize(new Dimension(10,10));
13281333 //bigPanel.add(ctrlPanel);
13291334 //bigPanel.add(gridPanel);
1335
+ /**
13301336 bigThree = new JPanel();
13311337 //big.setLayout(new FlowLayout(FlowLayout.LEFT));
13321338 bigThree.setLayout(new GridBagLayout()); //1,3,5,5));
....@@ -1350,7 +1356,13 @@
13501356 // aConstraints.gridheight = 3;
13511357 aWindowConstraints.fill = GridBagConstraints.VERTICAL;
13521358 bigThree.add(XYZPanel, aWindowConstraints);
1359
+ /**/
13531360
1361
+ bigThree = new cGridBag();
1362
+ bigThree.addComponent(scenePanel);
1363
+ bigThree.addComponent(centralPanel);
1364
+ bigThree.addComponent(XYZPanel);
1365
+
13541366 // // SIDE EFFECT!!!
13551367 // aConstraints.gridx = 0;
13561368 // aConstraints.gridy = 0;
....@@ -1393,6 +1405,10 @@
13931405 });
13941406 }
13951407
1408
+ void AddOptions(JPanel panel, GridBagConstraints constraints)
1409
+ {
1410
+ }
1411
+
13961412 JTree GetTree()
13971413 {
13981414 return objEditor.jTree;
....@@ -4539,10 +4555,10 @@
45394555 JScrollPane infoPanel;
45404556 JPanel optionsPanel;
45414557 JTabbedPane objectPanel;
4542
- JPanel XYZPanel;
4558
+ cGridBag XYZPanel;
45434559 JSplitPane gridPanel;
45444560 JSplitPane bigPanel;
4545
- JPanel bigThree;
4561
+ cGridBag bigThree;
45464562 JTabbedPane scenePanel;
45474563 JPanel centralPanel;
45484564 JSplitPane cameraPanel;