de.sciss.mellite.gui.AttrMapView.scala Maven / Gradle / Ivy
/*
* AttrMapView.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.stm.Obj
import de.sciss.lucre.synth.Sys
import de.sciss.mellite.gui.impl.document.{AttrMapViewImpl => Impl}
object AttrMapView {
def apply[S <: Sys[S]](obj: Obj[S])(implicit tx: S#Tx, workspace: Workspace[S], cursor: stm.Cursor[S],
undoManager: UndoManager): AttrMapView[S] =
Impl(obj)
type Selection[S <: Sys[S]] = MapView.Selection[S]
type Update[S <: Sys[S]] = MapView.Update[S, AttrMapView[S]]
type SelectionChanged[S <: Sys[S]] = MapView.SelectionChanged[S, AttrMapView[S]]
val SelectionChanged = MapView.SelectionChanged
}
trait AttrMapView[S <: stm.Sys[S]] extends MapView[S, AttrMapView[S]] {
def obj(implicit tx: S#Tx): Obj[S]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy