Changeset 155
- Timestamp:
- 02/13/08 08:56:05 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
MediAnnotate/trunk/src/org/mediannotate/app/PlayerPanel.java
r150 r155 115 115 frameslice.setText((int)(t.getMillisecond()/33.3) + ""); 116 116 timeLinePanel.setLocation(time/(float)durationTime.getAllInMilli()); 117 timeLinePanel.repaint();118 117 //validate(); 119 118 } … … 225 224 public void keyReleased(KeyEvent e) { 226 225 if(e.getKeyCode() == KeyEvent.VK_I && e.getModifiers() == ActionEvent.CTRL_MASK) { 227 getTimeLinePanel().setIn(getTime()/(float)durationTime.getAllInMilli()); 228 getTimeLinePanel().repaint(); 226 setInTime(getTime()); 229 227 } 230 228 231 229 if(e.getKeyCode() == KeyEvent.VK_O && e.getModifiers() == ActionEvent.CTRL_MASK) { 232 getTimeLinePanel().setOut(getTime()/(float)durationTime.getAllInMilli()); 233 getTimeLinePanel().repaint(); 230 setOutTime(getTime()); 234 231 } 235 232 236 233 if(e.getKeyCode() == KeyEvent.VK_I && e.getModifiers() == ActionEvent.ALT_MASK) { 237 234 getTimeLinePanel().toggleIn(); 238 getTimeLinePanel().repaint();239 235 } 240 236 241 237 if(e.getKeyCode() == KeyEvent.VK_O && e.getModifiers() == ActionEvent.ALT_MASK) { 242 238 getTimeLinePanel().toggleOut(); 243 getTimeLinePanel().repaint();244 239 } 245 240 MediAnnotate/trunk/src/org/mediannotate/ui/TimeLinePanel.java
r116 r155 63 63 public void setLocation(float loc_percentage) { 64 64 currentLocation = loc_percentage; 65 repaint(); 65 66 } 66 67 … … 69 70 else currentIn = in_percentage; 70 71 inActive = true; 72 repaint(); 71 73 } 72 74 … … 75 77 else currentOut = out_percentage; 76 78 outActive = true; 79 repaint(); 77 80 } 78 81 79 82 public void toggleIn() { 80 83 inActive = !inActive; 84 repaint(); 81 85 } 82 86 83 87 public void toggleOut() { 84 88 outActive = !outActive; 89 repaint(); 85 90 } 86 91
