mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
refactor(tracker, gioui): get rid of EditMode, use gio focus instead
This commit is contained in:
@ -18,7 +18,6 @@ import (
|
||||
// protected.
|
||||
type Model struct {
|
||||
song sointu.Song
|
||||
editMode EditMode
|
||||
selectionCorner SongPoint
|
||||
cursor SongPoint
|
||||
lowNibble bool
|
||||
@ -54,17 +53,8 @@ type Parameter struct {
|
||||
LargeStep int
|
||||
}
|
||||
|
||||
type EditMode int
|
||||
|
||||
type ParameterType int
|
||||
|
||||
const (
|
||||
EditPatterns EditMode = iota
|
||||
EditTracks
|
||||
EditUnits
|
||||
EditParameters
|
||||
)
|
||||
|
||||
const (
|
||||
IntegerParameter ParameterType = iota
|
||||
BoolParameter
|
||||
@ -697,10 +687,6 @@ func (m *Model) DeletePatternSelection() {
|
||||
m.notifyScoreChange()
|
||||
}
|
||||
|
||||
func (m *Model) SetEditMode(value EditMode) {
|
||||
m.editMode = value
|
||||
}
|
||||
|
||||
func (m *Model) Undo() {
|
||||
if !m.CanUndo() {
|
||||
return
|
||||
@ -758,10 +744,6 @@ func (m *Model) Song() sointu.Song {
|
||||
return m.song
|
||||
}
|
||||
|
||||
func (m *Model) EditMode() EditMode {
|
||||
return m.editMode
|
||||
}
|
||||
|
||||
func (m *Model) SelectionCorner() SongPoint {
|
||||
return m.selectionCorner
|
||||
}
|
||||
|
Reference in New Issue
Block a user