Package de.sciss.meloncillo.gui

Examples of de.sciss.meloncillo.gui.MainFrame


  public void setDirty( boolean dirty )
  {
    if( !this.dirty == dirty ) {
      this.dirty = dirty;
      MainFrame  mf = (MainFrame) AbstractApplication.getApplication().getComponent( Main.COMP_MAIN );
      if( mf != null ) mf.updateTitle();
    }
  }
View Full Code Here


    new ObserverPalette();
    new MeterFrame( this, doc );
    new TimelineFrame( doc );
    new RealtimeFrame( this, doc );

    mainFrame   = new MainFrame( this, doc );

    // ----
// EEE
   
    if( prefsVersion == 0.0 ) { // means no preferences found, so display splash screen
View Full Code Here

      }
    }
   
    private void clear()
    {
      final MainFrame mf = (MainFrame) AbstractApplication.getApplication().getComponent( Main.COMP_MAIN );

      doc.getTransport().stop();
      try {
        doc.bird.waitExclusive( Session.DOOR_ALL );
        doc.getUndoManager().discardAllEdits();
        doc.clear();
        doc.setDirty( false );
        mf.updateTitle();
        mf.clearLog();
      }
      finally {
        doc.bird.releaseExclusive( Session.DOOR_ALL );
      }
    }
View Full Code Here

    public void processCancel( ProcessingThread context ) {}

    public void processFinished( ProcessingThread context )
    {
      final BasicApplication  app  = (BasicApplication) AbstractApplication.getApplication();
      final MainFrame     mf  = (MainFrame) app.getComponent( Main.COMP_MAIN );
      final File        f  = (File) context.getClientArg( "file" );

      if( context.getReturnCode() == DONE ) {
        doc.setFile( f );
        app.getMenuFactory().addRecent( f );
        doc.setDirty( false );
      } else {
        File tempDir = new File( f.getParentFile().getAbsolutePath() + ".tmp" );
        if( tempDir.exists() ) {
          JOptionPane.showMessageDialog( mf.getWindow(),
            AbstractApplication.getApplication().getResourceString( "warnOldSessionDir" )+ " :\n"+
            tempDir.getAbsolutePath(), getValue( Action.NAME ).toString(),
            JOptionPane.WARNING_MESSAGE );
        }
      }
      mf.updateTitle();
    }
View Full Code Here

TOP

Related Classes of de.sciss.meloncillo.gui.MainFrame

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.