All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.sciss.mellite.gui.OutputsView.scala Maven / Gradle / Ivy

/*
 *  OutputsView.scala
 *  (Mellite)
 *
 *  Copyright (c) 2012-2016 Hanns Holger Rutz. All rights reserved.
 *
 *  This software is published under the GNU General Public License v3+
 *
 *
 *  For further information, please contact Hanns Holger Rutz at
 *  [email protected]
 */

package de.sciss.mellite
package gui

import de.sciss.desktop.UndoManager
import de.sciss.lucre.stm
import de.sciss.lucre.swing.View
import de.sciss.lucre.synth.Sys
import de.sciss.mellite.gui.impl.{OutputsViewImpl => Impl}
import de.sciss.synth.proc.Proc

object OutputsView {
  final case class Drag[S <: Sys[S]](workspace: Workspace[S], proc: stm.Source[S#Tx, Proc[S]], key: String)

  final val flavor = DragAndDrop.internalFlavor[Drag[_]]

  def apply[S <: Sys[S]](obj: Proc[S])(implicit tx: S#Tx, cursor: stm.Cursor[S],
                                           workspace: Workspace[S], undoManager: UndoManager): OutputsView[S] =
    Impl(obj)
}
trait OutputsView[S <: Sys[S]] extends ViewHasWorkspace[S] with View.Editable[S]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy