Package de.sciss.eisenkraut.edit

Examples of de.sciss.eisenkraut.edit.BasicCompoundEdit


    final AbstractCompoundEdit  ce;

    positionSmps  = (long) timeTrans.translate( ggMarkPos.getValue(), ParamSpace.spcTimeSmps ).val;
    if( (positionSmps == mark.pos) && (ggMarkName.getText().equals( mark.name ))) return; // no change
   
    ce    = new BasicCompoundEdit( getResourceString( "editEditMarker" ));
    doc.markers.editBegin( ce );
    try {
      doc.markers.editRemove( this, mark, ce );
      doc.markers.editAdd( this, new MarkerStake( positionSmps, ggMarkName.getText() ), ce );
    }
View Full Code Here


//        if( !doc.bird.attemptExclusive( Session.DOOR_TIME, 250 )) return;
//        try {
          // ok this is tricky and totally stupid, have to replace it some day XXX
//          doc.markers.remove( this, dragLastMark );  // remove temporary marker
//          doc.markers.add( this, dragMark );      // restore original marker for undoable edit!
          ce  = new BasicCompoundEdit( getResourceString( "editMoveMarker" ));
          doc.markers.editBegin( ce );
          try {
            doc.markers.editRemove( this, dragMark, ce );
            doc.markers.editAdd( this, dragLastMark, ce );
          }
View Full Code Here

      switch( mode ) {
      case SCROLL_SESSION_START:
        if( timelinePos != 0 ) {
          edit  = TimelineVisualEdit.position( this, doc, 0 ).perform();
          if( !timelineVis.contains( 0 )) {
            final CompoundEdit ce  = new BasicCompoundEdit();
            ce.addEdit( edit );
            newSpan  = new Span( 0, timelineVis.getLength() );
            ce.addEdit( TimelineVisualEdit.scroll( this, doc, newSpan ).perform() );
            ce.end();
            edit  = ce;
          }
        }
        break;
       
View Full Code Here

TOP

Related Classes of de.sciss.eisenkraut.edit.BasicCompoundEdit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.