.. | .. |
---|
28 | 28 | iSendInfo |
---|
29 | 29 | //KeyListener |
---|
30 | 30 | { |
---|
| 31 | + boolean timeline; |
---|
| 32 | + boolean wasFullScreen; |
---|
31 | 33 | |
---|
| 34 | + GroupEditor callee; |
---|
| 35 | + JFrame frame; |
---|
| 36 | + |
---|
32 | 37 | // SCRIPT |
---|
33 | 38 | |
---|
34 | 39 | transient JFrame textpanel = null; |
---|
.. | .. |
---|
119 | 124 | void keyPressed(int key, int modifiers) |
---|
120 | 125 | { |
---|
121 | 126 | System.out.println("KEY PRESSED"); |
---|
122 | | - CameraPane.theRenderer.keyPressed(key, modifiers); |
---|
| 127 | + Globals.theRenderer.keyPressed(key, modifiers); |
---|
123 | 128 | } |
---|
124 | 129 | */ |
---|
125 | 130 | |
---|
126 | 131 | static GridBagConstraints aConstraints; |
---|
127 | 132 | static GridBagConstraints aWindowConstraints; |
---|
128 | | - GroupEditor callee; |
---|
129 | | - JFrame frame; |
---|
| 133 | + |
---|
130 | 134 | static int GRIDWIDTH = 100; // 4; |
---|
131 | 135 | |
---|
132 | 136 | public void closeUI() |
---|
.. | .. |
---|
158 | 162 | objEditor.ctrlPanel.remove(slowerButton); |
---|
159 | 163 | objEditor.ctrlPanel.remove(fasterButton); |
---|
160 | 164 | objEditor.ctrlPanel.remove(remarkButton); |
---|
| 165 | + |
---|
| 166 | + Remove(normalpushField); |
---|
161 | 167 | } |
---|
162 | 168 | |
---|
163 | 169 | public ObjEditor GetEditor() |
---|
164 | 170 | { |
---|
165 | 171 | return objEditor; //.GetEditor(); |
---|
166 | 172 | } |
---|
| 173 | + |
---|
| 174 | + // Sometimes myself, sometimes my callee's. |
---|
167 | 175 | ObjEditor objEditor; |
---|
168 | 176 | |
---|
169 | 177 | /* |
---|
.. | .. |
---|
238 | 246 | //if (!isDisplayable()) |
---|
239 | 247 | //setUndecorated(true); |
---|
240 | 248 | |
---|
241 | | - System.out.println("getFullScreenWindow? " + gd.getFullScreenWindow()); |
---|
| 249 | + //System.out.println("getFullScreenWindow? " + gd.getFullScreenWindow()); |
---|
242 | 250 | client = inClient; |
---|
243 | 251 | copy = localCopy; |
---|
244 | 252 | copy.editWindow = this; |
---|
.. | .. |
---|
292 | 300 | //normalLensItem.addActionListener(this); |
---|
293 | 301 | cameraMenu.add(revertCameraItem = new MenuItem("Revert Camera")); |
---|
294 | 302 | revertCameraItem.addActionListener(this); |
---|
295 | | - cameraMenu.add(toggleFullItem = new CheckboxMenuItem("Full Screen")); |
---|
296 | | - toggleFullItem.addItemListener(this); |
---|
297 | | - toggleFullItem.setState(CameraPane.FULLSCREEN); |
---|
| 303 | + cameraMenu.add(toggleTimelineItem = new CheckboxMenuItem("Timeline")); |
---|
| 304 | + toggleTimelineItem.addItemListener(this); |
---|
| 305 | + cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen")); |
---|
| 306 | + toggleFullScreenItem.addItemListener(this); |
---|
| 307 | + toggleFullScreenItem.setState(CameraPane.FULLSCREEN); |
---|
298 | 308 | cameraMenu.add("-"); |
---|
299 | 309 | cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture")); |
---|
300 | 310 | toggleTextureItem.addItemListener(this); |
---|
301 | 311 | toggleTextureItem.setState(CameraPane.textureon); |
---|
302 | 312 | cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live")); |
---|
303 | 313 | toggleLiveItem.addItemListener(this); |
---|
304 | | - toggleLiveItem.setState(CameraPane.isLIVE()); |
---|
| 314 | + toggleLiveItem.setState(Globals.isLIVE()); |
---|
305 | 315 | cameraMenu.add(stepItem = new MenuItem("Step")); |
---|
306 | 316 | stepItem.addActionListener(this); |
---|
307 | 317 | // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List")); |
---|
.. | .. |
---|
594 | 604 | } |
---|
595 | 605 | } |
---|
596 | 606 | |
---|
| 607 | + void ToggleFullScreen() |
---|
| 608 | + { |
---|
| 609 | + if (CameraPane.FULLSCREEN) |
---|
| 610 | + { |
---|
| 611 | + frame.getContentPane().remove(/*"Center",*/bigThree); |
---|
| 612 | + framePanel.add(bigThree); |
---|
| 613 | + frame.getContentPane().add(/*"Center",*/framePanel); |
---|
| 614 | + } else |
---|
| 615 | + { |
---|
| 616 | + frame.getContentPane().remove(/*"Center",*/framePanel); |
---|
| 617 | + framePanel.remove(bigThree); |
---|
| 618 | + frame.getContentPane().add(/*"Center",*/bigThree); |
---|
| 619 | + } |
---|
| 620 | + cameraView.ToggleFullScreen(); |
---|
| 621 | + } |
---|
| 622 | + |
---|
597 | 623 | private JTextArea createTextPane() |
---|
598 | 624 | { |
---|
599 | 625 | String[] initString = |
---|
.. | .. |
---|
794 | 820 | |
---|
795 | 821 | aConstraints.fill = GridBagConstraints.VERTICAL; |
---|
796 | 822 | jlabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
797 | | - aConstraints.gridwidth = 2; |
---|
| 823 | + aConstraints.gridwidth = 1; |
---|
798 | 824 | ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); |
---|
799 | 825 | aConstraints.gridx += 1; |
---|
800 | 826 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
.. | .. |
---|
963 | 989 | |
---|
964 | 990 | Return(); |
---|
965 | 991 | |
---|
| 992 | + normalpushField = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, -1); |
---|
| 993 | + Return(); |
---|
| 994 | + |
---|
966 | 995 | // oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); |
---|
967 | 996 | // ObjEditor.aConstraints.gridx += 1; |
---|
968 | 997 | |
---|
.. | .. |
---|
1158 | 1187 | //JPanel worldPanel = |
---|
1159 | 1188 | // new gov.nasa.worldwind.examples.ApplicationTemplate.AppPanel(null, true); |
---|
1160 | 1189 | //worldPanel.setName("World"); |
---|
1161 | | - /*JPanel*/ cameraPanel = |
---|
1162 | | - new JPanel(new BorderLayout()); |
---|
1163 | | - cameraPanel.add(cameraView); |
---|
| 1190 | + centralPanel = new JPanel(new BorderLayout()); |
---|
| 1191 | + timelinePanel = new JPanel(new BorderLayout()); |
---|
| 1192 | + timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel); |
---|
1164 | 1193 | |
---|
| 1194 | + cameraPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, cameraView, timelinePanel); |
---|
| 1195 | + cameraPanel.setContinuousLayout(true); |
---|
| 1196 | + cameraPanel.setOneTouchExpandable(true); |
---|
| 1197 | +// cameraPanel.setDividerLocation(0.9); |
---|
| 1198 | +// cameraPanel.setDividerSize(9); |
---|
| 1199 | + cameraPanel.setResizeWeight(1.0); |
---|
| 1200 | + |
---|
| 1201 | + centralPanel.add(cameraView); |
---|
| 1202 | + //frame.setJMenuBar(timelineMenubar); |
---|
| 1203 | + //centralPanel.add(timelinePanel); |
---|
| 1204 | + |
---|
1165 | 1205 | //topView.camera = ; |
---|
1166 | 1206 | //frontView.camera = new Camera(2); |
---|
1167 | 1207 | //sideView.camera = new Camera(3); |
---|
.. | .. |
---|
1191 | 1231 | gridPanel.add(cameraView); |
---|
1192 | 1232 | gridPanel.add(XYZPanel); |
---|
1193 | 1233 | */ |
---|
1194 | | - gridPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, cameraPanel, XYZPanel); //new BorderLayout()); |
---|
| 1234 | + gridPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, centralPanel, XYZPanel); //new BorderLayout()); |
---|
1195 | 1235 | gridPanel.setContinuousLayout(true); |
---|
1196 | 1236 | gridPanel.setOneTouchExpandable(true); |
---|
1197 | 1237 | gridPanel.setDividerLocation(1.0); |
---|
.. | .. |
---|
1244 | 1284 | scrollpane.setWheelScrollingEnabled(true); |
---|
1245 | 1285 | scrollpane.addMouseWheelListener(this); // Default not fast enough |
---|
1246 | 1286 | |
---|
1247 | | - /*JTabbedPane*/ jtp = new JTabbedPane(); |
---|
1248 | | - jtp.add(scrollpane); |
---|
| 1287 | + /*JTabbedPane*/ scenePanel = new JTabbedPane(); |
---|
| 1288 | + scenePanel.add(scrollpane); |
---|
1249 | 1289 | |
---|
1250 | | - jtp.add(FSPane = new cFileSystemPane(this)); |
---|
| 1290 | + scenePanel.add(FSPane = new cFileSystemPane(this)); |
---|
1251 | 1291 | |
---|
1252 | 1292 | optionsPanel = new JPanel(new GridBagLayout()); |
---|
1253 | 1293 | |
---|
1254 | 1294 | optionsPanel.setName("Options"); |
---|
1255 | | - jtp.add(optionsPanel); |
---|
| 1295 | + scenePanel.add(optionsPanel); |
---|
1256 | 1296 | |
---|
1257 | 1297 | |
---|
1258 | 1298 | /* |
---|
.. | .. |
---|
1275 | 1315 | jtp.add(tree); |
---|
1276 | 1316 | */ |
---|
1277 | 1317 | |
---|
1278 | | - bigPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, jtp, gridPanel); |
---|
| 1318 | + bigPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, scenePanel, gridPanel); |
---|
1279 | 1319 | bigPanel.setContinuousLayout(true); |
---|
1280 | 1320 | bigPanel.setOneTouchExpandable(true); |
---|
1281 | 1321 | bigPanel.setDividerLocation(0.8); |
---|
.. | .. |
---|
1297 | 1337 | aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
1298 | 1338 | aWindowConstraints.weightx = 0; |
---|
1299 | 1339 | aWindowConstraints.weighty = 1; |
---|
1300 | | - bigThree.add(jtp, aWindowConstraints); |
---|
| 1340 | + bigThree.add(scenePanel, aWindowConstraints); |
---|
1301 | 1341 | aWindowConstraints.weightx = 1; |
---|
1302 | 1342 | aWindowConstraints.gridwidth = 3; |
---|
1303 | 1343 | // aConstraints.gridheight = 3; |
---|
1304 | 1344 | aWindowConstraints.gridx = 1; |
---|
1305 | 1345 | aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
1306 | | - bigThree.add(cameraPanel, aWindowConstraints); |
---|
| 1346 | + bigThree.add(centralPanel, aWindowConstraints); |
---|
1307 | 1347 | aWindowConstraints.weightx = 0; |
---|
1308 | 1348 | aWindowConstraints.gridx = 4; |
---|
1309 | 1349 | aWindowConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1331 | 1371 | //worldPane.add(bigPanel); |
---|
1332 | 1372 | //worldPane.add(worldPanel); |
---|
1333 | 1373 | /**/ |
---|
1334 | | - frame.getContentPane().add(/*"Center",*/framePanel); |
---|
| 1374 | + //frame.getContentPane().add(/*"Center",*/framePanel); |
---|
| 1375 | + frame.add(/*"Center",*/framePanel); |
---|
1335 | 1376 | //frame.getContentPane().add(/*"Center",*/ worldPane); |
---|
1336 | 1377 | |
---|
1337 | 1378 | // aConstraints = gbc; // (GridBagConstraints) GrafreeD.clone(gbc); |
---|
.. | .. |
---|
1422 | 1463 | aConstraints.gridx += 1; |
---|
1423 | 1464 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1424 | 1465 | //aConstraints.weightx = 0; |
---|
1425 | | - ctrlPanel.add(colorField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1466 | + ctrlPanel.add(colorField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1426 | 1467 | aConstraints.gridx = 0; |
---|
1427 | 1468 | aConstraints.gridy += 1; |
---|
1428 | 1469 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1432 | 1473 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1433 | 1474 | aConstraints.gridx += 1; |
---|
1434 | 1475 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1435 | | - ctrlPanel.add(modulationField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1476 | + ctrlPanel.add(modulationField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1436 | 1477 | aConstraints.gridx = 0; |
---|
1437 | 1478 | aConstraints.gridy += 1; |
---|
1438 | 1479 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1442 | 1483 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1443 | 1484 | aConstraints.gridx += 1; |
---|
1444 | 1485 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1445 | | - ctrlPanel.add(textureField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1486 | + ctrlPanel.add(textureField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1446 | 1487 | aConstraints.gridx = 0; |
---|
1447 | 1488 | aConstraints.gridy += 1; |
---|
1448 | 1489 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1452 | 1493 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1453 | 1494 | aConstraints.gridx += 1; |
---|
1454 | 1495 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1455 | | - ctrlPanel.add(anisoField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1496 | + ctrlPanel.add(anisoField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1456 | 1497 | aConstraints.gridx = 0; |
---|
1457 | 1498 | aConstraints.gridy += 1; |
---|
1458 | 1499 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1462 | 1503 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1463 | 1504 | aConstraints.gridx += 1; |
---|
1464 | 1505 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1465 | | - ctrlPanel.add(anisoVField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1506 | + ctrlPanel.add(anisoVField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1466 | 1507 | aConstraints.gridx = 0; |
---|
1467 | 1508 | aConstraints.gridy += 1; |
---|
1468 | 1509 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1531 | 1572 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1532 | 1573 | aConstraints.gridx += 1; |
---|
1533 | 1574 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1534 | | - ctrlPanel.add(subsurfaceField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1575 | + ctrlPanel.add(subsurfaceField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1535 | 1576 | aConstraints.gridx = 0; |
---|
1536 | 1577 | aConstraints.gridy += 1; |
---|
1537 | 1578 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1600 | 1641 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1601 | 1642 | aConstraints.gridx += 1; |
---|
1602 | 1643 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1603 | | - ctrlPanel.add(metalnessField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1644 | + ctrlPanel.add(metalnessField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1604 | 1645 | aConstraints.gridx = 0; |
---|
1605 | 1646 | aConstraints.gridy += 1; |
---|
1606 | 1647 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
1671 | 1712 | aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
1672 | 1713 | aConstraints.gridx += 1; |
---|
1673 | 1714 | aConstraints.gridwidth = ObjEditor.GRIDWIDTH; |
---|
1674 | | - ctrlPanel.add(opacityField = new NumberSlider(0.001, 1, -0.1), aConstraints); |
---|
| 1715 | + ctrlPanel.add(opacityField = new NumberSlider(0.001, 1, -0.5), aConstraints); |
---|
1675 | 1716 | aConstraints.gridx = 0; |
---|
1676 | 1717 | aConstraints.gridy += 1; |
---|
1677 | 1718 | aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
2958 | 2999 | // june 2013 copy.HardTouch(); |
---|
2959 | 3000 | cameraView.repaint(); |
---|
2960 | 3001 | return; |
---|
2961 | | - } else if (event.getSource() == toggleFullItem) |
---|
| 3002 | + } else if (event.getSource() == toggleTimelineItem) |
---|
2962 | 3003 | { |
---|
2963 | | - if (CameraPane.FULLSCREEN) |
---|
| 3004 | + timeline ^= true; |
---|
| 3005 | + |
---|
| 3006 | + if (timeline) |
---|
2964 | 3007 | { |
---|
2965 | | - frame.getContentPane().remove(/*"Center",*/bigThree); |
---|
2966 | | - framePanel.add(bigThree); |
---|
2967 | | - frame.getContentPane().add(/*"Center",*/framePanel); |
---|
2968 | | - } else |
---|
2969 | | - { |
---|
2970 | | - frame.getContentPane().remove(/*"Center",*/framePanel); |
---|
2971 | | - frame.getContentPane().add(/*"Center",*/bigThree); |
---|
| 3008 | + centralPanel.remove(cameraView); |
---|
| 3009 | + cameraPanel.add(cameraView); |
---|
| 3010 | + centralPanel.add(cameraPanel); |
---|
| 3011 | + frame.setJMenuBar(timelineMenubar); |
---|
| 3012 | + wasFullScreen = CameraPane.FULLSCREEN; |
---|
| 3013 | + if (!CameraPane.FULLSCREEN) |
---|
| 3014 | + ToggleFullScreen(); |
---|
| 3015 | + toggleFullScreenItem.setEnabled(false); |
---|
2972 | 3016 | } |
---|
| 3017 | + else |
---|
| 3018 | + { |
---|
| 3019 | + centralPanel.remove(cameraPanel); |
---|
| 3020 | + centralPanel.add(cameraView); |
---|
| 3021 | + frame.setJMenuBar(null); |
---|
| 3022 | + if (!wasFullScreen) |
---|
| 3023 | + ToggleFullScreen(); |
---|
| 3024 | + toggleFullScreenItem.setEnabled(true); |
---|
| 3025 | + } |
---|
| 3026 | + |
---|
2973 | 3027 | frame.validate(); |
---|
2974 | | - cameraView.ToggleFullScreen(); |
---|
| 3028 | + return; |
---|
| 3029 | + } else if (event.getSource() == toggleFullScreenItem) |
---|
| 3030 | + { |
---|
| 3031 | + ToggleFullScreen(); |
---|
| 3032 | + frame.validate(); |
---|
2975 | 3033 | |
---|
2976 | 3034 | return; |
---|
2977 | 3035 | } else if (event.getSource() == toggleRandomItem) |
---|
.. | .. |
---|
3081 | 3139 | objEditor.refreshContents(); |
---|
3082 | 3140 | } else if (event.getSource() == stepItem) |
---|
3083 | 3141 | { |
---|
3084 | | - cameraView.ONESTEP = true; |
---|
| 3142 | + //cameraView.ONESTEP = true; |
---|
| 3143 | + Globals.ONESTEP = true; |
---|
3085 | 3144 | cameraView.repaint(); |
---|
3086 | 3145 | return; |
---|
3087 | 3146 | } else if (event.getSource() == stepButton) |
---|
.. | .. |
---|
3220 | 3279 | cameraView.RevertCamera(); |
---|
3221 | 3280 | cameraView.repaint(); |
---|
3222 | 3281 | return; |
---|
3223 | | - } else if (event.getSource() == textureButton) |
---|
3224 | | - { |
---|
3225 | | - return; // true; |
---|
| 3282 | +// } else if (event.getSource() == textureButton) |
---|
| 3283 | +// { |
---|
| 3284 | +// return; // true; |
---|
3226 | 3285 | } else // combos... |
---|
3227 | 3286 | if (event.getSource() == texresMenu) |
---|
3228 | 3287 | { |
---|
.. | .. |
---|
3238 | 3297 | |
---|
3239 | 3298 | void ToggleAnimation() |
---|
3240 | 3299 | { |
---|
3241 | | - if (!CameraPane.ANIMATION) |
---|
| 3300 | + if (!Globals.ANIMATION) |
---|
3242 | 3301 | { |
---|
3243 | 3302 | FileDialog browser = new FileDialog(frame, "Save Animation As...", FileDialog.SAVE); |
---|
3244 | 3303 | browser.show(); |
---|
3245 | 3304 | String filename = browser.getFile(); |
---|
3246 | 3305 | if (filename != null && filename.length() > 0) |
---|
3247 | 3306 | { |
---|
3248 | | - CameraPane.filename = browser.getDirectory() + filename; |
---|
| 3307 | + Globals.filename = browser.getDirectory() + filename; |
---|
3249 | 3308 | //CameraPane.framecount = 0; |
---|
3250 | | - CameraPane.imagecount = 0; |
---|
| 3309 | + Globals.imagecount = 0; |
---|
3251 | 3310 | |
---|
3252 | | - CameraPane.ANIMATION ^= true; |
---|
| 3311 | + Globals.ANIMATION ^= true; |
---|
3253 | 3312 | |
---|
3254 | 3313 | GrafreeD.wav.cursor = 0; |
---|
3255 | 3314 | GrafreeD.wav.loop = 0; |
---|
3256 | 3315 | } |
---|
3257 | 3316 | } else |
---|
3258 | 3317 | { |
---|
3259 | | - CameraPane.ANIMATION ^= true; |
---|
| 3318 | + Globals.ANIMATION ^= true; |
---|
3260 | 3319 | } |
---|
3261 | 3320 | } |
---|
3262 | 3321 | |
---|
.. | .. |
---|
3509 | 3568 | //System.out.println("PARENT = " + parent); |
---|
3510 | 3569 | //if (parent != null) |
---|
3511 | 3570 | // parent.applySelf(); |
---|
3512 | | - refreshContents(); |
---|
| 3571 | + if (e.getSource() == normalpushField) |
---|
| 3572 | + { |
---|
| 3573 | + objEditor.refreshContents(); |
---|
| 3574 | + //Refresh(); |
---|
| 3575 | + } |
---|
| 3576 | + else |
---|
| 3577 | + refreshContents(); |
---|
3513 | 3578 | // ??? client.refreshEditWindow(); |
---|
3514 | 3579 | } |
---|
3515 | 3580 | //else |
---|
.. | .. |
---|
3521 | 3586 | //group.name = nameField.getText(); |
---|
3522 | 3587 | //objEditor.applySelf(); |
---|
3523 | 3588 | |
---|
3524 | | - assert (objEditor == this); |
---|
| 3589 | + // OCT2018: assert (objEditor == this); |
---|
3525 | 3590 | if (copy.selection == null || copy.selection.size() == 0) |
---|
3526 | 3591 | //super.applySelf() |
---|
3527 | 3592 | ; else |
---|
.. | .. |
---|
3545 | 3610 | objEditor.copy = keep; |
---|
3546 | 3611 | } |
---|
3547 | 3612 | } |
---|
| 3613 | + |
---|
| 3614 | + if (normalpushField != null) |
---|
| 3615 | + copy.NORMALPUSH = (float)normalpushField.getFloat()/1000; |
---|
3548 | 3616 | } |
---|
3549 | 3617 | |
---|
3550 | 3618 | void SnapObject() |
---|
3551 | 3619 | { |
---|
3552 | | - Object3D obj = (Object3D)copy.selection.elementAt(0); |
---|
3553 | | - SnapObject(obj); |
---|
| 3620 | + if (copy.selection.size() > 0) |
---|
| 3621 | + { |
---|
| 3622 | + Object3D obj = (Object3D)copy.selection.elementAt(0); |
---|
| 3623 | + SnapObject(obj); |
---|
| 3624 | + } |
---|
3554 | 3625 | } |
---|
3555 | 3626 | |
---|
3556 | 3627 | void SnapObject(Object3D obj) |
---|
.. | .. |
---|
4444 | 4515 | MenuItem revertCameraItem; |
---|
4445 | 4516 | CheckboxMenuItem toggleLiveItem; |
---|
4446 | 4517 | MenuItem stepItem; |
---|
4447 | | - CheckboxMenuItem toggleFullItem; |
---|
| 4518 | + CheckboxMenuItem toggleFullScreenItem; |
---|
| 4519 | + CheckboxMenuItem toggleTimelineItem; |
---|
4448 | 4520 | CheckboxMenuItem toggleRenderItem; |
---|
4449 | 4521 | CheckboxMenuItem toggleDebugItem; |
---|
4450 | 4522 | CheckboxMenuItem toggleFrustumItem; |
---|
.. | .. |
---|
4471 | 4543 | JSplitPane gridPanel; |
---|
4472 | 4544 | JSplitPane bigPanel; |
---|
4473 | 4545 | JPanel bigThree; |
---|
4474 | | - JTabbedPane jtp; |
---|
4475 | | - JPanel cameraPanel; |
---|
| 4546 | + JTabbedPane scenePanel; |
---|
| 4547 | + JPanel centralPanel; |
---|
| 4548 | + JSplitPane cameraPanel; |
---|
| 4549 | + JPanel timelinePanel; |
---|
| 4550 | + JMenuBar timelineMenubar; |
---|
4476 | 4551 | JSplitPane framePanel; |
---|
4477 | 4552 | JTextArea/*Field*/ nameField; |
---|
4478 | | - cButton textureButton; |
---|
| 4553 | + //cButton textureButton; |
---|
4479 | 4554 | cButton okButton; |
---|
4480 | 4555 | cButton applyButton; |
---|
4481 | 4556 | cButton cancelButton; |
---|
.. | .. |
---|
4583 | 4658 | NumberSlider opacityPowerField; |
---|
4584 | 4659 | JTree jTree; |
---|
4585 | 4660 | //ObjectUI parent; |
---|
| 4661 | + |
---|
| 4662 | + NumberSlider normalpushField; |
---|
4586 | 4663 | } |
---|