[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui CameraView.java,1.2,1.3
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-02-11 18:09:26
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6535/src/net/sourceforge/bprocessor/gui Modified Files: CameraView.java Log Message: Removed the set button in the cameratab in the tree view... working on making selection make camera change instead Index: CameraView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/CameraView.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CameraView.java 25 Jan 2006 14:54:04 -0000 1.2 --- CameraView.java 11 Feb 2006 18:09:15 -0000 1.3 *************** *** 52,61 **** add = new JButton("+"); remove = new JButton("-"); ! set = new JButton("Set"); add.addActionListener(this); remove.addActionListener(this); ! set.addActionListener(this); but.add(add); ! but.add(set); but.add(remove); this.setBackground(new Color(255, 255, 255)); --- 52,61 ---- add = new JButton("+"); remove = new JButton("-"); ! //set = new JButton("Set"); add.addActionListener(this); remove.addActionListener(this); ! //set.addActionListener(this); but.add(add); ! //but.add(set); but.add(remove); this.setBackground(new Color(255, 255, 255)); *************** *** 71,76 **** Project p = Project.getInstance(); if (which == add) { ! p.add(p.getCurrentCamera()); ! p.setCurrentCamera(new Camera(p.getCurrentCamera(), "default")); } else if (which == remove) { Object[] tar = Selection.primary().toArray(); --- 71,77 ---- Project p = Project.getInstance(); if (which == add) { ! Camera c = new Camera(p.getCurrentCamera(), "copy " + p.getCurrentCamera().getName()); ! p.add(c); ! p.setCurrentCamera(c); } else if (which == remove) { Object[] tar = Selection.primary().toArray(); *************** *** 78,82 **** p.remove((Camera)tar[0]); } ! } else if (which == set) { Object[] tar = Selection.primary().toArray(); if (tar[0] instanceof Camera) { --- 79,83 ---- p.remove((Camera)tar[0]); } ! } /*else if (which == set) { Object[] tar = Selection.primary().toArray(); if (tar[0] instanceof Camera) { *************** *** 85,89 **** p.changed(c); } ! } } } --- 86,90 ---- p.changed(c); } ! }*/ } } |